[GUIDE] LG G STYLO How to root the T-Mobile 6.0 update - LG G Stylo Guides, News, & Discussion

This guide was made before Kingroot was able to root the official update. But thanks to @oskar and @TheDerekHarper on XDA and to @josephwv on Android forums it is now comfirmed that Kingroot will root the official update. But first you must still follow steps #1 through #6 so Kingroot can root your device.
Now before Kingroot was able to root the update I figured out how to root the official update and it is not all to complicated. The following guide will walk you through the root process. But I am not responsible for anything that happens to your devices by using this guide as you are responsible for your device.
What you need:
1. A computer running Linux or Windows with adb and fastboot installed. (I used Ubuntu)
2. If you are using Windows you need all the drivers for your device installed. Linux users will not have to worry about this.
3. A functioning USB cable for your device.
4. Battery charged at least 50% just for safety.
5. The TWRP revovery.img, this is the same TWRP recovery we already have for the LG G Stylo I have just renamed it to recovery.img to make it easier to type the name in while typing fastboot commands.
6. The SuperSU-v2.65-20151226141550.zip by Chainfire. (All credit to Chainfire for this awesome zip.)
How to root your device:
1. I suggest you first go to Settings/General/About Phone/Software info and tap on the "Build number" until it says"You are now a developer". Then back out of until you are in Settings/General and go to "Developer options" and turn "Enable OEM unlock" on. This is to allow TWRP recovery to be able to boot. Also turn on "USB debugging" while you are there.
2. Download the SuperSU-v2.65-20151226141550.zip to your device. You need to move the zip file from your Downloads folder to somewhere on your external SD card as it will not be deleted from there when you use the "fastboot oem unlock" command in step #6.
3. Download the recovery.img to your computer. If you do not have adb and fastboot setup globally for linux or in your path for windows you need to move the recovery.img to the directory your adb and fastboot is in and open a terminal or command line (depending on your OS) in that directory or cd to that directory. If you do have adb and fastboot globally or in your path you can just open a terminal or command line in the directory you have the recovery.img or cd to the directory you have the recovery.img.
4. Once you have the terminal or command line open run the command "adb devices" to make sure your devices is detected by adb. You may get a toast pop up on your device asking if you to "Allow usb debugging". Except this as this is the RSA key you need to allow your computer to communicate with your device via adb. You should see something like "LGH631dffacad9 device" in your terminal or command line. If you see "unauthorized" instead of "device" you have not excepted the RSA key.
5.Now type the following command in your terminal or command line. Type "adb reboot bootloader". This will reboot your device to fastboot mode. Once in fastboot mode use the "fastboot devices" to make sure your device is recognized by fastboot. You should see something like "dffacad9 fastboot". If you are in Linux and get a error message you may have to use "sudo fastboot devices" for fastboot to work. (If you are using Windows and are having trouble with fastboot recognizing your device you need to install the device drivers. If it still does not work install the drivers again with your device connected to your computer in fastboot mode.)
6. To fully unlock your bootloader you have to use the command "fastboot oem unlock". You have to do this or this root method will not work. But be warned that if you do use this command it will factory reset your device. Plus you will get a line of text saying the bootloader is unlocked on the splash screen when you boot your device.
6-1: If you are wanting to use Kingroot to root your device you can reboot your device now. Open the Kingroot app and let it root your device and then use Flashify, Rashr, or a similar app to flash the recovery. Then boot to recovery and flash the SuperSU.zip in recovery and it will remove Kingroot and have SuperSU installed on your device.
7. Now you can do this two ways if you do not want to keep the stock recovery you can use the command "fastboot flash recovery.img" to install the recovery and then use the command "fastboot reboot recovery" to boot to the TWRP recovery. (If this command gives you issue like it seems to be for many then just use the the following method and then use Flashify or Rashr app to install TWRP after you are done rooting.) If you want to keep the stock recovery you can use the command "fastboot boot recovery.img" to boot to the TWRP recovery.
8. Once you are booted to the TWRP recovery you should make a full backup first so you have a backup to restore to in case things go bad. After you make a backup then select install and then find the SuperSU-v2.65-20151226141550.zip and install it. Once it is installed reboot your device to system. If TWRP gives you a warning about the su binaries missing and asks if you want to install thee su binaries before you reboot select no or it will interfere with the rooting process of the SuperSU.zip. When your device reboots it will boot to the LG splash screen and then reboot again. But then it will boot to the OS but it will take a minute. Make sure you let your device reboot all the way to the lockscreen or home screen depending on if you have a lockscreen enabled or not. You should be fully rooted after this, enjoy.

Resserved in case needed later.

Thank you.

target reported max download size of 268435456 bytes
sending 'recovery' (11300 KB)...
OKAY [ 0.359s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.359s

ok so i know this is 100% my fault for not reading, but why would you even include step 6? it wipes everything including the supersu.zip. the files i'm pissed about, but i can get over. mostly music plus some ****ty pictures. contacts can text me. but the main thing is i had to restart my phone, get it started up and everything, then put the super su.zip back onto the phone. just a tedious task.

Can I use this guide with my G4 Stylus (H635)?

wtf... i get this same error
C:\adb>fastboot flash recovery v10.img
target reported max download size of 268435456 bytes
sending 'recovery' (11230 KB)...
OKAY [ 0.390s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.390s
I've tried multiple versions of the TWRP for the g stylo on adroidforum and none of it flashes with the fastboot flash recovery .....img option. Every single one fails. Please tell me how you flashed the recovery... Also I cant run it through Flashify because my SuperSU says no binary is installed... I'm completely lost at this point

aaron2z said:
wtf... i get this same error
C:\adb>fastboot flash recovery v10.img
target reported max download size of 268435456 bytes
sending 'recovery' (11230 KB)...
OKAY [ 0.390s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.390s
I've tried multiple versions of the TWRP for the g stylo on adroidforum and none of it flashes with the fastboot flash recovery .....img option. Every single one fails. Please tell me how you flashed the recovery... Also I cant run it through Flashify because my SuperSU says no binary is installed... I'm completely lost at this point
Click to expand...
Click to collapse
Someone mentioned using the Kingroot app and I gotta admit, I was skepticle at first but after testing. I can confirm it works.
Just go go KingRoot.net, download their apk, install and run the root program. Igll work out of the box after, sadly I couldn't get the above method to work either with super su.

aaron2z said:
wtf... i get this same error
C:\adb>fastboot flash recovery v10.img
target reported max download size of 268435456 bytes
sending 'recovery' (11230 KB)...
OKAY [ 0.390s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.390s
I've tried multiple versions of the TWRP for the g stylo on adroidforum and none of it flashes with the fastboot flash recovery .....img option. Every single one fails. Please tell me how you flashed the recovery... Also I cant run it through Flashify because my SuperSU says no binary is installed... I'm completely lost at this point
Click to expand...
Click to collapse
do the fastboot boot recovery.img so it boots up twrp then flash the supersu zip then boot your phone you should be rooted then flash twrp using flashify

I was getting the same error, ( in step 7 don't flash the recovery )
just use "fastboot boot recovery.img" and it will boot to TWRP without installing it
you can then install SU, ( note ) when you exit or re boot from TWRP it will say SU in not installed do you want to install it, I did the first time and it seemed to hose up, so I did everything over and the second time selected no to re install.
once booted I used flashify to install the TWRP img, and I am able to boot to recovery using Quickboot apk
on a side note I have SU installed, I can use root explorer and other apps that ask for SU access, but Titanium backup
doesn't seem to uninstall apps anymore, they seem to re install after a reboot
Hope this helps yall's
aaron2z said:
wtf... i get this same error
C:\adb>fastboot flash recovery v10.img
target reported max download size of 268435456 bytes
sending 'recovery' (11230 KB)...
OKAY [ 0.390s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.390s
I've tried multiple versions of the TWRP for the g stylo on adroidforum and none of it flashes with the fastboot flash recovery .....img option. Every single one fails. Please tell me how you flashed the recovery... Also I cant run it through Flashify because my SuperSU says no binary is installed... I'm completely lost at this point
Click to expand...
Click to collapse

TheDerekHarper said:
Someone mentioned using the Kingroot app and I gotta admit, I was skepticle at first but after testing. I can confirm it works.
Just go go KingRoot.net, download their apk, install and run the root program. Igll work out of the box after, sadly I couldn't get the above method to work either with super su.
Click to expand...
Click to collapse
I gotta be honest... I'm pretty skeptical to try it. I've read of everyone having either a softbrick boot loop or the root just not staying after reboot. Yours worked for H631 T-mobile 6.0 and stayed? If you confirm T-mobile variant and 6.0 I'll try it. There's a lot of headache with this method for me (not saying it doesn't work). I bricked my phone trying to get the binary files for SU by trying to reroot. But unbricked it with LG Flash Tools and a stock kdz. So I don't want to brick it again twenty minutes later lol

aaron2z said:
I gotta be honest... I'm pretty skeptical to try it. I've read of everyone having either a softbrick boot loop or the root just not staying after reboot. Yours worked for H631 T-mobile 6.0 and stayed? If you confirm T-mobile variant and 6.0 I'll try it. There's a lot of headache with this method for me (not saying it doesn't work). I bricked my phone trying to get the binary files for SU by trying to reroot. But unbricked it with LG Flash Tools and a stock kdz. So I don't want to brick it again twenty minutes later lol
Click to expand...
Click to collapse
Made a tutorial on how to get the marshmallow update (i.e. rom i've used.)
And then afterwards i downloaded Minimal ADB & Fastboot, OEM Unlocked the device (for safety) and downloaded the Kingroot Apk.
Installed it, and just allowed the program to root. It was pretty simple, haven't had any issues (i've even disabled OEM Unlock from the phone & USB Debugging.)
Hell, even adoptable storage is enabled for my phone too (but that's another tutorial from somewhere else.)
I do plan to make a root video, just so someone could see it and grab their opinion.
To be clear: I'm using a metroPCS LG Stylo. Also, only time the phone had issues was when i factory reset it to get rid of root. (didn't work)
so i had to follow the steps from the above tutorial to reflash the stock rom.

jothe1 said:
do the fastboot boot recovery.img so it boots up twrp then flash the supersu zip then boot your phone you should be rooted then flash twrp using flashify
Click to expand...
Click to collapse
well this did it, the root actually worked.

I got a permanent root from the procedure listed on page one of this thread. The only thing I did differently was, when booted into TWRP and you try to re boot the system you will get the question if you want TWRP to install root. If you do allow TWRP to install root, you wont get root. At this point select the option to just reboot the phone. The LG Logo will appear twice before it fully boots. When the device is fully up, you will have root.

Foamp said:
ok so i know this is 100% my fault for not reading, but why would you even include step 6? it wipes everything including the supersu.zip. the files i'm pissed about, but i can get over. mostly music plus some ****ty pictures. contacts can text me. but the main thing is i had to restart my phone, get it started up and everything, then put the super su.zip back onto the phone. just a tedious task.
Click to expand...
Click to collapse
My apologies as I made a typo in the guide. The correct command is "fastboot flash recovery recovery.img" to flash the recovery. I will fix this along with another rework about putting the SusperSU.zip only on your SD card.
oskar5510 said:
Can I use this guide with my G4 Stylus (H635)?
Click to expand...
Click to collapse
I do not know if you can use it or not as I do not have that device. But you can try it bit if your device does not boot to fastboot mode when you issue the adb reboot bootloader command then your device's bootloader is not unlockable and this root method will not work for you. But from the posts in this thread point out that Kingroot now works on the 6.0 update so you can also try Kingroot to see if it willroot your device.
aaron2z said:
wtf... i get this same error
C:\adb>fastboot flash recovery v10.img
target reported max download size of 268435456 bytes
sending 'recovery' (11230 KB)...
OKAY [ 0.390s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.390s
I've tried multiple versions of the TWRP for the g stylo on adroidforum and none of it flashes with the fastboot flash recovery .....img option. Every single one fails. Please tell me how you flashed the recovery... Also I cant run it through Flashify because my SuperSU says no binary is installed... I'm completely lost at this point
Click to expand...
Click to collapse
Again sorry as this is fully my fault for making the typo on the fastboot command to flash recovery. I am fixing it as soon as I am done with this post.
TheDerekHarper said:
Someone mentioned using the Kingroot app and I gotta admit, I was skepticle at first but after testing. I can confirm it works.
Just go go KingRoot.net, download their apk, install and run the root program. Igll work out of the box after, sadly I couldn't get the above method to work either with super su.
Click to expand...
Click to collapse
Thank you for posting this.
jothe1 said:
do the fastboot boot recovery.img so it boots up twrp then flash the supersu zip then boot your phone you should be rooted then flash twrp using flashify
Click to expand...
Click to collapse
Yes this is how I did it when I rooted my device. I will edit the guide some to point this out.
AgainstTheFlow said:
I got a permanent root from the procedure listed on page one of this thread. The only thing I did differently was, when booted into TWRP and you try to re boot the system you will get the question if you want TWRP to install root. If you do allow TWRP to install root, you wont get root. At this point select the option to just reboot the phone. The LG Logo will appear twice before it fully boots. When the device is fully up, you will have root.
Click to expand...
Click to collapse
Thank you for posting this so others can see this does work.
infektedpc said:
target reported max download size of 268435456 bytes
sending 'recovery' (11300 KB)...
OKAY [ 0.359s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.359s
Click to expand...
Click to collapse
I also apologize to you for my mistake. It will be corrected shortly.
TheDerekHarper said:
Made a tutorial on how to get the marshmallow update (i.e. rom i've used.)
And then afterwards i downloaded Minimal ADB & Fastboot, OEM Unlocked the device (for safety) and downloaded the Kingroot Apk.
Installed it, and just allowed the program to root. It was pretty simple, haven't had any issues (i've even disabled OEM Unlock from the phone & USB Debugging.)
Hell, even adoptable storage is enabled for my phone too (but that's another tutorial from somewhere else.)
I do plan to make a root video, just so someone could see it and grab their opinion.
To be clear: I'm using a metroPCS LG Stylo. Also, only time the phone had issues was when i factory reset it to get rid of root. (didn't work)
so i had to follow the steps from the above tutorial to reflash the stock rom.
Click to expand...
Click to collapse
Thanks for posting this I will add this to the post as another option to root seeing as it is comfirmed. I will give credit to you and @oskar for this info.

Is there anyway to do this without wiping your data from 'fastboot oem unlock'? My bootloader keeps saying locked in fastboot mode even though I checked Enable OEM Unlock in settings. It won't let me boot the recovery.img because it's locked.

supersonic125 said:
Is there anyway to do this without wiping your data from 'fastboot oem unlock'? My bootloader keeps saying locked in fastboot mode even though I checked Enable OEM Unlock in settings. It won't let me boot the recovery.img because it's locked.
Click to expand...
Click to collapse
Are you trying to use the fastboot boot recovery.img command?

Yeah, if I try to flash instead of booting I get:
C:\adb>fastboot flash recovery recovery.img
target reported max download size of 268435456 bytes
sending 'recovery' (11300 KB)...
OKAY [ 0.380s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.401s

supersonic125 said:
Yeah, if I try to flash instead of booting I get:
C:\adb>fastboot flash recovery recovery.img
target reported max download size of 268435456 bytes
sending 'recovery' (11300 KB)...
OKAY [ 0.380s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.401s
Click to expand...
Click to collapse
Hmmm looks like maybe fully unlocking the bootloader enables all fastboot commands. You can try downloading and installing Kingroot and root with it as the posts here comfirm it will root the update now. Or just u lock the bootloaderb but your device will be reset if you do.

T-Macgnolia said:
Hmmm looks like maybe fully unlocking the bootloader enables all fastboot commands. You can try downloading and installing Kingroot and root with it as the posts here comfirm it will root the update now. Or just u lock the bootloaderb but your device will be reset if you do.
Click to expand...
Click to collapse
What if we just enable oem unlock in both the system and the bootloader then use adb to push the recovery, superuser, and busybox to the system. King Root caused too many system instabilities, it had injected itself as a system app and after unrooting and uninstalling after a reboot I was left with a soft brick due to a secure boot error 1003. A stock 5.1.1 kdz and the lg flash tool was able to bring my Stylo back to life.
It could all be done by running a simple batch file bundled with everything we need for our device. Linux would probably be the better option but it could work the same in windows.

Related

[GUIDE] How To Root HBOOT 1.02/1.07 and gain S-OFF

I am in no way responsible if you turn your phone into an expensive brick. Unlocking bootloaders is technical, and can be hazardous to your devices health if you don’t understand what you are doing.
REQUIRED: ADB, fastboot, and all related drivers setup and working on your pc. If you do not have adb setup download this http://dinc.does-it.net/Guide_Root_New_Hboot/adb_fastboot.zip, and extract the files to some place like C:\adb and also download these required drivers http://unrevoked.com/rootwiki/doku.php/public/windows_hboot_driver_install.
1. Head over to HTC Dev http://www.htcdev.com/bootloader/.
2. Create a account or sign in (you must use your real email address).
3. Go to unlock bootloader.
4. Select “HTC DROID INCREDIBLE*”.
5. Follow the directions and install all the software provided and you will end up with a unlocked bootloader with s-on. Save a copy of the unlock_code.bin to your pc, so you have it after dooing the froyo ruu.
6. Enter FASTBOOT again on your phone.
7.Open the command prompt again on your pc to where adb.exe is. (ie. C:\android-sdk\platform-tools or C:\adb
8. Download this - CWM recovery 5.0.2.0 http://dinc.does-it.net/Guide_Root_New_Hboot/recovery.img, and place it in the same folder as fastboot (where you put unlock_code.bin ie. C:\adb).
9. For simplicity’s sake rename the above file to recovery.img if it doesn’t already save it as recovery.img.
10. In your command prompt navigate to the folder containing your fastboot files and recovery.img
11. Enter the following in the command prompt:
Code:
fastboot flash recovery recovery.img
Code:
12. Once that completes navigate to recovery on your phone and press power to select it.
13. Once CWM recovery boots on your phone use the volume up and down to pick "Mounts and storage" press the trackball to select it.
14. Select "Mount usb storage".
15. Take this zip and drag it to the root of your SD card http://dinc.does-it.net/Guide_Root_New_Hboot/su.zip
16. On your phone press the trackball to unmount your usb storage.
17. Select go back.
18. Select install zip from SD card.
19. Choose zip from sd card.
20. Select the su.zip file we just downloaded and press the trackball to flash.
21. Reboot the phone.
22. Once your phone is booted go to the market and search "superuser".
23. Download and install superuser.
24. Search "busybox".
25. Use one of the busybox installers and install busybox (hit allow on the su notification).
26. Enter superuser app, press the menu button on your phone, select preferences, then scroll down to su-binary.
27. Hit update, and allow the prompt, if all the output is in green then you have full root congrats!!!.
For Those who wish to take it one step further and achieve s-off with unrevoked.
This process will format your phone I recommend making a nandroid, and running a program like Titanium Backup along with MyBackup to backup all your apps/data, and sync your contacts to google before you go any further.
28. Reboot your phone, and enable usb debugging.
29. Place these 2 files, unzipped on the root of your SD card. Do not put them in a folder, just drop the files right to your card. http://dinc.does-it.net/Guide_Root_New_Hboot/flash_mtd.zip
30. Set your phone to charge only.
31. Open the command prompt on your PC and navigate to the same folder as your fastboot files in the step above for example: cd c:\android-sdk\platform-tools\ or C:\adb
32. Type the following into the command prompt pressing the enter key at the end of each line:
Code:
adb shell
You should get a dollar sign $
Code:
su
You should now get a pound sign #
Code:
cat /sdcard/flash_image > /data/flash_image
Code:
chmod 755 /data/flash_image
Code:
/data/flash_image misc /sdcard/mtd0.img
33. Now set your phone to disk drive mode and place this zip on the root of your SD card (do not unzip) http://dinc.does-it.net/Stock_Images/3.26.605.1/PB31IMG.zip
34. Rename the above file to PB31IMG
35. Set your phone to charge only
36. At this step you have 2 options you can pull the battery of your phone and put it back in then hold volume down and pres power to enter the bootloader or you can go back to your command prompt and type the following:
Code:
exit
Code:
adb reboot bootloader
37. When your bootloader is done loading press volume up to flash the PB31IMG.zip
38. Your phone will reboot the bootloader once during this process, don’t be alarmed just wait for it to finish, when done it will ask you to press volume up to restart the phone
39. When done remove the PB31IMG file from your sd card
40. Congratulations you are now back to stock 2.2 froyo
41. Put the unlock_code.bin file in the same folder with the fastboote.exe file if its not already there. Go to fastboot on the phone. Open a commant prompt to the folder where the files are.
42. Type the folowing:
Code:
fastboot flash unlocktoken unlock_code.bin
Code:
43. Fastboot flash cwm recovery.img again.
Code:
fastboot flash recovery recovery.img
Code.
44. Flash the su.zip file thru recovery.
45. Flash the unrevoked forever s-off patch thru recovery http://dinc.does-it.net/Guide_Root_New_Hboot/unrevoked-forever.zip
You should now be rooted and s-off.
Reserved
do you know if this method enables fastboot? I never could get fastboot working on my slcd Inc and I don't know if there is an eng hboot that works for it.
Sent from my Galaxy Nexus using Tapatalk
tiny4579 said:
do you know if this method enables fastboot? I never could get fastboot working on my slcd Inc and I don't know if there is an eng hboot that works for it.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
I believe it does. The new hboot is fastboot compatible, it is required to get the info for the unlock code. The 0.92 hboot is also fastboot compatible, i have always been able to use fastboot on it. Is that what you ment?
cmlusco said:
I believe it does. The new hboot is fastboot compatible, it is required to get the info for the unlock code. The 0.92 hboot is also fastboot compatible, i have always been able to use fastboot on it. Is that what you ment?
Click to expand...
Click to collapse
is there a reason why update hboot? any thing good come with it?
synisterwolf said:
is there a reason why update hboot? any thing good come with it?
Click to expand...
Click to collapse
No reason to update and is reccomended that you dont. This is just for people who got an inc recently that came with the new hboot.
cmlusco said:
I believe it does. The new hboot is fastboot compatible, it is required to get the info for the unlock code. The 0.92 hboot is also fastboot compatible, i have always been able to use fastboot on it. Is that what you ment?
Click to expand...
Click to collapse
I can use fastboot but I mean commands like fastboot flash and fastboot boot never worked for me. They should as I'm s-off but my conclusion is that the current boot loader doesn't allow fastboot to flash to a device.
I want it mainly to boot a boot.img without having to flash to the boot partition. Good for testing purposes.
Sent from my Galaxy Nexus using Tapatalk
cmlusco said:
No reason to update and is reccomended that you dont. This is just for people who got an inc recently that came with the new hboot.
Click to expand...
Click to collapse
thank you.
tiny4579 said:
I can use fastboot but I mean commands like fastboot flash and fastboot boot never worked for me. They should as I'm s-off but my conclusion is that the current boot loader doesn't allow fastboot to flash to a device.
I want it mainly to boot a boot.img without having to flash to the boot partition. Good for testing purposes.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
I know the fastboot flash works for recovery and misc img, not sure about boot. I wrote this thread after helping my cousin root his inc with the new hboot that was ***locked*** (oow) s-on. After doing htc dev unlock, it did allow us to use fasboot to flash the cwm recovery img and the misc partition, and allow him to downgrade to 2.2. Then used unrevoked like normal to get s-off. He is now true s-off while still being on the new hboot. Now it says ***unlocked*** (oow) s-off.
cmlusco said:
I know the fastboot flash works for recovery and misc img, not sure about boot. I wrote this thread after helping my cousin root his inc with the new hboot that was ***locked*** (oow) s-on. After doing htc dev unlock, it did allow us to use fasboot to flash the cwm recovery img and the misc partition, and allow him to downgrade to 2.2. Then used unrevoked like normal to get s-off. He is now true s-off while still being on the new hboot. Now it says ***unlocked*** (oow) s-off.
Click to expand...
Click to collapse
To test you can dump the current boot.img or pull one from a nandroid to your pc and do fastboot flash boot boot.img. I'm just curious if that works for you as I couldn't do it but I might try again this evening.
Sent from my Galaxy Nexus using Tapatalk
Edit: Here is what I tried and it shows that fastboot boot fails for me:
Code:
D:\Users\Andrew\Desktop\droid>fastboot boot boot.img
downloading 'boot.img'...
OKAY [ 0.470s]
booting...
FAILED (remote: not allowed)
finished. total time: 0.480s
D:\Users\Andrew\Desktop\droid>fastboot flash boot boot.img
sending 'boot' (3072 KB)...
OKAY [ 0.470s]
writing 'boot'...
FAILED (remote: not allowed)
finished. total time: 0.470s
D:\Users\Andrew\Desktop\droid>fastboot flash recovery recovery.img
sending 'recovery' (4608 KB)...
OKAY [ 0.698s]
writing 'recovery'...
FAILED (remote: not allowed)
finished. total time: 0.700s
tiny4579 said:
To test you can dump the current boot.img or pull one from a nandroid to your pc and do fastboot flash boot boot.img. I'm just curious if that works for you as I couldn't do it but I might try again this evening.
Sent from my Galaxy Nexus using Tapatalk
Edit: Here is what I tried and it shows that fastboot boot fails for me:
Code:
D:\Users\Andrew\Desktop\droid>fastboot boot boot.img
downloading 'boot.img'...
OKAY [ 0.470s]
booting...
FAILED (remote: not allowed)
finished. total time: 0.480s
D:\Users\Andrew\Desktop\droid>fastboot flash boot boot.img
sending 'boot' (3072 KB)...
OKAY [ 0.470s]
writing 'boot'...
FAILED (remote: not allowed)
finished. total time: 0.470s
D:\Users\Andrew\Desktop\droid>fastboot flash recovery recovery.img
sending 'recovery' (4608 KB)...
OKAY [ 0.698s]
writing 'recovery'...
FAILED (remote: not allowed)
finished. total time: 0.700s
Click to expand...
Click to collapse
Yeah it does the same thing on mine 0.92 remote not allowed. I will check on my cousins phone next time i see him, and see if the new hboot can do it.
congrats on making it to the portal
http://www.xda-developers.com/android/root-and-s-off-for-the-htc-incredible-with-hboot-1-02-0000/
synisterwolf said:
congrats on making it to the portal
http://www.xda-developers.com/android/root-and-s-off-for-the-htc-incredible-with-hboot-1-02-0000/
Click to expand...
Click to collapse
Holy crap lol. I had no idea, thanks for telling me.
cmlusco said:
Holy crap lol. I had no idea, thanks for telling me.
Click to expand...
Click to collapse
your welcome.
When I try to run unrevoked for root and s-off it fails with Internal error: failed to unlock NAND flash?
I have no idea where to go from here anyone have advice?
Edit: I have run everything else in the guide successfully. I am downgraded to 2.2.
warpurlgis said:
When I try to run unrevoked for root and s-off it fails with Internal error: failed to unlock NAND flash?
I have no idea where to go from here anyone have advice?
Edit: I have run everything else in the guide successfully. I am downgraded to 2.2.
Click to expand...
Click to collapse
What version of unrevoked did you use 3.32, you should use version 3.22 http://dinc.does-it.net/Unrevoked/Unrevoked_3.22.exe. Also make sure to go to the unrevoked menu and select custom recovery, and use this cwm img http://dinc.does-it.net/Guide_Root_New_Hboot/recovery.img before starting the process.
I did use 3.32 first. Then I decided to try 3.22.
I just read your post about using to custom recovery image and I just tried that with 3.22 unsuccessfully with a Failed to flash recovery image.
Can you access recovery, and when booted do you have root?
I can access the HTC recovery if that is what you mean. I lost root when I did the downgrade from 2.3.4 to 2.2
warpurlgis said:
I can access the HTC recovery if that is what you mean. I lost root when I did the downgrade from 2.3.4 to 2.2
Click to expand...
Click to collapse
Try flashing cwm with fastboot like in step 11. Then if you can access it flash the su binary, boot, install su app and busybox, and then try unrevoked again.

Stuck on installing TWRP

Hello and thanks in advance to everyone,
I am trying to root my moto g4 but I am stuck on installing a recovery. I did unlock the bootloader and when I turn on the phone i am greeted with"this device is unlocked and can't be trusted"
Yet when i try to flash the recovery it states that it failed to install since the package is unsigned:
C:\Users\Jelle\Desktop\Nieuwe map>mfastboot flash recovery twrp.img
target max-sparse-size: 256MB
sending 'recovery' (12496 KB)...
OKAY [ 0.405s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.344s]
finished. total time: 0.748s
Re-entering my unlock code also does not work as it gives me this message:
C:\Users\Jelle\Desktop\Nieuwe map>fastboot oem unlock NYRTWS*************
...
(bootloader) invalid boot state
OKAY [ -0.000s]
finished. total time: -0.000s
Does someone have any idea on what the issue is, am I missing something?
Thank you in advance!
Twrp is for motog4 plus aka athene. Make sure your device is the same.
Just reboot to recovery after you flash twrp using fast boot. Do not reboot your device to your home screen as your recovery partition will be rewritten with the stock recovery.
Do not worry about the message. It doesn't say that flashing failed. It only gives you a warning that it's not signed. That message is displayed even if you flash the stock recovery using fast boot.
Sent from my Moto G (4) using Tapatalk
Silesh.Nair said:
Twrp is for motog4 plus aka athene. Make sure your device is the same.
Just reboot to recovery after you flash twrp using fast boot. Do not reboot your device to your home screen as your recovery partition will be rewritten with the stock recovery.
Do not worry about the message. It doesn't say that flashing failed. It only gives you a warning that it's not signed. That message is displayed even if you flash the stock recovery using fast boot.
Sent from my Moto G (4) using Tapatalk
Click to expand...
Click to collapse
that totally worked! thank you very much
same problem mentioned above but after recovery mode my devicxe says no command.
help mw plzzz
sauravchandela95 said:
same problem mentioned above but after recovery mode my devicxe says no command.
help mw plzzz
Click to expand...
Click to collapse
If you're getting a screen with 'no command', that's the stock recovery on your device.
Are you rebooting to the recovery straight after flashing TWRP? Do you have an unlocked bootloader and what version of TWRP are you flashing? What commands are you using to flash?
You may wish to try booting with TWRP first:
1)On a device with an unlocked bootloader, boot to the bootloader screen.
2)Connect your device to your computer via a high quality USB data cable or the original USB cable.
3)Ensure your TWRP image is copied to your ADB folder.
4)Open an ADB terminal. Verify your device is communicating with your computer by typing 'fastboot devices' without quotes. Press Enter. You should get a serial number response.
5)If so, then type 'fastboot boot twrp.img' without quotes. Replace twrp.img with the actual full file name of your TWRP image in your ADB folder including the file extension. For example, if your TWRP image file name is shreps_twrp_3_1_1.img, the full command would be fastboot boot shreps_twrp_3_1_1.img You can type the first few letters of the file name and press Tab on your keyboard to automatically complete the file name if you so wish.
6)Press Enter, and your device should download TWRP and boot to TWRP.

Unable to flash TWRP on Moto G4 Plus

I had previously rooted my Moto G4 Plus and used multiple custom ROMs before switching back to Stock firmware.
Now, I'm unable to flash TWRP on my device. Any attempts to flash TWRP ends up with the following error:
Code:
reboot bootloader
mfastboot flash recovery twrp.img
target max-sparse-size: 256MB
sending 'recovery' (12530 KB)...
OKAY [ 0.406s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.203s]
finished. total time: 0.608s
Any further tries to reboot via adb commands results in the following:
Code:
adb reboot recovery
error: device not found
adb reboot
error: device not found
adb reboot bootloader
error: device not found
The device says the bootloader is unlocked while rebooting. the ID field shows 'bad key'(I feel this is weird).
Can someone please help me with this?
Thanks
unknown_geek said:
I had previously rooted my Moto G4 Plus and used multiple custom ROMs before switching back to Stock firmware.
Now, I'm unable to flash TWRP on my device. Any attempts to flash TWRP ends up with the following error:
Code:
reboot bootloader
mfastboot flash recovery twrp.img
target max-sparse-size: 256MB
sending 'recovery' (12530 KB)...
OKAY [ 0.406s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.203s]
finished. total time: 0.608s
Any further tries to reboot via adb commands results in the following:
Code:
adb reboot recovery
error: device not found
adb reboot
error: device not found
adb reboot bootloader
error: device not found
The device says the bootloader is unlocked while rebooting. the ID field shows 'bad key'(I feel this is weird).
Can someone please help me with this?
Thanks
Click to expand...
Click to collapse
It has got flashed correctly as you got "OKAY" at end of command. Try to boot into recovery and tell us what happens.
1) That TWRP message of 'Image not signed or corrupt' is normal, since the TWRP custom recovery is not signed. After you see the [OKAY], reboot to recovery directly to fix the TWRP, else the stock recovery will overwrite it. Afterwards, you can boot as normal.
2)If you're still in the bootloader on your device, adb commands do not work - you need to use fastboot commands, or use your device volume keys to select 'Start' (to boot to system) or 'Recovery mode' (to boot to recovery) and press the power key to select. Of course, in this case, after flashing TWRP, you'll want to select 'Recovery Mode' in your bootloader and press the power key. This should then boot into TWRP.
If you find yourself in the bootloader in the future, then 'fastboot reboot' or 'fastboot continue' (both commands to be used without quotes, in the ADB terminal) may get your device rebooting to system.
3)ID Bad key is normal with an unlocked bootloader, on subsequent boots this may change to ID:N/A
echo92 said:
1) That TWRP message of 'Image not signed or corrupt' is normal, since the TWRP custom recovery is not signed. After you see the [OKAY], reboot to recovery directly to fix the TWRP, else the stock recovery will overwrite it. Afterwards, you can boot as normal.
2)If you're still in the bootloader on your device, adb commands do not work - you need to use fastboot commands, or use your device volume keys to select 'Start' (to boot to system) or 'Recovery mode' (to boot to recovery) and press the power key to select. Of course, in this case, after flashing TWRP, you'll want to select 'Recovery Mode' in your bootloader and press the power key. This should then boot into TWRP.
If you find yourself in the bootloader in the future, then 'fastboot reboot' or 'fastboot continue' (both commands to be used without quotes, in the ADB terminal) may get your device rebooting to system.
3)ID Bad key is normal with an unlocked bootloader, on subsequent boots this may change to ID:N/A
Click to expand...
Click to collapse
Hi @echo92,
Thanks for pointing out what I was doing wrong. I now realize that the TWRP recovery was being overwritten by stock recovery and I didn't know adb commands don't work while still in bootloader mode.
I did boot into recovery mode from the bootloader (using the volume buttons from the phone) and it worked.
And the ID: bad key is also gone and now it shows ID: N/A.
Thanks again for your help!
Regards
____Mdd said:
It has got flashed correctly as you got "OKAY" at end of command. Try to boot into recovery and tell us what happens.
Click to expand...
Click to collapse
Hi @____Mdd,
I rebooted into recovery right after flashing TWRP and it worked fine. Now, I'm able to boot into TWRP recovery.
Thanks for your response.
Regards.
Im Facing this issue while flashing TWRP
C:\adb>fastboot flash recovery twrp.img
(bootloader) has-slot:recovery: not found
(bootloader) is-logical:recovery: not found
Sending 'recovery' (12644 KB) OKAY [ 0.422s]
Writing 'recovery' (bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
Click to expand...
Click to collapse
vaibhavhr2010 said:
Im Facing this issue while flashing TWRP
Click to expand...
Click to collapse
Pre flash validation errors suggest that your bootloader is locked (i.e. you have not unlocked your bootloader, or it has been re locked). Can you confirm your bootloader is unlocked, e.g. if there is a warning screen on boot saying your device is unlocked?
echo92 said:
Pre flash validation errors suggest that your bootloader is locked (i.e. you have not unlocked your bootloader, or it has been re locked). Can you confirm your bootloader is unlocked, e.g. if there is a warning screen on boot saying your device is unlocked?
Click to expand...
Click to collapse
Thank You for the Reply!
Yes I have already unlocked the Bootloader.
The device status in Bootloader shows Device is Unlocked, Status Code: 3
vaibhavhr2010 said:
Thank You for the Reply!
Yes I have already unlocked the Bootloader.
The device status in Bootloader shows Device is Unlocked, Status Code: 3
Click to expand...
Click to collapse
Thanks, what device are you trying to flash TWRP to and which TWRP image are you using?
echo92 said:
Thanks, what device are you trying to flash TWRP to and which TWRP image are you using?
Click to expand...
Click to collapse
I'm Flashing my Moto G4 using the twrp-3.0.2-3-titan.
vaibhavhr2010 said:
I'm Flashing my Moto G4 using the twrp-3.0.2-3-titan.
Click to expand...
Click to collapse
That TWRP won't work, if it's for Titan. The codename for Moto G4/plus is athene, only TWRP images specifying athene in their name will work.
https://forum.xda-developers.com/mo...recovery-twrp-3-2-1-unofficial-touch-t3722206 or https://eu.dl.twrp.me/athene/ give these a try instead

6T stuck into fastboot mode

I've tried to update my 6T (it was unlocked, used TWRP and Magisk rooted) to the new version following the guide here but I had errors doing it like described here.
So, now I can only boot into fastboot mode (I can't even access recovery mode ). I tried to use the Tool All In One but it returns me the error that my "phone is not in Adb mode".
It seems not giving me errors when I use fastboot boot command:
Code:
PS C:\adb> fastboot devices
203cbc6e fastboot
PS C:\adb> fastboot boot .\twrp-installer-fajita-3.2.3-2.zip
creating boot image...
creating boot image - 17096704 bytes
downloading 'boot.img'...
OKAY [ 0.384s]
booting...
OKAY [ 0.091s]
finished. total time: 0.477s
but the phone just exit fastboot, display OnePlus logo and stop! :crying:
Please I just wish to recover the phone from the beginning. Anyone could help me? :angel:
RikiBez said:
I've tried to update my 6T (it was unlocked, used TWRP and Magisk rooted) to the new version following the guide here but I had errors doing it like described here.
So, now I can only boot into fastboot mode (I can't even access recovery mode ). I tried to use the Tool All In One but it returns me the error that my "phone is not in Adb mode".
It seems not giving me errors when I use fastboot boot command:
Code:
PS C:\adb> fastboot devices
203cbc6e fastboot
PS C:\adb> fastboot boot .\twrp-installer-fajita-3.2.3-2.zip
creating boot image...
creating boot image - 17096704 bytes
downloading 'boot.img'...
OKAY [ 0.384s]
booting...
OKAY [ 0.091s]
finished. total time: 0.477s
but the phone just exit fastboot, display OnePlus logo and stop! :crying:
Please I just wish to recover the phone from the beginning. Anyone could help me? :angel:
Click to expand...
Click to collapse
You can use the msm tool like starting from scratch. Make sure to use 9.0.11 if you're on T-Mobile
https://forum.xda-developers.com/oneplus-6t/how-to/op6t-collection-unbrick-tools-t3914746
Or you can follow this video. I just went from 9.0.13 rooted and twrp back to 9.0.11.
https://www.youtube.com/watch?v=Mh-tjPPz2Ws
Now you'll be on stock OOS 9.0.11. If you want to oem unlock, root with magisk and install twrp.
Follow this guide but instead of using the provided TWRP and magisk on this guide:
https://www.xda-developers.com/oneplus-6t-unlock-bootloader-root/
Use the latest which at this moment is 3.2.3-2 and magisk v19.0
https://twrp.me/oneplus/oneplus6t.html
Download:
twrp-installer-fajita-3.2.3-2.zip and twrp-3.2.3-2-fajita.img
Place both of those in the adb folder. For me mine is C:/adb/
Download Magisk zip and apk.
https://magisk.me/
Place Magisk 19 zip into adb folder.
Now follow the guide and when you get to step 3. Use the new commands for the new twrp and magisk.
Use these commands:
fastboot boot twrp-3.2.3-2-fajita.img
adb sideload twrp-installer-fajita-3.2.3-2.zip
adb sideload Magisk-v19.0.zip
Once your phone boots up transfer the magisk apk from your computer to your phone
or download it from your phone and install the apk.
Now you're good to go!
Sent from my OnePlus 6T using XDA-Developers Legacy app
i7vSa7vi7y said:
You can use the msm tool like starting from scratch
https://forum.xda-developers.com/oneplus-6t/how-to/op6t-collection-unbrick-tools-t3914746
Sent from my OnePlus 6T using XDA-Developers Legacy app
Click to expand...
Click to collapse
I’ll give it a try. Thanks i7vSa7vi7y
UPDATE: Perfect, this worked and now the device is working. I'm going to try to root it again and I'll hope the OnePlus Switch backup will be restorable. Thanks again i7vSa7vi7y
RikiBez said:
I've tried to update my 6T (it was unlocked, used TWRP and Magisk rooted) to the new version following the guide here but I had errors doing it like described here.
So, now I can only boot into fastboot mode (I can't even access recovery mode ). I tried to use the Tool All In One but it returns me the error that my "phone is not in Adb mode".
It seems not giving me errors when I use fastboot boot command:
Code:
PS C:\adb> fastboot devices
203cbc6e fastboot
PS C:\adb> fastboot boot .\twrp-installer-fajita-3.2.3-2.zip
creating boot image...
creating boot image - 17096704 bytes
downloading 'boot.img'...
OKAY [ 0.384s]
booting...
OKAY [ 0.091s]
finished. total time: 0.477s
but the phone just exit fastboot, display OnePlus logo and stop! :crying:
Please I just wish to recover the phone from the beginning. Anyone could help me? :angel:
Click to expand...
Click to collapse
i've had that happen to me a time or two, good news is that it is an easy fix. Here is a post with the file you're gonna need, make sure you get 3.3.0-2 image and installer, you are gonna need them for this. Also, if you don't have adb and fastboot tools go ahead and get them. You will also need a working rom.
From fastboot, use the following commands:
Fastboot boot twrp-fajita-3.3.0-2.img
when it boots up go into Advanced > ADB Sideload
adb sideload twrp-fajita-3.3.0-2-installer.zip
Reboot recovery
Factory reset (DONT wipe the system)
Adb sideload rom.zip
If you want magisk,
adb sideload magisk.zip
reboot
You have successfully avoided nuclear rage.
RikiBez said:
I've tried to update my 6T (it was unlocked, used TWRP and Magisk rooted) to the new version following the guide here but I had errors doing it like described here.
So, now I can only boot into fastboot mode (I can't even access recovery mode ). I tried to use the Tool All In One but it returns me the error that my "phone is not in Adb mode".
It seems not giving me errors when I use fastboot boot command:
Code:
PS C:\adb> fastboot devices
203cbc6e fastboot
PS C:\adb> fastboot boot .\twrp-installer-fajita-3.2.3-2.zip
creating boot image...
creating boot image - 17096704 bytes
downloading 'boot.img'...
OKAY [ 0.384s]
booting...
OKAY [ 0.091s]
finished. total time: 0.477s
but the phone just exit fastboot, display OnePlus logo and stop! :crying:
Please I just wish to recover the phone from the beginning. Anyone could help me? :angel:
Click to expand...
Click to collapse
The obvious reason why this was failing was that you were trying to boot the installer zip file, not the TWRP image. The correct file you were supposed to use was twrp-3.2.3-2-fajita.img.
He's right. You want to boot the img which allows twrp to show on your phone but isn't installed. Then you use twrp to sideload and use fastboot to install the twrp zip and it will install on your phone. I edited my post and added the commands and files you need.
Sent from my ONEPLUS A6013 using XDA-Developers Legacy app
Working method to update your rooted op6t
One best method...and the method that works 100% tested for upgrading a rooted OOS to new OOS version without any loss of data, without any issues.
I'll mention the guide that I have used to upgrade from 9.0.12 rooted to 9.0.13 rooted. Without any loss of data
Download latest OOS full ROM
ReBoot to TWRP
Flash OOS 9.0.13
Flash TWRP installer zip
Reboot system
Phone will boot.
Now go back to recovery mode
Flash Magisk if u want root again
Done
No confusion. No data loss. Not being stuck. Sweet and Simple.
sanjeev7 said:
Working method to update your rooted op6t
One best method...and the method that works 100% tested for upgrading a rooted OOS to new OOS version without any loss of data, without any issues.
I'll mention the guide that I have used to upgrade from 9.0.12 rooted to 9.0.13 rooted. Without any loss of data
Download latest OOS full ROM
Boot to TWRP
Flash OOS 9.0.13
Flash TWRP installer zip
Reboot system
Phone will boot.
Now go back to recovery mode
Flash Magisk if u want root again
Done
No confusion. No data loss. Not being stuck. Sweet and Simple.
Click to expand...
Click to collapse
Even easier. Install full ROM with updater, install Magisk from manager, reboot. Voilá! No need for TWRP. Unless you want TWRP of course.
​
CazeW said:
Even easier. Install full ROM with updater, install Magisk from manager, reboot. Voilá! No need for TWRP. Unless you want TWRP of course.
Click to expand...
Click to collapse
Yo! Yeah I want TWRP so I follow that

Moto G7 Soft brick

I was asked yesterday to install LineageOS on someone's phone. It's been a few years, and I screwed some stuff up and now I need help. I'll go through what I did first and then I'll go through my current problems.
Enabled USB debugging and OEM unlock in the phone's settings.
Used ADB to reboot ot bootloader (adb reboot bootloader)
Verified the device's existence with adb.
Used Motorola's website to unlock the phone's bootloader. Process went fine.
Restarted the phone. Got the message that the bootloader was unlocked.
Went back to developer settings to re-enable USB debugging.
Rebooted to fastboot.
Typed in "fastboot flash boot twrp.img" (the file name was longer, but I'll abbreviate for the sake of brevity).
Wiped data.
Formatted data
Now, this is where the problems started. With the data formatted, I couldn't sideload anything, mounting didn't work, and the TWRP file manager showed literally nothing on the phone. No file system or anything, it looked like. This was done on a Linux computer (which also turned two of my MicroSD cards into read only. Thanks Fedora.
Anyway, I figured I should go back to fastboot to fix things. This was probably a mistake, because now I can't do anything. I can't flash TWRP, I can't boot into it, nothing. For example, when I type in
fastboot flash recovery twrp.img
Click to expand...
Click to collapse
I get this:
(bootloader) is-logical:recovery: not found
Sending 'recovery' (27096 KB) OKAY [ 0.802s]
Writing 'recovery' (bootloader) Invalid partition name recovery
FAILED (remote: '')
fastboot: error: Command failed
Click to expand...
Click to collapse
I Googled around. Some people said I might need to flash partitions from gpt.bin, but that didn't work either. Every time, I get "invalid partition name xxx."
What can I do?
Thanks you in advance.

Categories

Resources