Saturday, 2025-07-19

T42<A_T_R> @edp_17 did you find a solution for missing libdl_android.so rather than manual copy ?01:13
T42<edp_17> @A_T_R , Yes. I didn't copy that. I've amended droid-hal-device.inc like:01:18
T42<edp_17> %if 0%{?droid_target_aarch64:1}01:18
T42<edp_17> rm -f $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/lib64/lib{dl,dl_android,c,m}.so01:18
T42<edp_17> +# edp17 - dont copy libdl_android.so because that is elsewhere01:19
T42<edp_17> cp -a \01:19
T42<edp_17> -        $art_path/$apex_path/lib64/bionic/lib{dl,dl_android,c,m}.so \01:19
T42<edp_17> +        $art_path/$apex_path/lib64/bionic/lib{dl,c,m}.so \01:19
T42<edp_17> $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/lib6401:19
T42<edp_17> +# edp17 copy libdl_android.so from elsewhere01:19
T42<edp_17> +    cp $ANDROID_ROOT/out/soong/.intermediates/bionic/libdl/libdl_android/android_arm64_armv8-a_core_shared/libdl_android.so $ANDROID_ROOT/installroot/usr/libexec/droid-hybris/system/lib64/01:19
T42<edp_17> +    #cp $ANDROID_ROOT/out/soong/.intermediates/bionic/libdl/libdl_android/android_arm64_armv8-a_core_shared/libdl_android.so $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/lib64/01:19
T42<edp_17> %endif01:19
T42<edp_17> Maybe this way is more readable: https://paste.ubuntu.com/p/8Zh8fPCQn9/01:20
entilbeen crazy busy so haven't followed along, but is there any good news for fp6 and/or waydroid for any of the devices?05:01
rinigusin nagara/los21 port, we are unable to record video. while recording, there are complains in logcat regarding absence of package_native. (some other complains too). this is with camera1 api. absence of packages has been also observed with camera2 by @b100dian06:57
riniguslogs at https://github.com/sailfishos-sony-nagara/main/issues/3406:58
rinigusany tips?06:59
rinigusb100dian: made some progress with the video. for that had to write fake_packagenative service and the recording started working.09:28
riniguswill cleanup a bit and then push sources09:28
rinigusexcept now we have the same issue as mal mentioned earlier - video looks to be recorded and frames are there, but playback is not fully functional. I think it was related to c2 codecs if I remember correctly09:29
rinigushmm, when you pull to PC it works just fine. something with playback on device09:33
T42<b100dian> Great idea with the fake package native ! (which is missing because it is native, but in java;)09:36
T42<b100dian> I was wondering, about playback: No more Sailfish3 movie distributed to test?09:37
T42<b100dian> Rinigus: is that a piece of hal you're pushing for all devices on obs, just like, say, hwcrypt?09:39
rinigus@b100dian: and when tested in SFOS browser video plays just fine! so, something is funky with playback09:52
rinigusin gallery09:52
rinigusre hal piece: have to think. I guess similar to fake_crypt and hwcrypt09:52
rinigusalthough, it could be great opportunity to learn gbinder and make it using that09:53
rinigusif it supports writing services09:53
rinigusany good service to take as an example?09:53
rinigusapi at https://android.googlesource.com/platform/frameworks/native/+/master/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl09:55
rinigusand I suspect we don't even need to write most of it for sfos09:55
rinigus... reading examples in libgbinder now09:58
T42<elros34> @edp_17 what issue do you have with cursor? there is dconf key to enable visibility10:22
T42<edp_17> @elros34 : the touchscreen is  broken on my S4. I can control it with mouse and keyboard. However, as cursor is not displayed, don't know where it is positioned.14:48
T42<edp_17> Tried to install your mousetracker but when installed as patch, device always reboots when patchmanager turns it on.14:49
T42<edp_17> When I installed manually into qml file, I only got a white screen. As device is buggy, I couldn't ssh into it as wifi not started.14:51
T42<elros34> did you use correct version for sfos 4.6?14:51
T42<elros34> you need both patch file and library. 32 or 64 bit device?14:51
T42<edp_17> The device is on sfos 4.4 and yes, I've downloaded correct version from your repo.14:52
T42<elros34> ah 4.4 not 4.614:52
T42<edp_17> Yes, I know needed the library and put it into the right place. It's arm32.14:53
T42<elros34> AFAIK on 4.4 sailfish implementation is not enabled by default14:53
T42<edp_17> Yeah, that's my pain.14:53
T42<elros34> 'dconf read /desktop/sailfish/compositor/display_cursor' returns true:14:54
T42<elros34> ?14:54
rinigus@b100dian: video recording works now. I have added fake-package-native to config and its already at obs. all you have to do is zypper ref && zypper up. and then either reboot or start the service15:58
rinigusfake-package-native is implemented using libgbinder. in our case, it was queued regarding android.content.pm.IPackageManagerNative/hasSystemFeature16:00
rinigusif someone has issues due to missing package_native, this service should help. for nagara it was needed for LOS2116:00
rinigusseems that IPackageManagerNative API is not stable. so, its possible that other android versions may need different code->method map.16:01
rinigussources at https://github.com/sailfishos-sony-nagara/fake-package-native16:01
malhmm,.there must be something.wrong in adaptatiom or.somewhere else if it needs that17:18
malrinigus: when does it start to complain that?17:19
malI suspect some fake service might be needed in droidmedia17:20
malsome service which depends on some java side stuff17:21
T42<b100dian> mal: it was implemented in java indeed18:01
T42<b100dian> Rinigus: thanks! I will test as soon as I get to wifi18:02
rinigusmal: it starts complaining when you try to start recording video (camera or advancedcamera)18:12
rinigusbefore you hit record button, UI shows camera output nicely.18:13
rinigusas soon as you hit it, it freezes.18:13
riniguslogs are at https://github.com/sailfishos-sony-nagara/main/issues/3418:13
rinigusmal: in the logs, we have Control message: Could not find 'aidl/package_native' ...18:14
rinigusafter implementing this service, I have recording working just fine18:14
riniguswhat camera drivers do, they call android.content.pm.IPackageManagerNative/hasSystemFeature and have arg android.hardware.touchscreen18:15
rinigusand few other things with that hasSystemFeature: android.hardware.type.automotive, android.hardware.type.television, android.hardware.type.watch18:16
rinigusit gets a reply and then proceeds with recording18:16
rinigusmal: droidmedia could be a good place as well. I used it as an option to write in gbinder18:17
rinigusso, can be compiled at obs directly18:17
malrinigus: there have been cases that the error is about package native bt the real service needing it something else18:22
malrinigus: is that wth camera2?18:23
rinigusmal: no, I had with camera1 or whatever it was before18:23
rinigusb100dian had it in the log below with camera218:24
malI know one issue in camera2 which is similar18:24
rinigushe had "CameraService: No packages for calling UID 100000"18:24
malcan you grab full logcat if you haven't yet18:24
rinigustry to use that service, it may help18:25
malI know how to solve the camera2 issue18:25
malit was possible by disabling one feature with a property value18:26
rinigusI don't have camera2. with camera1? without fake service?18:26
rinigusnote that it works great right now with that service :)18:26
T42<b100dian> mal: that prop was automotibe related:)?19:30
T42<b100dian> *Automotive19:30
malnope19:37
T42<b100dian> the playback problems of the recorded video are very similar to sake and presumably fp519:51
T42<b100dian> Starts playing, stutters a bit  the freezes19:51
T42<b100dian> *then19:57
T42<edp_17> @elros34 : The 'dconf read /desktop/sailfish/compositor/display_cursor' returns blank20:16
T42<elros34> you must set it to true in sfos 4.4 for cursor20:16
T42<edp_17> Thanks, that did the trick. I have cursor! Great. :)20:18
malI need to try to figure out that playback issue again, I know it is caused by not-released buffers20:53
T42<edp_17> mal, any idea of that backports issue?21:00
T42<b100dian> mal: regarding the unreleased buffers: nagara does not need changes for browser playback. It works withe Media Buffers enabled.21:32
malok21:32
malneed to have a better look at the backports makefiles21:32
T42<b100dian> So the gallery and browser playback causes may be different. I will try to see gst logs for gallery though21:33
T42<edp_17> mal: thanks. If you need any input from me about backports, please let me know. (I outputted all variables that .mk file uses and they look sane.)22:22
T42<elros34> so run make twice with these variables and you will have backport module ready  to use22:42
T42<edp_17> Tried already. :)23:10

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