#sfdroid log for Tuesday, 2017-02-21

*** Piece_Maker <Piece_Maker!~Acou_Bass@host-89-241-252-213.as13285.net> has joined #sfdroid02:05
*** Acou_Bass <Acou_Bass!~Acou_Bass@host-89-241-254-54.as13285.net> has quit IRC (Ping timeout: 258 seconds)02:06
*** Piece_Maker is now known as Acou_Bass02:06
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-kvkklcftvlrgoixf> has joined #sfdroid03:51
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid06:35
*** TheKit <TheKit!~nekit@85-95-186-128.saransk.ru> has joined #sfdroid06:37
*** NeKit <NeKit!~nekit@95-83-33-28.saransk.ru> has quit IRC (Ping timeout: 258 seconds)06:40
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid08:22
*** nh1402 <nh1402!~nh1402@host81-133-137-69.in-addr.btopenworld.com> has joined #sfdroid08:27
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 240 seconds)08:52
nh1402saidinesh5: how did it go?10:27
*** locusf <locusf!locusfdisr@gateway/shell/matrix.org/x-reaaabnntnohgndq> has left #sfdroid ("Kicked by @appservice-irc:matrix.org")11:17
*** locusf <locusf!locusfdisr@gateway/shell/matrix.org/x-drafswyfuxwlxntx> has joined #sfdroid11:36
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid12:20
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 240 seconds)12:35
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid12:46
neeradAny luck saidinesh5 ?12:50
neeradkrnlyng__ Did you make your own base?12:51
saidinesh5nh1402: neerad. kind of .i am almost back to square 1 it seems. init wasn't crashing anymore, vold, healthd, netd, zygote, mediaserver were running.. but for some reason surfaceflinger wasnt working.12:51
saidinesh5[03:29:52] <saidinesh5> I/Adreno-EGL( 4425): Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 6151be1 +  NOTHING12:51
saidinesh5[03:29:52] <saidinesh5> E/SurfaceFlinger( 4425): ERROR: failed to open framebuffer (Permission denied), aborting12:51
saidinesh5[03:29:52] <saidinesh5> F/libc    ( 4425): Fatal signal 6 (SIGABRT), code -6 in tid 4425 (surfaceflinger)12:51
saidinesh5will look into surfaceflinger issue now12:52
neeradsaidinesh5 Okay I have made the whole sfdroid sources thanks to your patches12:52
saidinesh5Ah.. if you're testing out with the whole sfdroid sources, it could also be worth it to try the chroot approach12:52
saidinesh5do give it a  shot12:53
neeradSurfaceflinger I have seen that, restart your device and killall servicemanager zygote main system_server surfaceflinger12:53
neeradHow to make it run it as chroot ?12:53
saidinesh5https://paste.kde.org/pefcimgkn is my init.rc, https://paste.kde.org/pu8r8ub9p#line-29 is my sfdroid-cancro.spec file12:55
saidinesh5https://paste.kde.org/pr0gbab1h is my start-sfdroid.sh12:56
neeradHmmm. So i make a rpm replace my init.rc with stripped init.rc or is it for init.sfdroid.rc?12:57
saidinesh5one missing bit is you need to compile and patch and use  https://github.com/absabs/init this init to start the init.rc12:58
saidinesh5(this is what i am using as sfdroid-init)12:58
saidinesh5well my init.rc is now basically init.sfdroid.rc + creates missing paths in /data12:58
neeradSo it is still not able to run?12:59
neeradServices are crashing?12:59
saidinesh5so so. since zygote was running, all it was doing was running dozens of dex2opts and filling up my RAM12:59
neeradSame here12:59
saidinesh5and i am not sure if services are crashing OR something else12:59
saidinesh5as without surfaceflinger i dont see things12:59
saidinesh5so today figuring out the issue with surfaceflinger13:00
neeradps aux | grep surfaceflinger ? Nothing13:00
saidinesh5nope. surfaceflinger gets started/restarted after shutting down in the chroot13:00
saidinesh5so i do see logs with why it was shutting down13:00
saidinesh5E/SurfaceFlinger( 4425): ERROR: failed to open framebuffer (Permission denied), aborting13:00
neeradPermission denied hmmm?13:01
saidinesh5but so far, with this init it looked promising13:02
neeradsaidinesh5 Is this some kind of mount error?13:06
neeradread-only fs13:06
saidinesh5unlikely. because surfaceflinger was running with the other init, but the init itself was crashing remember?13:06
neeradOhh init crashes , so the issue is with init....Interesting>>>>13:07
saidinesh5the old init crashes probably because of conflicts with property service from the droid-hal-init13:07
saidinesh5(Android init manages the property service too)13:07
saidinesh5that's why i am the neutered init as sfdroid-init13:08
nh1402saidinesh5: maybe a permission problem with chroot gralloc?13:13
saidinesh5nh1402: could be. not sure why it was working in the same chroot with the other init though13:14
nh1402drugs13:16
neeradjeeezzz13:16
pseudodevnh1402: XD13:16
nh1402saidinesh5: maybe it didnt get far enough with the other init to give the error13:21
neeradsaidinesh5 Okay I made CM_BASE based upon sfdroid sources and flashed SFOS .... still sfdroid fails to run (non-chroot)13:46
saidinesh5nh1402: oh with the other init surfaceflinger didnt ever crash13:48
saidinesh5it was running in the background even after init crashed13:49
neeradIn non-chroot mode surfaceflinger runs but it crashes in chroot ?13:49
saidinesh5neerad: if you tried to use the spec for chrooted sfdroid to run sfdroid normally it wont run13:49
saidinesh5no. in chrooted mode, i have 2 different inits. 1 is the CM12.1 init i started patching.. the other is the very basic init i showed you13:50
saidinesh5the CM12.1 init crashes soon, but there surfaceflinger runs after CM12.1 init crashed13:50
saidinesh5in the basic sfdroid-init, init doesnt crash, surfaceflinger just doesnt work because of that permission issue13:50
saidinesh5both of these are running inside the chroot13:51
saidinesh5brb13:51
saidinesh5yeh14:03
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 240 seconds)14:27
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has joined #sfdroid14:35
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid14:49
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has quit IRC (Read error: Connection reset by peer)14:55
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has joined #sfdroid14:55
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has quit IRC (Remote host closed the connection)15:04
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has joined #sfdroid15:08
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has quit IRC (Ping timeout: 255 seconds)15:19
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has joined #sfdroid15:31
neeradOkay I have tested errors it has reduced but there is one error http://paste.ubuntu.com/24040763/15:32
*** nh1402 <nh1402!~nh1402@host81-133-137-69.in-addr.btopenworld.com> has quit IRC (Quit: Leaving)16:27
saidinesh5E/art     ( 6329): dlopen("libjavacore.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "__android_log_close" referenced by "libjavacore.so"...16:34
saidinesh5fix that16:35
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 268 seconds)16:38
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-kvkklcftvlrgoixf> has quit IRC (Quit: Connection closed for inactivity)16:39
saidinesh5I/strace  (16372): openat(AT_FDCWD, "/dev/graphics/fb0", O_RDWR) = -1 EACCES (Permission denied)16:50
saidinesh5I/strace  (16372): openat(AT_FDCWD, "/dev/fb0", O_RDWR)    = -1 EACCES (Permission denied)16:50
saidinesh5hmm....16:50
saidinesh5krnlyng__:  does the surfaceflinger still access these devices after being patched?16:51
saidinesh5also: I/strace  (16372): setpriority(PRIO_PROCESS, 0, -8)        = -1 EACCES (Permission denied)16:52
saidinesh5I/strace  (16340): openat(AT_FDCWD, "/system/lib/hw/sharebuffer.default.so", O_RDONLY) = 1116:53
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-kpeayqmnohxfbmqc> has joined #sfdroid16:56
saidinesh5I think my neutered init is not exactly doing the groups thing properly16:58
saidinesh5crw-rw---- 1 system graphics 29, 0 Feb 21 19:42 /dev/fb016:59
*** piggz_ <piggz_!~piggz@95.151.121.219> has quit IRC (Read error: No route to host)16:59
*** piggz_ <piggz_!~piggz@95.151.121.219> has joined #sfdroid16:59
saidinesh5YUP:     KEYWORD(group,       OPTION,  0, 0)17:02
saidinesh5or not17:04
*** piggz_ <piggz_!~piggz@95.151.121.219> has quit IRC (Quit: Konversation terminated!)17:12
krnlyng__saidinesh5, yes17:13
saidinesh5yeah.. trying to figure out why my init isn't starting surfaceflinger with the right permissions/groups17:14
saidinesh5it seems that property service is *really really* baked into the android init..17:15
saidinesh5so  i presume it needs access to fb0 to get it's dimensions etc.. ?17:16
krnlyng__saidinesh5, yep17:18
krnlyng__saidinesh5, but thats everything it needs, could be patched away17:18
* saidinesh5 is so tempted to just chmod 666 17:18
saidinesh5krnlyng__: btw.  what are the paths to the sockets it listens on?17:19
krnlyng__ /tmp/sfdroid17:19
saidinesh5that is the socket?17:19
saidinesh5or folder?17:19
krnlyng__folder17:19
saidinesh5Ahh .. and socket paths?17:19
krnlyng__saidinesh5, https://github.com/sfdroid/sfdroid_renderer/blob/master/sfdroid_defs.h17:22
saidinesh5Ahh17:22
krnlyng__only the first three are sockets17:22
krnlyng__the ones suffixed with _handle17:23
saidinesh5I see17:23
saidinesh5also is healthd really needed?17:23
saidinesh5it spams logs *a lot*17:23
saidinesh5E/lowmemorykiller(18551): get lmkd control socket failed17:25
saidinesh5I/lowmemorykiller(18551): exiting17:25
saidinesh5okay so that's what lmkd is17:26
saidinesh5surfaceflinger works after i chmod 777ed /dev/fb017:26
saidinesh5netd, vold, surfaceflinger, healthd work now. need to look into lmkd now17:34
krnlyng__saidinesh5, well at the moment it is required because other services wait for it17:35
saidinesh5well surfaceflinger -- not quite. need to fix why the init isnt giving it proper groups17:35
saidinesh5Ahh17:35
krnlyng__saidinesh5, but i wouldn't mind if it was patched away17:35
krnlyng__saidinesh5, did you have graphics output yet?17:35
saidinesh5yeah .. battery stats etc.. don't seem all that important17:35
saidinesh5not sure krnlyng__: W/sharebuffer(20480): connecting to renderer17:36
saidinesh5E/sharebuffer(20480): error connecting to renderer: Permission denied17:36
saidinesh5V/SurfaceFlinger(20480): FPS: 117:36
saidinesh5(that's after i chmod 777 /dev/fb0)17:36
krnlyng__ok17:37
krnlyng__so it doesn't have access to /tmp/sfdroid/*_handle17:37
saidinesh5yep. there is no /tmp/sfdroid path either17:37
saidinesh5do i manually create it?17:37
saidinesh5okay it is created once i start sfdroid renderer17:39
saidinesh5I/art     (22782): Explicit concurrent mark sweep GC freed 828(37KB) AllocSpace objects, 0(0B) LOS objects, 98% free, 48KB/4MB, paused 124us total 4.543ms17:44
saidinesh5W/Environment(22782): EXTERNAL_STORAGE undefined; falling back to default17:44
saidinesh5D/AndroidRuntime(22782): Shutting down VM17:44
saidinesh5after that zygote keeps restarting17:44
saidinesh5surfaceflinger, vold, mediaserver, healthd, netd are now running17:45
saidinesh5nothing rendering yet though17:46
saidinesh5usr/bin/sg graphics /usr/bin/sfdroid17:46
saidinesh5Can't find service: display17:46
saidinesh5Error type 217:46
saidinesh5after that it is just: frames: 017:46
saidinesh5failed(ignored) frames: 017:46
saidinesh5dummy frames: 017:46
saidinesh5failed(ignored) dummy frames: 017:46
saidinesh5AND it is still waiting for batterystats? ! I/ServiceManager(25089): Waiting for service batterystats...17:47
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid18:09
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 260 seconds)18:16
krnlyng__saidinesh5, are the services able to connect to servicemanager?18:22
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid18:29
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 260 seconds)18:35
saidinesh5krnlyng__: I/ServiceManager(  675): service 'media.audio_flinger' died18:38
saidinesh5I/ServiceManager(  675): service 'media.player' died18:38
saidinesh5I/ServiceManager(  675): service 'media.camera' died18:38
saidinesh5i think so18:38
krnlyng__ok18:39
saidinesh5i think this init needs more fixing/debugging. it wasnt giving proper permissions/groups to surfaceflinger18:40
saidinesh5it isnt setting up the lmkd socket either18:40
*** neerad <neerad!~neerad@112.133.229.182> has joined #sfdroid18:47
neeradsaidinesh5 somehow runtime is not functioning properly http://paste.ubuntu.com/24041765/18:54
saidinesh5i told you to fix this bug  neerad18:54
saidinesh5E/art     ( 6898): dlopen("libjavacore.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "__android_log_close" referenced by "libjavacore.so"...18:54
neeradsaidinesh5 Oh yeah those patches.... Thanks man18:55
neeradCould you generate the diff again please brother18:55
saidinesh5afaik i didnt patch liblog in those patches18:56
saidinesh5you should look at system/core/liblog and see if you have that function18:56
krnlyng__TheKit, with the "new" libhybris we should be able to load libsurfaceflinger.so with android_dlopen, no need for fake_libc18:57
krnlyng__TheKit, this way we don't need to patch libhybris18:57
krnlyng__erm glibc18:57
neeradsaidinesh5 I am inside liblog now what ?18:57
krnlyng__TheKit, erm glibc18:57
saidinesh5see if you have that function18:57
saidinesh5__android_log_close18:57
TheKit"new" libhybris?18:57
saidinesh5if you dont, google for it and add that implementation18:57
neeradsaidinesh5 where to find it... I mean which file to search for?18:58
saidinesh5use grep18:58
krnlyng__TheKit, https://github.com/krnlyng/libhybris/commit/f086e6233308dd0c5be9977a735a32aad203897b18:58
saidinesh5grep -rin18:58
krnlyng__TheKit, but this also requires a small patch to bionic libc.so18:58
krnlyng__TheKit, but the benefits of this method are: no need to write hooks, just leave libc.so be18:59
krnlyng__TheKit, only hook pthread functions18:59
TheKitso basically you keep both libc.so and glibc18:59
krnlyng__yep18:59
neeradkrnlyng__ TheKit is it related to my error log?18:59
krnlyng__neerad, no18:59
saidinesh5no18:59
krnlyng__TheKit, but in different "namespaces" and without conflict19:00
TheKitI wonder why the harder way was choosen initially though then if this is possible19:00
saidinesh5krnlyng__: so with this patch you want to merge sfdroid_renderer and surfaceflinger into 1?19:00
krnlyng__TheKit, i think stskeeps started it this way and people just added hook after hook because the functions broke instead of trying to find a better way19:01
krnlyng__TheKit, but i am not sure about the details19:01
neeradneerad@neerad-Satellite-L850 ~/SFDROID/system/core/liblog $ grep -rin __android_log_close19:01
neeradtests/liblog_test.cpp:130:    __android_log_close();19:01
neeradlogd_write_kern.c:218:void __android_log_close()19:01
neeradlogd_write.c:383:void __android_log_close()19:01
neeradneerad@neerad-Satellite-L850 ~/SFDROID/system/core/liblog $19:01
krnlyng__saidinesh5, yep19:01
saidinesh5Ah neat..19:02
TheKitI remember part of functions were hooked due to different float formats19:02
TheKitisn't Android softfp and glibc hardfp?19:02
neeradsaidinesh5 now what ?19:02
krnlyng__TheKit, yes but thats different19:02
krnlyng__TheKit, actually:19:02
krnlyng__TheKit, if we hook the functions we need to arrange softfp / hardfp otherwise we don't.19:03
krnlyng__TheKit, on the top layer (gles egl and so on) we still need to translate from hardfp to softfp19:03
krnlyng__TheKit, but we don't need to translate from softfp to hardfp and back in the bottom layers (libc.so)19:03
TheKitI see19:04
saidinesh5neerad: so make sure your liblog.so has that symbol19:04
krnlyng__TheKit, it works on 3/3 devices so far19:04
TheKitread that as 37319:04
krnlyng__xD19:05
saidinesh5neerad: the liblog.so that the app_process (i think thats the binary throwing this error)19:05
saidinesh5is trying to load19:05
saidinesh5where is it loading from, and wherever it is loading from .. does it provide this function.19:05
krnlyng__TheKit, well there are still hickups. but they are also there with normal libhybris. but with the new method there seem to be way less hickups19:05
neeradsaidinesh5 31: 00001ea5    64 FUNC    GLOBAL DEFAULT    8 __android_log_close19:06
saidinesh5neerad: where did you get that from?19:06
neeradreadelf -a liblog.so19:06
saidinesh5no i mean where is that liblog.so locateed?19:06
saidinesh5and are you sure your app_process is loading that same liblog.s?19:06
krnlyng__TheKit, ghosalmartin had shader compilation issues, was fixed with this, then we made sure all pthread functions (even libc internal ones) go to the hybris hooks => pink screen fixed19:06
neeradsaidinesh5 /home/neerad/SFDROID/out/target/product/wt88047/obj/PACKAGING/target_files_intermediates/cm_wt88047-target_files-2825008319/SYSTEM/lib19:07
krnlyng__TheKit, but i actually wanted to consider possible ideas for sfdroid19:07
krnlyng__TheKit, we could load the whole android into one single process xD19:07
saidinesh5neerad: but are you sure your app_process is loading that particular liblog.so ?19:07
saidinesh5or could it be loading a different version from say /system/lib/19:07
krnlyng__TheKit, but i am not sure how well fork would work then :D19:07
neeradsaidinesh5 how to check?19:08
saidinesh5or say /usr/libexec/droid-hybris/system/lib ?19:08
TheKitfork() function?19:08
saidinesh5neerad: use strace19:08
krnlyng__TheKit, yes19:08
neeradstraace sfdroid19:08
neerad*?19:08
krnlyng__because it would copy the whole process i think19:08
krnlyng__or is it copy on write?19:08
TheKitif you load the whole android into one single process, what would happen if something in Android crashes?19:09
saidinesh5neerad: https://source.android.com/devices/tech/debug/ last point how they loaded valgrind19:10
neeradsaidinesh5 http://paste.ubuntu.com/24041861/19:10
saidinesh5no.19:10
saidinesh5that error is not coming from sfdroid. it is probably coming from zygote or something19:10
saidinesh5so you need to change your init to strace properly19:10
neeradhow to do that? saidinesh519:11
krnlyng__TheKit, everything would go down19:11
krnlyng__TheKit, i was not serious about it19:11
saidinesh5see the link i gave you. it shows you how to edit your init files to valgrind services so they show up in logcat19:11
neeradokay cool19:11
saidinesh5you need to strace similarly19:12
krnlyng__but merging sfdroid_renderer and surfaceflinger seems to be a neat option19:12
saidinesh5then you can grep logcat for liblog and see where it is loaded from19:12
saidinesh5and if it is from elsewhere, which doesnt have that method, then LD_PRELOAD your particular liblog.so19:13
saidinesh5"<krnlyng__> but merging sfdroid_renderer and surfaceflinger seems to be a neat option" . Amen.19:13
neeradsaidinesh5 so i need to patch init.rc or init.sfdroid.rc?19:13
saidinesh5whicever place you are starting zygote19:14
neeradso i need to patch in each of the lines for each service or just for zygote?19:15
neeradsaidinesh5 Do i need to build valgrind?19:17
neeradtell me the exact code to replace to?19:18
saidinesh5neerad: no. just stracce19:19
neeradno need to patch init.sfdroid.rc?19:20
neeradsaidinesh5 ? What to do now ?19:23
saidinesh5you need to ppatch init.sfdroid.rc19:26
saidinesh5brb19:26
saidinesh5working on something19:26
neeradservice sfdroid_zygote /usr/bin/strace /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server20:25
neeradfrom20:25
neeradservice sfdroid_zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server20:26
neeradis this okay saidinesh5?20:26
saidinesh5use logwrapper20:26
neeradlogwrapper also okay...20:27
saidinesh5#service sfdroid_sf /system/bin/logwrapper /system/xbin/strace /system/bin/surfaceflinger20:27
saidinesh5that's how i debugged surfaceflinger20:27
neeradsaidinesh5 somehow that lead to sfdroid not starting at all20:50
saidinesh5hmm?20:50
neeradI added this line to zygote service /system/bin/logwrapper /system/xbin/strace20:51
neeradpermission denied was all over my logcat20:51
saidinesh5permission denied for what?20:52
neeradopening sfdroid20:52
saidinesh5hmm?20:52
saidinesh5not sure what you mean20:52
saidinesh5permission denied for opening what exactly?20:52
neeradHere is the log message ... I fixed the logwrapper issue21:04
neeradhttp://paste.ubuntu.com/24042481/21:04
saidinesh5you mea E/DEBUG   (  768): ptrace attach failed: Operation not permitted ?21:07
saidinesh5that's when a service crashes and android isnt able to generate tombstones because you are already running strace on the process21:08
neeradSo how to stop it21:08
neeradfrom crashing21:08
saidinesh5dunno, but you are getting your liblog.so from : : openat(AT_FDCWD, "/usr/libexec/droid-hybris/lib-dev-alog/liblog.so", O_RDONLY) = 321:08
saidinesh5that's what you needed to find out from strace, and you found out21:08
neeradOkay so what to do next?21:09
saidinesh5LD_PRELOAD your prefered liblog.so to the sfdroid processes21:09
neeradmy preferred ?21:09
saidinesh5well the liblog.so which provides the missing function21:09
neeradlike from the sfdroid one okay21:10
saidinesh5https://github.com/CancroSailors/android_device_xiaomi_cancro/blob/hybris-12.1/rootdir/root/init.qcom.rc#L89721:11
saidinesh5that's how you LD_PRELOAD stuff in init21:11
saidinesh5Although neerad dont bother LD_PRELOAD21:11
neeradWhy ?21:11
saidinesh5simply copy your liblog.so to the SFDroid path21:11
neeradwhich path?21:12
saidinesh5Look at your strace:21:12
saidinesh5I/strace  ( 5609): openat(AT_FDCWD, "/usr/libexec/sfdroid/system/lib/liblog.so", O_RDONLY) = -1 ENOENT (No such file or directory)21:12
saidinesh5I/strace  ( 5609): openat(AT_FDCWD, "/usr/libexec/droid-hybris/lib-dev-alog/liblog.so", O_RDONLY) = 321:12
saidinesh5first it checks the first path and when it didnt find the liblog.so there it is fetching it from droid-hybris21:12
neeradOkay21:12
saidinesh5mal: ^ btw. i thought we patched liblog.so for missing __android_log_close method in mer-hybris/android_system_core ?21:14
saidinesh5hmm apparently not..21:16
saidinesh5even my local patch was wiped out on some previous repo sync21:16
saidinesh5odd...21:17
saidinesh5my CM 12.1 doesnt have that method either21:17
neeradsaidinesh5 For the first time sfdroid is working21:17
saidinesh5neerad: congrats21:17
neeradSuccessful21:17
saidinesh5so things booted up?21:17
neeradEverything I am using camera now21:17
saidinesh5Ah cool21:17
saidinesh5you have the RPMs right?21:18
neeradonly thing is I don't know how to go back21:18
saidinesh5go back to?21:18
neeradYes I do have that21:18
neeradLike back function in android21:18
saidinesh5your phones' back key doesn't work?21:18
neeradnope21:18
neeradCamera is working21:19
saidinesh5there was some setting you can add in some init file to give an onscreen back button in sfdroid21:19
saidinesh5neerad: i dont think you can use your normal camera until a reboot after that21:19
neeradIt's sluggish though too much hanging in process21:19
saidinesh5normal/sailfish camera21:19
saidinesh5you still have the strace right?21:19
saidinesh5that can be a bottleneck21:20
neeradI thing jolla-camera is working as well21:20
saidinesh5Ah they fixed hte issue i see21:20
saidinesh5remove the logwrapper and strace from your init21:20
neeradHow to fix bottleneck too much hanging21:20
neeradOkay21:20
saidinesh5and reboot21:20
neeradcool21:20
saidinesh5Also add liblog.so to the rpm's spec when you recompile21:21
neeradLastly how to do that21:21
saidinesh5you have the sfdroid_core-<devicename>.spec file right?21:21
neeradYep21:22
saidinesh5in there21:22
neeradAdd that okay cool21:22
neeradRebooting , I am happy af21:22
saidinesh5Although i should prbably send a patch to mer-hybris' liblog.so . this was a long overdue patch21:22
neeradSure21:23
neeradThanks a lot man21:23
saidinesh5heh you're welcome21:23
neeradYou would be tagged in XDA too after building a new .rpm file21:23
saidinesh5lol sure21:23
saidinesh5i hope the guys on my forum dont see that and demand an instant sfdroid for cancro21:24
neeradThey might Xiaomi brothers21:24
saidinesh5Also actually push your sfdroid_core-<devicename> to your personal OBS repo21:25
saidinesh5you didnt have to make any kernel changes for getting sfdroid working right?21:25
dr_gogeta86i got the ril probles21:25
dr_gogeta86*problems21:25
saidinesh5dr_gogeta86: ril inside sfdroid?21:25
dr_gogeta86broke the sailfish ril21:26
neeradHere's what I did , I made CM based on sfdroid repos that solved the jolla-camera issue as well21:26
dr_gogeta86especially thr audio part21:26
neeradthen I made sfdroid.rpm and sfdroid_renderer.rpm21:26
neeradand added liblog.so21:26
neeradthat's it21:26
dr_gogeta86i don't have too much problems on camera21:26
dr_gogeta86but ril is dangerous21:26
neeradsaidinesh5 It's still sluggish though21:27
saidinesh5see where the bottleneck is .. see the CPU usage, ram usage21:27
neeradInputflinger is causing some issues as well21:27
saidinesh5could be the issue too21:27
neeradThat is the issue touching multiple times the screen scrolls21:28
malneerad: good to hear sfdroid finally works for you, what were the reasons for the problems?21:28
saidinesh5outdated liblog from mer-hybris mal21:29
neeradThe main thing I changed is I changed my CM_BASE21:29
malsaidinesh5: hmm21:29
saidinesh5and that21:29
malsaidinesh5: what was outdated in that?21:29
neeradno In old CM_BASE nothing was working so I made CM_BASE out of sfdroid_repos21:29
saidinesh5 __android_log_close this method was missing mal21:29
neeradand adding liblog.so worked21:30
malsaidinesh5: ok, is that introduced in some newer 12.1-YOG7D?21:30
saidinesh5I think so. i remember manuallly adding that for my camera a while ago..21:30
saidinesh5although my 12.1-YOG7D sources doesn't point to anything like that21:31
neeradhttp://paste.ubuntu.com/24042591/ Full log after sfdroid working21:31
malsaidinesh5: in which repo?21:31
saidinesh5system/core/liblog21:32
saidinesh5looking for the repo21:32
neeradmal Somehow jolla-camera issue is solved too21:32
neeradwith the new CM_BASE21:32
neeradsaidinesh5 mal surfaceflinger has issues FPS is varying from 2 to 30 even when I am scrolling Android screen.21:33
saidinesh5mal: https://github.com/CyanogenMod/android_system_core/commit/10b64f5469dd158491f4e79d630ca7062287d19221:34
neeradsfdroid_multiwindow also operational21:34
saidinesh5neerad: could be an Android side issue? what happens when you tone down android settings?21:35
saidinesh5in Settings > developer settings21:35
saidinesh5force gpu there and see?21:35
neeradTrying21:35
neeradInputflinger is messing when I scroll up sometimes it scrolls up sometime down21:38
saidinesh5but what about FPS ? after you force GPU rendering21:38
neeradLet me see21:38
saidinesh5Also do take a look at htop or something and see which process is hogging the CPU/RAm21:39
neeradA little bit of improvement21:39
saidinesh5if ram is full , chances are you'd get very crappy performance... and you can try https://source.android.com/devices/tech/config/low-ram.html21:39
malsaidinesh5: ok, so after the new camera issue with latest YOG7D is properly solved I think we need to rebase it21:41
saidinesh5yup21:41
malafter that sfdroid should also be easier again21:41
neeradsaidinesh5 It's not a RAM issue clearly tocuhing is causing some issues....21:42
neeradI have had low RAM issues in Android it's not one of them21:42
saidinesh5okay my chrooted init now finally gets surfaceflinger, vold, healthd, lmkd, mediaserver, netd up and running21:42
saidinesh5zygote seems to be the one missing from the party now21:42
malneerad: maybe some issue with the way sfdroid handles input?21:43
neeradMight be mal21:43
malneerad: I think overall sfdroid is not quite well optimized21:43
saidinesh5mal:  btw. what provides batterystats? I/ServiceManager( 6586): Waiting for service batterystats...21:43
neeradI really don't know I am adding liblog.so to .rpm21:43
malsaidinesh5: not sure, maybe healthd?21:44
neeradNothing it's not an issue I think... was there in mine as well21:44
saidinesh5healthd is up and running21:44
malsaidinesh5: then grep source tree21:44
saidinesh5Ah yup21:44
neeradHow to use back button in Android ?21:45
saidinesh5neerad: you can activate onscreen backbutton in cyanogenmod settings21:45
neeradWifi is not working21:45
saidinesh5for now that. later on see if sfdroid_renderer is picking up the keypress events or mce is eating them up21:45
neeradAlso I didn't add frameworks_av to this21:45
neeradfrom sfdroid21:46
saidinesh5neerad: just wifi ? or networking itself isnt working?21:46
neeradNo nothing .... This is bad21:46
saidinesh5hmm21:46
neeradOkay now SYstemUI crashed21:47
neeradOkay wifi is working ....21:48
neeradSomehow it is not opening Wifi settings21:48
saidinesh5i am not sure how netd was patched there21:48
saidinesh5check commits to frameworks/base to see what patches went there21:49
*** piggz <piggz!~piggz@95.151.121.219> has joined #sfdroid21:51
saidinesh5okay something was off22:04
saidinesh54294967295 27062 2.1  0.7 70668 14424 pts/1    Sl   23:22   0:00 /system/bin/mediaserver22:04
saidinesh54294967295 22784 0.0  0.4 34780  8492 pts/1    Sl   23:13   0:00 /system/bin/surfaceflinger22:04
saidinesh5the userid22:05
neeradwhat's witht the user_id?22:05
saidinesh5yep. that's what i need to look into my patched init22:05
saidinesh5to me that looks like the value of -1 if it was changed to unsigned int22:06
*** krnlyng_ <krnlyng_!~liar@178.114.230.20.wireless.dyn.drei.com> has joined #sfdroid22:29
*** krnlyng__ <krnlyng__!~liar@77.117.9.38.wireless.dyn.drei.com> has quit IRC (Ping timeout: 240 seconds)22:31
*** Mister_Magister <Mister_Magister!~foidbgen@user-94-254-162-233.play-internet.pl> has quit IRC (Quit: Konversation terminated!)22:58
*** neerad <neerad!~neerad@112.133.229.182> has quit IRC (Ping timeout: 240 seconds)23:04
*** pseudodev <pseudodev!uid205973@gateway/web/irccloud.com/x-kpeayqmnohxfbmqc> has quit IRC (Quit: Connection closed for inactivity)23:09

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!