-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boot stuck when using ih8sn and applying OTA update on LOS19 #24
Comments
I think that the problem might be coming from the script
Update: Actually the upgrade script |
I'm posting the logs here, in case we can find something: |
Hey, i assume you either executed these commands or used the scripts included.
After the files are pushed onto your device before reboot you need to execute Hope this helps. |
That's correct, I've been using exactly the list of 6x top commands. I'll give a try with the command |
This is the message I get when I try to run
I guess I could also delete all the Isn't the goal of the script |
Yes it should say that, and after it |
In my case it's only saying |
Maybe the problem with the add-on script |
Okay then your overlayFS isn't enabled, can't help you further with that then. |
As expected, deleting the I'll make a small PR on the script to be able to pass a |
This comment seems very relevant to the problem :
I think I indeed saw the problem of bootloop after OTA only starting the 2nd OTA update, so that would be spot on. |
The problem seems to be that on my phone, the script 1|beyond0lte:/ # find / -type f -name "60-ih8sn.sh" 2>/dev/null
/system/addon.d/60-ih8sn.sh
1|beyond0lte:/ # find / -type f -name "ih8sn" 2>/dev/null
/system/bin/ih8sn
1|beyond0lte:/ # find / -type f -name "ih8sn.rc" 2>/dev/null
/system/etc/init/ih8sn.rc
1|beyond0lte:/ # find / -type f -name "backuptool.functions" 2>/dev/null
< not found> Is this file supposed to be present at all times ? Or is it supposed to be created dynamically during the OTA update ? |
It's unpacked by the OTA package. |
Ok so here is what I did:
|
adb logcat from broken boot. |
I cannot run Is it what you want ? |
Again, logs from android; not recovery. If you can't get android logcat then there are no useful logs that you can provide. |
Yep, I'm trying to find a way to show the Android logs from within the recovery, but so far that's not working. The only log files I can see from
The good news here is that I simply have to uninstall I'll keep searching if there's a way to get last boot's logs from within the recovery. |
Any chance using what is suggested in this message help for retrieving log ? |
I'm not really sure if I will ever be able to get logs from Android while being unable to boot, but I've did some more testing and deleting or renaming the file I assume the program is made in a way that if it can't find any config file, it exit early and is not doing anything. Could it be that the content of the config file is the problem ? |
Is there anyway we could make |
I was able to extract some Android logs, but I'm not sure it contains what we want. Those logs are extracted when Android has just started, just after I removed the Steps :
The result is visible here : https://pastebin.pl/view/9e036f5c |
Again, you want a logcat from failed boot, not last_kmsg or anything like this. |
I was finally able to get a logcat from the failed boot, and the full log file has been sent to you by email. I've logged some useful messages in the console, so have a better idea of the timing of the things : > cat logcat_full.log | grep msg_from_thomas
06-26 02:30:23.638675 10776 10776 I msg_from_thomas: Enabled the file ih8sn.conf
06-26 02:30:48.761017 10845 10845 I msg_from_thomas: About to reboot
06-26 02:34:16.087843 9014 9014 I msg_from_thomas: Phone booted back on Android So basically the interesting stuff is between lines timings If I search for cat logcat_full.log | grep "06-26 02:30:48.761017" -A100000 | grep "06-26 02:34:16.087843" -B100000 | grep -i -E "ih8sn" -C2
06-26 02:33:39.987168 0 0 I [7: init: 1] init: Parsing file /system/etc/init/hwservicemanager.rc...
06-26 02:33:39.987490 0 0 I [7: init: 1] init: Parsing file /system/etc/init/idmap2d.rc...
06-26 02:33:39.987692 0 0 I [7: init: 1] init: Parsing file /system/etc/init/ih8sn.rc...
06-26 02:33:39.987871 0 0 I [7: init: 1] init: Parsing file /system/etc/init/incidentd.rc...
06-26 02:33:39.988077 0 0 I [7: init: 1] init: Parsing file /system/etc/init/init-debug.rc...
--
06-26 02:33:40.720524 0 0 I [1: init: 1] init: processing action (init) from (/system/etc/init/hw/init.usb.rc:27)
06-26 02:33:40.720706 0 0 I [6: init: 1] init: processing action (init) from (/system/etc/init/audioserver.rc:62)
06-26 02:33:40.721121 0 0 I [6: init: 1] init: processing action (init) from (/system/etc/init/ih8sn.rc:1)
06-26 02:33:40.721184 0 0 I [6: init: 1] init: starting service 'exec 3 (/system/bin/ih8sn init)'...
06-26 02:33:40.722300 0 0 I [6: init: 1] init: SVC_EXEC service 'exec 3 (/system/bin/ih8sn init)' pid 5287 (uid 0 gid 0+0 context u:r:su:s0) started; waiting...
06-26 02:33:40.729487 0 0 I [5: logd: 5280] logd.auditd: start
--------- switch to main
--
--------- switch to kernel
06-26 02:33:40.732365 0 0 I [4: servicemanager: 5284] binder: 5284:5284(servicemanager:servicemanager) ioctl 40046210 7fd4ab8154 returned -22
06-26 02:33:40.732991 0 0 I [4: init: 1] init: Service 'exec 3 (/system/bin/ih8sn init)' (pid 5287) exited with status 0 waiting took 0.011000 seconds
06-26 02:33:40.733023 0 0 I [4: init: 1] init: Sending signal 9 to service 'exec 3 (/system/bin/ih8sn init)' (pid 5287) process group...
06-26 02:33:40.733116 0 0 I [4: init: 1] libprocessgroup: Successfully killed process cgroup uid 0 pid 5287 in 0ms
06-26 02:33:40.733350 0 0 I [4: init: 1] init: starting service 'exec 4 (/system/bin/ih8sn init)'...
06-26 02:33:40.734564 0 0 F [6: init: 5291] init: cannot setexeccon('u:r:sysinit:s0') for exec 4 (/system/bin/ih8sn init): Invalid argument
06-26 02:33:40.734688 0 0 I [4: init: 1] init: SVC_EXEC service 'exec 4 (/system/bin/ih8sn init)' pid 5291 (uid 0 gid 0+0 context u:r:sysinit:s0) started; waiting...
06-26 02:33:40.735257 0 0 I [1: init: 1] init: Service 'exec 4 (/system/bin/ih8sn init)' (pid 5291) exited with status 6 waiting took 0.001000 seconds
06-26 02:33:40.735292 0 0 I [1: init: 1] init: Sending signal 9 to service 'exec 4 (/system/bin/ih8sn init)' (pid 5291) process group...
06-26 02:33:40.735419 0 0 I [1: init: 1] libprocessgroup: Successfully killed process cgroup uid 0 pid 5291 in 0ms
06-26 02:33:40.735630 0 0 I [1: init: 1] init: processing action (init) from (/system_ext/etc/init/init.lineage-system_ext.rc:2)
--
06-26 02:33:56.987788 6737 6737 E bootstat: Failed to parse boot time record: /data/misc/bootstat/post_decrypt_time_elapsed
--------- switch to kernel
06-26 02:33:56.994519 0 0 I [7: init: 1] init: processing action (sys.boot_completed=1) from (/system/etc/init/ih8sn.rc:5)
06-26 02:33:56.994581 0 0 I [7: init: 1] init: starting service 'exec 21 (/system/bin/ih8sn boot_completed)'...
06-26 02:33:56.995861 0 0 I [7: init: 1] init: SVC_EXEC service 'exec 21 (/system/bin/ih8sn boot_completed)' pid 6738 (uid 0 gid 0+0 context u:r:su:s0) started; waiting...
--------- switch to main
06-26 02:33:56.989586 6737 6737 W bootstat: LogBootEvents, atomInfo not defined for events:boot_reason,system_boot_reason,build_date,last_boot_time_utc,ro.boottime.init.cold_boot_wait,time_since_last_boot
--
06-26 02:33:56.998232 0 0 I [4: init: 1] init: Sending signal 9 to service 'exec 20 (/system/bin/bootstat --record_boot_complete --record_boot_reason --record_time_since_factory_reset -l)' (pid 6737) process group...
06-26 02:33:56.998332 0 0 I [4: init: 1] libprocessgroup: Successfully killed process cgroup uid 1000 pid 6737 in 0ms
06-26 02:33:56.999691 0 0 I [6: init: 1] init: Service 'exec 21 (/system/bin/ih8sn boot_completed)' (pid 6738) exited with status 0 waiting took 0.004000 seconds
06-26 02:33:56.999706 0 0 I [6: init: 1] init: Sending signal 9 to service 'exec 21 (/system/bin/ih8sn boot_completed)' (pid 6738) process group...
06-26 02:33:56.999781 0 0 I [6: init: 1] libprocessgroup: Successfully killed process cgroup uid 0 pid 6738 in 0ms
06-26 02:33:56.999907 0 0 I [6: init: 1] init: starting service 'exec 22 (/system/bin/ih8sn boot_completed)'...
06-26 02:33:57.000886 0 0 F [4: init: 6739] init: cannot setexeccon('u:r:sysinit:s0') for exec 22 (/system/bin/ih8sn boot_completed): Invalid argument
06-26 02:33:57.001037 0 0 I [6: init: 1] init: SVC_EXEC service 'exec 22 (/system/bin/ih8sn boot_completed)' pid 6739 (uid 0 gid 0+0 context u:r:sysinit:s0) started; waiting...
06-26 02:33:57.002150 0 0 I [0: init: 1] init: Service 'exec 22 (/system/bin/ih8sn boot_completed)' (pid 6739) exited with status 6 waiting took 0.001000 seconds
06-26 02:33:57.002185 0 0 I [0: init: 1] init: Sending signal 9 to service 'exec 22 (/system/bin/ih8sn boot_completed)' (pid 6739) process group...
06-26 02:33:57.002349 0 0 I [0: init: 1] libprocessgroup: Successfully killed process cgroup uid 0 pid 6739 in 0ms
06-26 02:33:57.002561 0 0 I : [4:android.hardwar: 5553] panel_bl_set_brightness bl-0 dim:flash plat_br:16771 br[424]:16800 nit:265(254.33) acl:on(5) Let me know if you find anything useful. Thanks ! |
Oh poo. I seem to have been bitten by this. I'll have to go read back on how I recover from this. :-( |
I explained the recovery method in step 9 in this message above: |
Yeah. I saw that. I don't have a recovery though. I have an A/B device. Just trying to recall/research how to boot the other slot. |
Hrm.
But that takes me to the Lineage Recovery. But I thought that got overwritten a long time ago with an OTA update. IOW, i thought the recovery, initially installed to install LOS was installed into one of the A/B slots and got subsequently overwritten by an OTA update. Anyway, was able to enable ADB in Lineage Recovery and use the process in #24 (comment) to remove the files successfully. That doesn't seem to have resolved my bootloop though. :-( So maybe it's something other than this issue. Crap. I was hoping this would resolve it. |
Shouldn't you remount /mnt/system ro again before rebooting, or unmount it, or
|
Hi,
I'm using LineageOS 19.1 on a Samsung S10e (SM-970F).
I upgraded from LineageOS v18.1 to v19.1 around 2 weeks ago, when the most up-to-date version was
2022-06-09
.I followed the precise instructions on LineageOS website, and everything was working normally.
This week I received the notification that an OTA update was available for the version
2022-06-16
, so I did it.My phone ended up in bootloop, and the only thing I was able to access was Download mode or Recovery.
No matter what I tried, I just couldn't get the system to start normally, so I had to Format Data, and re-flash with the ROM
2022-06-09
.I continued doing some testing, to try to understand what could be the reason of this failure of OTA update, and basically the only moment I was able to OTA updates is if I delete the
ih8sn
files created by thepush.sh
script.When
ih8sn
is installed, my phone is stuck in bootloop after the first OTA update.Without
ih8sn
installed, I was able to do the 2 OTA updates that were pending : from2022-06-09
->2022-06-16
->2022-06-23
.I'm happy to try to do more testing, so feel free to let me know if you want me to provide some logs or things like that.
Thanks !
The text was updated successfully, but these errors were encountered: