Pre-Install Instructions
Warning: The following instructions will unlock the bootloader and wipe all userdata on the device.
Connect the device to a Wi-Fi network.
Enable Developer Options by pressing the “Build Number” option in the “Settings” app within the “About” menu
- From within the Developer options menu, enable OEM unlock.
Power off the device, and boot it into download mode:
- With the device powered off, hold Volume Down + Volume Up and connect USB cable to PC.
- Now, click the button that the onscren instructions coorelate to “Continue” and/or “Unlock Bootloader”.
Your device will reboot, you may now unplug the USB cable from your device.
The device will demand you format userdata, please follow the onscreen instructions to do so.
Run through Android Setup skipping everything you can, then connect the device to a Wi-Fi network.
Re-enable Development settings by clicking the “Build Number” option 10 times, in the “Settings” app within the “About” menu, and verify that “OEM Unlock” is still enabled in the “Developer options” menu.
Installing LeafOS for the first time
- Flash leaf recovery
Only the lineage/leaf recovery will be supported,
using TWRP or any other custom recovery might result in a possible data loss!!
If using Odin rename the recovery image for your model to recovery.img and add it to a .tar archive using e.g 7zip. If using Heimdall use: heimdall flash --RECOVERY recovery.img --no-reboot
- Boot leaf recovery
IMPORTANT: Do not boot into system again before booting recovery, or system will restore stock recovery!
If using Odin untick auto-reboot before flashing.
Press the Volume Down + Power buttons for 8-10 seconds until the screen turns black & release the buttons immediately when it does, then boot to recovery:
- With the device powered off, hold Volume Up + Power.
IMPORTANT: As of OneUI 3 your device needs to be connected to a PC via USB cable in order to be able to
boot recovery via the button combination.
- Factory reset using Factory reset -> Format data/factory reset
Warning: Unlike TWRP this will also erase internal storage!
- Sideload LeafOS by enabling sideload via Apply Update -> Apply from ADB
- Then run adb sideload <path to your leafos.zip> on your PC