Saturday, 2022-03-12

*** Daaanct12 is now known as Daanct1204:43
*** ggabriel is now known as Guest195010:23
T42<elros34> @Spidey24Z hi, so did you fix booting?10:43
T42<Spidey24Z> No (re @elros34: @Spidey24Z hi, so di...)11:19
T42<Spidey24Z> I figured out that boot loader ignore cmdline but i manged to fix that now phone reboot after 1 minute if set audit=0 selinux=011:21
T42<Spidey24Z> and i see in dmesg this repeated until phone reboot11:23
T42<Spidey24Z> <44>[   37.014548]  [4:systemd-journal:  662] systemd-journald[662]: /dev/kmsg buffer overrun, some messages lost.11:23
T42<Spidey24Z> <6>[   37.014744]  [4:systemd-journal:  662] dual_role_usb otg_default: uevent11:23
T42<Spidey24Z> <6>[   37.014753]  [4:systemd-journal:  662] dual_role_usb otg_default: DUAL_ROLE_NAME=otg_default11:23
T42<Spidey24Z> <6>[   37.014762]  [4:systemd-journal:  662] dual_role_get_local_prop : request prop = 1 , attached_state = 0, power_role_dual = 011:23
T42<Spidey24Z> <6>[   37.014770]  [4:systemd-journal:  662] dual_role_usb otg_default: prop MODE=none11:23
T42<Spidey24Z> <6>[   37.014778]  [4:systemd-journal:  662] dual_role_get_local_prop : request prop = 2 , attached_state = 0, power_role_dual = 011:23
T42<Spidey24Z> <6>[   37.014787]  [4:systemd-journal:  662] dual_role_usb otg_default: prop POWER_ROLE=none11:23
T42<Spidey24Z> <6>[   37.014795]  [4:systemd-journal:  662] dual_role_get_local_prop : request prop = 3 , attached_state = 0, power_role_dual = 011:23
T42<Spidey24Z> <6>[   37.014803]  [4:systemd-journal:  662] dual_role_usb otg_default: prop DATA_ROLE=none11:23
T42<Spidey24Z> <6>[   37.014811]  [4:systemd-journal:  662] dual_role_get_local_prop : request prop = 4 , attached_state = 0, power_role_dual = 011:23
T42<Spidey24Z> <6>[   37.014820]  [4:systemd-journal:  662] dual_role_usb otg_default: prop POWERS_VCONN=n11:23
T42<elros34> enable persistent logging (hadk-faq) then you should see the reason for reboot11:25
T42<elros34> otherwise dmesg -w or journalctl -f may be enough11:26
T42<Spidey24Z> Storage=volatile --> Storage=automatic this one (re @elros34: enable persistent lo...)11:27
T42<Mister_Magister> funny thing, automatic is volatile too if directory doesn't exist (re @Spidey24Z: Storage=volatile -->...)11:28
T42<Mister_Magister> instead of automatic you could set it to persistent11:28
T42<elros34> and restart systemd-journald.service11:29
T42<Spidey24Z> okay (re @Mister_Magister: instead of automatic...)11:30
T42<Spidey24Z> i will try this (re @elros34: and restart systemd-...)11:30
T42<Spidey24Z> but it reboots automatically11:31
T42<elros34> create /init_enter_debug211:32
T42<Spidey24Z> can't accesses to phone using telnet so i removed it (re @elros34: create /init_enter_d...)11:33
T42<Spidey24Z> @elros34 i think i didn't define boot partition in fix up mount points15:44
T42<elros34> I think this is not required. So what is your current state with  /init_enter_debug2 created?15:46
T42<Spidey24Z> Didn't help (re @elros34: I think this is not ...)15:47
T42<elros34> that means nothing to me. What happen, do you have telnet, device reboots, host dmesg shows mer boatloader?15:48
T42<Spidey24Z> cmdline15:49
T42<Spidey24Z> / # cat /proc/cmdline15:49
T42<Spidey24Z> printk.devkmsg=on audit=0 selinux=0 console=ram loglevel=4 sec_debug.level=0 sec_watchdog.sec_pet=5 DynSysLog=1 androidboot.debug_level=0x4f4c androidboot.ap_serial=0x04558FAAEF64 sec_debug.sjl=1 ess_setup=0x46000000 sec_tima_log=0x200000@0x47002000 sec_avc_log=0x40000@0x47204000 sec_tsp_log=0x40000@0x47246000 sec_debug.base=0x100000@0x47288000 auto_summary_log=0x10000@0x4738a000 charging_mode=0x0 s3cfb.bootloaderfb=0x67000000 lcdtype=4390915:49
T42<elros34> do not paste such a huge logs here15:49
T42<Spidey24Z> now it's not reboot still droid-hal-init: Failed to initialize property area (re @elros34: that means nothing t...)15:50
T42<Spidey24Z> sorry (re @elros34: do not paste such a ...)15:50
T42<TheVancedGamer> and replies on IRC side look ugly15:50
T42<TheVancedGamer> so make sure to ping a user with their @ / username15:51
T42<elros34> so show full dmesg, journal logs if you can't figure out it.15:51
T42<Spidey24Z> okay (re @elros34: so show full dmesg, ...)15:51
T42<Spidey24Z>  journalctl --no-page (re @elros34: so show full dmesg, ...)16:08
T42<elros34> dmesg? Also did you copy required *.rc files mentioned in hadk-faq  hybris-15 section?16:14
T42<Spidey24Z> dmesg (re @elros34: dmesg? Also did you ...)16:23
T42<Spidey24Z> yes i copy them (re @elros34: dmesg? Also did you ...)16:24
T42<Spidey24Z> journalctl -xe16:27
T42<elros34> so files are there: cat usr/libexec/droid-hybris/system/etc/init/vndservicemanager.rc?16:27
T42<elros34> how about content in /system/, does it looks sane?16:28
T42<Spidey24Z> / # cat usr/libexec/droid-hybris/system/etc/init/vndservicemanager.rc16:32
T42<Spidey24Z> service vndservicemanager /vendor/bin/vndservicemanager /dev/vndbinder16:32
T42<Spidey24Z>     setenv LD_PRELOAD /usr/libexec/droid-hybris/system/lib64/libselinux_stubs.so16:32
T42<Spidey24Z>     class core16:32
T42<Spidey24Z>     user system16:32
T42<Spidey24Z>     group system readproc16:32
T42<Spidey24Z>     writepid /dev/cpuset/system-background/tasks16:32
T42<Spidey24Z>     shutdown critical (re @elros34: so files are there: ...)16:32
T42<Spidey24Z> / # ls  /system/16:33
T42<Spidey24Z> CSCVersion.txt            cameradata                fake-libs64               lkm_sec_info              tima_measurement_info16:33
T42<Spidey24Z> HWRDB                     compatibility_matrix.xml  fonts                     lost+found                tts16:33
T42<Spidey24Z> SW_Configuration.xml      container                 framework                 manifest.xml              usr16:33
T42<Spidey24Z> T9DB                      csc                       info.extra                media                     vendor16:33
T42<Spidey24Z> app                       csc_contents              kern_sec_info             priv-app                  voicebargeindata16:33
T42<Spidey24Z> bin                       etc                       lib                       recovery-from-boot.bak    wakeupdata16:33
T42<Spidey24Z> build.prop                fake-libs                 lib64                     saiv                      xbin (re @elros34: how about content in...)16:33
T42<elros34> systemctl mask droid-hal-init.service and user@100000.service, reboot then run strace -f /sbin/droid-hal-init16:36
T42<Spidey24Z> / # ls /vendor/bin16:37
T42<Spidey24Z> ls: /vendor/bin: No such file or directory (re @Spidey24Z: / # cat usr/libexec/...)16:37
T42<Spidey24Z> okay (re @elros34: systemctl mask droid...)16:37
T42<elros34> and do even think about posting this log directly like your recently. Do you have /vendor symlink on device?16:38
T42<Spidey24Z> this should be /system/vendor or what (re @Spidey24Z: / # ls /vendor/bin16:38
T42<Spidey24Z> l...)16:38
T42<TheVancedGamer> what did I say about replies16:38
T42<TheVancedGamer> IRC side looks ugly now16:38
T42<Spidey24Z> sorry (re @elros34: and do even think ab...)16:39
T42<TheVancedGamer> I give up16:39
T42<Spidey24Z> @TheVancedGamer bro we are on tele what i need to do make irc not ugly 🙄16:40
T42<TheVancedGamer> don't reply with telegram16:40
T42<TheVancedGamer> instead ping the user with their username like you just did16:41
T42<Spidey24Z> i don't have irc (re @TheVancedGamer: don't reply with tel...)16:41
T42<TheVancedGamer> that doesn't matter16:41
T42<TheVancedGamer> don't press the "Reply" button16:41
T42<Spidey24Z> i reply on a message @TheVancedGamer (re @TheVancedGamer: instead ping the use...)16:41
T42<TheVancedGamer> @elros34 continue please16:42
ThaodanDon't dump your logs into the chat16:42
Thaodanuse a paste service or attach the log file16:42
T42<TheVancedGamer> maybe I should disable more than 15 lines on Telegram side16:42
T42<TheVancedGamer> that would certainly help16:43
T42<Spidey24Z> @elros34 phone did not have vendor partition (re @elros34: and do even think ab...)16:44
T42<Spidey24Z> sorry for that (re @SailfishFreenodeIRCBridgeBot: <Thaodan>Don't dump ...)16:45
ThaodanAll phones have a vendor partition unless really old16:45
T42<elros34> @Spidey24Z create symlink then, ln -s /system/vendor /vendor16:46
T42<TheVancedGamer> can IRC see media sent from TG side?16:46
T42<Spidey24Z> @elros34  it is /system/vendor not /vendor16:47
Thaodan(I run the bridge.)16:47
T42<Spidey24Z> @elros34 i will did this16:47
T42<TheVancedGamer> ah16:47
T42<TheVancedGamer> Thaodan: is it possible to add a delay?16:48
T42<TheVancedGamer> before messages here get mirrored to IRC?16:48
T42<Spidey24Z> @elros34 strace -f /sbin/droid-hal-init
T42<elros34> do you have *property_contexts files in / and /system/etc/selinux/?17:20
T42<Spidey24Z> @elros34
T42<elros34> what about $ANDROID_ROOT/out?17:27
T42<Spidey24Z> ls ?17:30
T42<elros34> do you have these files there?17:30
T42<Spidey24Z> In root folder17:31
T42<elros34> so what you have in rpm -ql droid-hal-$DEVICE-detritus package? Do you have it installed and what you have added to straggler_files?17:34
T42<Spidey24Z> / # rpm -ql droid-hal-a5y17lte-detritus17:37
T42<Spidey24Z> package droid-hal-a5y17lte-detritus is not installed17:37
T42<Spidey24Z> in phone17:38
T42<elros34> so did not add anything to straggler_files?17:40
T42<Spidey24Z> package droid-hal-a5y17lte-detritus is not installed on pc17:41
T42<Spidey24Z> no i did not (re @elros34: so did not add anyth...)17:41
T42<Spidey24Z> how can i did that?17:42
T42<elros34> like explained in hadk but building droid-hal should fail for you. compare root directory in out/ with / on device17:43
T42<Spidey24Z> all files in out root are in / too17:48
T42<Spidey24Z> but there's no files unpackaged (re @elros34: like explained in ha...)17:49
T42<elros34> how? You confirmed that *property_contexts are in out root/ but not in / on devices. Now you say they are same17:50
T42<Spidey24Z> no i am asked you if they found in root or where i forget to but ? 🤦🏻‍♂️17:52
T42<elros34> How do I know if you ask or confirm if you do not use question mark? run make modules | grep contexts17:54
T42<Spidey24Z> Very sorry17:55
T42<elros34> I wonder if "touch /plat_property_contexts" would be enough for you17:57
T42<Spidey24Z> just emty17:59
T42<Spidey24Z> make modules | grep contexts this output including all .mk files18:00
T42<elros34> I do not get. Do you have property_context in "make modules" output?18:15
T42<Spidey24Z> No18:22
T42<Spidey24Z> Had sepolicy_test18:24
T42<Spidey24Z> plat_seapp_neverallows18:25
T42<elros34> no idea why.  make hybris-hal finished without errors? Maybe something else builds it. Have you tried creating empty /plat_property_contexts to see if that will make droid-hal-init happy?18:26
T42<Spidey24Z> Yes I touch it but still unhappy😔 (re @elros34: no idea why.  make h...)18:27
T42<elros34> does it fails at the same place when you strace it?18:27
T42<Spidey24Z> I run strace again looking nonplat_property18:28
T42<Spidey24Z> I will grab strace output (re @elros34: does it fails at the...)18:28
T42<Spidey24Z> @elros34
T42<elros34> so have you tried same for /nonplat_property_contexts and reboot?18:55
T42<Spidey24Z> I create this too (re @elros34: so have you tried sa...)19:06
T42<Spidey24Z> Now look :
T42<Spidey24Z> strace droid hal now
T42<elros34> did you reboot and mask services like before stracing?19:19
T42<Spidey24Z> Yes19:20
T42<Spidey24Z> strace without masking
T42<Spidey24Z> shows Access denied finding property and Access denied adding property19:25
T42<elros34> what do you mean without masking? So droid-hal-init starts now itself and then you start it again?19:26
T42<elros34> if it starts then get logs now19:26
T42<Spidey24Z> no i do reboot (re @elros34: what do you mean wit...)19:26
T42<Spidey24Z> not started (re @elros34: if it starts then ge...)19:27
T42<elros34> clearly from latest strace it start and loads, so unmask services and get logs now19:28
T42<Spidey24Z> Wait a minute (re @elros34: clearly from latest ...)19:29
T42<Spidey24Z> dmesg
T42<Spidey24Z> journalctl too long and have spam messages i cleaning it19:46
T42<Spidey24Z> journalctl too long and have spam messages i'm cleaning it (edited)19:47
T42<Spidey24Z> journalctl
T42<Spidey24Z> Do i need custom Android rom installed instead of stock one ?20:07
T42<elros34> Do you have stock android installed? You need same lineage/cm version you used for porting.20:10
T42<Spidey24Z> Same android version also20:11
T42<Spidey24Z> Same android version also? (edited)20:12
T42<elros34> You ported sailfish using hybris-15 sources right? So you need to have cm/lineage-15 image installed on device according to hadk20:16
T42<Spidey24Z> Do you think stock android 8 cause this?20:22
T42<elros34> cause what? It's not optional you must flash lineage-15 and then sailfish. This is how it works, you can't use stock android20:23
T42<Spidey24Z> I'm downloading los 15 now (re @elros34: cause what? It's not...)20:24
T42<Spidey24Z> Install los 15.120:56
T42<Spidey24Z> Nothing changed20:56
T42<elros34> maybe context files is not  the best way to fix the issue. Either figure out why these files are not build or build them manually or copy from lineage's boot.img initramfs21:39

Generated by 2.17.1 by Marius Gedminas - find it at!