What's possible to flash over an encrypted OS? - Samsung Galaxy S7 Edge Questions and Answers

Hi,
I'm trying to understand what's possible and what's not with samsung's encryption.
which types of zips it's possible to flash via TWRP and which aren't? what's the logic?
(for e.g. I know supersu is possible to flash, but dirty flashing another ROM?)

If you flash no-verity-opt-encrypt.zip i think that you can flash whatever you want, im not sure

Talentooman said:
If you flash no-verity-opt-encrypt.zip i think that you can flash whatever you want, im not sure
Click to expand...
Click to collapse
this script is for disabling encryption nothing about flashing stuff(unless you disable encryption and then it's very easy to flash stuff)

Related

[Q] Loki Roms question

Successfully installed twrp, now I am just curious: must any rom we flash be loki'd to work? not really an issue but wanna know my limits... we arent gonna be ablec o just flash canadian roms then, right? (until they are loki'd)
t2abousa said:
Successfully installed twrp, now I am just curious: must any rom we flash be loki'd to work? not really an issue but wanna know my limits... we arent gonna be ablec o just flash canadian roms then, right? (until they are loki'd)
Click to expand...
Click to collapse
This is going to become a huge problem if people don't start reading about what it is they are doing to their phones...
http://forum.xda-developers.com/showthread.php?t=2292157
"I've installed a Loki-patched recovery. Can I just install regular custom ROMs now?
Any ROMs that include a replacement boot.img must be modified to include a Loki-patched boot.lok file instead. Otherwise, your phone will fail to boot until you restore a Samsung-signed boot.img or a custom boot.lok image via your custom recovery, or flash a stock image via Odin.
"
scott14719 said:
This is going to become a huge problem if people don't start reading about what it is they are doing to their phones...
http://forum.xda-developers.com/showthread.php?t=2292157
"I've installed a Loki-patched recovery. Can I just install regular custom ROMs now?
Any ROMs that include a replacement boot.img must be modified to include a Loki-patched boot.lok file instead. Otherwise, your phone will fail to boot until you restore a Samsung-signed boot.img or a custom boot.lok image via your custom recovery, or flash a stock image via Odin.
"
Click to expand...
Click to collapse
As always a good answer from the king.

Cleanest root

Hello everyone !
I currently have a H870 european LG g6.
I want to root my phone but I don't want to install TWRP.
I want the lightest and "as stock as possible" way to root.
Is it possible? Thanks a lot for your help !
Your NEED to unlock bootloader. Then ADB to root.
Why not have twrp installed? Great for backup restoring flashing latest root list goes on.
If you want a rom which is 'stock as possible' install Fulmics rom. You do need to unlock your bootloader and use TWRP to install the rom tho'.
kurskoo40 said:
If you want a rom...
Click to expand...
Click to collapse
?? He just wants root. Nothing else. No ROM.
Aight if you don't want any rom, you still got to unlock your bootloader cause you need to install TWRP to install magisk or supersu. Which root app do you prefer?
I have the US997 and want something similar. I want to root the stock rom with Magisk and still be able to take an OTA. Ideally, unlock, flash TWRP, root, and then flash back stock recovery. This is possible correct?
Irieone said:
I have the US997 and want something similar. I want to root the stock rom with Magisk and still be able to take an OTA. Ideally, unlock, flash TWRP, root, and then flash back stock recovery. This is possible correct?
Click to expand...
Click to collapse
Yea you can do that. You can keep the stock rom if you want but you will need to flash TWRP to install magisk. Magisk comes with a .zip file which only can be installed with TWRP.
kurskoo40 said:
Yea you can do that. You can keep the stock rom if you want but you will need to flash TWRP to install magisk. Magisk comes with a .zip file which only can be installed with TWRP.
Click to expand...
Click to collapse
Is it possible at all to avoid flashing TWRP (like going with SuperSU instead of Magisk)?
sp_1st_timer said:
Is it possible at all to avoid flashing TWRP (like going with SuperSU instead of Magisk)?
Click to expand...
Click to collapse
Nope, you always need a custom recovery to flash SuperSu or Magisk.
Anyway, why you don't want the custom recovery? You can always remove it by flashing the stock one.
Killua96 said:
Nope, you always need a custom recovery to flash SuperSu or Magisk.
Anyway, why you don't want the custom recovery? You can always remove it by flashing the stock one.
Click to expand...
Click to collapse
I have read a lot of issues other users have trying to make TWRP to work. I was thinking it would be better for me if there was a way to skip TWRP when rooting my LG G6.
sp_1st_timer said:
I have read a lot of issues other users have trying to make TWRP to work. I was thinking it would be better for me if there was a way to skip TWRP when rooting my LG G6.
Click to expand...
Click to collapse
Zefie's TWRP doesn't have any major problems, official one is unable to mount system and has problems with backups, nothing to do with normal usage of the phone.
Killua96 said:
Zefie's TWRP doesn't have any major problems, official one is unable to mount system and has problems with backups, nothing to do with normal usage of the phone.
Click to expand...
Click to collapse
Thanks! I wish somebody knowledgeable would post an "Ultimate Guide to Rooting your LG G6" thread and make it a sticky. There are contradicting/incomplete instructions on when to press and release the Volume & Power button, when to disconnect the USB cable, etc.
I believe many simple questions on flashing recovery and rooting will keep coming back until a correct, complete and detailed step-by-step guide gets posted.

Do I have to flash no verity?

I really just want to root stock. I have the Boost Mobile Perry.
guitardoc64 said:
I really just want to root stock. I have the Boost Mobile Perry.
Click to expand...
Click to collapse
Yes. Install twrp, flash no verity, format data (to remove encryption) flash magisk. Some people have said if you took the last security update, you may have to patch the boot.img with magisk manager then flash the patched boot.img in fastboot or twrp to root. And will likely need the latest magisk beta (16.4).
I really don't care about encryption.
guitardoc64 said:
I really don't care about encryption.
Click to expand...
Click to collapse
You have to remove encryption.
Ah okay. Thanks for letting me know. I guess I will have to wait till I get the time on a day off to get everything set up again.
guitardoc64 said:
Ah okay. Thanks for letting me know. I guess I will have to wait till I get the time on a day off to get everything set up again.
Click to expand...
Click to collapse
Don't neglect to backup EVERYTHING in TWRP before doing ANYTHING (and store those images off-device!). Strongly suggest booting a TWRP image to perform this task vs. installing/flashing to the recovery partition, especially if interested in preserving/restoring OTA capability at a future time.
Of course I will back up everything. Honestly this is the first device I have not rooted since I started with Android. Everything else I rooted as soon as I got it.
guitardoc64 said:
Of course I will back up everything. Honestly this is the first device I have not rooted since I started with Android. Everything else I rooted as soon as I got it.
Click to expand...
Click to collapse
You can backup your data in twrp and restore after you format (after first boot). Restore only data though.
guitardoc64 said:
Of course I will back up everything. Honestly this is the first device I have not rooted since I started with Android. Everything else I rooted as soon as I got it.
Click to expand...
Click to collapse
Welcome to the 5% club which is probably generous based on the number of noobs (and veterans) who neglect to image their device before messing with core components. Of course that figure may be skewed as those that do take proper precautions rarely write posts that begin with "help!" and have no path back to the prior working state.
Also, resist the temptation to flash a custom recovery (twrp) vs booting from fastboot if you want to accept accept future OTA updates or roll back to pure stock. While restoring stock recovery is possible it certainly complicates the process. Can always revisit the decision at later time.
guitardoc64 said:
I really just want to root stock. I have the Boost Mobile Perry.
Click to expand...
Click to collapse
I just got a few of these phones and looking to root them. I installed all the latest updates. Did you to have to patch the boot.img with magisk manager then flash the patched boot.img in twrp to root?
Or I follow these steps only?
1. unlock bootloader
2. Boot into twrp located here https://forum.xda-developers.com/moto-e4/development/twrp-twrp-moto-g4-qualcomm-t3655160
3. delete the data folder
4. flash magisk
5. flash no-verify
6. done?
davejames500 said:
I just got a few of these phones and looking to root them. I installed all the latest updates. Did you to have to patch the boot.img with magisk manager then flash the patched boot.img in twrp to root?
Or I follow these steps only?
1. unlock bootloader
2. Boot into twrp located here https://forum.xda-developers.com/moto-e4/development/twrp-twrp-moto-g4-qualcomm-t3655160
3. delete the data folder
4. flash magisk
5. flash no-verify
6. done?
Click to expand...
Click to collapse
Don't have a definitive answer on the latest firmware. Suggest going through the above steps first. If no joy it's a simple matter to patch/flash boot.img .
You are wise to boot a twrp image vs flashing over stock recovery. Simplifies fallback should the need arise. Don't neglect to backup stock and store off device (or at least on a SD card).
davejames500 said:
I just got a few of these phones and looking to root them. I installed all the latest updates. Did you to have to patch the boot.img with magisk manager then flash the patched boot.img in twrp to root?
Or I follow these steps only?
1. unlock bootloader
2. Boot into twrp located here https://forum.xda-developers.com/moto-e4/development/twrp-twrp-moto-g4-qualcomm-t3655160
3. delete the data folder
4. flash magisk
5. flash no-verify
6. done?
Click to expand...
Click to collapse
For .3, format data to remove encryption.
But the rest should work. If not, you have to download the current firmware ( the version you're on) if you can find it. Extract the boot.img from it. Then use magisk manager to patch it. And use fastboot to flash the patched boot.img
i have the moto e4 mkt which no verity version do i have to flash ?
Rafasama said:
i have the moto e4 mkt which no verity version do i have to flash ?
Click to expand...
Click to collapse
You shouldn't need a no-verity any longer. Newer versions of magisk should take care of it. Just TWRP, and magisk.
madbat99 said:
You can backup your data in twrp and restore after you format (after first boot). Restore only data though.
Click to expand...
Click to collapse
Hello, I am running a Samsung Galaxy J5 Prime at the moment, a friend told me I must flash no verity.zip after flashing TWRP because of the verification and I tried making a backup if the entire rom but it failed so I need to confirm, do I factory reset my device then flash the no verity file or I flash the no verity file and then factory reset the device??
I know it's an old thread but a quick reply would be awesome

the reason to use other custom recovery other than TWRP

I see there's a lot custom recovery for this device. I myself haven't try any of those yet. If you guys don't mind, can you tell me what is the reason to use other custom recovery (other than TWRP obviously)
watatara.102 said:
I see there's a lot custom recovery for this device. I myself haven't try any of those yet. If you guys don't mind, can you tell me what is the reason to use other custom recovery (other than TWRP obviously)
Click to expand...
Click to collapse
As far as I know, I use PBRP because it has auto patch for encryption after flashing rom,

Phone unrooted after latest update, what to do?

A few days ago I updated my phone via TWRP, the process taken always worked:
1. Install firmware
2. Install decrypt.zip
3. Install Magisk
But this time, it didn't. After rebooting the phone, forced encryption started and after it was done, I found out that Magisk wasn't installed, on top of that, TWRP was replaced with the original recovery. Is there any way to re-root the phone?
Note: I have updated the phone in this manner a few times and nothing like this ever happened also, I tried reinstalling TWRP via fastboot, sins the bootloader is already unlocked, but got write errors, because of the forced encryption more than likely.
Are you sure you used the correct decrypt zip file ?
Tianhe said:
Are you sure you used the correct decrypt zip file ?
Click to expand...
Click to collapse
Yep, have used it in the past so i am sure it was the correct one.
User483901 said:
Yep, have used it in the past so i am sure it was the correct one.
Click to expand...
Click to collapse
There are different decrypt zips for Oreo & Pie. Also, there may be variations for different firmwares within the same version itself. Same goes for TWRP.
Tianhe said:
There are different decrypt zips for Oreo & Pie. Also, there may be variations for different firmwares within the same version itself. Same goes for TWRP.
Click to expand...
Click to collapse
Oh, didn't know that. But regardless, what does it matter what was used, I mean TWRP is no longer on the device so talking about which decrypt was used doesn't matter cuz it can't be used until TWRP is reinstalled which i think is impossible, cuz of the forced encryption, unless you know of a way.
User483901 said:
Oh, didn't know that. But regardless, what does it matter what was used, I mean TWRP is no longer on the device so talking about which decrypt was used doesn't matter cuz it can't be used until TWRP is reinstalled which i think is impossible, cuz of the forced encryption, unless you know of a way.
Click to expand...
Click to collapse
Encryption doesnt affect TWRP, the only drawback is that you cannot mount internal storage. However, if the TWRP version supports FDE natively then even that is possible. So encrypted devices can have TWRP recovery, you just need unlocked BL etc.
XDA
How to flash TWRP recovery in max Pro M1 without PC please help
@secreattecheme said:
How to flash TWRP recovery in max Pro M1 without PC please help
Click to expand...
Click to collapse
Is your phone bootloader unlocked?
I have never heard someone losing twrp by updating firmware. Perhaps you might have updated the rom which contained the stock recovery and hence replaced twrp. You can flash twrp again using fastboot. Remember that in order to remove encryption (since your phone has already encrypted the data) you'll have to format data from twrp and you'll lose all your data, even internal storage and twrp backups.
About decrypt.zip, there is a sequence of flashing it. It didn't always work for me though.
farhanshaikh671 said:
I have never heard someone losing twrp by updating firmware. Perhaps you might have updated the rom which contained the stock recovery and hence replaced twrp. You can flash twrp again using fastboot. Remember that in order to remove encryption (since your phone has already encrypted the data) you'll have to format data from twrp and you'll lose all your data, even internal storage and twrp backups.
About decrypt.zip, there is a sequence of flashing it. It didn't always work for me though.
Click to expand...
Click to collapse
No, I updated it by going to the Asus website and downloading the firmware update, have done the same with the Pie update and the one before it, edited the image file, so it can be flashed using TWRP and then did the steps in the OP.
Also, as said before i can't flash TWRP sins i get write errors in fastboot.

Categories

Resources