[GUIDE]HOW TO INSTALL CUSTOM RECOVERY, UNLOCK BOOTLOADER & UPDATE FIRMWARE IN Dec2019 - Asus ZenFone Max Pro M1 Guides, News, & Discussio

[GUIDE]HOW TO INSTALL CUSTOM RECOVERY, UNLOCK BOOTLOADER & UPDATE FIRMWARE IN Dec2019
I SOLVED THEM MYSELF, GUIDE WILL BE POST WHEN I CAN POST A THREAD
*i posted them here
INITIAL POST
Unable/failed to unlock bootloader/fastboot
It's been 8 hours and I have literally tried everything even to my own method but none of them worked (I follow all tutorial and guidance perfectly on both xda and from a article and youtube). When I click the unlock.cmd, it just flash quickly (probably open command prompt in split second) and do nothing (I had checked with a command; fastboot oem device-info). Then I tried click again and it just stopped at support all device. The folder location is on C aka main storage, I have installed all the required stuff and I'm on 6gb variant. I even wipe clean my phone and it is on Android Pie. Trying to unlock this bootloader is driving me insane. Official TWRP app does not have my variant (M1) instead they have M2 so I doubt I can use flash recovery from there. I just wanted to install TWRP and Havoc OS with Magisk and root. My phone is legit, I have warranty and all that. I just want to unlock my bootloader and able to relock it for future warranty use.
To clarify things further, I have no issues with ADB displaying on Device Manager and I can see Bootloader on Device Manager without any warning sign. I even switch the cable (both are data cable) and for some reason it only worked on usb 3.0 port. I also had tried all connection mode (PTP (no MTP), USB Tethering, File Transfer and nothing). I had make sure I had installed the driver too and my PC already have ADB but I installed them thrice anyway.
EDIT1: I just noticed my warranty had expired so I decided to officially unlock the bootloader and it was a success but I still can't use fastboot command to flash TWRP (fastboot flash recovery twrp bla bla.img) and it does run the command just failed.
EDIT2: Alright it was solved!
I had already written a guide on how to solve it but I couldn't post it.
I AM POSTING THIS HERE BECAUSE XDA SUCKS, I COULDNT POST A NEW THREAD SO HERE WE GO.
HOW TO INSTALL CUSTOM RECOVERY, UNLOCK BOOTLOADER AND INSTALL FIRMWARE IN LATE 2019
*last update 8 december 2019
#I AM NOT RESPONSIBLE FOR HARD BRICK OR SOFT BRICK OF YOUR DEVICE SO TRY AT YOUR OWN RISK AND FOLLOW WITH CAUTION
*this is based on my personal experience of my continuous effort in reading, researching, testing, tweaking all for the past few weeks
*note this is a guide specifically for these problems
-my post on how I failed to unlock bootloader
-command write failed
-phone not detected in bootloader
-adb or bootloader driver showing error on device manager
-other guides not working on amd rig
-unable to flash recovery
-phone not detected in adb
-etc
CUSTOM RECOVERY
#DO NOT INSTALL ORANGE FOX, YOU WILL GET ERROR 7 UPON FLASHING VARIOUS CUSTOM ROM
TWRP
*you can install orange fox later on by dirty flashing it (install without wiping your data)
*lastest one is 3.3.1.0
ADB & FASTBOOT
15 seconds ADB
*this is a system wide adb, there is no need for 'cd' command and you can just use straight up use adb or fastboot command and uninstall other adb along with their drivers because other adb wouldn't work and use outdated client and driver
HOW TO UNLOCK BOOTLOADER
#THIS IS AN UNOFFICIAL WAY TO UNLOCK YOUR BOOTLOADER, I HAVENT TESTED THIS MYSELF
Download this
1. Do not use your stock charger, get data cable or third party one
2. You may need to connect your cable to USB 3.0/3.1 port (blue one)
* if it didn't work, you may need to use USB Hub (even cheap one will work)
3. Open up your CMD (search cmd or use powershell if you like on windows search)
4. Type adb reboot bootloader in cmd or .\adb reboot bootloader in powershell
5. Extract the rar you downloaded
6. Go to unlock folder and double click on unlock.cmd
*if these didn't work then you can officially unlock it (if you unlock it officially, your warranty is really now voided and can't lock back bootloader)
#OFFICIAL WAY TO UNLOCK YOUR BOOTLOADER (two ways)
Method 1
1. Open your cmd or powershell
2. Type adb reboot bootloader in cmd or .\adb reboot bootloader in powershell if you haven't enter fastboot or bootloader
3. Type fastboot oem unlock in cmd or .\fastboot oem unlock in powershell
Method 2
1. Download this on your phone
2. Run it and done
##CHECK TO SEE IF IT SUCCEED OR NOT BY TYPING FASTBOOT OEM DEVICE-INFO IN CMD OR .\FASTBOOT OEM DEVICE-INFO IN POWERSHELL AND MAKE SURE THE COMMAND IS IN LOWERCASE
HOW TO INSTALL CUSTOM RECOVERY
1. Boot to bootloader by either using command or power off then hold both power button and volume up button then release power button when phone vibrate
2. Open your cmd or powershell
3. Copy your custom recovery img name with .img
*it should look like this; twrp-3.3.1-0-X00T-20190526.img
3. Type fastboot flash recovery [paste it here]
*wait 1 minute or longer
4. Boot into recovery by holding both power button and volume down button then release power button when the phone vibrate
TROUBLESHOOT
Use command fastboot fastboot devices (when in bootloader) and adb devices (when device is on systemui/not in bootloader)
A: If the device shows random alphabet or number like JADSHFE2849 then your device is detected
B: If it doesn't, try changing usb port and wires
*remember to put .\ at the front of every command when using powershell
*cmd is command prompt
HOW TO INSTALL FIRMWARE (two ways)
#WARNING THIS OFFICIAL WAY WILL REVERT YOUR CUSTOM RECOVERY INTO STOCK ONE
*doing this will wipe out your internal data
OFFICIAL WAY
1. Download latest firmware here to your sd card
*remember to set your region first by scroll down to bottom left near the language otherwise it wouldn't work or worse, may brick your device
2. Wipe clean your rom (wipe system, data, etc but not vendor)
3. Boot into system even when no OS is available
4. Complete the setup
5. Boot into recovery
6. Apply update from external storage
7. Browse to your download location and tap it
8. Wait around 10 minute - 15 minute for it to finish
9. Congrats, your firmware has been updated and you can proceed to flash custom recovery again
UNOFFICIAL WAY
Flash this on your custom recovery
*direct link if you prefer but may be outdated as time goes on {Mod edit: Link remove}

Looks like you need to use windows 7 with USB 2.0 port. Or wait till warranty runs out and unlock using official app.

What processor does your system has?
Ryzen? Goodluck with that then.
Fastboot driver doesnt work on amd ryzen builds
Same problem here...
Not even on usb 2.0 ports

gdarshan said:
What processor does your system has?
Ryzen? Goodluck with that then.
Fastboot driver doesnt work on amd ryzen builds
Same problem here...
Not even on usb 2.0 ports
Click to expand...
Click to collapse
Ah shoot, yeah I have Ryzen 3 2200g paired with GTX 1050 Ti and Windows 10 Pro.

Vysair said:
Ah shoot, yeah I have Ryzen 3 2200g paired with GTX 1050 Ti and Windows 10 Pro.
Click to expand...
Click to collapse
Ooooooo...... I have ryzen3 2200g(my new pc) and i tried to flash fastboot rom on azmpm1 but after trying almost 3hours i can't abale to flash it, before i have intel pentium and i flashed fastboot rom without a single problem
---------- Post added at 06:20 PM ---------- Previous post was at 05:56 PM ----------
Read this for quick work arround>>
https://www.reddit.com/r/Amd/commen..._source=amp&utm_medium=&utm_content=post_body

Rommaster94 said:
Ooooooo...... I have ryzen3 2200g(my new pc) and i tried to flash fastboot rom on azmpm1 but after trying almost 3hours i can't abale to flash it, before i have intel pentium and i flashed fastboot rom without a single problem
---------- Post added at 06:20 PM ---------- Previous post was at 05:56 PM ----------
Read this for quick work arround>>
https://www.reddit.com/r/Amd/commen..._source=amp&utm_medium=&utm_content=post_body
Click to expand...
Click to collapse
I still don't know how I did it but I use platform tools from google and it worked because the platform tools use the very latest adb client (around 60 or something). I do install something else like sdk tools and twrp 3310 but i had no idea why it worked which is why i havent post link for guidance. I suspect it was only because of my platform tools. (also for windows 10, i doubt you need those adb drivers bull****)
EDIT: I found a better solution, install 15 seconds adb. This is universal ADB and can be use on any directory but I recommend you to delete the drivers and older ADB beforehand.

Hi. Thank you very much for posting this, I'd been frustrated trying to install drivers but somehow I couldn't get it right. I found this and installed the 15secondADB thing, tested a few commands and everything seems to work. I'm just wondering whether I'll need to install any more drivers in order to start flashing staff through Fastboot.
Thank you in advance

Kevo0h said:
Hi. Thank you very much for posting this, I'd been frustrated trying to install drivers but somehow I couldn't get it right. I found this and installed the 15secondADB thing, tested a few commands and everything seems to work. I'm just wondering whether I'll need to install any more drivers in order to start flashing staff through Fastboot.
Thank you in advance
Click to expand...
Click to collapse
I'm glad it helped. For the driver, there's no need for it because 15 seconds ADB should have installed the required driver or update it. However, I recommend you to try do windows update check to install any missing driver just in case. (I haven't tested this myself though since there's no driver to install from there)

Moderator Announcement
Thread cleaned from download links via pling.com!
pling.com is a paid-per-download website, as such violating rule no. 13 of the XDA Forum Rules and therefore not accepted as file host on XDA. Please refrain from sharing those links in future! Thanks for your cooperation.
Stay safe and stay healthy!
Regards
Oswald Boelcke
Forum Moderator

Related

HTC One M7 stuck entering recovery after installing Android revolution HD one 92.04a9

hey sorry I'm sure this has been covered but I've been trying to root my new phone for the past 15+ hours and after installing Android revolution HD one 92.04a9 through Team Win Recovery project v2.6.3.0 it now keeps restarting in recovery and then takes me to Recovery project after a htc logo screen.
This is the first time I have attempted to root a phone and I'm a noob evidently so please go easy on me. (all I wanted was to hook up my bluetooth controller so I can play FF7 with more ease) any help would be greatly appreciated as I've just moved from London to the middle of nowhere and I'm bored out of my mind without my beloved HTC
Thanks a lot Mr. Tickles
I am so frustrated with general support of HTC. I am trying to get in touch with service for two months and no luck. My next phone won't be HTC for sure, I know.
ticklemelee said:
hey sorry I'm sure this has been covered but I've been trying to root my new phone for the past 15+ hours and after installing Android revolution HD one 92.04a9 through Team Win Recovery project v2.6.3.0 it now keeps restarting in recovery and then takes me to Recovery project after a htc logo screen.
This is the first time I have attempted to root a phone and I'm a noob evidently so please go easy on me. (all I wanted was to hook up my bluetooth controller so I can play FF7 with more ease) any help would be greatly appreciated as I've just moved from London to the middle of nowhere and I'm bored out of my mind without my beloved HTC
Thanks a lot Mr. Tickles
Click to expand...
Click to collapse
Try factory reset from twrp recovery and the flash again. Also you can try to download the zip of the ROM again to be sure it is downloaded correctly and try change the twrp version.
You are using an older version of twrp. Try updating it first to the latest version and try flashing your rom again
Get the latest one here
https://dl.twrp.me/m7/
But how do I do that if my phone wont appear in my computer any more?
Its 100% connected to my computer though because its appearing in devices printers but under the name android 1.0
You cannot enter in fastboot mode? If you can, then you flash recovery via fastboot
ticklemelee said:
But how do I do that if my phone wont appear in my computer any more?
Its 100% connected to my computer though because its appearing in devices printers but under the name android 1.0
Click to expand...
Click to collapse
@istribo is right, to flash arhd you need at least twrp 2.6.3.3 or newer (latest version is 2.8.7.0) To update your recovery, make sure you have HTC drivers installed on your computer and also uninstall htc sync if its installed (but do not uninstall the drivers). Download your new twrp .img file from the link istribo posted above, save it in the same folder where you have adb and fastboot installed on your computer. Reboot your phone in bootloader / fastboot usb mode. Open a terminal window from your adb/fastboot folder and use these commands to flash the recovery:
Code:
fastboot flash recovery name_of_file.img
fastboot erase cache
fastboot reboot-bootloader
Then reboot in recovery and flash arhd.
Note that you should also have a 7.xx.xxx.x firmware installed on your phone if flashing Android 5.0.2 Sense roms. You can know your firmware version with the command "fastboot getvar version-main"
My phone wont appear in my computer so how am I supposed to copy over the files...
sorry guys I'm going to need a step by step guide made for an idiot lol
ticklemelee said:
sorry guys I'm going to need a step by step guide made for an idiot lol
Click to expand...
Click to collapse
If you press power button and volume down button it gets you into recovery. Then u choose fastboot and the you do what alray said.
right so the fact my phone wont appear in my computer doesn't matter then?
Okay sorry for being silly I've just read that properly. Problem is when I got to install adb/fast boot it says something like incorrect parameter 'sheppard'
ticklemelee said:
Okay sorry for being silly I've just read that properly. Problem is when I got to install adb/fast boot it says something like incorrect parameter 'sheppard'
Click to expand...
Click to collapse
Download the sdk tools here (fastboot and adb): https://developer.android.com/sdk/index.html#Other
Download and install HTC drivers: http://www.mediafire.com/download/k7trah995whrw0d/HTC-Mobile-Driver_v4.16.0.001.exe
Connect your phone to a USB 2 port directly from your computer (no external usb hub, better to use back ports, not front ports)
Reboot your phone in bootloader mode by holding power and volume down. When in bootloader, make sure you see the red "fastboot usb" caption, if not select the "fastboot" option using the vol up/down and power key to enter. Once "fastboot" option is selected, make sure you now see the red "fastboot usb" caption.
Open a terminal window from your sdk tools folder
Type "fastboot getvar all" without the quotes en hit enter
copy paste the output here so we can see it (but do not post your IMEI/Serialno)
Then update your twrp:
Code:
fastboot flash recovery name_of_file.img
fastboot erase cache
fastboot reboot-bootloader
Sorry I forgot to say I got my phone all working and rooted! Thank you all so much for your help! wouldn't of done it without you guys.

[STOCK][M][TMO] Guide H811 20i & 20o Bootloader Unlock + Root + TWRP

Note : This guide is for H-81120-I & H-81120-O the latest update any firmware version below it will cause hard-brick so be careful before attempting anything, i wont be held responsible.
As a user with less knowledge about Commands and all, i was searching for answers by reading threads here and there and found my answers though some time tricky and sometimes easy.
Also in reading those threads i found many fellow members stumble upon resulting Soft bricks and in some cases a Hard brick or can say making their beloved G4 a paper weight.
So i thought i must put some really easy steps in order to clearly guide people like me who are too noob to understand the sophisticated developers steps.
Another reason for this Thread is also i saw many people asking about how to etc after updating to 20-O update for our H811 MM.
Few things to Prepare before Start
1- Properly Install Drivers for your H811 Variant of G4, cant find them Install LG Bridge.
2- Read the Whole thread before starting anything.
3- Confirm that all requirements are full filled and your variant is capable of everything mention in the OP.
4- Enable Developer Option then inside it enable OEM unlock and Usb debugging.
5- Always use Command prompt as Administrator.
6- Make a folder name G4 and paste all the file required for the unlocking in it for easy access and remembrance.
7- For Safer side after unlocking the bootloader boot into TWRP from fast boot and do not install TWRP.
8- Flash your SuperSU after that boot into android and see if all works.
9- Again Via Fastboot boot into TWRP make a backup of everything working fine. Boot into android.
0- Again same Via Fastboot boot into TWRP and now install your TWRP image via TWRP install function. So if by any means this is the culprit you can still revive your phone via your backup.
Attachments to Download
1- Adb Package can be found Here.
2- Download the latest TWRP.img 3.0+ from Here . This file needs to be on your computer and external sdcard.
3- Download the latest SuperSu zip (2.67+) from Here [Thanks to Chainfire] and stick on external sdcard as well.
Since downloading is complete now simply unzip the adb folder (containing fastboot by default) and paste both the TWRP image file and SUPERSU zip inside it.
Now Hold Shift and Open Command prompt here.
1- Input command to see if your device is visible in ADB.
Code:
adb devices
if you see your device and the status is off line then there will be a prompt on your G4 screen waiting for approval, accept it and input same command now all will be fine.
2- Now input below commands one by one. ( All credits to Autoprime )
Code:
adb reboot bootloader ( This will reboot your device to Fastboot mode )
fastboot oem unlock ( This will wipe all your data )
fastboot getvar unlocked ( This will check your bootloader status: Should be successful )
fastboot boot twrp-3.0.2-0-h811.img ( Phone boots TWRP ) Please put the full file name with .img extension or it wont work.
3- Now the Phone should be in TWRP install SuperSU from there which you have already pasted inside your external SD card.
4- Reboot to system and see if SuperSU is installed. In some cases First flash of SuperSU does not work if your case is same the again boot to Fastboot and from there boot into recovery, since your bootloader is unlocked no need to repeat the unlock OEM command.
5- Now for safer side follow the steps 7, 9, 0 mention in Preparation heading above.
Hopefully all will be in your favor.
Useful Links if you still fail
Kdz 20-O after download must be unzipped
H81120o_00_0613.kdz
LGUP Software:
( All credits to MicroMod777 )
Disclaimer: Nothing in this thread is my work, if i have missed any credit please do let me know i will add. I know several guides are available for same purpose so if any body finds it offending any rights can ask the moderators to remove this thread. The purpose only is to guide simple people like me to save their devices from getting bricked.
As by reading the thread many people are falling for permanent TWRP installation as its mention in the OP anyways for people not getting permanent Recovery follow below:
Boot to TWRP from fastboot Bootloader
When recovery comes up click Install >>>> then in the right below corner you ll see a tab for IMAGE >>> press it browse the recovery IMG which you stored in your SD card >>> swipe to flash >>> From asking where to install >>> select recovery >>> DONE.
SignatureBoy said:
Attachments to Download
1- Adb Package can be found Here.
2- Download the from Here . This file needs to be on your computer and external sdcard.
3- Download the latest SuperSu zip (2.67+) from Here [Thanks to Chainfire] and stick on external sdcard as well.
Click to expand...
Click to collapse
Indeed needs to be in both but needs to be in the same Folder as Fastboot file, if not wont work.
beside will be cool if you add a NOTE about if they are in 20o they must stick with 20o base roms, if not they'll get Hard-Brick.
DrakenFX said:
Indeed needs to be in both but needs to be in the same Folder as Fastboot file, if not wont work.
beside will be cool if you add a NOTE about if they are in 20o they must stick with 20o base roms, if not they'll get Hard-Brick.
Click to expand...
Click to collapse
the ADB package i uploaded contains the Fastboot inside it
The thread clearly states it for 20-O
SignatureBoy said:
the ADB package i uploaded contains the Fastboot inside it
Click to expand...
Click to collapse
ok i meant the TWRP file needs to be in the same folder where Fastboot file is
DrakenFX said:
ok i meant the TWRP file needs to be in the same folder where Fastboot file is
Click to expand...
Click to collapse
That is also mention if you read the first post,
Since downloading is complete now simply make a folder and put all files downloaded inside it unzip the adb folder and paste both the TWRP image file and SUPERSU zip inside it.
Click to expand...
Click to collapse
SignatureBoy said:
DrakenFX said:
beside will be cool if you add a NOTE about if they are in 20o they must stick with 20o base roms, if not they'll get Hard-Brick.
Click to expand...
Click to collapse
The thread clearly states it for 20-O
Click to expand...
Click to collapse
Guys,
If I read it right:
LG G4 must be on 20o (stock) to follow this instruction.
If it’s on 20i or below, it must be updated to 20o (OTA or whatever) first!
It might be obvious for you, but not for me.
Again, but better be safe, then sorry.
ApokrifX said:
Guys,
If I read it right:
LG G4 must be on 20o (stock) to follow this instruction.
If it’s on 20i or below, it must be updated to 20o (OTA or whatever) first!
It might be obvious for you, but not for me.
Again, but better be safe, then sorry.
Click to expand...
Click to collapse
yes it is for 20-O only
SignatureBoy said:
yes it is for 20-O only
Click to expand...
Click to collapse
Thanks for clarification. I’d change 1st post a bit:
Few things to Prepare before Start
0. LG G4 with 20o (stock) firmware.
When I do adb reboot bootloader it just boots me back into Android... shouldn't it take me to the Fastboot screen?
---------- Post added at 06:41 PM ---------- Previous post was at 06:39 PM ----------
DanGarion said:
When I do adb reboot bootloader it just boots me back into Android... shouldn't it take me to the Fastboot screen?
Click to expand...
Click to collapse
Nevermind, I forgot about OEM Unlock...
thanks for the write up
This is not specific to 20o. It's the same steps we've been using all along. Nothing new to see here.
Sent from my LG-H811 using XDA-Developers mobile app
problem with fastboot
Thanks you for helping:fingers-crossed:
problem with fastboot
Hi,
I am a newbie in xda. I am trying to root and install TWRP into my lg g4. I am using software version H81120o. I checked enable OEM unlock and USB debugging. I have downloaded lg driver though lg bridge and all the files from the post. However, I got two problem while installing the twrp-3.0.2-0-h811.img.
1st problem (stuck here and need to reboot also not showing h811 on "the list of devices attached" after typing command "adb reboot bootloader"):
C:\Windows\system32>adb devices
List of devices attached
LGH811xxxxxxxx device
C:\Windows\system32>adb reboot bootloader
C:\Windows\system32>fastboot oem unlock
...
FAILED (remote: Already unlocked)
finished. total time: 0.012s
C:\Windows\system32>fastboot getvar unlocked
unlocked: yes
finished. total time: 0.004s
C:\Windows\system32>fastboot boot twrp-3.0.2-0-h811.img
cannot load 'twrp-3.0.2-0-h811.img': No error
2. 2nd problem(stuck here and need to reboot):
C:\Windows\system32>fastboot boot twrp-3.0.2-0-h811.img
< waiting for device >
I checked online this problem might do with driver not up to date. Under device manager, my lg g4 is recognized under android device with android bootloader interface.
What should I do now?
Thanks you for helping:fingers-crossed:
This Root-Method worked like a charm... The only issue I'm running into is for the TWRP recovery to actually stick. When i manually reboot into recovery I get the little android guy with his chest open and the red triangle with the "!" in the middle.....am I doing something wrong by any chance??
I did everything but can't seem to get TWRP installed
Thanks a lot for this write up. I have been trying for about 2 weeks to root my g4 and it worked finally, So many thanks to you
The Remedy said:
This Root-Method worked like a charm... The only issue I'm running into is for the TWRP recovery to actually stick. When i manually reboot into recovery I get the little android guy with his chest open and the red triangle with the "!" in the middle.....am I doing something wrong by any chance??
Click to expand...
Click to collapse
same problem here but I just now got it working...sort of . I still can not make anything come up except the factory data reset when I use the phone volume and power button.
I thought it might be just that I wasn't coordinated enough so I downloaded this small app to do a recovery reboot.
After I installed the app and used it, I got the little android guy with his chest opened with the red triangle. I took out my battery, put it back in and booted my phone with the power button.
I then connected my phone to computer via usb and went back into adb and opened TWRP and installed the twrp-3.0.2-0-h811.img again but this time I looked around a little more first, and noticed a setting to either install in boot or recovery partition. I selected recovery partition (neither were selected) and installed it. Now I can boot to TWRP recovery with the app I installed but still nothing but factory data reset with the volume and power buttons. I can live with this for a while until I can maybe find a solution.
I had the same issue but when u get into twrp make sure the IMG is in your SD card and to permanently have twrp installed go to home and press install.. Choose from image and install hope this helps
Sent from my LGLS992 using Tapatalk
fuzzy_ said:
same problem here but I just now got it working...sort of ................
Now I can boot to TWRP recovery with the app I installed but still nothing but factory data reset with the volume and power buttons. I can live with this for a while until I can maybe find a solution.
Click to expand...
Click to collapse
In regard to booting into TWRP recovery with just the power and vol buttons, I just read this on another thread:
It boots into what appears to look like a default LG G4 factory reset page. For me, i clicked reset, and then yes, and surprisingly it brought me to where i wanted to go. TWRP Recovery.
I tried this and it worked for me as well.
I had been there before and tried it and it did a factory reset after I had spent an hour or two tweaking my phone, I was not a happy person. This time I did feel almost positive I had TWRP installed correctly and did not have nearly as much time spent getting things set up like I want them on my phone...It was still scary pressing that reset button and yes button.
If you don't have TWRP (or maybe some other recovery) installed it will factory reset your phone. I just thought I would share this and what happened with me. Do it at your own risk.

Can somebody please point me in the right direction? (I've searched)

I need to root my G4 on TMO. It's on 6.0 and all I have done is enabled dev options - usb debugging- enable OEM in the menu. I've rooted devices before but it's been awhile. I obviously need to start from the beginning here, I assume by unlocking bootloader. I can't find any thread to start with as they are either outdated or for a different version of Android, or I just couldn't find one. I would really appreciate it if somebody could just link me to the thread/guide I need to be in! Thank you so much if you can!
MTN927 said:
I need to root my G4 on TMO. It's on 6.0 and all I have done is enabled dev options - usb debugging- enable OEM in the menu. I've rooted devices before but it's been awhile. I obviously need to start from the beginning here, I assume by unlocking bootloader. I can't find any thread to start with as they are either outdated or for a different version of Android, or I just couldn't find one. I would really appreciate it if somebody could just link me to the thread/guide I need to be in! Thank you so much if you can!
Click to expand...
Click to collapse
note it can only be unlock in this versions.. ill place them from oldest to newest 20i-(20p-20q-20r-20v) if you in any of the versions in parenthesis doent downgrade tp 20i... 20i is antirollback V2 all other in parenthsis is V3 you can switch bak and forth from 20p-to 20v.
well you have developers option enabled and OEM unlock
minimal adb. fastboot install it follow instructions. https://forum.xda-developers.com/showthread.php?t=2317790
download TWRP from here h811 and h815 same app for both. https://twrp.me/devices/lgg4.html
have 2 copies on in SD card other in minmal adb fastboot folder.
Bootloader OEM Unlock + Root:
Starting with the Android 6.0 20x bootloader it has to be unlocked, sorta like a Nexus, with fastboot. Previously only 'OEM Unlock' had to be toggled in Android Developer settings for TWRP or custom boot images to work.
download superSU
connect usb cable to phone.. then go to location folder of minimal adb.. ezample Crogramfiles/minimal.
then in the folder in a empty space press shift key.. and right click on mouse button . you should see open command prompt from here.. select it.
a new window should appear. enter this command
adb reboot bootloader and see screen for confirmation to acsess phone select yes.
if it doesnt boot into bootloader try command again
once booted youll see small letter on phone screen then enter command
fastboot oem unlock (this wipes ALL data!!)
it should restart phone. and optimize all apps...and bootloader should unlock
do same for twrp.... make sure command name of twrp is the same in the file example command is like this..
fastboot boot twrp-2.8.7.1-h811.img and file TWRP is say.. twrp.30.00 it wont work rename either command or files or both and name it twrp.img same in command. once it boot into twrp .. go to install then press button that says image. so the twrp.img you have in sd card appears/ select it then on next window tick recovery. swipe left to install permanently and you are done. flash new rom or superSU.
hope i make sense good luck
raptorddd said:
note it can only be unlock in this versions.. ill place them from oldest to newest 20i-(20p-20q-20r-20v) if you in any of the versions in parenthesis doent downgrade tp 20i... 20i is antirollback V2 all other in parenthsis is V3 you can switch bak and forth from 20p-to 20v.
well you have developers option enabled and OEM unlock
minimal adb. fastboot install it follow instructions. https://forum.xda-developers.com/showthread.php?t=2317790
download TWRP from here h811 and h815 same app for both. https://twrp.me/devices/lgg4.html
have 2 copies on in SD card other in minmal adb fastboot folder.
Bootloader OEM Unlock + Root:
Starting with the Android 6.0 20x bootloader it has to be unlocked, sorta like a Nexus, with fastboot. Previously only 'OEM Unlock' had to be toggled in Android Developer settings for TWRP or custom boot images to work.
download superSU
connect usb cable to phone.. then go to location folder of minimal adb.. ezample Crogramfiles/minimal.
then in the folder in a empty space press shift key.. and right click on mouse button . you should see open command prompt from here.. select it.
a new window should appear. enter this command
adb reboot bootloader and see screen for confirmation to acsess phone select yes.
if it doesnt boot into bootloader try command again
once booted youll see small letter on phone screen then enter command
fastboot oem unlock (this wipes ALL data!!)
it should restart phone. and optimize all apps...and bootloader should unlock
do same for twrp.... make sure command name of twrp is the same in the file example command is like this..
fastboot boot twrp-2.8.7.1-h811.img and file TWRP is say.. twrp.30.00 it wont work rename either command or files or both and name it twrp.img same in command. once it boot into twrp .. go to install then press button that says image. so the twrp.img you have in sd card appears/ select it then on next window tick recovery. swipe left to install permanently and you are done. flash new rom or superSU.
hope i make sense good luck
Click to expand...
Click to collapse
I'm on 20v, so I should be good.
MTN927 said:
I'm on 20v, so I should be good.
Click to expand...
Click to collapse
yes . thats latest version.. thats good.
OK, I got twrp installed but the two SU's I've flashed don't work. I have SU installed, it needs to update binaires, I try that but it fails every time. Root checkers say I'm not rooted. I think I'm using the wrong SU zip. Any help? Your guide was great btw.
EDIT: OK, now it says i am rooted but I can't get the SU binary to update. It fails every time and then asks me to reboot and try again. Any ideas?
UPDATE: Ok, the SU binary finally updated successfully! I think I'm all good! Gonna check out some custom ROMS later. Any recommendations?
Lineage
https://forum.xda-developers.com/g4/development/rom-cyanogenmod-13-0-lg-g4-t3477475

Bought a used Mi A2, how do I proceed?

Just bought a used Mi A2 from a guy. He dosent know what Android version it is and its probably locked. Ive been out of the Android game for many years now, but managed to install ADB and Fastboot on my Mac.
The problem is that the device is boot looping on the Android One logo. Managed to get into Fastboot, and the device shows up in ./fastboot devices. Tried to run this quickie, but only get a "Device is already locked!" message.
So please, point me in the right direction as both the Internet and forums here are loaded with information.
In the end I would like to have a custom ROM, LinageOS or something maybe.
Thanks in advance.
joachimvadseth said:
Just bought a used Mi A2 from a guy. He dosent know what Android version it is and its probably locked. Ive been out of the Android game for many years now, but managed to install ADB and Fastboot on my Mac.
The problem is that the device is boot looping on the Android One logo. Managed to get into Fastboot, and the device shows up in ./fastboot devices. Tried to run this quickie, but only get a "Device is already locked!" message.
So please, point me in the right direction as both the Internet and forums here are loaded with information.
In the end I would like to have a custom ROM, LinageOS or something maybe.
Thanks in advance.
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
1st try to reboot numerously with external power On (if there is a valid Android One ROM in one of two slots, sooner or later bootloader is to boot into this valid ROM).
In case phone does not have a valid Android One ROM, then next step would be MiFlash'ing via EDL (search for TestPoint Guide in "Guides, ....")
Aerobatic said:
1st try to reboot numerously with external power On (if there is a valid Android One ROM in one of two slots, sooner or later bootloader is to boot into this valid ROM).
In case phone does not have a valid Android One ROM, then next step would be MiFlash'ing via EDL (search for TestPoint Guide in "Guides, ....")
Click to expand...
Click to collapse
Like just boot loop it or hold the power to reboot?
I think the EDL pinout opiton is the way to go after some searching, but Im in a desperate need of a torx driver..
joachimvadseth said:
Like just boot loop it or hold the power to reboot?
Click to expand...
Click to collapse
Some people reported that phone rebooted just itself while bootlooping with external power, others recommended to enter fastboot mode and reboot, others recommended to enter stock recovery mode (note that there is a gotcha of "no command" -> press "Power" and then "Vol-") and then "try again: ....
Aerobatic said:
Some people reported that phone rebooted just itself while bootlooping with external power, others recommended to enter fastboot mode and reboot, others recommended to enter stock recovery mode (note that there is a gotcha of "no command" -> press "Power" and then "Vol-") and then "try again: ....
Click to expand...
Click to collapse
In Fastboot the device only displays "fastboot", no options what so ever. Tried powering on the device without power cable 20 times and no go, boot looped on external power for about 10 minutes, no go.
joachimvadseth said:
In Fastboot the device only displays "fastboot", no options what so ever. Tried powering on the device without power cable 20 times and no go, boot looped on external power for about 10 minutes, no go.
Click to expand...
Click to collapse
Sure there is no options in fastboot mode, "enter fastboot mode and reboot" means just that -> enter fastboot mode and then reboot (either long-pressing power on phone or with "fastboot reboot" command from PC.
I gave you clues, please don't tease me to dictate step-by-step, I do not own your phone.
Aerobatic said:
Sure there is no options in fastboot mode, "enter fastboot mode and reboot" means just that -> enter fastboot mode and then reboot (either long-pressing power on phone or with "fastboot reboot" command from PC.
I gave you clues, please don't tease me to dictate step-by-step, I do not own your phone.
Click to expand...
Click to collapse
Ye sure, thats fine mate
did 'fastboot reboot' about 10 times now and still no go.
Found a Xiaomitool for macOS that has an option for "unbrick my device", but need the previous owners Mi account probably, so Ive asked if he did have a Mi account.
joachimvadseth said:
Found a Xiaomitool for macOS that has an option for "unbrick my device", but need the previous owners Mi account probably, so Ive asked if he did have a Mi account.
Click to expand...
Click to collapse
Most probably that's a false path, as MiFlash, Mi Account, Mi Unlock and other such stuff are for owners of "native" Xiaomi MIUI phones, while Mi A2 boarding Android One is regarded as stepchild. Better search for Android One solutions (in these forums of in developer.android.com)
Aerobatic said:
Most probably that's a false path, as MiFlash, Mi Account, Mi Unlock and other such stuff are for owners of "native" Xiaomi MIUI phones, while Mi A2 boarding Android One is regarded as stepchild. Better search for Android One solutions (in these forums of in developer.android.com)
Click to expand...
Click to collapse
Maybe. I think the phone is stock, just bricked after some update.
Just need to get the bloody torx driver!
EDIT: when I do manage to find a tiny tiny torx driver and open up the phone, disconnect the battery a bit, connect it back up, and its time to connect the two EDL pins, how long do I hold? USB cable plugged in?
Yes I have same issue, I dont understand, why Xiaomi dont do anything with this ridiculous problem, I dont login with mi account because no paid attention to that, and when I install this update the phone get in bootloop
joachimvadseth said:
..., and its time to connect the two EDL pins, how long do I hold? USB cable plugged in?
Click to expand...
Click to collapse
Disclamer: Have not done it myself, but according to numerous sources the needed Steps (here with Windows PC) are:
1. Open (partially disassemble) Phone to reach 2 contact Test Point spots
2. Connect stock USB cable to USB2.x port on MB of PC, but not to phone, start Device Manager (to see that no USB-phone-related devices are connected and later to see that phone will be connected in EDL)
3. Download desired stock fastboot ROM https://forum.xda-developers.com/mi-a2/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824849 and MiFlash, start MiFlash selecting ROM
4. Span the two contacts with something metal and in this state connect USB cable to phone; Device Manager must show newly connected device detected, then contacts may be open
5. Press "Refresh" in MiFlash, same new device must be displayed
6. MiFlash -> clean all, MiFlash -> flash
7. Assemble phone back and reboot
MHO Notes:
a. when EDL/TestPoint method was forced due to soft-bricking, after unbricking it is better to: (1) fully unlock phone and (2) clean-reflash stock ROM via fasboot
(Reason: this particular specimen is subject to OTA soft -bricking)
b. if EDL/TestPoint method fails with Pie (10.0.17.0 or 10.0.2.0), retry using Oreo 9.6.17.0 or 9.6.9.0.
---------- Post added at 01:01 PM ---------- Previous post was at 12:52 PM ----------
Onilink90 said:
..., and when I install this update the phone get in bootloop
Click to expand...
Click to collapse
Xiaomi is just repacking Google's Android One updates, and, obviously, does not spend much money for testing OTAs (as AndroidOne phones are not their main market items). From the other hand, Google's Android One A/B Slots feature was developed for so called friction-less ( muhaha ) reverting to previously working ROM when updated ROM fails to boot. So, an Android One phone bootlooping after OTA MUST reboot to previous version of ROM sooner or later (supposed to be 7 retries), sure if phone is not compromised / tampered by previous user actions.
Aerobatic said:
Disclamer: Have not done it myself, but according to numerous sources the needed Steps (here with Windows PC) are:
1. Open (partially disassemble) Phone to reach 2 contact Test Point spots
2. Connect stock USB cable to USB2.x port on MB of PC, but not to phone, start Device Manager (to see that no USB-phone-related devices are connected and later to see that phone will be connected in EDL)
3. Download desired stock fastboot ROM https://forum.xda-developers.com/mi-a2/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824849 and MiFlash, start MiFlash selecting ROM
4. Span the two contacts with something metal and in this state connect USB cable to phone; Device Manager must show newly connected device detected, then contacts may be open
5. Press "Refresh" in MiFlash, same new device must be displayed
6. MiFlash -> clean all, MiFlash -> flash
7. Assemble phone back and reboot
MHO Notes:
a. when EDL/TestPoint method was forced due to soft-bricking, after unbricking it is better to: (1) fully unlock phone and (2) clean-reflash stock ROM via fasboot
(Reason: this particular specimen is subject to OTA soft -bricking)
b. if EDL/TestPoint method fails with Pie (10.0.17.0 or 10.0.2.0), retry using Oreo 9.6.17.0 or 9.6.9.0.
---------- Post added at 01:01 PM ---------- Previous post was at 12:52 PM ----------
Xiaomi is just repacking Google's Android One updates, and, obviously, does not spend much money for testing OTAs (as AndroidOne phones are not their main market items). From the other hand, Google's Android One A/B Slots feature was developed for so called friction-less ( muhaha ) reverting to previously working ROM when updated ROM fails to boot. So, an Android One phone bootlooping after OTA MUST reboot to previous version of ROM sooner or later (supposed to be 7 retries), sure if phone is not compromised / tampered by previous user actions.
Click to expand...
Click to collapse
Managed to get hold of a torx set - phone is now open, battery disconncted. USB-C cable ready (dont have USB-A-C, only USB-C-C). Installed MiFlashTool on my PC and tried to get hold of the drivers. MIFlash is giving me a hard time whineing about drivers. Giving me a erorr message, something about JIT-debugging. Only got it in norwegian.
Edit: managed to flash the stock ROM I think. Fuzzed around a bit with the qualcom driver. Now I have a white screen with a rainbow passing over it..
Edit 2: and we're there! MIUI is in - now time to get rid of it!
Edit 3: think I managed to flash TWRP now - do I need root? Can I just flash a Pixelexperience ROM now or do I need to do something else? Used the Android 9 fastboot image earlier, if that has anyting to do with anything.

How To Guide Master Guide to Unlock Bootloader/Flash TWRP/Root Device/Flash EU ROM/Pass SafetyNet

Hi All, as this device is fairly new and there is not much clarity on things so, I decided to create a master guide as you see below. I am also attaching a PDF version of this guide as I have not formatted this XDA post to what I feel it should be like. You may download and follow that, I will keep updating things as I find.
Lets start​
1. Unlock Bootloader​1.1 Apply for Bootloader Unlock​
Enable developer settings
Go to Settings>About phone/My device> All specs> Hit MIUI Version 8 times
Access Developer Settings from Settings>Additional Settings
Enable OEM Unlocking option
Now login to your desired Mi Account that you wish it to be associated with your device (Mi account should have a mobile number registered for OTP and verification sometime asked by MI flash unlock tool)
Your unlock bootloader wait time starts now. Wait for 7 days (168 hours from the time you added MI account) to unlock bootloader
1.2 Unlocking Bootloader​So you have crossed the wait period…. Now follow below to unlock assuming you have all the USB drivers for Mi devices (usually auto installed when you connect mobile)
Warning: All your userdata (including pictures and files) will be wiped out
Download official Mi flash unlock tool from this link: https://miuirom.xiaomi.com/rom/u1106245679/5.5.224.24/miflash_unlock-en-5.5.224.24.zip
Boot into Booloader: Power off your mobile then hold Volume Down + Power Button till fastboot bunny pops up
Open Mi Flash unlock tool downloaded in step 1
Sign in with same account that you used to sign in in Developer Settings in step 1.1.d. It may ask to verify your account with OTP. do it.
Click Unlock on the tool.
Your device will be unlocked and rebooted. Wait till reboot.
Congrats… you have an unlocked mobile device now
Now let’s go to Rooting your device for which we will have to flash TWRP to Mobile
2 TWRP Flash and Rooting​2.1 TWRP Flash​
Download and Install Minimal ADB and Fastboot for windows for this link: https://androiddatahost.com/wp-content/uploads/Minimal_ADB_Fastboot_v1.4.3.zip
Download unofficial TWRP (only one available as of writing this guide) from here: https://sourceforge.net/projects/xi....6.0_11-0_LOCAL-20220203-01-vili.img/download and rename it to twrp.img
Also download Magisk from below link: https://github.com/topjohnwu/Magisk/releases/download/v24.0/Magisk-v24.0.apk we will use it next section for rooting.
Rename the downloaded magisk file from magisk.apk to magisk.zip and copy it to your device’s storage
Copy the above twrp.img file to Minimal ADB and Fastboot folder (not necessary if you know some directory navigation using command prompt)
Boot mobile into bootloader (follow 1.2.b)
From your Minimal ADB and Fastboot folder open Cmd here.exe file to access the ADB tool
Connect your device to PC
Verify if device has connected successfully using the command below
Fastboot devices
This should return your device id
Now boot into TWRP using below commands
Fastboot boot “twrp.img” if you pasted twrp.img in minimal adb and fastboot folder
Fastboot boot “path to twrp.img” if you did not move it to the minimal adb and fastboot folder
Let the device boot to TWRP
In above step we just booted by TWRP which is temporary. Now let’s flash it to make it permanent:
Go to Advanced settings in TWRP and click Flash Current TWRP
Reboot to TWRP
2.2 TWRP Backup of Current Rom​
You should have a working TWRP
Boot to TWRP and navigate to Backup section
Select all partitions and swipe to confirm
If you see error in backing up, uncheck Data and EFS partition backup
The backup should complete successfully
Have this backup copied to a PC for emergency wipout of your mobile
2.3 Rooting/Flashing Magisk​
Go to Install in TWRP and select magisk.zip you copied in step 2.1.d
This will flash magisk and root your device. Now reboot to system from recovery
Once you have the device booted, rename the magisk.zip to magisk.apk again and install the magisk app on device
You may update if you see any updates to magisk or app
2.4 Passing Safetynet​
Download this magisk module zip from here: https://drive.google.com/file/d/1QJHPpL4R8fcxjB35XbcpaCOipKzpvL2I/view?usp=sharing
Go to magisk app settings and enable Zygisk (beta) also enable Enforce Deny List
Select Hide the Magisk app and give any desired name for Magisk to hide its identity
Now go to modules page in Magisk app.
Select Install from source/storage option and chose the downloaded safteynet zip
Reboot
This will pass safetynet but still Indian bank apps won’t work. Keep following below for clear
Go to magisk settings and enter Configure DenyList
Add all the apps you want to hide magisk and root from (such as phonepe, Gpay)
Don’t leave any service from the selected apps unchecked
3. Flash EU Rom​Warning: All your userdata (including pictures and files) will be wiped out
A TWRP backup of current rom is recommended before following the next steps
You can see section 2.2 for the instruction on backup
Download Fastboot EU rom from here: https://androidfilehost.com/?fid=17825722713688263895
Extract all the contents in zip file to any normal folder
We will be using Bootloader/Fastboot mode. Boot into Bootloader: Power off your mobile then hold Volume Down + Power Button till Fastboot bunny pops up
Connect your device to PC
From the extracted folder Open windows_fastboot_first_install_with_data_format.bat(for windows).
You may execute appropriate similar named file if you are running Linux or MacOS
The EU rom flashing process will start. Hit “Y” on keyboard to accept Formatting
Wait patiently while the PC does its Job.
You may see a long pause post “writing Cust” command depending on PC configuration. You should wait for 5 minutes at least, then try hitting any letter key on your keyboard, the process continues this way.
You may hit letter key whenever you see unusual pauses during pushing of super partition file sparse sending 1 of 9 to 9 of 9
Wait till process finishes and reboots
For TWRP and Rooting you can follow the same guide in section 2.
Updating to Miui13/Android 12 EU Rom​
Check out this guide to Update to Android 12
Happy Rooting… Njoy your device.
Lastly.. All the credit goes to respective owners, I have just compiled everything together and in an easy manner. PM me for credits.
Do let me know if you have any suggestions and corrections.
Thanks & Regards,
Abdus Saboor Asad
Reserved
Reserved
Much appreciated, good overview.
Will try when I get my bootloader unlocked.
Rammetje.b said:
Much appreciated, good overview.
Will try when I get my bootloader unlocked.
Click to expand...
Click to collapse
You are welcome.
sasaboor64 said:
You are welcome.
Click to expand...
Click to collapse
Quick question if you allow me.
The unlock boot loader timer starts ticking even without hooking the phone up to the mi unlock tool? Just the dev options, OEM unlock and login to mi account is sufficient?
I remember I messed around with this when I tried to unlock my Poco F1 at the time.
Thanks
Bram
Rammetje.b said:
Quick question if you allow me.
The unlock boot loader timer starts ticking even without hooking the phone up to the mi unlock tool? Just the dev options, OEM unlock and login to mi account is sufficient?
I remember I messed around with this when I tried to unlock my Poco F1 at the time.
Thanks
Bram
Click to expand...
Click to collapse
Good question... I think we should hook once, that's how I unlocked. But I feel it should work without hooking as well.
Anyone should test it and update for us the other way.
When i download the TWRP and boot into TWRP (through fastboot boot "twrp.img"), my touch screen will not work anymore. How could i fix this?
working on miui 13 android 12?
paulboqs said:
working on miui 13 android 12?
Click to expand...
Click to collapse
you may go through the last thread in my post for miui 13 related rooting. this guide is for miui12 rooting and there is no TWRP yet for miui13 for our device
at what point exactly will all my data be wiped?
yuukiw said:
at what point exactly will all my data be wiped?
Click to expand...
Click to collapse
the moment u hit unlock after your waiting period...
sasaboor64 said:
the moment u hit unlock after your waiting period...
Click to expand...
Click to collapse
is there a way to back upp all apps + data?
MIUI13 Android12 How to enter bootloader?
I'm try but FASTBOOT "orange" Showing?
how to enter bootloader? any driver or any solution?
m38d1 said:
MIUI13 Android12 How to enter bootloader?
I'm try but FASTBOOT "orange" Showing?
how to enter bootloader? any driver or any solution?
Click to expand...
Click to collapse
Please make sure you are having latest ADB installed on your machine. The best option is to install Android Studio . Secondly make sure to enable USB debugging .
You can reboot to fastboot through adb commands.
Once you are connected to ADB enter the command below.
ADB reboot Bootloader.
This will reboot to fastboot mode.
Fastboot devices
The above command shows whether you are on fastboot or not.
Now open the unlock tool and unlock your bootloader. Else if you are confident in recovering your device. use the command below
Fastboot flashing unlock
Hope the above helps.
AwkwarddWhale said:
When i download the TWRP and boot into TWRP (through fastboot boot "twrp.img"), my touch screen will not work anymore. How could i fix this?
Click to expand...
Click to collapse
did you found a solution?
this is the first time this happen to me since mi3, RHnote5,7, pocox3nfc, mi11tpro.
tactil isn't working as soon i ented the twrp.. and theres no orange fox for this devices.. shame.
Jctatis said:
did you found a solution?
this is the first time this happen to me since mi3, RHnote5,7, pocox3nfc, mi11tpro.
tactil isn't working as soon i ented the twrp.. and theres no orange fox for this devices.. shame.
Click to expand...
Click to collapse
There is no solution, there is no twrp for Android 12 / MIUI13 yet.
Well I did manage to make it work using a mouse otg. But it useless since theres no storage to flash
mm_rajesh said:
Please make sure you are having latest ADB installed on your machine. The best option is to install Android Studio . Secondly make sure to enable USB debugging .
You can reboot to fastboot through adb commands.
Once you are connected to ADB enter the command below.
ADB reboot Bootloader.
This will reboot to fastboot mode.
Fastboot devices
The above command shows whether you are on fastboot or not.
Now open the unlock tool and unlock your bootloader. Else if you are confident in recovering your device. use the command below
Fastboot flashing unlock
Hope the above helps.
Click to expand...
Click to collapse
thanks
The problem was the phone cable
This TWRP from the first post is Android 12 too?

Categories

Resources