Rooting A9 6.0.1 without disabling encryption? - HTC One A9

I have an unlocked, S-off US One A9. I recently updated to 1.55.617.4 and would like to re-root. I'm running TWRP 3.0.2-0. I tried a few times but /data keeps getting overwritten, presumably because I didn't disable dm-verity. Is there any way to root without disabling encryption? Alternatively, is it possible to root while unencrypted and then re-encrypt? I've been searching around but coming up dry. Thanks!
On a separate note, can I use a password to decrypt /data using TWRP?

Hi,conercase
You can flash supersu.zip by topjohnwu.
Because the version mod let /data force encrypt.
You can try it.
http://forum.xda-developers.com/htc-10/development/root-supersu-2-71-forceencrypt-verity-t3373258
I'm very thanks to topjohnwu.

reggae76 said:
Hi,conercase
You can flash supersu.zip by topjohnwu.
Because the version mod let /data force encrypt.
You can try it.
http://forum.xda-developers.com/htc-10/development/root-supersu-2-71-forceencrypt-verity-t3373258
I'm very thanks to topjohnwu.
Click to expand...
Click to collapse
Thanks for the tip, it worked like a charm.

reggae76 said:
Hi,conercase
You can flash supersu.zip by topjohnwu.
Because the version mod let /data force encrypt.
You can try it.
http://forum.xda-developers.com/htc-10/development/root-supersu-2-71-forceencrypt-verity-t3373258
I'm very thanks to topjohnwu.
Click to expand...
Click to collapse
Could I flash this file from Sd Card. Thanks you very much

Related

SuperSU needs to update binary

Just updated my Nexus 5 using the OTA thread that went through fine,
I then proceeded to update SuperSU using the following link: http://download.chainfire.eu/supersu which was the update v1.99r3.
Using TWRP I flashed this and root is working for most apps i have tested: titanium, adblock, root explorer. So root is back.
However whenever I load up SuperSU I keep getting the following message: "The SU binary needs to be updated. Continue?"
So of course I have done this and let it use TWRP to flash. Let the phone boot up and upgrade the app as it needed. However on next load up of the app it asks to do the same yet again.
I feel as though I'm forgetting something as it's been a while since I've done this. ( use to live on flashing when i had my SII)
My Nexus is Stock ROM. CF-Auto Rooted. TWRP Recovery. Nothing else is modified.
Help would be appreciated, even though I don't go into supersu all that often anyways.
Cheers all.
What if you upgrade it using the "normal" method?
If I do a normal install i get the following:
Installation failed!
Please reboot and try again.
brichardson1991 said:
If I do a normal install i get the following:
Installation failed!
Please reboot and try again.
Click to expand...
Click to collapse
That message is usually indicative of not having root in the first place. What if you flash it via TWRP then do it normally? Could TWRP be removing it with its "Fix root" option?
What about other recoveries? Do they allow root to stay?
rootSU said:
That message is usually indicative of not having root in the first place. What if you flash it via TWRP then do it normally? Could TWRP be removing it with its "Fix root" option?
What about other recoveries? Do they allow root to stay?
Click to expand...
Click to collapse
How odd like I said my apps are all receiving their root permissions...
What file would we be talking about flashing? The Temp one SuperSU makes to flash when you click install via TWPR?
I don't have any other recoveries on my phone, so I wouldn't know about that last option.
brichardson1991 said:
How odd like I said my apps are all receiving their root permissions...
Click to expand...
Click to collapse
Are they though? SuperSU grants permissions but if the binary is not present, its irrelevant. Can you actually do root things with the root apps that have the permissions?
Have you tried other binary download?
brichardson1991 said:
What file would we be talking about flashing? The Temp one SuperSU makes to flash when you click install via TWPR?
Click to expand...
Click to collapse
In SuperSU, do the TWRP flash install of the binary and reboot, then try the "normal" install immediately after
brichardson1991 said:
I don't have any other recoveries on my phone, so I wouldn't know about that last option.
Click to expand...
Click to collapse
Theres a link in my signature to Philz recovery. In the settings is a root option, so the recovery itself can root without flashing any zips. Maybe try that if downloading an older flashable zip or the above hasnt worked.
rootSU said:
Are they though? SuperSU grants permissions but if the binary is not present, its irrelevant. Can you actually do root things with the root apps that have the permissions?
Click to expand...
Click to collapse
It does seem that way Titanium has backed up an app just now, adblock has updated and Nova is hiding the time on the first screen.
rootSU said:
Have you tried other binary download?
Click to expand...
Click to collapse
No, I shall give a older one a try.. Tried 1.97 as well and to no luck.....
rootSU said:
In SuperSU, do the TWRP flash install of the binary and reboot, then try the "normal" install immediately after
Click to expand...
Click to collapse
This failed to do anything just got the install failed again.
rootSU said:
Theres a link in my signature to Philz recovery. In the settings is a root option, so the recovery itself can root without flashing any zips. Maybe try that if downloading an older flashable zip or the above hasnt worked.
Click to expand...
Click to collapse
I assume this would override TWRP recovery?
brichardson1991 said:
I assume this would override TWRP recovery?
Click to expand...
Click to collapse
Yes it would. You can always flash back to twrp afterwards
rootSU said:
Yes it would. You can always flash back to twrp afterwards
Click to expand...
Click to collapse
Well considering that worked and I now can get into SuperSU I think I will stick with Philz. Even if I paid for the TWRP app
brichardson1991 said:
Well considering that worked and I now can get into SuperSU I think I will stick with Philz. Even if I paid for the TWRP app
Click to expand...
Click to collapse
Good news. The latest version of Philz, s it is CWM based - uses the latest Cyanogen sources to build. I update the CM sources everytime I build Philz so hopefully there should be fewer issues when new stuff comes out.

Dm-verity verification failure HELP

I'm hoping someone can help. i have looked in the forums but can't get an solid advice, recently got my galaxy s7 rooted it using cf auto root, i then downloaded latest firmware update for my device from sammobile, used odin to install but it failed and i can't even factory reset my phone as it says Dm-verity verification failure. any help would be great
follow the twrp steps and you will be fine
Studio1b said:
follow the twrp steps and you will be fine
Click to expand...
Click to collapse
Can you elaborate as I'm new to samsung modding been using nexus for a long time
did you follow : http://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770
If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
Studio1b said:
did you follow : http://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770
If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
Click to expand...
Click to collapse
So your saying i can disable no verity and will be able to install ota via odin? I never used this guide ill check it out
tonyafc said:
So your saying i can disable no verity and will be able to install ota via odin? I never used this guide ill check it out
Click to expand...
Click to collapse
If you do the steps you will be able to restore to stock with kies or smartwatch or odin
or flash a rom once u reboot back to twrp
Studio1b said:
If you do the steps you will be able to restore to stock with kies or smartwatch or odin
or flash a rom once u reboot back to twrp
Click to expand...
Click to collapse
Should i flash the Dm-verity disabler? And I'm already on the stock do you mean latest firmware/ota?
1st off why would u want to do that.
this is what you need to do : CF-AUTO / TWRP / dm-verity / flash custom rom.
If you want a stock rom with root then you need to do everything but flash a custom rom
any time a ota update is forced you will be unrooted, your best best is to do what what i just said
Studio1b said:
any time a ota update is forced you will be unrooted, your best best is to do what what i just said
Click to expand...
Click to collapse
false if using latest CFAR/superSU version
sanriver12 said:
false if using latest CFAR/superSU version
Click to expand...
Click to collapse
So can i get twrp and receive ota on my device or use odin for ota?
tonyafc said:
So can i get twrp and receive ota on my device or use odin for ota?
Click to expand...
Click to collapse
OTA updates will be blocked
https://plus.google.com/+Chainfire/posts/XMFgencRR11
sanriver12 said:
OTA updates will be blocked
https://plus.google.com/+Chainfire/posts/XMFgencRR11
Click to expand...
Click to collapse
So does this mean i cant install latest firmware from sammobile using odin?
Will this void warranty or trip knox guys?
121man said:
Will this void warranty or trip knox guys?
Click to expand...
Click to collapse
Hi
Yes it will......
Guys I am in need of help. I did not fully understand step 10 and just skipped originally. I did notice I could not wipe anything but thought I would be fine so I just dirty flashed custom ROM assuming wipe would work afterwards and I can clean install after.
I am obviously stuck now with 0MB internal storage shown along with no access to phone since it says upon boot that verification has failed and that I need to reset my phone.
Now, I do have important photos/datas which I do not want to lose... I did hear other guys restored their nandroid backup and were fine.
My question is, is there any way for me to access and back up my internal data somehow? I did hear something like flashing a stock firmware via Odin without the cache inside. Could someone confirm that this would work please? Would really appreciate a response. Thanks guys.
EDIT: I did try this:
If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
But TWRP would not allow me to flash because it said it could not mount storage.

[Working] Removing Encryption In Twrp Recovery

Hello Guys,
We have Only 1 Twrp Recovery. And u guys Might be Pissed that it has Encryption. But the Encryption Problem Is Not in the Twrp, it is due to ROM.
Guide to Remove Encryption
1. Boot to Twrp Recovery
2. Do a Factory Reset, Internal Storage Wipe
3. Reboot to Recovery Again
4. Hurray We have Removed the Encryption
F.A.Q'S
1. This Method Removes All Ur Files Which are there in Your Internal Storage.
2. I wont be responsible For the Bricks u Do For Your Device
Do Give a Thanks If U Like My Work
Reserved
ChalapathiRevanth said:
Reserved
Click to expand...
Click to collapse
pls can you tell me what this settings look like after decryption
Nothing Related to Settings
SkaboXD said:
pls can you tell me what this settings look like after decryption
Click to expand...
Click to collapse
That's a Twrp Decryption which we find in Almost All Mtk Devices Running MM, Nougat, Oreo.
Don't Worry, nothing is related to Ur settings/security
ChalapathiRevanth said:
That's a Twrp Decryption which we find in Almost All Mtk Devices Running MM, Nougat, Oreo.
Don't Worry, nothing is related to Ur settings/security
Click to expand...
Click to collapse
no,no,no i know that, i just want to know did encryption setting changed to decrypted.
What do we get with this method?
I would like to see if we can remove the system ones, and gain some performance on that.
Sent from my TA-1032 using Tapatalk
Did not Get you!
SkaboXD said:
no,no,no i know that, i just want to know did encryption setting changed to decrypted.
Click to expand...
Click to collapse
PM Me
Nothing Related To Performance!
Nikola Jovanovic said:
What do we get with this method?
I would like to see if we can remove the system ones, and gain some performance on that.
Sent from my TA-1032 using Tapatalk
Click to expand...
Click to collapse
This Is nothing related to performance, it just removes encryption in Twrp Recovery. So we can see the Internal Storage in Twrp Recovery.
If u Want to Get Performance, Remove the ****ty Apps, which are present with System App Remover!
I can confirm that this method works, i didn't know that it was that simple.
Quick question, fellas;
Mine tarp is ported from P9. Is this is the only one recovery around for our device?
What about full tarp backup and format /system and /data? Is there any chance for brick? I've rooted with Magical, but because of the encryption (I cannot see internal memory and /data) I doesn't flash any modules. Thanks for the future info!
MoHuToP said:
Quick question, fellas;
Mine tarp is ported from P9. Is this is the only one recovery around for our device?
What about full tarp backup and format /system and /data? Is there any chance for brick? I've rooted with Magical, but because of the encryption (I cannot see internal memory and /data) I doesn't flash any modules. Thanks for the future info!
Click to expand...
Click to collapse
yeah, that is only recovery that works, you can brick device if you wipe /system. You should wipe /system only when you are doing full wipe (flashing new ROM). You can wipe /data but it will remove existing non-system apps. I never did twrp backup so you can try.
Does the twrp encryption removal survive ota updates and oreo beta update?
Device Specific Comments
MoHuToP said:
Quick question, fellas;
Mine tarp is ported from P9. Is this is the only one recovery around for our device?
What about full tarp backup and format /system and /data? Is there any chance for brick? I've rooted with Magical, but because of the encryption (I cannot see internal memory and /data) I doesn't flash any modules. Thanks for the future info!
Click to expand...
Click to collapse
However Only Device Specific Comments, SkaboXD
I hope This Guy Solved Your Problem
redweaver said:
Does the twrp encryption removal survive ota updates and oreo beta update?
Click to expand...
Click to collapse
I don't think so because every .nb0 file that i flashed have encryption enabled. But after flashing new rom, you can immediately factory reset when you boot to rom to prevent losing data.
---------- Post added at 08:27 PM ---------- Previous post was at 08:25 PM ----------
@MoHuToP
ok, i tried full twrp backup, but it stops on system image backup, it stoped around 60%. Backup have 11.5 GB (really huge isn't it).
DELETED
Ok, this method worked on Nougat with SuperSU because SuperSU patched fstab and file contexts successfully. It doesn't work on Oreo because Oreo now have plat_file_contexts and non_plat_file contexts. SuperSU needs to be updated to patch these files succesufully or we need to manually patch it so we can remove encryption.
Just to update this guide: This works only on Nougat. You need to have installed twrp and unlocked bootloader. Magisk doesn't work with this method because it doesn't patch fstab and file contents file so you need to uninstall it by going to Magisk app and clicking uninstall. After that go to TWRP, flash unSu > stock boot.img. You can flash Magisk after that with removed encryption.
Steps:
1. Flash SuperSU 2.79 stable with TWRP
2. Reboot your phone to system.
3. Reboot to TWRP again.
4. Choose Wipe > Swipe to Factory reset
5. Choose Wipe > Advanced > Internal Storage
Now you wiped Data, Cache, Dalvik cache and Internal Storage.
Your phone will have removed encryption now.
If you want Magisk, just flash unSu script > stock boot.img > Magisk
If you update your phone, it will encrypt your phone again so you need to repeat steps again.
I have redmi note 5 mec7s and i instal global stable 9.5.13.0
now phone booting to mesage "encrypting don't reboot your phone" and goes to mi recovery and bootloop
if a make wipe then again booting to mesage "encrypting don't reboot your phone" and goes to mi recovery
how that i remove encrypting from adb or fastboot ?
xabaras666 said:
I have redmi note 5 mec7s and i instal global stable 9.5.13.0
now phone booting to mesage "encrypting don't reboot your phone" and goes to mi recovery and bootloop
if a make wipe then again booting to mesage "encrypting don't reboot your phone" and goes to mi recovery
how that i remove encrypting from adb or fastboot ?
Click to expand...
Click to collapse
This is only for the NOKIA 3 - if you have tried this on a different device there could be the possibility of Bricking it, let's hope not.
I suggest going to your own device forum for assistance.
I have reformatted and factory resetted many times but the issue keeps coming back after I boot into system. To clarify, my steps were to reformat inside the wipe section, boot into recovery and check to see there's no encryption, and then boot back to system to install magisk with the manager app. I have tried adding a factory reset to that process, but that won't work either. My TWRP is 3.2.1-0 and I will try to update it and see if it works. Also, sorry if I reply slow.

Confused about root

This thread is not about "How do I install twrp" etc. But maybe this can help some of us.
I got a question. If I install twrp and root, am I still able to install system updates? For example, oxygen 5.1.6 comes out. How do I install it?
Have a nice day!
Sconny said:
This thread is not about "How do I install twrp" etc. But maybe this can help some of us.
I got a question. If I install twrp and root, am I still able to install system updates? For example, oxygen 5.1.6 comes out. How do I install it?
Have a nice day!
Click to expand...
Click to collapse
Probably not if it's rooted,in terms of it updating its self. Most likely someone will upload a zip file to flash over the old version though
Sent from my [device_name] using XDA-Developers Legacy app
Download the full room zip file, install with TWRP just as you would with a custom rom. You will lose root so you would have to repeat that process. It may differ because of the a/b partitioning, but that is how it worked on op3t. As always, backup data. And also SDcard in case you can't decrypt. Also delete lock screen before flashing.
mikex8593 said:
Download the full room zip file, install with TWRP just as you would with a custom rom. You will lose root so you would have to repeat that process. It may differ because of the a/b partitioning, but that is how it worked on op3t. As always, backup data. And also SDcard in case you can't decrypt. Also delete lock screen before flashing.
Click to expand...
Click to collapse
What if I have Xposed installed? Will the update go fine with that as long as I disable Substratum overlays and am flashing the full zip and then root afterwards? Or do I have to disable Xposed in Magisk or what? (I use systemless xposed)
mikex8593 said:
Download the full room zip file, install with TWRP just as you would with a custom rom. You will lose root so you would have to repeat that process. It may differ because of the a/b partitioning, but that is how it worked on op3t. As always, backup data. And also SDcard in case you can't decrypt. Also delete lock screen before flashing.
Click to expand...
Click to collapse
Why do I have to delete lockscreen?
Sconny said:
Why do I have to delete lockscreen?
Click to expand...
Click to collapse
What he means is delete the lock screen security so a pin/pattern/face unlock/figerprints... anything other then swipe to unlock your phone because if you have them set and you install a new ROM or flash the Stock ROM then it can't decrypt your phone data or recognize your security on the new ROM.
This also goes for doing a nandroid backup of any current ROM you have installed. Delete all security before booting into TWRP and backing up your ROM.
Eric214 said:
What he means is delete the lock screen security so a pin/pattern/face unlock/figerprints... anything other then swipe to unlock your phone because if you have them set and you install a new ROM or flash the Stock ROM then it can't decrypt your phone data or recognize your security on the new ROM.
This also goes for doing a nandroid backup of any current ROM you have installed. Delete all security before booting into TWRP and backing up your ROM.
Click to expand...
Click to collapse
Oh that's something new to me. But thanks, really
No Worries! Glad to be of help.
NateDev said:
What if I have Xposed installed? Will the update go fine with that as long as I disable Substratum overlays and am flashing the full zip and then root afterwards? Or do I have to disable Xposed in Magisk or what? (I use systemless xposed)
Click to expand...
Click to collapse
Regardless, it will still wipe system. Think of it as a complete factory reset. It will reinstall the full system and data of a brand new room.

Question Full encryption on rooted (but no TWRP) device

Hello all, help me making sure I understand the vbmeta_disabler correctly.
If I flash an original stock rom patched with Magisk, but don't flash TWRP, does full disk encryption work ok?
Even if I install Magisk and have root, does full encryption work ok?
I'm assuming that you can use the system settings to activate it.
Thanks
@Phk did you find out? and?
xtam said:
@Phk did you find out? and?
Click to expand...
Click to collapse
Sorry, I did no further testing with this

Categories

Resources