Tuesday, 2024-11-19

rinigus@b100dian: was looking/reading last night regarding stock kernels and trying to figure out how can we build one. will continue tonight06:31
rinigusdid you managed to reproduce getting to gui?06:32
T42<b100dian> rinigus: I reproduced Sunday evening but I was unable to swipe to unlock, then I tried unrolling the links in /overlays through a script and then I broke something else which I've yet to determine:) Didn't look into it yesterday09:16
rinigus@b100dian: I didn't manage to swipe for unlock either. only could pull menu from top. may have something to do that it didn't ask for pin during setup. which, in turn, maybe is related to keystore being not found messages...09:23
rinigusbut sounds like we are in sync then09:23
rinigus@b100dian: as for overlays and symlinks vs bind mounts - I think we can wait with fixing this solution as it will depend on whether they will fix aosp linking or whether it works already on stock. for now, manual copy should be just fine :)09:26
T42<b100dian> Yes, but for info, this is what I've tried Sunday evening https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/pull/1/files09:29
rinigusnice processing of symlinks! just I would have made a separate folder for copies and overlaid then that folder instead. or, maybe bind mounts in such "shadow" folders09:33
T42<b100dian> Yes, this is just the first try which changes the root fs, not very smart - but yeah, we can make it better when needed09:34
rinigus@b100dian: fyi - there was an attempt to port lineage to pdx223, but seem to have stalled. asked about it, no reply yet. https://github.com/sonybasement/device_sony_pdx223/issues/109:35
rinigushaven't tested it yet and looks like they started with the binary copy of stock kernel (one of the repos in that org).09:36
T42<b100dian> they do have a kernel_sony_sm8450 which has 5.10 kernel (don't know the source) where they merged codelinaro stuff for techpack and drivers/staging/qca-* stuff.. but we have 5.409:51
*** amccarthy is now known as Guest17810:22
*** amccarthy_ is now known as amccarthy10:22
rinigus@b100dian: we have 5.10 on stock :)10:46
T42<b100dian> Oh, ok. Did you alreadt try an AOSP 5.10 boot.img ?10:48
rinigus@b100dian: no, I didn't.11:14
T42<adampigg> should defaultuser be a member of system ? /sys/class/leds/vibrator/* are rw system:system, and currently, my user isnt a memeber of that group17:22
T42<elros34> that should be input group17:25
T42<elros34> long time ago nemo was member of system but that was changed17:26
T42<adampigg> ok, ill fix the group17:27
T42<adampigg> well, permission17:27
mal@adampigg where are the permissions handled in .rc files?17:28
malpatch the needed file17:28
T42<elros34> https://github.com/mer-hybris/hybris-patches/blob/hybris-20.0/system/core/0035-hybris-Allow-input-group-to-use-vibrator.patch17:28
malsome devices have the permissions in device repo if the path is non-standard17:29
mallike here https://github.com/mlehtima/android_device_fairphone_FP5/commit/6fd799b164da3c0d68c0e6ffcead2239da9eba7517:29
T42<adampigg> thx ... i have to do it slightly differently as using hybris base image...17:56
T42<adampigg> s/halium17:56
T42<adampigg> perhaps they should make a change there17:57
T42<adampigg> grrr, same issue as x23 ... editing the .rc file works for _most_ of the permissions ... but some get reset back to system:system ... i think some daemon on android side does it..18:07
malor is udev doing that?18:09
malalthough udev is running earlier18:09
T42<adampigg> looks like i already tried to solve it with udev18:12
T42<adampigg> [root@Phone22 defaultuser]# cat /etc/udev/rules.d/70-vibrator.rules18:12
T42<adampigg> SUBSYSTEM=="leds", KERNEL=="vibrator", ACTION=="add|change", RUN+="/bin/chgrp -R input /sys/class/leds/vibrator/", RUN+="/bin/chmod -R g+w /sys/class/leds/vibrator/"18:12
T42<elros34> this will not wokr, udev will always be executed before some .rc files18:17
T42<adampigg> even with the .rc, i have some correct, but not all18:18
T42<adampigg> https://paste.mozilla.org/WNvGekSX18:18
T42<elros34> maybe there are more .rc in /vendor or something?18:19
T42<elros34> maybe waydroid? unless it has some kind of seperation18:20
T42<adampigg> not waydroid, thats not installed yet...18:21
T42<adampigg> ill try disabling the vendor vibrator service and see what perms i have then18:21
malbtw, I have wip aidl vibrator code18:24
malto use vibrator via android service18:24
T42<adampigg> might be good to use18:25
T42<adampigg> mal: @elros34  i added a kernel audit watch to /sys/class/leds/vibrator/activate and rebooted, got this output https://paste.mozilla.org/n7iwCgys19:10
T42<adampigg> there is a chgrp and a chown executed by busybox ??19:10
T42<elros34> nice idea for tracking19:13
T42<adampigg> yeah, unfortunately it didnt give an immediate answer ... but certainly useful for tracking file acceess19:14
T42<elros34> I assume these a0,a1.. are arguments, maybe they can be more human readable with ausearch -i19:39
T42<adampigg> so far, im assuming it is the last one ...19:45
T42<adampigg> in all cases, ogid=998 which is input19:46
T42<adampigg> the last call is syscall 54 which is fchownat19:47
T42<adampigg> type=PROCTITLE msg=audit(19/11/24 19:39:06.580:70) : proctitle=/system/bin/init second_stage19:48
T42<adampigg> type=PATH msg=audit(19/11/24 19:39:06.580:70) : item=0 name=/sys/class/leds/vibrator/activate inode=37519 dev=00:11 mode=file,664 ouid=root ogid=input rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=019:48
T42<adampigg> type=CWD msg=audit(19/11/24 19:39:06.580:70) : cwd=/19:48
T42<adampigg> type=SYSCALL msg=audit(19/11/24 19:39:06.580:70) : arch=aarch64 syscall=fchownat per=PER_LINUX32 success=yes exit=0 a0=AT_FDCWD a1=0xb400007db822d910 a2=0x3e8 a3=0x3e8 items=1 ppid=1618 pid=1619 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=init exe=/system/bin/init subj==unconfined key=mon-vibr19:48
T42<elros34> so it's some .rc in halium20:00
T42<adampigg> yeah, thats what im searching for20:00
T42<adampigg> ill be damned if i can find it though!20:00
T42<b100dian> rinigus: boot img and vendor_boot + vbmeta from aosp + 5.10 kernel does not seem to work on stock vendor + lineage GSI..22:03
T42<b100dian> back into lineage gsi adb root, here's the kernel config for reference https://pastebin.ubuntu.com/p/ZdCdthbyz9/22:05
T42<b100dian> stock nagara does use this partition though22:07
T42<b100dian> /dev/block/dm-9 on /vendor_dlkm type ext4 (ro,seclabel,relatime,discard)22:07
T42<b100dian> https://pastebin.ubuntu.com/p/v47bGYdJVf/22:08
ecrnwhen are the miniaf/minisf services needed?23:42
malminiaf is only used on older android bases23:45

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