[DEV][BOOT][Dual/Fast] Autoboot Custom Bootloader [D801/2/3|LS/VS980|F320x][4/2/2014]

Status
Not open for further replies.
Search This thread

savoca

Inactive Recognized Developer
Oct 28, 2011
1,715
5,298
Pasadena
downloads.codefi.re
Google Pixel 7
Autoboot
Custom bootloader for all G2 variants
I hold absolutely no responsibility if your device becomes inoperable, outoperable, or if by-name/aboot becomes self aware

AOSP...
AOSP compatibility with Autoboot is hit or miss! All of the variants differ, and some combinations simply won't work. If you find a kernel/rom/variant combination that works, share it!

Stock ROMs have been tested thoroughly, there shouldn't be any issues using Autoboot with stockroms unless otherwise stated.

What is it..?
Autoboot is a custom bootloader that comes with many features not allowed by the stock LG bootloader, such as fastboot access and dual booting support. Autoboot does not replace your stock bootloader, it runs alongside at boot, and does not interfere with the bootloader structure that already exists on your phone. It can be installed over any ROM and can be uninstalled any time!

Why should I care..?
LG's bootloader completely removes support for fastboot unless the user corrupts their boot, recovery or laf partitions. AutoBoot allows the user to enter fastboot mode any time they want, just like a Nexus device!

Autoboot supports dual booting, (however it's up to the devs to hammer that one out, I'm maintaining this project along with 3 other kernels!) By default, you can dual boot kernels almost effortlessly!

[dev] Autoboot supports AnyKernel zip installation, by having the ability to load any boot.img that isn't loki'd! Kernel devs will have to utilize the new use of 'spare' and 'grow' partitions and mention specifically in their OP's that Autoboot must be installed to use!

How do I use it..?
From the device being powered off, after you release the power key to boot the device, you can immediately hold one of the 2 keys to enter different modes.

Volume Up: Fastboot, your device will show a persistent "LG" Logo in fastboot mode, it will look like a frozen boot, but you can connect it to a PC and start fastbooting whatever you want!

Volume Down: Dual Boot, this boots the secondary device which can hold a second kernel. By default, this is empty!

Nothing: Simply boots your primary device, which is typically whatever kernel you had installed before you installed Autoboot

Install/Uninstalling
Installing is as easy as flashing a zip, that's it! Add it to the end of your zip-queue after you install a new ROM, or flash it after installing a new kernel to utilize it.

"What if I want to install a new ROM?! D:"
Well I just answered that but incase you didn't understand, flash it as you always would. There won't be any issues. Just make sure to flash Autoboot again if you still want to utilize it!

You should never install Autoboot twice in a row! Use the uninstaller zip before flashing an update to Autoboot.
If you do happen to install Autoboot twice in a row, do NOT use autoboot_uninstall.zip, you should flash a new kernel or use "fastboot flash spare boot.img" to get back in action, fastboot mode will still work if you flash it twice, though you may not be able to boot a ROM until you remedy.

Uninstalling is as easy as flashing a new ROM or kernel and it's out of your life, if you don't want a new ROM or kernel, I've included an autoboot_uninstall.zip you can flash in recovery to restore your previous boot configuration and uninstall Autoboot.

Is it safe..?
Totally! Tested again and again! Make sure you totally understand it before doing something you're unsure about! Autoboot does not effect recovery, download mode, or the original bootloader process in any way, shape or form. Worst case scenario is your device hangs on boot, if that miraculously ever happens, hop back into recovery and use the autoboot_uninstall.zip, it returns you to the exact state you were in before you installed it!

How does it work..?
By default, the LG bootloader can load "patched" or loki'd boot.img's, Autoboot is a build of LK (The same bootloader source LG uses) that hides inside of a loki'd boot.img, once LG's bootloader see's the loki'd bootloader, it passes the signature check and proceeds to boot. Usually at this point, a kernel would boot and your ROM would load up, but in this case, Autoboot starts.

Autoboot acts as our own bootloader, we can manipulate it to do anything we can't do with the stock bootloader. It uses two extra partitions that the G2 has to hold and boot unloki'd boot.img's. These partitions are 'spare' (primary) and 'grow' (secondary).

On install, Autoboot will take the current .img file in the boot partition, unloki it, and move it into the spare partition. Autoboot well then loki and place itself in the boot partition.

On uninstall, the spare partition is pulled, loki'd and placed over the boot partition, wiping autoboot. The spare partition is also wiped. (grow is not incase of using autoboot_uninstall.zip to upgrade versions of Autoboot)

You can flash new, unloki'd or clean boot.img's to the grow and spare partitions using dd, or easier fastboot commands.
Code:
fastboot flash spare boot.img
fastboot flash grow boot.img

Note: The 'grow' partition is roughly 12MB and the 'spare' partition is roughly 16MB, developers making kernels/ROMs may need to use a compression method such as LZMA for a smaller kernel to fit the 'grow' partition.

LS980ZVC...
Currently, the install method for ZVC is to take the entire bootstack, this isn't a very good idea as it breaks support for Download Mode when the aboot is downgraded to ZV7/8 (same thing)

To use ZVC and maintain your custom recovery, you need to flash this ZV7/8 compatible kernel and follow it up with an installation of Autoboot. Remember that if you're on the ZVC bootstack, you won't be able to use download mode unless you downgrade your laf partition to ZVA!

You can use this method to get to ZVC, or you can get a hold of the ZVC system.img and fastboot flash that and the boot.img (from above) to get booting with a custom recovery!

autoprime has an in-depth walkthrough of his steps to keep custom recovery and download mode on ZVC available here.

Autoboot currently does not work AOSP-LS980 ROMs using Furnace Kernel or PAEK, it's a kernel side issue I will be looking into, use dr87's kernel or stock at the moment!

Questions or concerns..?
Hop in freenode at #lg-g2, I'm on all the time and I can help you with anything you need! Therapy starts at $1 a minute.

Credits
Absolutely none of this would be possible without the LK work by detule, if there's anyone you need to donate to, it's him.
@autoprime
@djrbliss
@Shelnutt2
@garwynn
@dr87
@xdabbeb
@Cloudyfa
@JackpotClavin​

Downloads
 
Last edited:

incubus2

Senior Member
Aug 8, 2008
66
29
Wow didn't see this coming. Great work. Devs are really pushing the envelope for us. Thank you!

Sent from my VS980 4G using Tapatalk
 

Alpha_wolf

Senior Member
Dec 13, 2012
723
194
Marina
i flashed it but it doesnt boot the shows the lg logo and the says fastboot started
and thats when i press nothing? im on the d801
 

Raagh

Senior Member
Jun 12, 2013
975
250
Ll this work on the d806?

Enviado desde mi LG-D800 mediante Tapatalk
 

DerSpatz

Senior Member
Jun 12, 2012
100
61
Great work, savoca!

Does that mean we may be finally able to repartition our devices? Over 2,5 GB of my 16 GB are unusable...
 

autoprime

Recognized Dev / Inactive Recognized Contributor
Jun 23, 2010
2,630
11,875
Just commenting about autoboot + LS980 ZVC 4.4.2 KK... this is the ideal setup for someone that's 100% stock on ZVC and wants custom recovery.
Of course all of this isn't needed if you just want root.

I was 100% stock on ZVC... rooted with ioroot25.

1. Downgraded aboot partition through rooted adb shell to use ZV7 aboot.img. this allows you to install twrp and continue to have loki.

2. Install twrp 2.6.3.2.img through rooted adb shell.

3. Downgraded laf partition through rooted adb shell to use ZVA laf.img. downgrading aboot causes download mode not to work properly. downgrading to ZVA laf makes it work again.

4. Powered off then booted into twrp through the "hard reset" screen using the vol up + power button combo.

5. Flashed the twrp 2.7 zip while in recovery. Then reboot > recovery to boot into twrp 2.7.

6. Flashed the savoca's kk ls980 kernel zip.

7. Flashed the ls980 autoboot zip.

Rebooted and everything is working on stock ZVC. I have working download mode, fastboot, twrp and the rom boots(takes a lil longer to boot up but no biggie).
Then I went through the App Settings on the phone to uninstall some of the bloat and disable a lot of stuff I don't use. Install Xposed for G2. All set.
 
Last edited:

maydayind

Senior Member
Dec 10, 2011
738
130
Let me see if I get this right
Running 802 international.


To install this and a second Rom i have to.
1 nandroid.
2 install this
3 Power off and restart using power then volume-
4 go in to recover
5 flash the second ROM

That's it?


But how do I enter recovery of I flash this
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 126
    Autoboot
    Custom bootloader for all G2 variants
    I hold absolutely no responsibility if your device becomes inoperable, outoperable, or if by-name/aboot becomes self aware

    AOSP...
    AOSP compatibility with Autoboot is hit or miss! All of the variants differ, and some combinations simply won't work. If you find a kernel/rom/variant combination that works, share it!

    Stock ROMs have been tested thoroughly, there shouldn't be any issues using Autoboot with stockroms unless otherwise stated.

    What is it..?
    Autoboot is a custom bootloader that comes with many features not allowed by the stock LG bootloader, such as fastboot access and dual booting support. Autoboot does not replace your stock bootloader, it runs alongside at boot, and does not interfere with the bootloader structure that already exists on your phone. It can be installed over any ROM and can be uninstalled any time!

    Why should I care..?
    LG's bootloader completely removes support for fastboot unless the user corrupts their boot, recovery or laf partitions. AutoBoot allows the user to enter fastboot mode any time they want, just like a Nexus device!

    Autoboot supports dual booting, (however it's up to the devs to hammer that one out, I'm maintaining this project along with 3 other kernels!) By default, you can dual boot kernels almost effortlessly!

    [dev] Autoboot supports AnyKernel zip installation, by having the ability to load any boot.img that isn't loki'd! Kernel devs will have to utilize the new use of 'spare' and 'grow' partitions and mention specifically in their OP's that Autoboot must be installed to use!

    How do I use it..?
    From the device being powered off, after you release the power key to boot the device, you can immediately hold one of the 2 keys to enter different modes.

    Volume Up: Fastboot, your device will show a persistent "LG" Logo in fastboot mode, it will look like a frozen boot, but you can connect it to a PC and start fastbooting whatever you want!

    Volume Down: Dual Boot, this boots the secondary device which can hold a second kernel. By default, this is empty!

    Nothing: Simply boots your primary device, which is typically whatever kernel you had installed before you installed Autoboot

    Install/Uninstalling
    Installing is as easy as flashing a zip, that's it! Add it to the end of your zip-queue after you install a new ROM, or flash it after installing a new kernel to utilize it.

    "What if I want to install a new ROM?! D:"
    Well I just answered that but incase you didn't understand, flash it as you always would. There won't be any issues. Just make sure to flash Autoboot again if you still want to utilize it!

    You should never install Autoboot twice in a row! Use the uninstaller zip before flashing an update to Autoboot.
    If you do happen to install Autoboot twice in a row, do NOT use autoboot_uninstall.zip, you should flash a new kernel or use "fastboot flash spare boot.img" to get back in action, fastboot mode will still work if you flash it twice, though you may not be able to boot a ROM until you remedy.

    Uninstalling is as easy as flashing a new ROM or kernel and it's out of your life, if you don't want a new ROM or kernel, I've included an autoboot_uninstall.zip you can flash in recovery to restore your previous boot configuration and uninstall Autoboot.

    Is it safe..?
    Totally! Tested again and again! Make sure you totally understand it before doing something you're unsure about! Autoboot does not effect recovery, download mode, or the original bootloader process in any way, shape or form. Worst case scenario is your device hangs on boot, if that miraculously ever happens, hop back into recovery and use the autoboot_uninstall.zip, it returns you to the exact state you were in before you installed it!

    How does it work..?
    By default, the LG bootloader can load "patched" or loki'd boot.img's, Autoboot is a build of LK (The same bootloader source LG uses) that hides inside of a loki'd boot.img, once LG's bootloader see's the loki'd bootloader, it passes the signature check and proceeds to boot. Usually at this point, a kernel would boot and your ROM would load up, but in this case, Autoboot starts.

    Autoboot acts as our own bootloader, we can manipulate it to do anything we can't do with the stock bootloader. It uses two extra partitions that the G2 has to hold and boot unloki'd boot.img's. These partitions are 'spare' (primary) and 'grow' (secondary).

    On install, Autoboot will take the current .img file in the boot partition, unloki it, and move it into the spare partition. Autoboot well then loki and place itself in the boot partition.

    On uninstall, the spare partition is pulled, loki'd and placed over the boot partition, wiping autoboot. The spare partition is also wiped. (grow is not incase of using autoboot_uninstall.zip to upgrade versions of Autoboot)

    You can flash new, unloki'd or clean boot.img's to the grow and spare partitions using dd, or easier fastboot commands.
    Code:
    fastboot flash spare boot.img
    fastboot flash grow boot.img

    Note: The 'grow' partition is roughly 12MB and the 'spare' partition is roughly 16MB, developers making kernels/ROMs may need to use a compression method such as LZMA for a smaller kernel to fit the 'grow' partition.

    LS980ZVC...
    Currently, the install method for ZVC is to take the entire bootstack, this isn't a very good idea as it breaks support for Download Mode when the aboot is downgraded to ZV7/8 (same thing)

    To use ZVC and maintain your custom recovery, you need to flash this ZV7/8 compatible kernel and follow it up with an installation of Autoboot. Remember that if you're on the ZVC bootstack, you won't be able to use download mode unless you downgrade your laf partition to ZVA!

    You can use this method to get to ZVC, or you can get a hold of the ZVC system.img and fastboot flash that and the boot.img (from above) to get booting with a custom recovery!

    autoprime has an in-depth walkthrough of his steps to keep custom recovery and download mode on ZVC available here.

    Autoboot currently does not work AOSP-LS980 ROMs using Furnace Kernel or PAEK, it's a kernel side issue I will be looking into, use dr87's kernel or stock at the moment!

    Questions or concerns..?
    Hop in freenode at #lg-g2, I'm on all the time and I can help you with anything you need! Therapy starts at $1 a minute.

    Credits
    Absolutely none of this would be possible without the LK work by detule, if there's anyone you need to donate to, it's him.
    @autoprime
    @djrbliss
    @Shelnutt2
    @garwynn
    @dr87
    @xdabbeb
    @Cloudyfa
    @JackpotClavin​

    Downloads
    8
    Autoboot
    Custom bootloader for all G2 variants
    Great job, buddy :D
    8
    Just commenting about autoboot + LS980 ZVC 4.4.2 KK... this is the ideal setup for someone that's 100% stock on ZVC and wants custom recovery.
    Of course all of this isn't needed if you just want root.

    I was 100% stock on ZVC... rooted with ioroot25.

    1. Downgraded aboot partition through rooted adb shell to use ZV7 aboot.img. this allows you to install twrp and continue to have loki.

    2. Install twrp 2.6.3.2.img through rooted adb shell.

    3. Downgraded laf partition through rooted adb shell to use ZVA laf.img. downgrading aboot causes download mode not to work properly. downgrading to ZVA laf makes it work again.

    4. Powered off then booted into twrp through the "hard reset" screen using the vol up + power button combo.

    5. Flashed the twrp 2.7 zip while in recovery. Then reboot > recovery to boot into twrp 2.7.

    6. Flashed the savoca's kk ls980 kernel zip.

    7. Flashed the ls980 autoboot zip.

    Rebooted and everything is working on stock ZVC. I have working download mode, fastboot, twrp and the rom boots(takes a lil longer to boot up but no biggie).
    Then I went through the App Settings on the phone to uninstall some of the bloat and disable a lot of stuff I don't use. Install Xposed for G2. All set.
    5
    Good project, helped Savoca do some testing on this so I can confirm it works on my D801 :good:
    4
    Crazy project Good Job :good: