#sfdroid log for Monday, 2017-02-20

*** 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 #sfdroid00:16
*** IRCFrEAK <IRCFrEAK!~gk.1wm.su@2a03:4a80:3:43d:43d:23b:2e38:2839> has joined #sfdroid01:56
*** IRCFrEAK <IRCFrEAK!~gk.1wm.su@2a03:4a80:3:43d:43d:23b:2e38:2839> has left #sfdroid01:56
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-tzhqdazteygvzvwm> has joined #sfdroid03: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 #sfdroid04:07
*** madgoat <madgoat!~gk.1wm.su@2a03:4a80:5:41e:41e:efdd:c10d:1c12> has joined #sfdroid05:03
*** madgoat <madgoat!~gk.1wm.su@2a03:4a80:5:41e:41e:efdd:c10d:1c12> has left #sfdroid05: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 #sfdroid05: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 #sfdroid08:10
*** CrKit <CrKit!~nekit@188.162.51.81> has joined #sfdroid08:15
*** nh1402 <nh1402!~nh1402@host81-133-137-69.in-addr.btopenworld.com> has joined #sfdroid08: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 #sfdroid10: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 #sfdroid12:08
*** CrKit <CrKit!~nekit@95-83-33-28.saransk.ru> has joined #sfdroid12:21
*** piggz <piggz!~piggz@95.151.121.219> has joined #sfdroid13: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
saidinesh5okay trying out https://wiki.kubuntu.org/Touch/Core/UbuntuDebugAndroid to debug why init is crashing14:12
nh1402saidinesh5: good14:14
saidinesh5chroot was promising a llittle yesterday after i neutered the init a little14:14
nh1402this still chrooting with your image though right?14:15
saidinesh5yes, chroot needs patches to init14:15
saidinesh5and probably other binaries too14:17
saidinesh5at least surfaceflinger wasnt crashing yesterday14:19
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid14: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
saidinesh5so init is statically linked right?14:26
saidinesh5Ahh... #353 __system_properties_init () at bionic/libc/bionic/system_properties.cpp:57514:30
neeradsaidinesh5 SFdroid is failing to build ... http://paste.ubuntu.com/24034328/15:30
neerador anyone available how to solve this http://paste.ubuntu.com/24034328/?15:31
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-wsrznwexpqbmbyhj> has joined #sfdroid15:39
nh1402neerad: did you change any of the classes it's moaning about?15:40
neeradmoaning :O ...LOL15:40
neeradYeah before running I had a previous error so I ran make update-api15:41
neeradAs told in the error15:41
neeradany ideas nh1402 ?15:47
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid15:51
nh1402neerad: it seems you're creating a new object with invalid parameters15:53
neeradThis was the original error You have tried to change the API from what has been previously approved.15:53
neeradTo 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 the15:53
neerad      errors above.15:53
neerad   2) You can update current.txt by executing the following command:15:53
neerad         make update-api15: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
neeradSorry for the long lines15:53
neerad"/home/neerad/SFDROID/out/target/common/obj/PACKAGING/public_api.txt:16996: error 3: Added class Helpers to package android.net15: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
neeradSomebody got any clue???16:07
neeradnh1402 I have sfdroid repos so that might me be messing with the CM sources (cm-12.1-YOG7D)16:08
saidinesh5neerad: you're trying to build the full thing i presume?16:09
saidinesh5yeah those tests were broken16:09
neeradsaidinesh5 Yep what to do?16:09
saidinesh5[21:23:23] <neerad>    1) You can add "@hide" javadoc comments to the methods, etc. listed in the16:09
saidinesh5[21:23:23] <neerad>       errors above.16:09
neeradTell me how to do that and where to add these ?16:09
saidinesh5Added public method android.net.wifi.WifiManager.update_wifiinfo"16:09
saidinesh5that's one class16:10
saidinesh5error 3: Added class Helpers to package android.net16:10
saidinesh5that's another one16:10
neeradin /home/neerad/SFDROID/out/target/common/obj/PACKAGING/public_api.txt16:10
saidinesh5no16:10
saidinesh5in the actual java files16:10
neeradWhere to find these ?16:10
saidinesh5ag/grep in frameworks ?16:11
neeradIn frameworks/base I guess but16:11
saidinesh5WifiManager .. grep for that16:11
saidinesh5gimme a minute16:12
saidinesh5let me see if i can get you a diff16:12
neeradyeah sure ....16:12
neeradsaidinesh5 Do I really need to build the whole of android sources? Does it make a difference ?16:14
saidinesh5DONT blindly apply this diff with patch < p1. make these changes manually, where needed: https://paste.kde.org/p0mvdb2k616:14
saidinesh5eg. ignore the patch to PackageManagerService which was trying to SFDroid path in /usr/blah16:14
neeradI prefer the manual one16:14
saidinesh5and neerad that depends on what you're trying to do . for chroot, you probably have to build the whole. otherwise just build the needed bits16:15
neeradsaidinesh5 No i am not using chroot so do i need to build whole of it?16:15
saidinesh5then you dont have to build the whole16:15
saidinesh5just the needed parts16:15
saidinesh5i thought the build script took care of it...16:15
neeradsaidinesh5 Somehow I thought building the whole of it might be the issue16:16
neeradin the error that was causing SFDROID to fail16:16
saidinesh5dunno . give it a shot16:17
neeradI patched only the first one core/java/android/net/Helpers.java because this was causing issue16:20
saidinesh5wifianager too16:20
neeradyep done that too16:23
neeradWill do others if required16:23
*** nh1402 <nh1402!~nh1402@host81-133-137-69.in-addr.btopenworld.com> has quit IRC (Quit: Leaving)16:23
entilwhich platform are you working on?16:28
saidinesh5me? still cancro. him? Xiaomi Redmi 2 i think. CM 12.1 YOG7D16:28
entilok16:29
entilwas keeping my fingers crossed for fp216:29
saidinesh5fixed the issue with fp2?16:29
saidinesh5ah16:29
entilI'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
saidinesh5hehh16:30
*** kimmoli_ <kimmoli_!~kl@194.100.69.195> has joined #sfdroid17: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 #sfdroid17:09
*** andrewalker <andrewalker!walker@to1.hashbang.sh> has joined #sfdroid17:11
*** kimmoli_ is now known as kimmoli17:23
saidinesh5Oooooooookay. so .. this is tricky: http://stevevallay.github.io/images/blog/android_property.png17:30
saidinesh5init is what exposes the property service in android?17:30
saidinesh5apparently so: http://rxwen.blogspot.in/2010/01/android-property-system.html17:33
*** CrKit <CrKit!~nekit@95-83-33-28.saransk.ru> has quit IRC (Ping timeout: 260 seconds)17:41
saidinesh5so now neutering the init even more.. and letting the droid-hal-init outside the chroot be the boss..17:42
NeKitsaidinesh5, please also check servicemanager17:43
NeKitit communicates with other process through binder kernel driver17:43
NeKit*processes17:43
NeKitnot sure how will the device behave with two servicemanagers running17:44
saidinesh5NeKit: binder is exposed via. Dev right?17:44
saidinesh5 /dev i mean17:44
NeKityes17:44
saidinesh51 sec17:44
saidinesh5phone..17:45
saidinesh5NeKit: these are all the paths i am sharing to the chroot atm. https://paste.kde.org/ppc0or8r417:48
saidinesh5and my sfdroid's init.rc is basically init.sfdroid.rc atm.17:48
NeKitit's not about paths17:48
NeKitsince both Androids will want to access binder17:49
saidinesh5there aren't exactly "both androids" because half the services are still from droid-hal-init right?17:50
saidinesh5that'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 #sfdroid18: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 #sfdroid18:48
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid18:49
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid18:49
*** piggz <piggz!~piggz@95.151.121.219> has quit IRC (Ping timeout: 260 seconds)18:53
saidinesh5back19:03
saidinesh5so 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 chroot19:04
NeKithm, it might work this way, but I'm still unsure about servicemanager19:06
NeKityou don't run it in sfdroid chroot?19:06
saidinesh5i 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 /dev19:07
saidinesh5so instead of manually trying to debug each service, i am just trying to run the services from init.sfdroid.rc inside chroot19:08
saidinesh5that'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 time19:09
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-wsrznwexpqbmbyhj> has quit IRC (Quit: Connection closed for inactivity)19:09
saidinesh5now .. removing the property service bits from init19:09
saidinesh5as that seems to cause init to segfault19:09
saidinesh5(there is already droid-hal-init running)19:10
*** nh1402 <nh1402!~nh1402@95.148.89.116> has joined #sfdroid19:28
saidinesh5wow. https://github.com/absabs/init19:34
nh1402saidinesh5: it's worse than I thought, Windows 10 clipboard is F'd19:37
saidinesh5whut?19:37
saidinesh5how?19:37
nh1402saidinesh5: no idea19:41
saidinesh5hmm19:42
neeradsaidinesh5 I still have compilation errors http://paste.ubuntu.com/24035781/20:03
neeradDo i have to apply all elements of your patches20:04
saidinesh5you know how to fix the update api issue20:04
saidinesh5did you apply the wifimanager patches?20:04
neeradYep I did and that too mnaually20:04
neeradmanually*20:04
neeradI applied helpers and Wifimanager patches but it worked as now it shows "Removed" not "Added" to helpers and wifimanager20:05
saidinesh5actually yes20:05
saidinesh5so i am assuming you have updated those patches from somewhere else20:06
NeKitthat repo is probably really outdated by now20:06
neeradBut there is android_stubs error now, so does applying all your patches will work20:06
neeradUpdated those patches, which one?20:06
neeradNekit repo of CM or sfdroid?20:07
saidinesh5NeKit: 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 fine20:07
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has quit IRC (Remote host closed the connection)20:08
saidinesh5neerad: probably you have to clean the specific out folders which are causing the issue and start the compilation again?20:08
neeradi did that before applying patches and running again, do i need clean ccache also?20:09
NeKitI mean that Android has probably changed a lot since then20:09
saidinesh5neerad: no need to clear ccache20:09
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-226-12.play-internet.pl> has joined #sfdroid20:09
neeradhmmm.... so what to do then?20:09
saidinesh5NeKit: yeah i am just seeing if it supports the basic commands needed for my specific init file20:09
saidinesh5neerad: remove the @hide statements you have put in and just make without clean?20:10
neeradwell 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 agsin20:11
saidinesh5dont do make clean this time20:11
neeradokay, but how would removing it solve it?20:12
saidinesh5it says methods removed , when you added @hide20:12
saidinesh5so20:12
saidinesh5you change the files and make so it would see you have added them back20:12
neeradokay let's try20:13
neeradOkay untill then I watch Bill Maher and Richard Dawkins20:14
saidinesh5odd...21:35
saidinesh5F/libc    (13788): Fatal signal 6 (SIGABRT), code -6 in tid 13788 (surfaceflinger)21:35
saidinesh5I/DEBUG   (  692): property debug.db.uid not set; NOT waiting for gdb.21:35
saidinesh5although with the new init , /system/bin/vold /sbin/healthd system/bin/mediaserver and /system/bin/netd21:36
saidinesh5are running21:36
saidinesh5what have i done21:39
saidinesh5i killed the init21:39
saidinesh5wile mediaserver and zygote are running!21:39
saidinesh5init -> vold, mediaserver, netd, zygote, healthd  ; are all running21:41
saidinesh5only surfaceflinger quit21:41
saidinesh5and a ton of dex2oat processes21:42
saidinesh5now need to figure out why surfaceflinger was acting up21:43
saidinesh5Aargh , i forgot to comment out the mount data bit21:45
* saidinesh5 facepalms21: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
saidinesh5Is healthd really needed?21:58
saidinesh5it seems to spam A LOT21:58
saidinesh5NeKit: ^21:58
saidinesh5I/Adreno-EGL( 4425): Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 6151be1 +  NOTHING21:59
saidinesh5E/SurfaceFlinger( 4425): ERROR: failed to open framebuffer (Permission denied), aborting21:59
saidinesh5F/libc    ( 4425): Fatal signal 6 (SIGABRT), code -6 in tid 4425 (surfaceflinger)21:59
saidinesh5it is odd that surfaceflinger is dropping out especially when all the other services seem to be working22:05
saidinesh5as of now dex2oat processes seem to have hogged all my RAM and brought the device to standstill22:05
saidinesh5okay giving up for tonight. 13 minutes of dex2oat and phone seems to have overheated22:16
saidinesh5so tomorrow will first figure out why surfaceflinger was crashing22:16
NeKitsaidinesh5, at least old sfdroid version patches SurfaceFlinger to use custom framebuffer module22:17
NeKit*patched22:17
NeKitnot sure how it's done now22:17
NeKit(sharebuffer)22:18
saidinesh5same way NeKit.. odd thing is surfaceflinger is working with Android's init .. but there init crashes and zygote etc.. crash22:18
saidinesh5so i am guessing Android's init does some more magic i need to reimplement in this old and aged init22:21
*** krnlyng__ <krnlyng__!~liar@77.117.9.38.wireless.dyn.drei.com> has joined #sfdroid22: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 #sfdroid22: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/!