Tuesday, 2024-08-20

T42<birdzhang> @elros34 android 16 base, selinux enabled, https://github.com/sailfish-on-ginkgo/droid-config-ginkgo/blob/master/sparse/etc/selinux/config00:40
T42<birdzhang> but there is no selinuxfs, donโ€™t know is this related00:40
T42<birdzhang> and kernel source https://github.com/sailfish-on-ginkgo/kernel_xiaomi_ginkgo00:44
T42<birdzhang> i also tried "CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1" and set "selinux=0" to cmdline, nothing different00:45
T42<Pachof> /Desktop02:26
T42<WunderW_PL> Is the fixup-mountpoints step still actual?10:05
T42<WunderW_PL> For modern devices10:05
T42<NexusWorld99> Maybe10:05
T42<NexusWorld99> But what to do with the super partition is not yet.10:06
T42<adampigg> on volla devices i install the OS to the super partition (re @NexusWorld99: But what to do with ...)10:15
T42<b100dian> There's a commit using dynparts for mounting in FP4 repo IIRC10:16
T42<elros34> @WunderW_PL yes it is. For dynamic partitions you follow hadk-hot and use parse-android-dynparts13:10
T42<elros34> @birdzhang there is something confusing in this repo, you use /etc/selinux in a way its used when you package system partiton but you don't and at the same time you say its hybris-16 which usually should have selinux disabled at boot. What is actual error you see in journal/logcat?13:15
T42<birdzhang> @elros34 journalctl and dmesg when start camera https://gist.github.com/0312birdzhang/27aebe2f1d493a6fad1bea18731d8cc6#file-gistfile1-txt-L39-L4813:20
T42<elros34> so there is nothing in logcat?13:22
T42<elros34> especially at boottime when everything is loaded not when you start cameara app13:22
T42<birdzhang> logcat https://gist.github.com/0312birdzhang/6af6d32bcc1b78a754f457e2826f480213:26
T42<birdzhang> a lot QSEECOMD spam13:26
T42<elros34> so not selinux is disabled at boottime now?13:35
T42<birdzhang> i disabled in kernel13:36
T42<Verevka86> Hi all13:37
T42<Verevka86> Has anyone managed to get fingerprint community to work with the print on the screen?13:37
T42<elros34> but how, what dmesg tels at bootime13:37
T42<birdzhang> CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=013:37
T42<elros34> so it says "SELinux:  Disabled at boot"? If yes then maybe try to remove this incorrect /etc/selinux13:38
T42<elros34> and check whether gdb output changed13:39
T42<elros34> strace not gdb13:39
T42<birdzhang> yeah, it says "[    0.002603] SELinux:  Disabled at boot."13:39
T42<elros34> not sure whether this selinux stubs can cause any issues https://github.com/mer-hybris/droid-config-sony-nile/blob/master/sparse/usr/libexec/droid-hybris/system/etc/init/hwservicemanager.rc#L413:40
T42<birdzhang> so, change SELINUX in /etc/selinux/config to disabled?13:40
T42<elros34> maybe but whole dir structure is incorrect anyway13:41
T42<b100dian> @Verevka86 only on one device. This works on tucana https://github.com/sailfishos-open/sailfish-fpd-community/compare/master...b100dian:sailfish-fpd-community:master13:42
T42<b100dian> If you add a white patch in the fpd test https://github.com/sailfishos-open/sailfish-fpd-community-test/compare/master...b100dian:sailfish-fpd-community-test:master13:43
T42<b100dian> I wasn't able to reverse engineer the one from Asus though. Maybe it works on you 12x since it's a Xiaomi just as is tucana13:44
T42<birdzhang> @elros34 i removed /etc/selinux and reboot the phone, delete .cache/gstreamer-1.0/registry.aarch64.bin, the the strace log is the same13:44
T42<Verevka86> Thank you very much, I will definitely check and let you know ๐Ÿค (re @b100dian: I wasn't able to rev...)13:45
T42<elros34> @birdzhang exactly the same? Error suggest it fails because of missing selinux. Did you remove also all selinux stubs?13:46
T42<birdzhang> not yet, wait some minutes13:46
T42<elros34> I am not sure why it wants that /selinux but maybe its not real error?13:49
T42<birdzhang> stuck on logo now13:49
T42<elros34> probably but idea removing them13:52
T42<birdzhang> maybe selinux is not real error, i enabled coredump files and use gdb, it tells me libstagefright.so Cannot access memory at address 0x2 https://github.com/sailfish-on-ginkgo/droid-config-ginkgo/issues/2#issuecomment-229649030313:57
mal@birdzhang do you start camera from terminal or from app grid14:10
T42<birdzhang> from app grid14:11
maltry from terminal as defaultuser14:11
malto rule out some sandboxing issues14:11
T42<elros34> ah, you use strace -e file, this might confuse, try full strace14:13
T42<birdzhang> mal: https://paste.mozilla.org/4seBcNuH14:14
maland logcat looks the same?14:15
T42<birdzhang> logcat: https://paste.mozilla.org/fasoZm9A14:17
T42<birdzhang> @elros34 strace without -e https://paste.mozilla.org/oWTp0qA214:19
T42<elros34> do you start this logcat as root?14:19
T42<birdzhang> yeah14:19
malthat logcat is missing all relevant parts14:20
malwhat was the selinux setup before these tests?14:21
T42<birdzhang> i reverted libselinux_stubs to make phone works, selinux is disabled14:22
mal@birdzhang based on your config repo you have the symlinks for the selinux files instead of copying the actual files (symlinks only work if you have packaged droid-system which is pretty only the case for official ports)14:22
malthose symlinks probably broke everything because that causes selinux not work properly14:23
T42<birdzhang> okay, let me try14:23
malI suggest you try to properly do the selinux config and see how it works14:23
malhttps://github.com/sailfish-on-ginkgo/droid-config-ginkgo/blob/master/sparse/etc/selinux/minimum/policy/policy.3014:24
malhttps://github.com/sailfish-on-ginkgo/droid-config-ginkgo/blob/master/sparse/etc/selinux/minimum/contexts/files/file_contexts14:24
malreplace those with the actual target files from the device14:24
malso you copy file /vendor/etc/selinux/vendor_file_contexts to /etc/selinux/minimum/contexts/files/file_contexts and similar for the other file14:25
T42<birdzhang> then i need enable selinux from kernel or cmdline right?14:25
malyes14:25
T42<birdzhang> okay14:25
T42<elros34> btw this is hybris-1614:25
malhmm14:25
T42<birdzhang> ๐Ÿ˜‚14:26
T42<elros34> try maybe something requires selinux anyway?14:26
malyeah, based on the error is could be selinux14:26
mal*it14:26
T42<elros34> does  he need any selinux changes in hybris-patches?14:28
malnot that I know of, we'll see14:29
tohaturokHi, I've managed to connect to my Xperia 5 IV in recovery mode via usb14:44
tohaturokAlso I've found and fixed the errors in fixup-mountpoints for my phone. I repacked all rpm packages, built the image and upload it to the device.14:46
tohaturokWhen booting up I saw the SailfishOS logo and after a while it disappeared. The phone didn't reboot, just stayed with a black screen.14:47
tohaturokI enabled logs across reboots, booted the phone and downloaded the log. Here is the link to the log https://paste.opensuse.org/pastes/2b8221e8235814:49
tohaturokI see that there are several errors, but I don't know which ones are important to boot into UI.14:50
tohaturokCan you tell me what to do next?14:50
T42<elros34> so had did you manage to fix usb connection?14:57
tohaturokonly in recovery14:57
tohaturoknot in boot14:57
T42<elros34> not sfos recovery but android one?14:57
tohaturoksfos recovery14:58
T42<elros34> do you have this file https://github.com/SailfishOS-SonyXperia/droid-config-sony-nagara/blob/master/sparse/etc/usb-moded/usb-moded-nagara.conf?15:05
tohaturokI think yes, but need to check15:14
T42<elros34> also I wonder why this log seems to be incomplete, only ~15s15:16
tohaturokelros34: Can it be related to Systemd suppresses journal?15:19
tohaturokI will check existence of usb-moded-nagara.conf later today15:20
T42<elros34> I didnt notice any indication about suppression but maybe. I ask about that usb config because of this line from your log: "usb_moded[1159]: /config/usb_gadget/g1/functions/rndis_bam.rndis: mkdir failed"15:22
tohaturokelros34: The file is here https://postimg.cc/xXTS9QXQ18:08
T42<Yui> Hello, where I can take SailfishOS (not Sailfish X) OS Image for XPERIA X Dual (F5122)?18:20
T42<elros34> @tohaturok you don't need to show me it, just confirm it has same content20:17

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