Re-install TWRP as read/write? Is there even any reason to? - HTC 10 Questions & Answers

So, one of the new features of TWRP is to install as read-only, which is pretty useful for making a "clean" backup of your ROM before messing with it, but it prevents you from giving it root access.
Thing is.... the option doesn't seem to appear again if you want to install TWRP with that access later. The prompt no longer appears when you boot into recovery, I see nothing under the Settings or Advanced menu to install it with full permissions, and re-installing the recovery image doesn't make it ask again either.
How would one go about giving it write access? And also..... is there any reason to? If I don't have it installed with full rights on system, then can selecting to do a factory wipe from the phone remove it? And would it survive a wipe if it was? Would it survive an OTA update too, or would that wipe the recovery no matter what? If you even can do an OTA update anymore after installing TWRP and SuperSU (but staying on the stock rom). And would installing TWRP with these full rights trip that encryption/loss of radio issue that SuperSU causes?

Related

[Q] problem with root

My fire is rooted and I have voodoo OTA rootkeeper installed, I temporary unrooted to download from amazon store, I did not restore root and now it seems that voodoo is unable to restore the root.
Is there any way to restore root without restoring and rerooting device.
No you will need to use kfu to reapply root I have had to do the same thing when a restored a backup that I had forgotten to change settings back on ota root keeper. You could also flash modaco right over your existing without wiping anything except dalvik and cache to reset your root permissions this will also give you an insecure boot.IMG that will allow for shell.
thanks for the info, but I am not sure how to do this and I forgot to mention I am using a mac.
ROM http://forum.xda-developers.com/showthread.php?t=1439916 methods for flashing http://forum.xda-developers.com/showthread.php?t=1923010 choose between the two ROM flashing methods there both with different results one is clean the other could be dirty I don't know the state of your device. Skip trying to reroot it just flash modaco.
thanks, got it working.
No problem which route did you go?

Stuck on boot after re-installing stock recovery

Hi, when I got the phone I rooted it by installing TWP recovery, it was all working fine after that until an OTA update popped up, after some research I learned that in order to install OTA updates you need to install stock recovery. Firstly, not knowing entirely what I was doing I installed the stock recovery for the wrong software version. The phone booted however and I tried to install the OTA update, upon restarting I was met with the "red triangle" error screen. I restarted the phone and it booted up fine.
Then having found the correct stock recovery (4.16.401.10) I installed it and ran the update again. It seemed to be going fine with the loading bars moving along nicely when it got stuck on the HTC bootup logo. From here I restarted it and now the phone turns on, shows the htc logo, then gets stuck on a black screen,
Please help, Thanks.
http://forum.xda-developers.com/htc-one-m8/help/boot-loop-problem-t3194508
ckpv5 said:
http://forum.xda-developers.com/htc-one-m8/help/boot-loop-problem-t3194508
Click to expand...
Click to collapse
Hi, thanks for that, I guess I should have searched around harder. One question though, you mention that there is a way to restore just system to keep your data, I don't wanna loose all of my data so I'd like to do that, I'm just not sure how to apply that to your guide, what is it that I have to do differently to keep my data?
Thanks.
DarwinW said:
Hi, thanks for that, I guess I should have searched around harder. One question though, you mention that there is a way to restore just system to keep your data, I don't wanna loose all of my data so I'd like to do that, I'm just not sure how to apply that to your guide, what is it that I have to do differently to keep my data?
Thanks.
Click to expand...
Click to collapse
2 options :
1.
In step 8, select dalvik cache, cache, system but don't select data
In step 9, tick only boot & system and don't tick data
or
2.
Make a nandroid backup of your current ROM
Do all the steps, once completed the OTA reinstall TWRP and restore only data from your earlier made nandroid backup
Thank you so much, you're amazing. Just creating a backup now. So once I've flashed the stock rom and the TWRP recovery to restore my data, if I then install the stock recovery again, should it all work fine? or does changing the recovery at any point stop OTA updates working?
The reason I rooted my phone to start with was to use titanium backup to restore apps from a previous phone, so if I can get the phone all stock just with my data, then I don't really need root.
Thanks!
DarwinW said:
Thank you so much, you're amazing. Just creating a backup now. So once I've flashed the stock rom and the TWRP recovery to restore my data, if I then install the stock recovery again, should it all work fine? or does changing the recovery at any point stop OTA updates working?
The reason I rooted my phone to start with was to use titanium backup to restore apps from a previous phone, so if I can get the phone all stock just with my data, then I don't really need root.
Thanks!
Click to expand...
Click to collapse
That's almost same as option 1 above. You need stock recovery for OTA to work.
Most important is the system part must be stock with nothing changed.
Personally, I always do option 2 to make sure OTA is successfully done .. then restore data.
One thing to note ... you don't need to relock bootloader doing all these process.
Also, now that I've created the backup (stored to the phones storage), how do I transfer that to my PC, since the phone doesn't boot, the computer doesn't recognize the storage.
Thanks.
In TWRP you have option to enable MTP then both your internal storage and microSD can be opened on PC
Make sure to use TWRP 2.8.4.0 or newer or latest. I'm still on TWRP 2.8.6.0
It seems I'm on an older version of twrp (2.7.0.2), I made the backup using this version. If I update to a newer version now will the restore work properly?
Thanks.
Usually yes we can restore a backup made with older TWRP version but I'm not so sure about 2.7.0.2 as that is the buggiest TWRP among all versions but very popular because it is included in one very old and not updated toolkit.
Why don't install latest/newer TWRP then redo the backup then transfer to PC.
I'm having trouble viewing files on my pc, I select "mount" from the main twrp menu, it then shows a screen to select which partitions to mount, I tick them, then nothing happens. There's no button to actually start the mount.
I did mentioned enable MTP function ... see below on the right side you should see Disable MTP or Enable MTP (beside Mount USB Storage) .. not those partitions to mount (but in the same screen)
I think you were right about that version being buggy. Those buttons on the bottom were missing. Just installed the latest twrp and I can mount now as the buttons to mount are showing up. Hopefully all will be fine now
Thanks.
Hi, I'm following the guide now and when I try to wipe the phone it doesn't work, I get:
Wipe Complete
Failed
"Unable to mount /cache
failed to wipe dalvik"
This error repeats a few times.
Thanks.
EDIT** scratch that, sorted it
Horray! Everything has now worked out and my phone is back to it's old self with the update, thank you so much ckpv5! you're the best.

How do you disable OTA updates on the m9?

Everyday my m9 asks me to install the new OTA update and I am sure I can't because I am rooted. Have TWRP, and have an unlocked bootloader. While my rom is the default rom the phone came with, I have modified a couple things in /system. Is there way to permanently disable OTAs without installing a custom rom? If not, is there a way to install this update without doing any data wipes or anything overly complicated? Any help would be EXTREMELY appreciated!!
wrozengfx said:
Everyday my m9 asks me to install the new OTA update and I am sure I can't because I am rooted. Have TWRP, and have an unlocked bootloader. While my rom is the default rom the phone came with, I have modified a couple things in /system. Is there way to permanently disable OTAs without installing a custom rom? If not, is there a way to install this update without doing any data wipes or anything overly complicated? Any help would be EXTREMELY appreciated!!
Click to expand...
Click to collapse
All you need is an untouched System and stock recovery to take the OTA.
their are many threads that explain how to do it. Just look around you'll figure it out.
clsA said:
All you need is an untouched System and stock recovery to take the OTA.
their are many threads that explain how to do it. Just look around you'll figure it out.
Click to expand...
Click to collapse
Like I said, my system isn't untouched, I have edited permissions.xml and removed some bloatware. And if I can do this, Will I still be rooted if I update or at least still S-off?
wrozengfx said:
Like I said, my system isn't untouched, I have edited permissions.xml and removed some bloatware. And if I can do this, Will I still be rooted if I update or at least still S-off?
Click to expand...
Click to collapse
Once s-off, you will stay that way unless you manually change it.
You can't be rooted and take an OTA anyway. You have to be 100% stock. You can root again once it's updated.
iElvis said:
Once s-off, you will stay that way unless you manually change it.
You can't be rooted and take an OTA anyway. You have to be 100% stock. You can root again once it's updated.
Click to expand...
Click to collapse
But that other guy just said all I need is a stock recovery. So which is it? 100% stock or just stock recovery
wrozengfx said:
But that other guy just said all I need is a stock recovery. So which is it? 100% stock or just stock recovery
Click to expand...
Click to collapse
Here > http://forum.xda-developers.com/one-m9/general/best-unlocking-bootloader-rooting-guide-t3087354
Steps 3 - 5
and the "other guy" said Untouched System + Stock Recovery
Also worth reading >> http://forum.xda-developers.com/one...ery-twrp-touch-recovery-t3066720/post59745198
6. So what's the proper procedure to root without breaking OTA?
There is no way to take an OTA after you root. However, prior to rooting, you can take a fully untouched system image backup with TWRP, which can be used to restore a fully stock system to the device in order to take an OTA.
7. How do I backup stock recovery prior to flashing TWRP?
You can't. The "fastboot boot" command appears to be disabled on the M9's ABOOT, so TWRP must be fastboot flashed over stock recovery. The firmware zip included in the OTA will include a usable stock recovery image. That can be extracted and flashed after stock system is restored so that the OTA can be applied.
8. How do I restore stock system so that I can accept an OTA?
Check the "Mount system as read-only" box in the Mount menu.
Restore stock "System Image" backup (This will only work if you've made a System Image backup prior to making any modifications to /system). As of the official 2.8.6.1 version, it is no longer necessary to fastboot flash the stock system image.
NOTE: If you made a stock system backup with one of the Beta TWRP versions, you will have to rename the backup file in the backup folder manually from "system.emmc.win" to "system_image.emmc.win" for the new official TWRP to see it as a "System Image" backup rather than a "System" backup. Otherwise, you'll get an error that the backup can't be restored because system is read-only.
Fastboot flash stock recovery (fastboot flash recovery recovery_signed.img)
NOTE: It is also possible to restore stock recovery via the TWRP GUI. Rename the stock recovery file to "recovery.emmc.win" and place in the backup folder with the stock system image. Recovery will then show as a restore option. MAKE SURE YOU REALLY WANT TO DO THIS, AS TWRP WILL BE GONE WHEN YOU REBOOT OUT OF RECOVERY!!
Reboot to system, install OTA.
Click to expand...
Click to collapse
If you want to disable, try freezing HtcDm.
mike.s said:
If you want to disable, try freezing HtcDm.
Click to expand...
Click to collapse
This helped me out nearly a year later. I am rooted and have a custom stock rom loaded but was still able to download the system update somehow and needed a way so that it would quit bugging me every day to not install it. By using Titanium Backup I was able to freeze 3 HtcDM processes.

Best way to unroot and restore to stock to get OTA updates?

I finally figured out how to root my phone (thank Sithis)
I just flashed TWRP and SuperSU. Sadly I was only able to recover a handful of photos from my whack phone factory resetting itself. (my only reasoning for rooting, to use data recovery. I only found DiskDigger. didn't do that great sadly)
I think I MIGHT have picked up some sort of malware or virus; not entirely positive but since rooting, my phones camera flash randomly goes off as if something is taking pictures. I have GO Security and 360 Security downloaded and it didn't find anything. I don't know how thorough those apps are but hopefully they would have picked up any malicious thing invading my phone.
I know there is an unrooting option through the SuperSU app. Again, I don't know how "complete" of an unrooting that'd be.
I honestly wish I had the links I used to download TWRP and SuperSU. Maybe to see if anyone could figure out if they were legit.
I want to unroot, then factory reset. Would I have to flash a stock ROM before hitting the 'unroot' button? How would all this work? Anyone figure out how to get OTA updates after a complete unroot?
If anyone could point me in the correct direction I'd be thankful. I just don't want to deal with the security risks of a rooted phone and would like it back to stock. If I could do that without flashing a ROM to my phone that'd be great.
Since I couldn't find anything of the sorts for my N910PVPS4DPE2.
[edit: please delete post and redirect me if already asked and solved (within 2016)]
You could press that un-root button now but most likely you cannot take the next OTA without flashing the stock tar in Odin. Modifying some partitions will break OTA updates. Having custom recovery won't work.
I don't think it's ever been established as fact but in theory, you could root a stock phone with Chainfire's CF AutoRoot for Note 4 in Odin. Leaving as that root installer rooted, you could un-root later for OTA update within SuperSU application. It would prompt you to restore both kernel and recovery with the original stock ones and then reboot. *But* if Samsung flags modified read only partitions as being modified, even if modified temporarily, OTA would still be denied for modified status trip. Dunno if anyone has confirmed the theory on our phone or not.
To answer your question, I think you'll have to flash the stock tar in Odin to restore your OTA capability. I would recommend you press the full un-root. You can restore the original kernel, if it was stock, at prompt. But most likely you cannot restore the original recovery if flashed manually. You'll need to flash the stock tar again to both restore read only partitions and stock recovery. If you forget to to perform full un-root, I think factory reset will be enough to clear root and remnants with a stock tar flash. (Stock tar flash should wipe internal memory but to be sure, you could wipe that too).
It's up to you, you could wait until the next OTA to flash the stock tar.
For your camera issue, it might just be enough to factory reset for now.
Have you considered Titanium Backup to backup and restore applications? A lot of rooted users use that. I'm not sure copying and restoring a disk would mesh with Android package id used to link data to original application with proper linking and ownership. I do know that Titanium Backup complies with that. If the package id gets skewed, restoring data may not work as expected. Something to check or confirm beforehand. Just a suggestion.
Sent from my SM-N910P using Tapatalk
samep said:
You could press that un-root button now but most likely you cannot take the next OTA without flashing the stock tar in Odin. Modifying some partitions will break OTA updates. Having custom recovery won't work.
I don't think it's ever been established as fact but in theory, you could root a stock phone with Chainfire's CF AutoRoot for Note 4 in Odin. Leaving as that root installer rooted, you could un-root later for OTA update within SuperSU application. It would prompt you to restore both kernel and recovery with the original stock ones and then reboot. *But* if Samsung flags modified read only partitions as being modified, even if modified temporarily, OTA would still be denied for modified status trip. Dunno if anyone has confirmed the theory on our phone or not.
To answer your question, I think you'll have to flash the stock tar in Odin to restore your OTA capability. I would recommend you press the full un-root. You can restore the original kernel, if it was stock, at prompt. But most likely you cannot restore the original recovery if flashed manually. You'll need to flash the stock tar again to both restore read only partitions and stock recovery. If you forget to to perform full un-root, I think factory reset will be enough to clear root and remnants with a stock tar flash. (Stock tar flash should wipe internal memory but to be sure, you could wipe that too).
It's up to you, you could wait until the next OTA to flash the stock tar.
For your camera issue, it might just be enough to factory reset for now.
Have you considered Titanium Backup to backup and restore applications? A lot of rooted users use that. I'm not sure copying and restoring a disk would mesh with Android package id used to link data to original application with proper linking and ownership. I do know that Titanium Backup complies with that. If the package id gets skewed, restoring data may not work as expected. Something to check or confirm beforehand. Just a suggestion.
Sent from my SM-N910P using Tapatalk
Click to expand...
Click to collapse
Thanks for the reply man!
Looking over it, it seems like a true hassle to go through finding the stock ROM for my phone and unrooting and that whole process. I think I'll stick with the root for now. I have a couple more questions if you don't mind:
1) If I kept root, could I perform a factory reset without it screwing up the root? I think there's a 'factory reset' option when I boot into TWRP. I would just like to know if it'd remove TWRP/SuperSU. I have heard a lot about Titanium Backup so I will be giving that a try before doing so!
2) Any chance you'd know if when the new OTA comes out, they will have it flashable for my N910PVPS4DPE2? I'm relatively new to all of this and I know if I flashed something not meant for my exact device; I might as well slap some cement on my new Brick Note 4. I've never seen any ROMs/Mods that say 'For N910PVPS4DPE2' specifically. Maybe I'm being overly cautious and don't have all the new lingo down. So, are there ROMs and mods for my phone that I'm just completely overlooking?
Thanks again for helpin a newbie out!
Stock tars are here:
http://forum.xda-developers.com/showpost.php?p=63868221&postcount=1
A stock ROM with system based root that isn't easily wiped or lost is here:
http://forum.xda-developers.com/showpost.php?p=63028063&postcount=1
I believe factory reset still un-roots systemless root. There was a script that you may have been prompted to install to keep root but I'm not familiar with its retention capability because I use and prefer system based root in the ROM above. You can factory reset the ROM above without losing root.
You would need root for titanium backup. I would recommend factory reset and install the beta 3 ROM. You may not like the missing voicemail app. I use the long press of 1 key in dialer for voicemail. You could just save the apk and install with apk installer by tapping its file with root browser or MyFiles and install. But extract or copy and paste with root browser from current ROM.
OTA's can be expected nearly monthly now. Tars release a bit behind the OTA.
Sent from my SM-N910P using Tapatalk

Need Help Unrooting

Here's my normal workflow when doing a clean flash. I've done this with my OnePlus One for years:
1) Install Rom with TWRP, root with SuperSU
2) Install TI Backup and restore all my apps
3) Fully unroot with SuperSU (restore stock boot, do not restore stock recovery)
I have to unroot because I use the Outlook App for work email. I've never figured out how to get around root to use Outlook. Anyway, I can't get this method to work with my new OnePlus 5T. I go through the steps and get everything reinstalled and set up the way I want, running the stock ROM. When I go to unroot, the phone gets stuck in boot with a blank screen and a greyish blue LED light. It just sits there that way for what seems like forever. I haven't left it that way for longer than about an hour, but I don't think it should take that long.
I've tried unrooting with SuperSU and it wont work. It gets stuck in boot with that LED light on. So, I started from scratch, reinstalled the ROM and everything, and rooted with Magisk. When I try to unroot with Magisk it does the same thing. It still gets stuck in boot with that light. I'm not ask familiar with Magisk and I chose the option "complete uninstall."
EDIT- I tried flashing the latest Magisk uninstaller from TWRP. The phone gets stuck in boot with the light on using this method as well.
What am I doing wrong here? How can I get rid of root after using it to install my apps with TI Backup?
In trwp go to wipe then advanced, wipe caches, system and data, do not do internal storage, then make a clean install of ur rom, make sure to always back up and I thought titanium required root anyway, so u may not be able to restore it
U may be able to just wipe caches and system and clean install ur rom and that should keep data and possible remove root, have u tired to use magisk and add app to magisk hide
Titanium does require root, but once I'm done restoring all my apps and data, I really don't use root at all anyway. I was hoping to avoid a clean install of the ROM. I'll try adding Outlook to magisk hide. Again, I'm not very familiar with Magisk, so that's a good suggestion. Thanks!
Edit- I added Outlook to the Magisk Hide list and rebooted. Outlook still says the phone is rooted and won't work. I've run into this issue in the past which is why my usual solution is to fully unroot.
I managed to get unrooted by flashing the magisk uninstaller, and rebooting to recovery all from within TWRP. Then I dirty flashed the stock ROM. Problem is, then I have to boot to download mode and reinstall TWRP from a computer using fastboot. I'm still looking for an easier way of unrooting.

Categories

Resources