S-Off and root - Sprint HTC One (M7)

I would like to root my phone and keep it stock as much as possible.
After reading, it seems that I could S-Off then root (I would like to avoid unlocking my phone with HTCDev). Now it seems that I need to flash a recovery to be able to root. Is it? Otherwise how could I do it without the recovery?
Thanks!

dadaR6 said:
I would like to root my phone and keep it stock as much as possible.
After reading, it seems that I could S-Off then root (I would like to avoid unlocking my phone with HTCDev). Now it seems that I need to flash a recovery to be able to root. Is it? Otherwise how could I do it without the recovery?
Thanks!
Click to expand...
Click to collapse
you can fastboot boot the recovery and then flash root. That way you stay stock while still having root.

Indirect said:
you can fastboot boot the recovery and then flash root. That way you stay stock while still having root.
Click to expand...
Click to collapse
Can you explain a bit how you do that? Link?
I know how need to install SuperUser.apk from ADB, but I am missing where and how to install su and maybe others?
Thanks

dadaR6 said:
Can you explain a bit how you do that? Link?
I know how need to install SuperUser.apk from ADB, but I am missing where and how to install su and maybe others?
Thanks
Click to expand...
Click to collapse
Your information is a little off. Most root methods don't involve installing the su binary separately from your superuser app. You should also learn how to use fastboot, as suggested above.
You will need to have a recovery image (most people use TWRP), and a root zip (most people are using SuperSU's zips these days, you can find them in the root guides around this forum). Download the root zip to your phone before you do anything else.
You need to boot your phone into fastboot mode (restart the phone, then hold VOL UP/VOL DOWN and POWER), and then with the phone plugged into your computer, run:
fastboot boot /path/to/recovery.img
That will boot your phone once into a custom recovery. From here, depending on the recovery you're using (most will use TWRP), you can hit the appropriate install option, navigate to wherever you downloaded your root ZIP, and then flash that. Reboot the phone, and you'll be rooted, and the one-time recovery will be gone.

Rirere said:
fastboot boot /path/to/recovery.img
That will boot your phone once into a custom recovery. From here, depending on the recovery you're using (most will use TWRP), you can hit the appropriate install option, navigate to wherever you downloaded your root ZIP, and then flash that. Reboot the phone, and you'll be rooted, and the one-time recovery will be gone.
Click to expand...
Click to collapse
Great, this is the info I was missing! Gonna try it now and see.
Thanks!

Related

Easier way to flash recovery with locked bootloader via battery mod?

I used this method http://forum.xda-developers.com/showthread.php?t=710842 to root without unlocking bootloader.
I want to flash the new amonra recovery 1.8.0.1
Fastboot flash recovery filename.img does not work (this is probably the limitation of this method of rooting without unlocking bootloader).
What's the best way/easier way to do this rather than going through steps 17-24
Thanks.
Besides using the one-click root? http://forum.xda-developers.com/showthread.php?t=747598
Also, what's wrong with 17-24? You *have* to do this regardless in order to install stuff into /system, although actually not 100% sure if you have to do it in order to install a recovery.
I guess the point is you don't want to set up adb?
khaytsus said:
Besides using the one-click root? http://forum.xda-developers.com/showthread.php?t=747598
Also, what's wrong with 17-24? You *have* to do this regardless in order to install stuff into /system, although actually not 100% sure if you have to do it in order to install a recovery.
I guess the point is you don't want to set up adb?
Click to expand...
Click to collapse
The one click root for nexus one didn't exist when I did mine using the tutorial i did.
everything works except you can't do a "fastboot flash recovery" command.
So using the One Click Root, lets you use the fastboot flash recovery command and keeps the bootloader locked?
Maybe I'll redo my phone.
You need to use flash_image command from the Terminal. Fastboot works only for original images when bootloader is locked.

Installing ElementalX Kernel

Not the first time I flash anything, but first time dealing with a Nexus device.
I'm using the Nexus Root Toolkit to boot into TWRP, but when I try to look for the zip, I cannot find it in my phone.
I'm running stock 5.0.1
Any help would be appreciated.
henreeg said:
Not the first time I flash anything, but first time dealing with a Nexus device.
I'm using the Nexus Root Toolkit to boot into TWRP, but when I try to look for the zip, I cannot find it in my phone.
I'm running stock 5.0.1
Any help would be appreciated.
Click to expand...
Click to collapse
why would you use the toolkit to boot into your recovery? 1. you can boot into your bootloader, pick the recovery, then boot into the recovery. 2. you can install an app that will let you boot right into the recovery. 3. you can type reboot recovery into a terminal emulator straight from your phone as well.
did you download the kernel? are you looking at the right file system?
henreeg said:
Not the first time I flash anything, but first time dealing with a Nexus device.
I'm using the Nexus Root Toolkit to boot into TWRP, but when I try to look for the zip, I cannot find it in my phone.
I'm running stock 5.0.1
Any help would be appreciated.
Click to expand...
Click to collapse
What you're saying doesn't sound right.
Once you install TWRP recovery via NRT you don't need to use NRT to boot into TWRP.
Simply use your phone to download the kernel zip to your phone...... Say to storage> emulated > downloads.
Then on your phone boot into recovery (TWRP) tap Install and it should find the file. If not, you can easily navigate to it within TWRP.
wtherrell said:
What you're saying doesn't sound right.
Once you install TWRP recovery via NRT you don't need to use NRT to boot into TWRP.
Simply use your phone to download the kernel zip to your phone...... Say to storage> emulated > downloads.
Then on your phone boot into recovery (TWRP) tap Install and it should find the file. If not, you can easily navigate to it within TWRP.
Click to expand...
Click to collapse
absolutely. root toolkits have nothing to do with it. if im wrong, then ive been doing it wrong for 7 years, heck, root toolkits for a nexus isnt quite right either, considering it takes 3-4 minutes to root any nexus without a toolkit(the right way) :silly:
wtherrell said:
What you're saying doesn't sound right.
Once you install TWRP recovery via NRT you don't need to use NRT to boot into TWRP.
Simply use your phone to download the kernel zip to your phone...... Say to storage> emulated > downloads.
Then on your phone boot into recovery (TWRP) tap Install and it should find the file. If not, you can easily navigate to it within TWRP.
Click to expand...
Click to collapse
Thank you guys... got it. I flashed TWRP using the NRT and I was able to view the zip and install.

[HELP] How to Install TWRP without PC.

Hello everyone,
I'm in a little trouble. I need to install custom recovery on my Xperia SP C5302 but I have no PC.
How can I install TWRP ( preferred ) / CWM/Philz on my device ? Is there any way ?
Thank You.
Note : There's a cyber cafe beside my house. But all their computers are running Windows XP.
If there's no way to install without PC then can I be able to install custom recovery on my device with Win XP ?
Thanks again.
Do you have root?
TechnoSparks said:
Do you have root?
Click to expand...
Click to collapse
Yes I'm rooted and my bootloader is unlocked.
Are you ready to bear any risks?
TechnoSparks said:
Are you ready to bear any risks?
Click to expand...
Click to collapse
Yes I'm. but what kinda risk ? soft brick ? or something else ?
rhrokib said:
Yes I'm. but what kinda risk ? soft brick ? or something else ?
Click to expand...
Click to collapse
Most likely soft brick. But who knows, hard bricks even happen when they never touched anything for some people.
TechnoSparks said:
Most likely soft brick. But who knows, hard bricks even happen when they never touched anything for some people.
Click to expand...
Click to collapse
okay. Is there any way to install TWRP without PC then ?
or any custom recovery. philz, CWM anything
Install a terminal emulator by Jake Pelvich from Play store.
Extract the official TWRP img from the TWRP fota zip, or, if you already downloaded an official img, put it into the root of your internal storage.
For ease of access, but still mnemonic, rename the img into "twrp.img"
Open your terminal emulator, and enter "su" and run. This will make the terminal to request root, as you're elevating the shell into root.
Now, we "dd" the TWRP image into your FOTA partition. Copy and run the following:
Code:
dd if=/storage/emulated/0/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel bs=4096
Reboot to check if recovery is accessible after hitting volume up when LED lights up
TechnoSparks said:
Install a terminal emulator by Jake Pelvich from Play store.
Extract the official TWRP img from the TWRP fota zip, or, if you already downloaded an official img, put it into the root of your internal storage.
For ease of access, but still mnemonic, rename the img into "twrp.img"
Open your terminal emulator, and enter "su" and run. This will make the terminal to request root, as you're elevating the shell into root.
Now, we "dd" the TWRP image into your FOTA partition. Copy and run the following:
Reboot to check if recovery is accessible after hitting volume up when LED lights up
Click to expand...
Click to collapse
Thanks a lot. Maybe it works. But how to boot into recovery ?
explain me please.
rhrokib said:
Thanks a lot. Maybe it works. But how to boot into recovery ?
explain me please.
Click to expand...
Click to collapse
Like already mentioned, press volume button UP when the LED lights up during your XSP bootup
TechnoSparks said:
Like already mentioned, press volume button UP when the LED lights up during your XSP bootup
Click to expand...
Click to collapse
There is no LED during bootup. Either I didn't understand. I tried with software to boot into recovery. But my device just complete a reboot everytime. What to do ?
rhrokib said:
There is no LED during bootup. Either I didn't understand. I tried with software to boot into recovery. But my device just complete a reboot everytime. What to do ?
Click to expand...
Click to collapse
What ROM are you using? You need a ROM that can boot a FOTAKernel recovery, and not all of them can (especially stock based ones, since stock by default doesn't allow this).
Ditto.
If you are not using a ROM that supports booting from TWRP, then I can't suggest a method to install other recoveries without a PC.
I do not say it is impossible though, but it'll take a lot of brain power, and moderate understanding of shell scripting in order to reverse engineer the other recoveries provided in the dev subforum.
TechnoSparks said:
Ditto.
If you are not using a ROM that supports booting from TWRP, then I can't suggest a method to install other recoveries without a PC.
I do not say it is impossible though, but it'll take a lot of brain power, and moderate understanding of shell scripting in order to reverse engineer the other recoveries provided in the dev subforum.
Click to expand...
Click to collapse
I tried with Terminal Emulator and it seems okay. But I can't boot into recovery. Tried a lot of process. Doesn't work. Now can I install TWRP with pc ? or I need to flash my stock back to install from PC as I replaced my stock img file ?
Again if I flash stock now, will my bootloader be locked again ?
rhrokib said:
I tried with Terminal Emulator and it seems okay. But I can't boot into recovery. Tried a lot of process. Doesn't work. Now can I install TWRP with pc ? or I need to flash my stock back to install from PC as I replaced my stock img file ?
Again if I flash stock now, will my bootloader be locked again ?
Click to expand...
Click to collapse
Like already explained by Tomoms and me, you need a ROM that supports booting recovery from the FOTA partition in order for my explained method to work. You didn't also tell us which ROM you are using.
No, you dont need to flash your stock back. Leaving the FOTA partition replaced does no absolute harm at all.
If you flash stock, your bootloader will still remain unlocked. In order to relock, you will need to explicitly relock it, by using the relock bootloader option provided by flashtool. If you backed up your TA partition, restoring it will automatically relock your bootloader.
TechnoSparks said:
Like already explained by Tomoms and me, you need a ROM that supports booting recovery from the FOTA partition in order for my explained method to work. You didn't also tell us which ROM you are using.
No, you dont need to flash your stock back. Leaving the FOTA partition replaced does no absolute harm at all.
If you flash stock, your bootloader will still remain unlocked. In order to relock, you will need to explicitly relock it, by using the relock bootloader option provided by flashtool. If you backed up your TA partition, restoring it will automatically relock your bootloader.
Click to expand...
Click to collapse
Okay thanks everyone. I finally installed TWRP, CWM as well as Philz.
I was using 4.3 Stock. Finally installed those from Doomlord's thread. That was really handy to use.
again thank you all for supporting me.
rhrokib said:
Okay thanks everyone. I finally installed TWRP, CWM as well as Philz.
I was using 4.3 Stock. Finally installed those from Doomlord's thread. That was really handy to use.
again thank you all for supporting me.
Click to expand...
Click to collapse
Alright, good to know you finally installed the recoveries. 4.3 Stock ROM does not support my method explained in my recent post. And no problem!

Root without twrp

Is there any way to root without TWRP? I'll be doing this for a family member, and want to keep it as stock as possible. I just want root to remove some stock apps they don't need, then probably unroot. Is there any way to do so? Otherwise I was thinking of flashing TWRP, rooting, then flashing back the stock recovery.
Purplezigar said:
Is there any way to root without TWRP? I'll be doing this for a family member, and want to keep it as stock as possible. I just want root to remove some stock apps they don't need, then probably unroot. Is there any way to do so? Otherwise I was thinking of flashing TWRP, rooting, then flashing back the stock recovery.
Click to expand...
Click to collapse
You can boot into twrp.
Use "fastboot boot twrp-recovery-file location"
Then you can just use the root shell from twrp to make changes, no need to flash SuperSU if you want the ROM unrooted.
mrmazak said:
You can boot into twrp.
Use "fastboot boot twrp-recovery-file location"
Then you can just use the root shell from twrp to make changes, no need to flash SuperSU if you want the ROM unrooted.
Click to expand...
Click to collapse
I'm not quite sure what you're saying, but it sounds like you're saying that I can boot into the TWRP image while I'm connected with fastboot, without actually installing TWRP?
Purplezigar said:
I'm not quite sure what you're saying, but it sounds like you're saying that I can boot into the TWRP image while I'm connected with fastboot, without actually installing TWRP?
Click to expand...
Click to collapse
That's right. You can just boot twrp instead of flashing it.
And when twrp is booted you can connect to phone with adb, you will have a shell with root privileges.
mrmazak said:
That's right. You can just boot twrp instead of flashing it.
And when twrp is booted you can connect to phone with adb, you will have a shell with root privileges.
Click to expand...
Click to collapse
Cool! So then I can just remove system installed apps that I don't want (e.g. Google Play Movies and Books)?
Purplezigar said:
Cool! So then I can just remove system installed apps that I don't want (e.g. Google Play Movies and Books)?
Click to expand...
Click to collapse
You could also read this thread as see if the twrp packages there are what you want to do.
They can all be run from the booted twrp.
https://forum.xda-developers.com/r1-hd/how-to/guide-ad-removal-debloat-block-ota-easy-t3429555
mrmazak said:
You could also read this thread as see if the twrp packages there are what you want to do.
They can all be run from the booted twrp.
https://forum.xda-developers.com/r1-hd/how-to/guide-ad-removal-debloat-block-ota-easy-t3429555
Click to expand...
Click to collapse
Awesome, thanks!

Magisk 14 News

Wow no need for custom recovery...
http://www.androidpolice.com/2017/0...hout-root-installing-without-custom-recovery/
@ultramag69 Maybe he doesn't follow Magisk closely? I know I don't. Magisk is only on used my stepmom's OP3T H2OS (which I update but don't look at the change log since it's only there in case I need it in the future), the other 2 phones I support don't use Magisk they use LOS su add-on. Not everyone who uses root cares about all the bloated/"nifty" features that come out, some just want plain old root.
I only use for root too but every so often I open magisk manager as it updates both the manager app and magisk itself....
It's done that for ages... The only one I found that didn't was 13.1, that one needed TWRP.
I'm letting people know that with 14 they can keep stock recovery and take OTAs
ultramag69 said:
I only use for root too but every so often I open magisk manager as it updates both the manager app and magisk itself....
It's done that for ages... The only one I found that didn't was 13.1, that one needed TWRP.
Click to expand...
Click to collapse
Before you flame someone you should read the link. FOR THE FIRST TIME YOU CAN KEEP STOCK RECOVERY SO YOU CAN TAKE OTAS
lollyjay said:
Before you flame someone you should read the link. FOR THE FIRST TIME YOU CAN KEEP STOCK RECOVERY SO YOU CAN TAKE OTAS
Click to expand...
Click to collapse
I have had stock recovery on more than one without having to reflash recovery with custom one .
If you use fastboot to flash the recovery, Instead of replacing with TWRP, you can use the command "fastboot boot TWRP.img" (TWRP.img being the name of the TWRP image you have such as twrp-3.1.1-0-oneplus5.img) , this will just boot you into TWRP where you can flash SuperSU or Magisk as you please but will revert back to stock recovery once you boot again while retaining root.
ultramag69 said:
I have had stock recovery on more than one without having to reflash recovery with custom one .
If you use fastboot to flash the recovery, Instead of replacing with TWRP, you can use the command "fastboot boot TWRP.img" (TWRP.img being the name of the TWRP image you have such as twrp-3.1.1-0-oneplus5.img) , this will just boot you into TWRP where you can flash SuperSU or Magisk as you please but will revert back to stock recovery once you boot again while retaining root.
Click to expand...
Click to collapse
No need to do that now
Honestly, who roots a phone without flashing a custom recovery the very second after? Unless they are forced to use Flashfire without BL unlock, I guess.
lollyjay said:
No need to do that now
Click to expand...
Click to collapse
Yeah, but using magisk to root my Axon 7 with unlocked bootloader didn't work...
There's still problems with some phones...
ultramag69 said:
Yeah, but using magisk to root my Axon 7 with unlocked bootloader didn't work...
There's still problems with some phones...
Click to expand...
Click to collapse
No problems at all with my OP5
Magisk 14.0 breaks XPosed so had to go back to Magisk 13.3
Now where can we obtain a copy of the stock boot.img?
almostthere said:
Now where can we obtain a copy of the stock boot.img?
Click to expand...
Click to collapse
What you're supposed to do is make a backup of your boot partition any time you update your rom. So if you didn't do that then you can dirty flash your current Rom and that would give you the stock boot.img and again, go into recovery and make a backup of your boot partition. then if you want to flash a custom kernel you can.
Help the noobs
Would any of you more experienced guys please post a step-by-step of how to do it?
From what Eric214 wrote I still don't understand where (or how) to get a copy of the stock_boot.img.
If you get the copy of the stock boot image, is it possible to do it without unlocking the bootloader?
I already installed everything before reading how to root - stupid me, and don't want to reinstall everything.
s_ofer said:
Would any of you more experienced guys please post a step-by-step of how to do it?
From what Eric214 wrote I still don't understand where (or how) to get a copy of the stock_boot.img.
If you get the copy of the stock boot image, is it possible to do it without unlocking the bootloader?
I already installed everything before reading how to root - stupid me, and don't want to reinstall everything.
Click to expand...
Click to collapse
I have the stock 4.5.10 boot.img for download here:
https://drive.google.com/file/d/0B3gcDbDvV4Mkbm5EMEZ4dnpSbk0/view?usp=drivesdk
Sent from my OnePlus5 using XDA Labs
Thanks.
Do any of you think it is possible to FLASH anything without unlocking the bootloader?
There is a thread somewhere for OP3T that shows somehow that is possible to load TWRP on the phone without unlocking the bootloader or wiping data.
I only use for root too but every so often I open magisk manager as it updates also both the manager app and magisk itself. But using magisk to root my Axon 7 with unlocked bootloader.

Categories

Resources