Edit: Issue resolved
Hello everyone,
Pardon my lack of knowledge on rooting devices and all the related things. This is my first time attempting to root a device and I am having a lot of trouble understanding how to go about things. Through my research, I'm finding a lot of different ways to do things and I want a direct opinion on my process so I don't mess up my phone. (Through as much research as I could) My end goal is to have TWRP flashed to my phone, root my device and install a custom ROM. My understanding is that I first need to unlock the bootloader, flash TWRP, install SuperSU, then flash the custom ROM. I won this phone from a raffle and I'm trying to root from a Windows 10 laptop.
I have the TWRP and SuperSU files at the ready and have also installed Kingo root. I enabled USB debugging and allowed the bootloader to be unlocked in developer settings. I tried to boot into download and bootloader and successfully recognized my device, but when trying to use "fastboot flash recovery twrp-3.2.3-0-hima.img" it gave me the error message "FAILED (remote: cannot flash this partition in s-on state)" and "FAILED (remote: 9 RU_SECURITY_FAIL recovery and bootloader isn't BL_UNLOCKE)"
I'd assumed my phone was already unlocked but that's obviously not the case. Doing some more research I found a lot of people needed to get a bootloader unlock from HTCdev.
Is this what I need to do now to continue?
What about this "s-on state" how can I turn it off?
Will unlocking the bootloader wipe my device?
Could I just use the "root" button in the Kingo root main app?
Can anyone verify my theoretical steps and give quick notes on how I should be doing them properly?
Any help is greatly appreciated
dont worry i will help you
Download all in one Android toolkit for your PC...
https://www.google.com/url?sa=t&sou...FjAAegQIBRAB&usg=AOvVaw0sohDTlAE3UaLSgUihYhS3
and connect your phone to PC and allow USB debugging after that
go to Android all in one toolkit and select unlock bootloader....on the screen of your phone it would ask you if you want to unlock bootloader press volume up for yes
volume down for no
Select yes...but
Note:It would reset everything on your phone so back up your necessary files
Make sure you download the right twrp image for your phone (Google search)
Move the Twrp.img to your PC local directory folder and rename it to TWRP.img ....next step is to:-
next step is to go to windows command prompt on your PC and type the following commands:-
Adb devices
Adb reboot bootloader
Fastboot devices
Fastboot flash recovery TWRP.img
Note:make sure you reboot your phone to recovery before normal reboot so that it would replace your previous stock rom
Go to twrp and install the latest version of super su
https://download.chainfire.eu/696/supersu/
This steps worked for me it can work for almost all types of phone
my name is Iduh Winner
I was a root struggler like you...all thanks to God ....I love you all for more info contact me on the following social media
facebook:Iduh Winner
YouTube:Iduh Winner
Related
I know there are quite a few root guides out there but I just wanted to share exactly how I rooted my Wildfire S and installed CWM Recovery
1.
First things first: is your bootloader unlocked or S-OFF? To find out, turn off your phone, then hold in the vol- button and while holding it in, press the power button. Do not let go of volume down until the bootloader menu appears. It should say at the top LOCKED or UNLOCKED and/or S-ON or S-OFF. If it does not say either S-OFF or UNLOCKED, you will need to unlock your bootloader before you can root the device so proceed to step 2. Otherwise, skip to step 3.
2. (Bootloader Unlock)
Warning: this step voids your phone's warranty!
Head over to HTCdev and register an account. Then click the Unlock Bootloader button on the main page. It will walk you through all the steps to unlock your bootloader. Nothing to add to their instructions really. If you get really stuck here's a video guide
3. (Root)
There are several root methods but I chose to use htc supertool v3 which you can get here
Credit to frigid for this tool. The tool is not mine.
Extract the zip file that you should have downloaded from that thread. If you didn't download it, do so.
Open the SuperTool.exe file in the extracted folder.
You should be confronted with a terminal window with this text:
Code:
@eFrigid on Twitter for updates
___________________
MENU
___________________
1 Prep (using zergRush CREDITS to Revolutionary)
2 Prep (using TacoRoot CREDITS to jcase)
3 Attempt Perm Root (Must prep first)(if
4 Attempt S-OFF, SIM Unlock, and everything else (Using gfree)
5 Unlock bootloader (using HTCDev)
6 Relock bootloader
7 De Sense (Disables Sense DOES NOT DELETE)
8 Re Sense (Re-Enables Sense)
9 Wireless Tether Exploit
10 Unroot
reboot Reboot your device
Make a choice or hit ENTER to quit:
Press 1 to prep with zergRush and press enter. then when it comes back to the main menu, press 3 and then press enter. This will attempt to root your device. If it doesn't work, try using option 2 instead of option 1. If it still doesn't work, try both again. Hopefully your device will be rooted by this point.
4. (Install CWM Recovery)
There are two ways I'm going to go over to achieve this, the ROM Manager method and fastboot method.
BTW CWM Recovery is something you need if you're gonna flash any ROMs or mods or anything really..
ROM Manager Method
Go into the Play Store and search for "ROM Manager" (the developer is called clockworkmod)
Install the app and open it.
There will be an option to install recovery. Use it.
It will install CWM recovery in a few seconds.
To get into recovery mode, boot into bootloader (you should know how to do this by now) and choose recovery in the menu and it will boot into recovery
Fastboot Method
Find a recovery image. (Make sure it's for the right device!)
Boot into bootloader then select fastboot in the menu (with the phone plugged into PC). You should know how to get into fastboot by now, anyway.
Open a command prompt in the same directory that you have the recovery image in. (If you don't know how to do this then it's a good time to learn how to use Google )
Use this command:
Code:
fastboot flash recovery recovery.img
If the recovery image was not called recovery.img then type the actual name. It will always end with .img
It will flash teh recovery :silly:
The End.
Please say if I missed anything out. I wrote this 100% from memory
A clean guide.....but the only problem is that there are too many of them....and they all have been buried down after sometime....leading to noob questions again
csoulr666 said:
A clean guide.....but the only problem is that there are too many of them....and they all have been buried down after sometime....leading to noob questions again
Click to expand...
Click to collapse
Shall I make a bot to bump it everyday?
I dont think that will do any good
[Q] fastboot flash system system.img FAILED <remote: Permission denied>, need fix
Hey,
I have a ZE551ML and want to install CM. I am following the guide here. I have run into a problem on the first step which points to the guide here. At step 7 of this guide it has me use the command: fastboot flash system system.img. This fails with the error in the title of this post: FAILED <remote: Permission denied>. I have been googling this and no one has a concrete solution. Currently my phone will not even boot as the three fastboot commands before this one worked just fine and replaced the files. Any help would be greatly appreciated!
Cheers,
Eric.
Even though it'll say permission denied, flashing recovery WILL work. From there you can either flash a custom ROM (from twrp) or reflash stock firmware (through stock recovery).
That's the only fix I've found. To flash a usable ROM and boot into it. May need to turn on USB debugging in dev options. But after doing those two things, fastboot will stop with the permission denied issues.
Hey, thanks for the quick reply.
Currently the phone does not boot at all.
What do you mean by flashing recovery?
When I enter recovery mode at the moment it says applying update and then gives me the android on its side with the red triangle and error! below it.
So i can't currently flash though recovery mode as far as I can tell.
eric_lensherr said:
Hey, thanks for the quick reply.
Currently the phone does not boot at all.
What do you mean by flashing recovery?
When I enter recovery mode at the moment it says applying update and then gives me the android on its side with the red triangle and error! below it.
So i can't currently flash though recovery mode as far as I can tell.
Click to expand...
Click to collapse
Found a guide here dealing with this error, working on it.
Hey,
So I got my phone unbricked by flashing the recovery with the stock ASUS firmware "ASUS ZenFone 2=ZE551ML(Z00AD/Z00ADA/Z00ADB/Z00ADC) software Image: V2.19.40.22 for WW SKU only" available at the ASUS official website and following a guide at an outside link that I can't post.
Now, I have enabled developer mode and turned on USB debugging but am now getting the permission denied on all fastboot commands of the OTA guide, step 7.
Does anyone know a good next step?
Hey, managed to root the phone with: Temporary CWM
After setting USB debug on did you connect the phone to PC via USB and authenticated the PC? When you connect the phone to PC via USB with debugging on, it should pop up a window on the phone after a few seconds asking you for permission for the PC. You can checkmark the box that says always trust this computer's RSA fingerprints or something along those lines.
Hope this helps!
rlaw said:
After setting USB debug on did you connect the phone to PC via USB and authenticated the PC? When you connect the phone to PC via USB with debugging on, it should pop up a window on the phone after a few seconds asking you for permission for the PC. You can checkmark the box that says always trust this computer's RSA fingerprints or something along those lines.
Hope this helps!
Click to expand...
Click to collapse
Yes, I did do this but I have now checked the check mark to make it always trust my computer. I then booted into fastboot but still get permission denied despite having root through CWM and having this checked off.
When I got root through CWM by the fastboot tethered recovery it gave me permission denied on all steps but it still booted into CWM recovery. I was then able to install SuperSU to root it, though it gave me an error, and I used Root Checkerr to see if the phone was rooted. It says it is but I am still unable to flash any images onto the phone since I re-installed the stock firmware.
I'm super confused about this whole thing, IDK what to do now.
Flash stock recovery again and adb sideload the stock firmware all over.
This is the latest up-to-date 2.20.40.59 firmware: http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.20.40.59-user.zip
If that doesn't work then idk. You can Google the permission denied errors for fastboot like I did and there are various possible problems/solutions.
So, none of this is working.
I installed the latest firmware as you suggested and got root again by using Temporary CWM. However despite anything I try (been googling for hours with little help found) I cannot get the phone to let me flash anything I always get the permission denied error.
eric_lensherr said:
So, none of this is working.
I installed the latest firmware as you suggested and got root again by using Temporary CWM. However despite anything I try (been googling for hours with little help found) I cannot get the phone to let me flash anything I always get the permission denied error.
Click to expand...
Click to collapse
You can still flash recovery via fastboot even though it'll say permission denied it works. That's all you really need to do as you can install stock firmware via stock recovery or flash ROMs and whatever else through twrp recovery.
rlaw said:
You can still flash recovery via fastboot even though it'll say permission denied it works. That's all you really need to do as you can install stock firmware via stock recovery or flash ROMs and whatever else through twrp recovery.
Click to expand...
Click to collapse
How can i tell if twrp recovery is successfully installed?
Hey, took a few days to cool off.
So it does seem I can replace recovery even though it says permission denied. I do this by using fastboot to flash the recovery, then from the bootloader on the phone I select restart bootloader and then when the bootloader re-appears I enter recovery mode ( I do this to prevent the possible replacing of the custom recovery by the stock OS). However recovery mode never boots when the latest twrp recovery is on the phone, I just end up back in the bootloader. When I flash the stock recovery back on this method successfully enters recovery mode. This also occurs if I just directly enter recovery mode after flashing twrp recovery.
Any thoughts?
eric_lensherr said:
So, none of this is working.
I installed the latest firmware as you suggested and got root again by using Temporary CWM. However despite anything I try (been googling for hours with little help found) I cannot get the phone to let me flash anything I always get the permission denied error.
Click to expand...
Click to collapse
Same here. I'm using elevated cmd, and fastboot is recognizing my device. But I can't flash anything, can't erase cahce, can't reformat partitions. Always failed due to permissions. And I'm stuck in a bootloop, and can't get to recovery (it just goes back into the bootloop when I try). Literally the only avenue I have to interact with this phone is fastboot, and I can't do anything with it.
Hello all,
I have Zenfone 2 on which I intended to use a custom ROM.
So the first thing was to unlock the bootloader.
On previous occasion, on my Nexus, I had used the - fastboot oem unlock - command and it had worked. So with that in mind, I booted into the bootloader and tried the command, but it failed - saying oem command unrecognized.
Then I searched online and apparently, to unlock the bootloader, Asus has launched an app! But to be able to install the app, I need to get a normal boot happening, which is not happening now.
In between all this, I tried the commands - fastboot flash recovery <recovery.img>, fastboot flash boot <boot.img> too. But none of these were successful, and each of them returned a 'Permission denied' message, probably coz the bootloader was locked.
Now the situation is that -
- Bootloader is locked.
- Phone is stuck in bootloader
- There is no recovery installed. In fact, from the bootloader, when I try to boot into 'Recovery Mode', it goes there for a second and returns back to the bootloader. Doesn't show the normal android image with a 'X' on top.
- There is no root access.
Now I think the first step is to get root access, and for this I want to try the method with installing CWM recovery and SuperSu.
But for this, I need to be able to push the SuperSu.zip to the phone, which I am not able to.
Can somebody please help!
r the drivers for fastboot & adb update to date?
Android version?
If the phone is stuck in bootloader, you can use Asus Flash Tool to flash .raw files and unbrick the phone.
Raw files: https://yadi.sk/d/FijRoAVJtvRiG
AFT: https://yadi.sk/d/NQCiY--IsQjBr (I use AsusFlashToolInstaller1.0.0.14.exe).
you can use Asus Flash Tool to flash .raw files and unbrick the phone.
Click to expand...
Click to collapse
Have to choose wipe the data or not?
hafiz019 said:
Have to choose wipe the data or not?
Click to expand...
Click to collapse
stay away from aft. if will f**k up yor device completely. AFT is too unstable. lot of times it bricks the device to unrecoverable state. tell me the bootloader version, ifwi version shown on screen while in bootloader mode.
Hi, sorry if this is in the wrong place!
I've just got a new HTC 10. I've unlocked bootloader and got adb/fastboot and whatever I needed to install twrp. I flashed twrp via fastboot and it said it was successful.. But when I try to boot into recovery it just shows the red writing that says this is for development purposes only (something like that).. And then boots as normal. Also downloaded twrp app and it says it can't locate recovery. I've attached a picture to show the cmd box after I installed. I'm hoping I'm just being stupid and forgetting something. Please help! X
This isn't the place for this. You should post in the TWRP thread. The answer you're looking for is probably already there.
I don't know why everyone keeps freaking out about the red text. All this does is notify the folks at HTC who may work on your phone if you send it in for repairs is that you have indeed unlocked the bootloader etc. The phone has been modified from the original state it shipped in. Warranty may or may not be voided.
Make sure Allow OEM Unlocking and ADB debugging is turned on in Developer Options. Reboot your phone. Attach to computer. Put the phone in download mode. Don't start the ADB daemon. Don't give any ADB commands. Simply use " fastboot flash recovery twrp.img " without the quotes of course. Unattach computer. Use the phone's up/down buttons to switch to bootloader mode. Choose the reboot into Recovery option. This should bring up TWRP. Reboot system from TWRP when you're done.
Hello friends,
My phone is already unlocked, with the rom Global stock Miui 12 stable installed. I would like to root without loosing data, is it possible or not?
Please, advice for an easy tuto.
Thanks
If you have a PC/laptop and have ADB/fastboot tools installed, and can comfortably use terminal/command line then it's very easy to do.
Use fastboot to flash TWRP to recovery, then flash Magisk from recovery to get root. You won't lose any data.
https://forum.xda-developers.com/mi-9-se/development/twrp-3-3-1-3-mi9se-t3949328
Peace
chris5s said:
If you have a PC/laptop and have ADB/fastboot tools installed, and can comfortably use terminal/command line then it's very easy to do.
Use fastboot to flash TWRP to recovery, then flash Magisk from recovery to get root. You won't lose any data.
https://forum.xda-developers.com/mi-9-se/development/twrp-3-3-1-3-mi9se-t3949328
Peace
Click to expand...
Click to collapse
That's a good news. It's very good to know that it's possible, thank you. I have already ADB/fastboot tools installed on my PC also. However, the process that you are speaking about seems to me not easy (to really understand) as I'm really new.
The last time i tried to root, i had a problem with the encryption (impossible to install Magisk because all Data in TWRP was encrypted and illisible).
Anymore help, someone can explain me with more details, please?
When you go to TWRP it will ask for the device password in order to decrypt your data. This is the pin/unlock code you used when setting up device security, ie fingerprint, to unlock the screen.
After entering the password in TWRP all your files/folders will be visible and you'll be able to flash Magisk.
Hope that helps....
chris5s said:
When you go to TWRP it will ask for the device password in order to decrypt your data. This is the pin/unlock code you used when setting up device security, ie fingerprint, to unlock the screen.
After entering the password in TWRP all your files/folders will be visible and you'll be able to flash Magisk.
Hope that helps....
Click to expand...
Click to collapse
Unfortunately, it's not work for me.
I open ADB, then cmd.exe (from here), when i type ADB devices, it's show my device and while I'm in fastboot on my phone, and i type "fastboot flash recovery twrp-3.4.0-1-grus.img" (this file is in ADB folder) and then my phone turn off by itself with black screen and saying with very small scripts "press key to shutdown" while nothing more on cmd.exe...
I finally successful!!!
I connected my phone to the computer and go to device managers to delete the drivers installed and install again clearly the usb drivers (qualcomm) flash twrp was impossible due to the drivers on the laptop and now everything work well, i follow the steps as indicated and Magisk is installed.
Thank you