![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
"Wait for 30 seconds before proceeding"
You've probably not noticed this and if you did it probably didn't make a dent in your life.
If your bootloader is unlocked then every time your device reboots (including powering up from fully off) it will wait for 30 seconds. The idea is to display a warning that your device is unlocked. Unfortunately (or fortunately) there is no warning implemented so it's rather pointless. I've wasted years of time waiting for this 30 seconds as I've switched between edl, fastboot, recovery, system. So, I wrote a patch for abl (the Android bootloader) that skips this delay. It's only a teensy mod but of course it requires unpacking/packing/rehashing. I have it running on my Poke3 just fine. It's a dandy improvement (for me). If you'd like the same for your device, just pull and give me a copy of your abl. Last edited by Renate; 01-31-2023 at 10:20 AM. |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() Posts: 87
Karma: 10
Join Date: Dec 2018
Device: Onyx Leaf 2 (White)
|
That's awesome! So it actually cuts 30 seconds of the boottime?
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
Yes, it kills the dead time.
Still, if you're a normal user and never reboot (just sleep) you'll hardly notice the difference. Edit: I've got creating the patch down to 100% automatic procedure now. Last edited by Renate; 02-01-2023 at 05:53 PM. |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
But does this mean that if you got stuck in a “bootloop” like in a neighboring thread with removed system apps, you have no chance to talk via adb during boot? So edl will be the only option left
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
The earliest you ever get ADB is after Linux has started and the init daemon has started ADB.
This is about 10 seconds before you see your home screen. With some systems ADB has to wait until the Android subsystem sets the USB configuration. Here's a short rundown of booting: Code:
Run Primary BootLoader (PBL) from ROM Run Secondary BootLoader (xbl) from flash Run Android Bootloader (abl) from flash If want to do fastboot -> Do fastboot (inside abl) If want to do recovery -> Load recovery Load boot image, but don't start it If device is unlocked Print "Wait for 30 seconds before proceeding" Sleep 30 seconds (doing absolutely nothing) Start boot image Start init daemon Start adbd Start zygote (Android subsystem) Start home application (Launcher) |
![]() |
![]() |
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
Ok! I might give it a try
![]() Where do I find the abl? |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
Do you have an EDL loader for this?
I just want to make sure that you have EDL available in worst case. You can: Code:
C:\>adb shell # dd if=/dev/block/by-name/abl of=/sdcard/abl # ^D C:\>adb pull sdcard/abl |
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
Yes, I do have EDL and I can access it without command line. That was my step 1 even before achieving root.
Thanks! I’ll PM you when I find it this evening. |
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
Thank you Renate!
Customized loader by you works OK! However, I haven’t seen the 30 sec improvement, maybe only 10-15 sec. Total boot time after restart is 40 sec. What are your timings before and after the patch? |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
I went back and checked the timings.
There really should be exactly a 30 second difference and there is. I ran this from adb reboot with a chained desktop timer: Code:
adb reboot & wndctrl timer /kspace Onyx logo boot animation starting Android Launcher ready --------- -------------- ---------------- -------------- abl 5 15 25 30 ablmod 5 45 55 60 |
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
What is wndctrl I cannot find it anywhere.
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
No, of course you can't.
It's just one of my little helper apps that can talk to other apps. Like Tasker or something. Timer is my own little app too. But in any case it's not really important. You can do this all with a kitchen clock with a sweep second hand. |
![]() |
![]() |
![]() |
#13 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
OK
![]() I don't know now, I can't see the difference, even the 10-15 sec anymore. It is 39-41 second from I send "reboot" in shell until I see main screen. Thank you anyway! |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,474
Karma: 5555555
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3
|
It could be that you don't have that 30 second delay at all.
Unless it was previously 70 seconds boot time. Is your bootloader unlocked? |
![]() |
![]() |
![]() |
#15 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 2513494
Join Date: Feb 2012
Location: Cape Canaveral
Device: Onyx Boox Kon-Tiki 2
|
Yes, it is unlocked with “oem unlocked something something” key in fastboot.
Maybe I don’t have the delay, because AFAIR it has never been more than 50 seconds to boot |
![]() |
![]() |
![]() |
Tags |
abl unlocked |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting PW4 Stuck on "Please wait a moment while your kindle starts up" | nanobot567 | Amazon Kindle | 0 | 06-14-2021 11:19 PM |
"Loading please wait..." message when accessing the server by IP | miracle152004 | Server | 2 | 05-04-2019 04:43 PM |
Wait, no "Search" option for Kobo iPad/iPhone app?! | andsoitgoes | Kobo Reader | 1 | 04-03-2012 10:07 AM |
Message "Updating DB. Please wait..." repeating forever | kerrware | iRiver Story | 0 | 08-29-2010 06:00 AM |