[TUTORIAL | CWM]How to install a Custom Recovery - Nexus 4 General

DISCLAIMER
Code:
[COLOR="Red"]/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, broken hearts,
* thermonuclear war, you getting fired because the alarm app failed, or
* unfulfilled sexual partners. Please do some research if you have any
* concerns about features included in this ROM before flashing it! YOU are
* choosing to make these modifications, and if you point the finger at me
* for messing up your device, I will point that finger back at you and laugh. */[/COLOR]
WHAT IS A REOCVERY
Every phone comes with a Stock Recovery. If you make a factory reset, or something very internal is getting updated or changed, the Recovery does its Job. If you root your phone, you will need to have a Recovery, which with you can flash zips (ROMs, GApps, whatever), take a backup, restore, wipe the cache and so on.​
INFO ABOUT THIS STUFF
There are many Recoveris in the Android Development section, and because in their DEV-Threads there are so many people asking how to flash it, I decided to make a flash instruction.​
LET'S GET IT STARTED
METHOD 1: Flash a Recovery via PC:
0. Download a working Recovery image on your PC, for example the official ClockworkMod Touch Recovery v6.0.2.3!
1. Make sure you have ADB and Fastboot drivers installed on your PC! If you can't understand it, google for a tutorial in your language!
2. After you installed ADB and Fastboot drivers on your PC, you have to connect your phone in fastboot mode (Bootloader > Fastboot) via USB Cable to your PC. Then it should say "Fastboot USB" on your phone's screen. Open a command prompt on Windows - for that, click on the Windows button on your keyboard and in the search field type "cmd"! After, type - with phone connected- :
Code:
cd C:\path to recovery\
and enter!
3. Then, type:
Code:
fastboot flash recovery recovery.img
and wait for it to finish. Select "reboot bootloader", then "recovery" and you should be done!
4. Wait a few seconds, until in cmd it says "finished total time x.x.x.x.". Then disconnect your phone, close the cmd window. In Fastboot select "Reboot Bootloader". Wait for it to reboot. Select "Bootloader", wait for HBOOT finishing its thing. Then select "Recovery"!
SKIP THE STEPS 1-4 FROM METHOD 2 and go ahead with STEP 5!​
METHOD 2: Flash a Recovery via Terminal Emulator (your mobile phone):
Code:
You need to be rooted to work with this mehtod!
0.0. Download a working Recovery image on your Nexus 4, for example the official ClockworkMod Touch Recovery v6.0.2.3! Make sure it isn't in a subfolder!
1. Make sure you have the Terminal Emulator installed on your device!
2. Open the Terminal Emulator on your device and type:
Code:
su
and hit enter! In the SuperUser-Pop-Up-Window select "accept/allow"!
3. Again: Make sure that the recovery.img is NOT in a subfolder!
Then, type:
Code:
flash_image recovery /storage/nameofrecovery.img
and hit enter!
4. You might get a stream of almost identical looking code after hitting the enter key, this is normal, as long as you got no error messages in the code and you got a "#" at the end!
Then you can type in this:
Code:
reboot recovery
and hit enter! This will take you to your new recovery's home screen.
5. If you want to set up ROM Manager to work with the just flashed Recovery (recommended, 'cause otherwise ROM Manager won't work properly!):Press the Menu-Softkey-Button > Manual Flash Installation > "OK" > confirm Device Type (should say "Google Nexus 4" > "ClockworkMod 3.x+" > "OK", and you're done! ​
METHOD 3: Flash a ClockworkMod Recovery via ROM Manager:
1. Make sure you have the ROM Manager installed on your Nexus 4.
2. Open ROM Manager and tap on "Install ClockworkMod Recovery".
3. Follow the on-screen instructions!​
HOW TO BOOT INTO A RECOVERY
Power your phone off. Hold down volume down+up and the power button at the same time. Navigate with the Volume Up/Down Button, until in the green arrow it says "Recovery", then enter with the Power Button.​
NOW YOU CAN...
...feel free to ask me if you did not understand anything
...flash a Custom ROM on your phone via "install zip from sdcard" > "choose zip from sdcard"
...do a factory reset/full wipe via "factory reset/full wipe"
...only wipe the cache via "wipe cache partition"
...wipe Battery Stats and the dalvik cache via "advanced" > "wipe dalvik cache"/"wipe battery stats"​

Closed per OP request

Related

[Guide] How to unlock Boot loader and flash custom ROMs.

Here's a guide to unlocking the bootloader, flash a recovery image, and install a custom ROM on your Incredible s.
If you're not experienced with this sort of thing I advise you get help or not do it at all. I'm not responsible for anything that happens to your phone, but it is highly rare that anything will go wrong
1. Go to www.htcdev.com and log in/create an account. When logged in, click on 'Unlock Bootloader'
Now simply follow the on screen instructions provided by HTC. Some of the process requires getting some files from the Android SDK and you will needs the HTC drivers which come with HTC Sync, but this will all be explained through the process.
Now as I said, you need some files from the SDK which you can get here:
http://dl.dropbox.com/u/4263022/HTC Dev Tools.zip
I recommend putting these somewhere easy like the root of your C: drive in a folder called 'Android' like I will for the tutori. If you're still sure, select yes, and the process will complete.
2) you should see a little message pop up now asking if you'd like to go ahead and unlock the boot loader. Select yes.
3. Once done, your phone's bootloader will be unlocked, this will enable you to flash a recovery image.
4. Go to
http://download2.clockworkmod.com/re...0.2.0-vivo.img
and download the recovery image for the Incredible S. Put it in the "android" folder with the other files needed for the unlock process. This file is the ClockWorkMod recovery for the incredible s.
5. Shut down your phone. Plug it in via USB to your PC which you set up during the HTC unlock process. Hold volume down, and press power and the phone will boot into the bootloader. Wait for it to scan your SD card, then ensure "Fastboot" is highlighted and press power.
6. On your PC, load up a command prompt - open the Start menu, go to Run, and type "cmd".
7. In the command prompt window, type the following, assuming the HTC unlock files are all in C:android.
Code:
cd c:android
Then type:
Code:
fastboot flash recovery <recovery_name.img>
Don't forget the .img on the end, and replace "recovery_name" with the specific name of the recovery image you want to use. For ClockWorkMod linked to in step 4, you'd type:
Code:
fastboot flash recovery cwm-4.0.1.4-vivo.img
After a few seconds, ClockWordMod will have been flashed to your phone.
8. Reboot your phone, there should be an option in the fastboot menu (volume up and down to navigate, power to select). It should boot as per normal. Put it into USB disk mode, and download a ROM that you'd like to use. CyanogenMod is what I'm going to use: http://www.cyanogenmod.com/devices/htc-incredible-s
Download the ROM and place it in the root of your SD card
9. Power off the phone. Hold volume down and press power to boot back into the bootloader. Use volume down to select "Recovery" and press power. ClockWorkMod recovery will load.
10. Using volume up/down and power to select, go down to Backup/Restore. Select it, then click backup. ClockWorkMod will backup your stock ROM in case there are any needs to switch back.
11. After that (takes about 5 minutes), go back to the main menu. Select wipe data/factory reset and confirm. Go back to the main menu, select Advanced > Wipe Dalvik cache
12. Go to the main menu, and select "Install zip from sdcard". Next choose "Select Zip from SD card" and select the ROM you'd like to install. Confirm this action, and ClockWorkMod will install your new ROM. When done, shut down your phone.
13. Ordinarily you'd be done after that, and you could boot into your new ROM. However HBOOT 1.16 does some random stuff and tends to cause problems. I think it interferes with the installation of the boot.img that ordinarily would be flashed with the ROM. Get the ROM that you downloaded earlier (CyanogenMod in this tutorial), and on your computer, unzip the file somewhere. Once done, inside you'll see a file called "boot.img". Put this in the same folder as your other Android tools that you used earlier. Power your phone on, hold volume down, but don't choose "recovery", choose "usb fastboot".
14. Open up your command prompt again (Start > Run > "cmd"), and type (using the "android" folder for this example):
Code:
cd c:android
fastboot flash boot boot.img
This will flash the boot.img to your phone.
Power off the phone, reboot it, and that should be it!
If this helps please leave a thank you.
Good luck
Sent from my HTC Incredible S using xda premium
Bad download URL for CWM...
The URL you have documented for CWM recovery image is giving an "Access denied" response.
Thanks a lot!
It's very useful for me :good:
This is a duplicate thread and copied too.... the actual guide is at http://forum.xda-developers.com/showthread.php?t=1337105
Closed
What he said

How to root Blu Vivo 5R

1. First install Mediatek (MTK) or Vcom drivers on the PC.
2. Now You will need to unlock your bootloader. Backup your important stuff as unlocking the Bootloader WIPES YOUR DATA.
* Start by turning on developer options in Settings -> About device -> Software info -> Build number. (tap 7 times until it's enabled)
* Now navigate to Settings -> Developer options -> OEM unlock. (turn it on)
* Don't ever turn OEM unlock or Developer options off when using a custom ROM or recovery. This could lose to loss of all your data.
* Connect your phone to PC.
* Open the Tools folder
* Hold down the SHIFT key on the keyboard
* While holding SHIFT, right-click on an empty space in the Tools folder
* Select Open command window here
* Type adb devices and press enter. ADB should detect your phone.
* Type adb reboot bootloader and press enter. The phone should now enter Fastboot (black screen with only fastboot written at the top or bottom)
* Type fastboot oem unlock and press enter. (Warning: This step will wipe all your data and factory reset your phone!)
* You should get a prompt on the device asking you to confirm Bootloader unlock, !!! press the volume up button for Yes !!! on your phone.
* You should now get a success message
* You can check the status of your bootloader lock, type fastboot getvar all and press enter.
See this ex. (bootloader) unlocked:yes
* Type fastboot reboot and pres enter
* You should now boot back into your phone.
You will need to complete the Android setup wizard at this point to get access to ADB command again.
3. Install TWRP recovery.
* Copy SuperSU-v2.76.zip to your phone.
* Open the Tools folder
* Hold down the SHIFT key on the keyboard
* While holding SHIFT, right-click on an empty space in the Tools folder
* Select Open command window here
* Type adb reboot bootloader and press enter
* Type fastboot flash recovery recovery.img and press enter
* Once recovery is flashed type fastboot reboot and press enter.
* Hold the Volume up + and don’t release till the phone reboots to TWRP recovery
* In TWRP, if you get a prompt asking you to swipe to allow modification of the System partition, tap KEEP READ ONLY
* If TWRP offers to root the phone, select NO
* In TWRP recovery, tap Install
* Navigate to the location of the SuperSU2.76.zip and select it
* Swipe to confirm flashing of SuperSU.zip and wait till flashing is complete
* Reboot the phone
* Your phone is rooted now.
=
Thanks
problem
installation aborted
reguero02 said:
installation aborted
Click to expand...
Click to collapse
What problem do you have and what did you do?
mirozeman said:
What problem do you have and what did you do?
Click to expand...
Click to collapse
I followed the whole tutorial without errors, but at the time of installing SuperSU by the install from SDCard of aborted
reguero02 said:
I followed the whole tutorial without errors, but at the time of installing SuperSU by the install from SDCard of aborted
Click to expand...
Click to collapse
SuperSU.zip must be in the phone not on SDcard.
mirozeman said:
* Type adb reboot bootloader and press enter
* Type fastboot flash recovery recovery.img and press enter
* Once recovery is flashed type fastboot reboot and press enter.
* Hold the Volume up + Power button and don’t release till the phone reboots to TWRP recovery:angel:
Click to expand...
Click to collapse
Everytime I try to do this it just reboots into the stock recovery and it is quite frustrating because I cannot figure out what is wrong, I flashed the recovery and it says I did as well but it will not boot into TWRP
babycatsucker said:
Everytime I try to do this it just reboots into the stock recovery and it is quite frustrating because I cannot figure out what is wrong, I flashed the recovery and it says I did as well but it will not boot into TWRP
Click to expand...
Click to collapse
Hi,
Your bootloader must be unlocked (You can check the status of your bootloader lock, type fastboot getvar all and press enter.
See this ex. (bootloader) unlocked:yes)
If is it unlocked you can try this.
Turn OEM unlock and Developer options ON.
Flash recovery.
Once recovery is flashed type fastboot reboot and press enter.
Now quickly press and hold ONLY Volume up button and don’t release till the phone reboots to TWRP recovery.
mirozeman said:
Hi,
Your bootloader must be unlocked (You can check the status of your bootloader lock, type fastboot getvar all and press enter.
See this ex. (bootloader) unlocked:yes)
If is it unlocked you can try this.
Turn OEM unlock and Developer options ON.
Flash recovery.
Once recovery is flashed type fastboot reboot and press enter.
Now quickly press and hold ONLY Volume up button and don’t release till the phone reboots to TWRP recovery.
Click to expand...
Click to collapse
My bootloader was unlocked, but your second solution did work, thanks so much I've been so confused for hours :laugh:
Thanks for sharing
It worked!!!!!!!!!!!
I just got it today and it's rooted
VIVO 5R MM 6.0
THANK YOU SO MUCH.
video walk through
its on youtube since i cant post links yet :
How To Root The BLU VIVO 5R i used Jays video
problem
I did everything right.
Oem unlocked
Bootloader opening
But at the time of installing the supersu of the error "Aborted"
reguero02 said:
I did everything right.
Oem unlocked
Bootloader opening
But at the time of installing the supersu of the error "Aborted"
Click to expand...
Click to collapse
* Copy SuperSU.zip file to phone, not to SDcard.
* Boot to recovery.
* In TWRP, if you get a prompt asking you to swipe to allow modification of the System partition, tap KEEP READ ONLY
* If TWRP offers to root the phone, select NO
* In TWRP recovery, tap Install
* Navigate to the location of the SuperSU.zip and select it
* Swipe to confirm flashing of SuperSU.zip and wait till flashing is complete
* Reboot the phone
mirozeman said:
1. First install Mediatek (MTK) or Vcom drivers on the PC.
2. Now You will need to unlock your bootloader. Backup your important stuff as unlocking the Bootloader WIPES YOUR DATA.
* Start by turning on developer options in Settings -> About device -> Software info -> Build number. (tap 7 times until it's enabled)
* Now navigate to Settings -> Developer options -> OEM unlock. (turn it on)
* Don't ever turn OEM unlock or Developer options off when using a custom ROM or recovery. This could lose to loss of all your data.
* Connect your phone to PC.
* Open the Tools folder
* Hold down the SHIFT key on the keyboard
* While holding SHIFT, right-click on an empty space in the Tools folder
* Select Open command window here
* Type adb devices and press enter. ADB should detect your phone.
* Type adb reboot bootloader and press enter. The phone should now enter Fastboot (black screen with only fastboot written at the top or bottom)
* Type fastboot oem unlock and press enter. (Warning: This step will wipe all your data and factory reset your phone!)
* You should get a prompt on the device asking you to confirm Bootloader unlock, !!! press the volume up button for Yes !!! on your phone.
* You should now get a success message
* You can check the status of your bootloader lock, type fastboot getvar all and press enter.
See this ex. (bootloader) unlocked:yes
* Type fastboot reboot and pres enter
* You should now boot back into your phone.
You will need to complete the Android setup wizard at this point to get access to ADB command again.
3. Install TWRP recovery.
* Copy SuperSU-v2.76.zip to your phone.
* Open the Tools folder
* Hold down the SHIFT key on the keyboard
* While holding SHIFT, right-click on an empty space in the Tools folder
* Select Open command window here
* Type adb reboot bootloader and press enter
* Type fastboot flash recovery recovery.img and press enter
* Once recovery is flashed type fastboot reboot and press enter.
* Hold the Volume up + and don’t release till the phone reboots to TWRP recovery
* In TWRP, if you get a prompt asking you to swipe to allow modification of the System partition, tap KEEP READ ONLY
* If TWRP offers to root the phone, select NO
* In TWRP recovery, tap Install
* Navigate to the location of the SuperSU2.76.zip and select it
* Swipe to confirm flashing of SuperSU.zip and wait till flashing is complete
* Reboot the phone
* Your phone is rooted now.
Click to expand...
Click to collapse
Question. I know this had to of been covered somewhere else... but I use linux natively on the computer.... are these steps the same with linux?
Yes, these steps are the same. Just you may need to install "ADB and Fastboot" for Linux OS on your PC.
mirozeman said:
Yes, these steps are the same. Just you may need to install "ADB and Fastboot" for Linux OS on your PC.
Click to expand...
Click to collapse
You are fantastic, fellow friend.
Thank you for that information.
I haven't used ADB on linux in a long time... I actually just got back into messing with android phones..
Making sure there were not any "JUST DON'T DO THIS OR THAT" kind of thing in relation to doing it with my linux install.
Once again, thank you so much.
I hope to become an active member of this community soon enough.
All of you are amazing.
when i connect my phone to computer via usb all i get is vibrate and battery charging and nothing els. i can't access any folders or sd card, help? nothing comes up, phones vibrates ones and that's it.
im sorry im newbi and don't know much about android.
Tig#r said:
when i connect my phone to computer via usb all i get is vibrate and battery charging and nothing els. i can't access any folders or sd card, help? nothing comes up, phones vibrates ones and that's it.
im sorry im newbi and don't know much about android.
Click to expand...
Click to collapse
when u plug your phone into usb on your phone it will say for charging only touch it and it will have more options hope it works and helps u out
nop, nothing comes up no option nothing phones just vibrates and that's it. nothing in the drop down menus nothing, I try resetting my phones, did complete wipe out you know like from factory, still same thing, it's just charging and that it.

Help with rootning 20.1.A.2.19

Is there anyway to root this ?
Of course, just follow these easy steps and then enjoy your rooted android (If you don't understand something from the steps, google it or ask me.)
1. Unlock your Bootloader (you will need ADB and to factory reset after unlocking.)
-Type in Google "unlock sony bootloader" and click on first link.
-Select your device, click continue and enter your email address, you will need your IMEI of your smartphone, then you will receive your unlock key in your email address.
-After you did all of this, carefully read the instructions on Sony website and you will unlock your Bootloader in 1-5 minutes.
2. Now with unlocked Bootloader you can flash Philz custom recovery via ADB (with fastboot installed.)
-Go to http://forum.xda-developers.com/xperia-e1/general/philz-touch-recovery-xperia-e1-t2941831 and download the recovery.
-Now put recovery.img who you downloaded in ADB/platform-tools
-Enable USB Debugging in Developer options.
-Connect your smartphone with USB and run ADB (to make sure you connected ADB, type "adb devices" and you should be able to see your device (if not, you did something wrong.)
-While in ADB, type this command: adb reboot bootloader (this will reboot in fastboot.)
-Now, when in fastboot mode, type this: fastboot flash recovery recovery.img (the flash finish for 1 sec.)
-Type "fastboot reboot" while in fastboot, and your device should be ready with installed custom recovery.
-You can enter Recovery by power off your smartphone, then press: "Power" + "Volume UP".
3. Download Latest SuperSU (this is the root): https://download.chainfire.eu/1017/SuperSU/SR1-SuperSU-v2.79-SR1-20161221223537.zip
-Put the SuperSU.zip in your SD card.
-Boot in Recovery.
-Choose "Install Zip".
-Choose "Choose zip from /sdcard".
-Select your .zip file and tap on him.
-Choose "Yes".
-Choose "Reboot System Now" (Or if it does not show, then go back to main menu and choose it.)
Congratulations, you flashed SuperSU/root successfully.
If you have questions, ask me and I will answer when I can/see them.
Easiest way is have any recovery on your phone, doesn't really matter If you have Caio's kernel + TWRP, or the regular one PhilZ recovery
Download SuperSU from Google Play, when it asks you to update the binary tap on Yes, and when it asks you again how to update the binary, just tap on TWRP
On the next boot you will have root.
Just use kingroot and supersume to get supersu without computer. I use kingroot 4.5 because newest one doesn't work with supersume. good luck!

INSTALLATION GUIDE FOR ANY ROM FOR AGS-XXX (Mediapad T5)

Hello there. Hope this helps!
FIRST OF ALL, this WILL VOID your waranty. Read the steps BEFORE doing anything
ALSO PLEASE READ THE NOTES AT THE BELOW POST.
UNLOCK BOOTLOADER: It's not "easy" at all (You'll have to open your tab).
Go to device info on tab settings.
Press compilation number for several times until "you're a dev" message appears (It'll prolly ask your pattern/password to continue).
Go to dev options and enable OEM unlocking.
Shut down the tab.
Download PotatoNV sofware from here. (Credits to mashed-potatoes)
Download minimal adb and fastboot from here.
Prepare your environment:
Open your tablet
Grab a clip or a cable
Keep your cool
Follow the steps shown here. KEEP THE GENERATED CODE. This will avoid you from opening again the tablet in the case you have to do a downgrade. The way to unlock it again is writting
Code:
"fastboot oem unlock <code>"
at fastboot mode.
Here you have an image of where the testpoint is.
FLASH TWRP INTO THE TAB:
Follow CAREFULLY this steps:
Shut down the tab
Connect the tab to the PC and hold vol- & pwr button.
Now it'll appear a white screen with some text. If it appears "OEM unlock" in green, then everything's fine. IF NOT, follow unlock bootloader steps again. Then try rebooting into fastboot mode again (vol- & pwr).
Download Pretoriano80 .5 version TWRP from here.
Open Minimal ADB and Fastboot and write this:
"fastboot flash recovery_ramdisk path_of_twrp.img"
It should appear everything OK.
Type "fastboot reboot"
Fastly disconnect the tab from PC and hold vol+ & pwr button before Huawei logo appears (if it appears, just do a hard reboot (hold pwr button) and try again (just hold vol+ and pwr, no need to go back to fastboot).
You're now booting into TWRP!
RESOURCE DOWNLOAD
DOWNLOADING UNTESTED ROMS MAY LEAD TO MAJOR ERRORS
All HI6250 ROMs are "compatible" in some way, wouldn't recommend to install unless proven
A list with all tested and proven to work ROMs can be found here
Download any ROM you want from the above link. The list will be increasing with the time
Download the data decrypter from the MEGA folder (you can also find the link in the ROM list)
(OPTIONAL) you can download gapps. You can also download the version worked for me (little outdated) at the same MEGA link and update them later at the PlayStore.
(OPTIONAL) You can download Magisk from the "ZIPS" folder at the Mega link. GENERIC MAGISKS MAY (99%) NOT WORK ON THE GSIS.
PREPARATION STEPS
Boot into TWRP (vol- & pwr buttons while tab is off)
Don't make system Read Only (Just swipe the first window). This will lead you to a multiple choice menu
Head to INSTALL and select the decryter you will have in a SD card.
Swipe to confirm installation
Go again to main menu and head to WIPE and select "Format data option".
Type "yes" on the keyboard and press enter.
Then go to main menu and head to REBOOT>RECOVERY
If a message appears saying you to install TWRP app, just decline it.
Once in TWRP again, head to WIPE>ADVANCED WIPE and select dalvink/art cache, cache, data and system.
MARKING OTHER THAN THIS OPTIONS WILL LEAD TO AN IMPORTANT ERROR.
Return to main menu
THERE ARE 2 WAYS TO INSTALL A ROM:
1 -- VIA FASTBOOT:
Reboot your tab into fastboot mode (vol- & pwr buttons while connected to PC)
Open minimal adb and fastboot and type:
Code:
fastboot flash system <path_of_rom>.img
Now, wait... (Sparse header file error it's normal)
Once it has finished, type: "fastboot reboot" and disconnect from PC
2 -- VIA TWRP:
Once in TWRP head to INSTALL, press the "install image file" button.
Now head to the route where the .img file of the ROM is.
Select it, in the multiple choice menu select "SYSTEM IMAGE" and swipe to confirm installation.
Once finished, reboot to ROM or continue with the steps in order to get Google or Root working.

[GUIDE] Installing Lineage 18.1 (& more) [X00H] [X00I]

In this guide, i'm going to be a bit straightforward on how to install LOS 18.1 on your X00H/X00I device.
For the process, you need:
Your X00H/X00I device;
The following must be unlocked (if you didn't, you can follow the howto over my post);
A rooted phone/tablet with Magisk (any ADB & Fastboot tool is fine, but i suggest using this for simplicity);
In case you have none of the above, even a PC or Laptop with ADB and Fastboot binaries installed will suffice;
If you're on Windows, you can get the installer over GitHub;
If you're on Linux, hop into your package manager and install them via terminal (the following example will be for Debian/Deb-based/Ubuntu/Ubuntu-based distros. If you're on Arch, Fedora, etc.: just search for "fastboot" by using the respective pkg manager's search flag, then install it basing from the name it's repo gives):
Code:
sudo apt install fastboot
An USB cable (should come into the device's box, also must be capable of data transfering);
If you're going to do the process via a rooted device, the Asus device should come in it's packaging with an OTG adapter (be sure to attach the following to the rooted device);
PBRP (Pitch Black Recovery Project) for the device- OG post can be checked here;
Latest version for X00H;
Latest version for X00I;
If your device is an X00I, you can alternatively get TWRP instead;
The Android 9 Beta update (you MUST have the device updated to that version, else you'll risk the device to be bricked- for more info, check the OG post by Seba);
If you want to flash it via stock recovery, you can get the file over ASUS' site on the device;
Download for the X00H;
Download for the X00I;
If you have already flashed a custom recovery on your device, you can get the "custom recovery flashable zip"over SebaUbuntu's site;
.zip file for the X00H;
.zip file for the X00I;
Tiny discalimer on the flashable .zip above: once installed, your device's recovery will be replaced to stock (in other words, you'll lose the custom recovery);
The Lineage OS 18.1 rom and recovery (credits to @miya0405 for finding the site);
ROM and LOS Recovery for the X00H;
ROM and LOS Recovery for the X00I;
If you have all of the things required in the list, let's go!
--------------------------------------------------------------
Installing the Android 9 Beta​Stock Recovery method:​
Download the Android 9 Beta over ASUS' site (any device is fine, even using the phone itself);
Put an SDCard inside the device;
Move the .zip file inside the SDCard;
Turn off the device;
Boot into recovery (do Power + Vol.up combo- if your device's unlocked, tap on the volume button and select "Recovery" by pressing on the power button to confirm);
Select "Update from sd card";
Select the .zip file you've downloaded;
Wait for the update to install;
After updated, go back and select "Power off";
Custom Recovery Method:​
Download the Android 9 Beta flashable .zip over SebaUbuntu's site;
Put an SDCard inside the device;
Move the .zip file inside the SDCard;
Turn off the device;
Boot into recovery;
Select "Install";
Select the "External Memory" storage;
Search for the .zip file inside the SDCard;
Tap on it and install it, unchecking everything;
Swipe to continue and let the .zip file install;
The recovery will print you text on the progress (also gives advice on what to do after install);
Reboot to system;
Power off the device;
----------------------------------------------------------------
Unlocking the device:​Just a tiny reminder if you haven't yet, check my guide about it: then, resume from this point and proceed;
----------------------------------------------------------------
!!A word of advice!!​Don't install PBRP recovery just yet!
If you'll pick PBRP instead of the LOS recovery as the custom recovery of choice, flashing LOS 18.4 with it should make Lineage 100% unbootable and stuck in a bootloop!
Don't reboot back to PBRP if bootloops happen:
neither don't fix the "Cache" partiton with it, else it'll cripple more Lineage and redirect the boot to recovery or fastboot/bootloader!
TL;DR: Don't do my same mistake and flash the recovery partition with the wrong recovery (on the bright side, the device will still be salvageable).
----------------------------------------------------------------
Flashing Lineage Recovery:​Before proceeding, do the following firsthand:
Be sure to have the ADB & Fastboot binaries installed;
Your device rebooted to fastboot/bootloader mode (any method is acceptable);
Must have downloaded the recovery for your specific model (links are on the "required" list);
The device must be connected to the host machine (if you're using a rooted phone, be sure to have the OTG adapter connected to it first);
Rooted Android Device Method:​
Open the "ADB & Fastboot"tools of your choice;
Whether it is a terminal or the app i've suggested earlier: this portion will purely give instructions if you have the app;
If you're going to do the process via terminal, then jump to the "Linux Method" instead;
If it is the first time you open the tool, it should ask for root perms.- allow them;
Tap on the top right corner of the UI;
Tap on "Fastboot";
Tap on "Refresh";
Go to the "Partition" title, next to it you should see a dropdown menu;
Select "recovery";
Tap on the "Flash" button;
A file manager should open: search where the lineage recovery is (typically you can find it in the "Download" folder. The file should be called "recovery.img");
After selected, the app will automatically flash the recovery for you;
Disconnect the device;
Navigate over your Asus device with the volume buttons;
Select "Reboot recovery" and confirm with the power button;
Hooray, you have LOS Recovery installed;
Linux Method:​
Open the terminal (use the shortcut CTRL+ALT+T to open it, preferrably);
Do the following:
Code:
lsusb
# This checks if your asus device is connected proper to the machine
# If it is, lsusb should output something around a "Google" or "Qualcomm" device on the ID Bus
cd Downloads
# If you have put a different language locale, cd into the Downloads folder with it's localized name
ls
# List for the files inside the folder. You should see a file called 'recovery.img' inside
fastboot devices
# Tell fastboot to check if any device on bootloader/fastboot mode is connected
fastboot flash recovery recovery.img
# Gives fastboot the instruction to flash the .img file to the desired device's partition, which is the recovery in this case
After done flashing, disconnect the device;
Navigate over your Asus device with the volume buttons;
Select "Reboot recovery" and confirm with the power button;
Hooray, you have LOS Recovery installed;
Windows Method:​GUI Method:​
Simply use the "Latest ADB Launcher"executable located on the desktop of your PC;
Just make sure to flash the recovery partition with the "recovery.img" file;
Terminal Method:​
Navigate with the File Explorer;
Go to your Downloads folder and find for a file called "recovery.img";
Cut and paste it to where the ADB and Fastboot tools are installed at;
Click on your mouse's right button;
Select "Open terminal here" over the contextual menu;
A terminal should pop-up (Command Prompt, that is);
Type in the following:
Code:
fastboot devices
fastboot flash recovery recovery.img
Wait for the recovery to flash on the device;
After done so, disconnect the device;
Navigate over your Asus device with the volume buttons;
Select "Reboot recovery" and confirm with the power button;
Hooray, you have LOS Recovery installed;
------------------------------------------------------------
Installing Lineage OS 18.1:​Before proceeding, do the following firsthand:
Your device must be turned off;
Must have deleted the Android 9 Beta .zip file from the SDCard, for avoiding accidents;
Download the Lineage file off of the "required" list's links for your specific model;
Put the downloaded .zip file on an SDCard;
Insert the SDCard inside the device's slot;
Boot up into recovery mode;
Select with the volume keys "Apply Update" > "Apply from sdcard" and confirm with the power button;
Select the LineageOS .zip file;
Confirm with the power button;
Let the rom install by the recovery;
After install, navigate to the back button with the volume keys;
Select "Factory reset" > "Format cache partition";
The recovery will ask you the following:
Code:
Format Cache?
THIS CAN'T BE UNDONE!
Select "Yes";
Go back;
Select "Reboot system now";
First bootup will take some while, but you'll be greeted by the setup screen in no time.
Congratz, now your device has Lineage OS installed!
-------------------------------------------------------------------
Extras/FAQ Section:​Q: Is it possible to get root priviledges on the device?​A: Sure! There are different ways to apply root on the ROM, but feel free to pick whichever method you like:​
Rooting your device by picking it's 'boot.img' (exactly located on the folder of the respective model) over SebaUbuntu's Lineage site and patch it with an already-rooted device that has the Magisk companion app installed (requires no recovery patching, but it is required to boot the asus device in fastboot mode and patch the boot partition);​
Downloading the Magisk companion app over it's GitHub page, rename the .apk file by replacing '.apk' to '.zip' via file manager, patch PBRP over the recovery partition (with one of the methods listed over 2 titles above this one), and install the 'magisk.zip' file like you could usually do on any other device with custom recovery;​
If you use an X00I device, you can preferrably install TWRP from here instead of PBRP;​
After applied root on the device, patch back on the device the Lineage recovery- just for avoiding any inconvenience if you want to factory reset the device;​
Q: My device has Lineage installed, but the bottom buttons don't work. Is there a way to enable a virtual navbar?​A: Yep, but it's a bit of a tricky process. You must have either apps like Terminal Emulator or Termux installed for making this work- as an extra, you could get other keyboards like BeHe Keyboard or Hacker's Keyboard: but that is only if you've picked Terminal Emulator as your choice.​For direct instructions, follow this (you must be inside the terminal app of your choice and already gave storage perms to it firsthand):​
Code:
su
mount -o rw,remount /
vi /system/build.prop
# After come this far, go to the bottom of the build.prop file by scrolling with the touch screen
# On your keyboard, press the I key. This should make vi enter into INSERT mode
# When done so, add the following line on the build.prop file
qemu.hw.mainkeys=0
# For getting out of INSERT mode, find on your keyboard or terminal UI the ESC button
# For quitting and saving the file on vi, type the following
:wq!
# This should make vi quit and save the modifications to the build.prop file
# For rebooting the device straight from the terminal, just type in
reboot
# The device should immediately reboot, and upon unlocking: the virtual navbar should appear
Q: Can it be possible installing MicroG on the device?​A: You can! Every method for installing MicroG perfectly works on this ROM;​
Q: I have MicroG installed on my device, but i want to apply signature spoofing for extra functionality. Is this possible?​A: Sadly, due to the tinkering i've done on my side: the ROM gets a meltdown when modifying the 'services.jar' file is involved (root or non-root). If you follow some guides online (despite being few), the ROM, regardless of what you do or which method you follow: ​it will end up in a bootloop (or, to be more specific, the SystemUI starts to become picky);​
------------------------------------------------------------------
Credits:
miya0405 (for the lineage site)
SebaUbuntu (for the LOS rom, recovery, and PBRP recovery)
Erwin Abs (PBRP Recovery)
aaaaaaziskurnia (TWRP recovery for the X00I)
You, for dedicating your time on reading this long guide!

Categories

Resources