*** mal <mal!~mal@dsl-hkibrasgw1-58c392-192.dhcp.inet.fi> has quit IRC (Ping timeout: 260 seconds) | 00:16 | |
*** mal <mal!~mal@dsl-hkibrasgw1-58c392-192.dhcp.inet.fi> has joined #sfdroid | 00:16 | |
*** IRCFrEAK <IRCFrEAK!~gk.1wm.su@2a03:4a80:3:43d:43d:23b:2e38:2839> has joined #sfdroid | 01:56 | |
*** IRCFrEAK <IRCFrEAK!~gk.1wm.su@2a03:4a80:3:43d:43d:23b:2e38:2839> has left #sfdroid | 01:56 | |
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-tzhqdazteygvzvwm> has joined #sfdroid | 03:22 | |
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 255 seconds) | 03:55 | |
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid | 04:07 | |
*** madgoat <madgoat!~gk.1wm.su@2a03:4a80:5:41e:41e:efdd:c10d:1c12> has joined #sfdroid | 05:03 | |
*** madgoat <madgoat!~gk.1wm.su@2a03:4a80:5:41e:41e:efdd:c10d:1c12> has left #sfdroid | 05:03 | |
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 240 seconds) | 05:43 | |
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid | 05:55 | |
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 240 seconds) | 07:58 | |
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid | 08:10 | |
*** CrKit <CrKit!~nekit@188.162.51.81> has joined #sfdroid | 08:15 | |
*** nh1402 <nh1402!~nh1402@host81-133-137-69.in-addr.btopenworld.com> has joined #sfdroid | 08:21 | |
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-tzhqdazteygvzvwm> has quit IRC (Quit: Connection closed for inactivity) | 09:29 | |
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-pccvagzcytahewwl> has joined #sfdroid | 10:21 | |
*** CrKit <CrKit!~nekit@188.162.51.81> has quit IRC (Ping timeout: 240 seconds) | 12:04 | |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid | 12:08 | |
*** CrKit <CrKit!~nekit@95-83-33-28.saransk.ru> has joined #sfdroid | 12:21 | |
*** piggz <piggz!~piggz@95.151.121.219> has joined #sfdroid | 13:21 | |
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-pccvagzcytahewwl> has quit IRC (Quit: Connection closed for inactivity) | 13:49 | |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has quit IRC (Remote host closed the connection) | 14:09 | |
saidinesh5 | okay trying out https://wiki.kubuntu.org/Touch/Core/UbuntuDebugAndroid to debug why init is crashing | 14:12 |
---|---|---|
nh1402 | saidinesh5: good | 14:14 |
saidinesh5 | chroot was promising a llittle yesterday after i neutered the init a little | 14:14 |
nh1402 | this still chrooting with your image though right? | 14:15 |
saidinesh5 | yes, chroot needs patches to init | 14:15 |
saidinesh5 | and probably other binaries too | 14:17 |
saidinesh5 | at least surfaceflinger wasnt crashing yesterday | 14:19 |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid | 14:23 | |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has quit IRC (Read error: Connection reset by peer) | 14:25 | |
saidinesh5 | so init is statically linked right? | 14:26 |
saidinesh5 | Ahh... #353 __system_properties_init () at bionic/libc/bionic/system_properties.cpp:575 | 14:30 |
neerad | saidinesh5 SFdroid is failing to build ... http://paste.ubuntu.com/24034328/ | 15:30 |
neerad | or anyone available how to solve this http://paste.ubuntu.com/24034328/? | 15:31 |
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-wsrznwexpqbmbyhj> has joined #sfdroid | 15:39 | |
nh1402 | neerad: did you change any of the classes it's moaning about? | 15:40 |
neerad | moaning :O ...LOL | 15:40 |
neerad | Yeah before running I had a previous error so I ran make update-api | 15:41 |
neerad | As told in the error | 15:41 |
neerad | any ideas nh1402 ? | 15:47 |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid | 15:51 | |
nh1402 | neerad: it seems you're creating a new object with invalid parameters | 15:53 |
neerad | This was the original error You have tried to change the API from what has been previously approved. | 15:53 |
neerad | To make these errors go away, you have two choices: | 15:53 |
neerad | 1) You can add "@hide" javadoc comments to the methods, etc. listed in the | 15:53 |
neerad | errors above. | 15:53 |
neerad | 2) You can update current.txt by executing the following command: | 15:53 |
neerad | make update-api | 15:53 |
neerad | ^^^^^^^^^^^^^^^^^^ | 15:53 |
neerad | NO. NO. STOP BEING LAZY. SERIOUSLY. | 15:53 |
neerad | DO NOT DO THIS in CM. THIS IS A LIE. IT WILL BREAK THINGS. | 15:53 |
neerad | To submit the revised current.txt to the main Android repository, | 15:53 |
neerad | you will need approval. | 15:53 |
neerad | Sorry for the long lines | 15:53 |
neerad | "/home/neerad/SFDROID/out/target/common/obj/PACKAGING/public_api.txt:16996: error 3: Added class Helpers to package android.net | 15:55 |
neerad | " | 15:55 |
neerad | "/home/neerad/SFDROID/out/target/common/obj/PACKAGING/public_api.txt:18071: error 4: Added public method android.net.wifi.WifiManager.update_wifiinfo" | 15:56 |
neerad | Somebody got any clue??? | 16:07 |
neerad | nh1402 I have sfdroid repos so that might me be messing with the CM sources (cm-12.1-YOG7D) | 16:08 |
saidinesh5 | neerad: you're trying to build the full thing i presume? | 16:09 |
saidinesh5 | yeah those tests were broken | 16:09 |
neerad | saidinesh5 Yep what to do? | 16:09 |
saidinesh5 | [21:23:23] <neerad> 1) You can add "@hide" javadoc comments to the methods, etc. listed in the | 16:09 |
saidinesh5 | [21:23:23] <neerad> errors above. | 16:09 |
neerad | Tell me how to do that and where to add these ? | 16:09 |
saidinesh5 | Added public method android.net.wifi.WifiManager.update_wifiinfo" | 16:09 |
saidinesh5 | that's one class | 16:10 |
saidinesh5 | error 3: Added class Helpers to package android.net | 16:10 |
saidinesh5 | that's another one | 16:10 |
neerad | in /home/neerad/SFDROID/out/target/common/obj/PACKAGING/public_api.txt | 16:10 |
saidinesh5 | no | 16:10 |
saidinesh5 | in the actual java files | 16:10 |
neerad | Where to find these ? | 16:10 |
saidinesh5 | ag/grep in frameworks ? | 16:11 |
neerad | In frameworks/base I guess but | 16:11 |
saidinesh5 | WifiManager .. grep for that | 16:11 |
saidinesh5 | gimme a minute | 16:12 |
saidinesh5 | let me see if i can get you a diff | 16:12 |
neerad | yeah sure .... | 16:12 |
neerad | saidinesh5 Do I really need to build the whole of android sources? Does it make a difference ? | 16:14 |
saidinesh5 | DONT blindly apply this diff with patch < p1. make these changes manually, where needed: https://paste.kde.org/p0mvdb2k6 | 16:14 |
saidinesh5 | eg. ignore the patch to PackageManagerService which was trying to SFDroid path in /usr/blah | 16:14 |
neerad | I prefer the manual one | 16:14 |
saidinesh5 | and neerad that depends on what you're trying to do . for chroot, you probably have to build the whole. otherwise just build the needed bits | 16:15 |
neerad | saidinesh5 No i am not using chroot so do i need to build whole of it? | 16:15 |
saidinesh5 | then you dont have to build the whole | 16:15 |
saidinesh5 | just the needed parts | 16:15 |
saidinesh5 | i thought the build script took care of it... | 16:15 |
neerad | saidinesh5 Somehow I thought building the whole of it might be the issue | 16:16 |
neerad | in the error that was causing SFDROID to fail | 16:16 |
saidinesh5 | dunno . give it a shot | 16:17 |
neerad | I patched only the first one core/java/android/net/Helpers.java because this was causing issue | 16:20 |
saidinesh5 | wifianager too | 16:20 |
neerad | yep done that too | 16:23 |
neerad | Will do others if required | 16:23 |
*** nh1402 <nh1402!~nh1402@host81-133-137-69.in-addr.btopenworld.com> has quit IRC (Quit: Leaving) | 16:23 | |
entil | which platform are you working on? | 16:28 |
saidinesh5 | me? still cancro. him? Xiaomi Redmi 2 i think. CM 12.1 YOG7D | 16:28 |
entil | ok | 16:29 |
entil | was keeping my fingers crossed for fp2 | 16:29 |
saidinesh5 | fixed the issue with fp2? | 16:29 |
saidinesh5 | ah | 16:29 |
entil | I'm swamped with work so I haven't had the energy to look into this, playing video games with my fiancé is an easier pastime after work, I'm afraid :/ | 16:29 |
saidinesh5 | hehh | 16:30 |
*** kimmoli_ <kimmoli_!~kl@194.100.69.195> has joined #sfdroid | 17:07 | |
*** CrKit <CrKit!~nekit@95-83-33-28.saransk.ru> has quit IRC (Ping timeout: 240 seconds) | 17:09 | |
*** andrewalker <andrewalker!walker@to1.hashbang.sh> has quit IRC (Ping timeout: 240 seconds) | 17:09 | |
*** kimmoli <kimmoli!~kl@194.100.69.195> has quit IRC (Ping timeout: 240 seconds) | 17:09 | |
*** CrKit <CrKit!~nekit@95-83-33-28.saransk.ru> has joined #sfdroid | 17:09 | |
*** andrewalker <andrewalker!walker@to1.hashbang.sh> has joined #sfdroid | 17:11 | |
*** kimmoli_ is now known as kimmoli | 17:23 | |
saidinesh5 | Oooooooookay. so .. this is tricky: http://stevevallay.github.io/images/blog/android_property.png | 17:30 |
saidinesh5 | init is what exposes the property service in android? | 17:30 |
saidinesh5 | apparently so: http://rxwen.blogspot.in/2010/01/android-property-system.html | 17:33 |
*** CrKit <CrKit!~nekit@95-83-33-28.saransk.ru> has quit IRC (Ping timeout: 260 seconds) | 17:41 | |
saidinesh5 | so now neutering the init even more.. and letting the droid-hal-init outside the chroot be the boss.. | 17:42 |
NeKit | saidinesh5, please also check servicemanager | 17:43 |
NeKit | it communicates with other process through binder kernel driver | 17:43 |
NeKit | *processes | 17:43 |
NeKit | not sure how will the device behave with two servicemanagers running | 17:44 |
saidinesh5 | NeKit: binder is exposed via. Dev right? | 17:44 |
saidinesh5 | /dev i mean | 17:44 |
NeKit | yes | 17:44 |
saidinesh5 | 1 sec | 17:44 |
saidinesh5 | phone.. | 17:45 |
saidinesh5 | NeKit: these are all the paths i am sharing to the chroot atm. https://paste.kde.org/ppc0or8r4 | 17:48 |
saidinesh5 | and my sfdroid's init.rc is basically init.sfdroid.rc atm. | 17:48 |
NeKit | it's not about paths | 17:48 |
NeKit | since both Androids will want to access binder | 17:49 |
saidinesh5 | there aren't exactly "both androids" because half the services are still from droid-hal-init right? | 17:50 |
saidinesh5 | that's why sharing the dev/shm and dev/socket so the services within chroot can still talk to the services outside chroot (from droid-hal-init) | 17:51 |
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 260 seconds) | 18:25 | |
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid | 18:36 | |
*** piggz <piggz!~piggz@95.151.121.219> has quit IRC (Ping timeout: 240 seconds) | 18:48 | |
*** piggz <piggz!~piggz@95.151.121.219> has joined #sfdroid | 18:48 | |
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid | 18:49 | |
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid | 18:49 | |
*** piggz <piggz!~piggz@95.151.121.219> has quit IRC (Ping timeout: 260 seconds) | 18:53 | |
saidinesh5 | back | 19:03 |
saidinesh5 | so NeKit, the other services in chroot should be able to talk to the services outside chroot via. binder if i shared /dev right? | 19:04 |
saidinesh5 | ( https://paste.kde.org/pefcimgkn ) are the services i am running in chroot | 19:04 |
NeKit | hm, it might work this way, but I'm still unsure about servicemanager | 19:06 |
NeKit | you don't run it in sfdroid chroot? | 19:06 |
saidinesh5 | i havent run systmeservice in chrooot. i had to cut down a lot of services in chroot because they couldnt get locks/etc on the devices in /dev | 19:07 |
saidinesh5 | so instead of manually trying to debug each service, i am just trying to run the services from init.sfdroid.rc inside chroot | 19:08 |
saidinesh5 | that's why trimming down the init i am running in chroot to not mount dev, sys, proc and sharing them with the outside world. as of now chroot is just for me to specify what data partition it should use and to start/stop services on demand instead of at boot time | 19:09 |
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-wsrznwexpqbmbyhj> has quit IRC (Quit: Connection closed for inactivity) | 19:09 | |
saidinesh5 | now .. removing the property service bits from init | 19:09 |
saidinesh5 | as that seems to cause init to segfault | 19:09 |
saidinesh5 | (there is already droid-hal-init running) | 19:10 |
*** nh1402 <nh1402!~nh1402@95.148.89.116> has joined #sfdroid | 19:28 | |
saidinesh5 | wow. https://github.com/absabs/init | 19:34 |
nh1402 | saidinesh5: it's worse than I thought, Windows 10 clipboard is F'd | 19:37 |
saidinesh5 | whut? | 19:37 |
saidinesh5 | how? | 19:37 |
nh1402 | saidinesh5: no idea | 19:41 |
saidinesh5 | hmm | 19:42 |
neerad | saidinesh5 I still have compilation errors http://paste.ubuntu.com/24035781/ | 20:03 |
neerad | Do i have to apply all elements of your patches | 20:04 |
saidinesh5 | you know how to fix the update api issue | 20:04 |
saidinesh5 | did you apply the wifimanager patches? | 20:04 |
neerad | Yep I did and that too mnaually | 20:04 |
neerad | manually* | 20:04 |
neerad | I applied helpers and Wifimanager patches but it worked as now it shows "Removed" not "Added" to helpers and wifimanager | 20:05 |
saidinesh5 | actually yes | 20:05 |
saidinesh5 | so i am assuming you have updated those patches from somewhere else | 20:06 |
NeKit | that repo is probably really outdated by now | 20:06 |
neerad | But there is android_stubs error now, so does applying all your patches will work | 20:06 |
neerad | Updated those patches, which one? | 20:06 |
neerad | Nekit repo of CM or sfdroid? | 20:07 |
saidinesh5 | NeKit: the init one? got it from here: http://blog.darknedgy.net/technology/2015/08/05/0-androidinit/ he tried to implement android init for GNU linux and instead found an older repo which booted his system fine | 20:07 |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has quit IRC (Remote host closed the connection) | 20:08 | |
saidinesh5 | neerad: probably you have to clean the specific out folders which are causing the issue and start the compilation again? | 20:08 |
neerad | i did that before applying patches and running again, do i need clean ccache also? | 20:09 |
NeKit | I mean that Android has probably changed a lot since then | 20:09 |
saidinesh5 | neerad: no need to clear ccache | 20:09 |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid | 20:09 | |
neerad | hmmm.... so what to do then? | 20:09 |
saidinesh5 | NeKit: yeah i am just seeing if it supports the basic commands needed for my specific init file | 20:09 |
saidinesh5 | neerad: remove the @hide statements you have put in and just make without clean? | 20:10 |
neerad | well then the previous error i mentioned will pop in, because each time i build i make clean and then run make, so it would be a wastage of hours of time to do that agsin | 20:11 |
saidinesh5 | dont do make clean this time | 20:11 |
neerad | okay, but how would removing it solve it? | 20:12 |
saidinesh5 | it says methods removed , when you added @hide | 20:12 |
saidinesh5 | so | 20:12 |
saidinesh5 | you change the files and make so it would see you have added them back | 20:12 |
neerad | okay let's try | 20:13 |
neerad | Okay untill then I watch Bill Maher and Richard Dawkins | 20:14 |
saidinesh5 | odd... | 21:35 |
saidinesh5 | F/libc (13788): Fatal signal 6 (SIGABRT), code -6 in tid 13788 (surfaceflinger) | 21:35 |
saidinesh5 | I/DEBUG ( 692): property debug.db.uid not set; NOT waiting for gdb. | 21:35 |
saidinesh5 | although with the new init , /system/bin/vold /sbin/healthd system/bin/mediaserver and /system/bin/netd | 21:36 |
saidinesh5 | are running | 21:36 |
saidinesh5 | what have i done | 21:39 |
saidinesh5 | i killed the init | 21:39 |
saidinesh5 | wile mediaserver and zygote are running! | 21:39 |
saidinesh5 | init -> vold, mediaserver, netd, zygote, healthd ; are all running | 21:41 |
saidinesh5 | only surfaceflinger quit | 21:41 |
saidinesh5 | and a ton of dex2oat processes | 21:42 |
saidinesh5 | now need to figure out why surfaceflinger was acting up | 21:43 |
saidinesh5 | Aargh , i forgot to comment out the mount data bit | 21:45 |
* saidinesh5 facepalms | 21:45 | |
*** nh1402 <nh1402!~nh1402@95.148.89.116> has quit IRC (Quit: Leaving) | 21:48 | |
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 255 seconds) | 21:54 | |
saidinesh5 | Is healthd really needed? | 21:58 |
saidinesh5 | it seems to spam A LOT | 21:58 |
saidinesh5 | NeKit: ^ | 21:58 |
saidinesh5 | I/Adreno-EGL( 4425): Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 6151be1 + NOTHING | 21:59 |
saidinesh5 | E/SurfaceFlinger( 4425): ERROR: failed to open framebuffer (Permission denied), aborting | 21:59 |
saidinesh5 | F/libc ( 4425): Fatal signal 6 (SIGABRT), code -6 in tid 4425 (surfaceflinger) | 21:59 |
saidinesh5 | it is odd that surfaceflinger is dropping out especially when all the other services seem to be working | 22:05 |
saidinesh5 | as of now dex2oat processes seem to have hogged all my RAM and brought the device to standstill | 22:05 |
saidinesh5 | okay giving up for tonight. 13 minutes of dex2oat and phone seems to have overheated | 22:16 |
saidinesh5 | so tomorrow will first figure out why surfaceflinger was crashing | 22:16 |
NeKit | saidinesh5, at least old sfdroid version patches SurfaceFlinger to use custom framebuffer module | 22:17 |
NeKit | *patched | 22:17 |
NeKit | not sure how it's done now | 22:17 |
NeKit | (sharebuffer) | 22:18 |
saidinesh5 | same way NeKit.. odd thing is surfaceflinger is working with Android's init .. but there init crashes and zygote etc.. crash | 22:18 |
saidinesh5 | so i am guessing Android's init does some more magic i need to reimplement in this old and aged init | 22:21 |
*** krnlyng__ <krnlyng__!~liar@77.117.9.38.wireless.dyn.drei.com> has joined #sfdroid | 22:28 | |
*** krnlyng_ <krnlyng_!~liar@77.116.6.239.wireless.dyn.drei.com> has quit IRC (Ping timeout: 255 seconds) | 22:31 | |
*** piggz_ <piggz_!~piggz@95.151.121.219> has quit IRC (Read error: No route to host) | 22:58 | |
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid | 22:58 | |
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has quit IRC (Quit: Konversation terminated!) | 23:21 | |
*** piggz_ <piggz_!~piggz@95.151.121.219> has quit IRC (Ping timeout: 260 seconds) | 23:24 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!