yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 Guides, News, & Discussion] Tkkg1994:
This Guide will work on S7 and S7 Edge Variants, probably also on other Samsung Phones. It doesn't matter if you have xposed and/or supersu installed

I did lately try to encrypt my device after installing my rom. So I tried to search on xda but I couldn't find anything useful until now.

After quit some time I finally managed it to get a working encryption, even with custom rom installed (which contains root and xposed). I will present the following steps here to help you folks to get an encrypted device.

Root will work as always after encryption :highfive:

Attention, TWRP can't read /data partition after this guide, that's because twrp doesn't support samsungs encryption at all

Pre requests:

- A working pc with adb installed

- Enough battery (at least 80%)

- Charger in your near field

- Working internet connection

Steps:

1. Go to SuperSU application on your device

2. Head over to the settings Tab

3. Scroll down and hit Full unroot

4. Click continue, when it asks you to install stock boot.img say NO, also NO on restoring stock recovery

5. SuperSU app should disappear

6. Make one full reboot

7. Head over to settings, lock screen and security, set a password

8. Plug in your charger and start encryption

9. Wait until your phone has fully encrypted (this can take quit some time)

10. After your device has successfully encrypted, we want to gain root access again

11. Boot into TWRP recovery

12. You now need a pc with working adb connection

13. Click adb sideload on twrp

14. Download latest super su to your PC, you can get that from here: Beta Thread

15. Open a terminal on your PC

16. Put the supersu.zip in the same direction as your terminal is opened (example: user/home)

17. Type into terminal: adb sideload *supersu_name*.zip

18. Reboot your phone and you have a working, encrypted phone with root installed!

If this guide helped you, please share it and hit thanks as well! :good:
[Samsung Galaxy S7 Guides, News, & Discussion] lost_:
:highfive:

Reverting/decrypting data would require a data wipe from TWRP, correct?
[Samsung Galaxy S7 Guides, News, & Discussion] Tkkg1994:
Exactly, with twrp or stock recovery
[Samsung Galaxy S7 Guides, News, & Discussion] smint86:
With TWRP not being abled to access /data partition, would it still be possible to make a complete nandroid? Second, what about updates of the custom ROM? Isn't the complete phone encrypted after the process, like /system and external sd as well?

Swyped via Tapatalk
[Samsung Galaxy S7 Guides, News, & Discussion] Richard_10:
what about systemless posed. would it work with the encryption, or it must be uninstalled.

I would like to try and encrypt my phone but I have systemless xposed installed and I would like to keep it. any information on that regards ?
[Samsung Galaxy S7 Guides, News, & Discussion] tefole:
Unfortunately it didnt worked for me. After i starting the encryption the phone does make a usual restart and i dont see any encryption process.

It just reboots. I am running cfw "S7 extreme debloated".

Any ideas?

btw: how safe is a rooted and encrypted phone, if you can replace any time the custom recovery?

are the encrypted partitions /data and /sdcard really safe?

Thanks...
[Samsung Galaxy S7 Guides, News, & Discussion] bruzzy:
[MENTION=5899304]Tkkg1994[/MENTION] : Hi, I tried this method while using your Superman ROM, but unfortunatly it didn't work for me. After un-root the encryption application behaved as before: It started, saying "Encrypting...", but after some minutes it just rebooted with doing anything. So the device is still not encrypted. I read somewhere else, that in order to get the encryption working, the stock boot.img needs to be flashed. But that instruction have been for a different device, I guess dealing with a standard android encryption (as far as I now, Samsung uses a different one).

I'm just wondering, what would happen when I choose 'Yes' for replacing boot.img in step 4?
[Samsung Galaxy S7 Guides, News, & Discussion] Tkkg1994:
That step 4 actually means you should restore your boot.img.

I did it exactly this way and it worked back then when I tested it. Many things have changed since then. So it may needs some adaptions

Sent from my Hydra powered SM-N930F
[Samsung Galaxy S7 Guides, News, & Discussion] bruzzy:
OK, I tried the other option as well (i. e. saying 'yes' on the question about testoring the boot.img). What about the kernel, do you know which one you used at that time? I'm currently on the Superstock Kernel. So curious, whether this might have any effect as well...
[Samsung Galaxy S7 Guides, News, & Discussion] bruzzy:
[MENTION=5899304]Tkkg1994[/MENTION]: Sorry for pushing, but do you remember, which kernel you've used? And can you also tell me, what exactly is the difference between the Stock and the Superstock kernel in your Superman ROM? Thanks!
[Samsung Galaxy S7 Guides, News, & Discussion] Tkkg1994:
Back then it was stock.

Stock is signed properly by samsung and can be used with trusted UI on while custom kernels have to disable real time kernel protection to even boot the phone
[Samsung Galaxy S7 Guides, News, & Discussion] gnowak84:
I managed to encrypt by choosing full unroot in supersu app (say no to image restore questions).

Sadly, with a bootloader open, encryption will be as good as a password used. It's only entered once upon boot if you use fingerprints.

After encrypting root can be installed by flashing the zip again from sdcard or adb sideload.
[Samsung Galaxy S7 Guides, News, & Discussion] hav0c:
Does not work for me. After I sideload SuperSU the phone does boot but my password is not recognised anymore.
[Samsung Galaxy S7 Guides, News, & Discussion] gnowak84:
Hi hav0c, Which version did you upload? I used this: CF-Auto-Root-herolte-heroltexx-smg930f.zip.
[Samsung Galaxy S7 Guides, News, & Discussion] bla166:
Hi,

Does anyone have experience encrypting s7 nougat superstock rom? Wondering if it is the same. Because nougat has file-based encryption.
[Samsung Galaxy S7 Guides, News, & Discussion] hav0c:
I have used https://download.chainfire.eu/supersu
[Samsung Galaxy S7 Guides, News, & Discussion] FallenArchangel7:
So this doesn't work if we are using a non-stock kernel?
[Samsung Galaxy S7 Guides, News, & Discussion] Justwan:
Hi Tkkg1994,

Wanted to know if you have any tip on the encrypt? Your work is really great and thanks for that but due to work i need to get the phone encrypt.

So wanted to know if you can help out as i dont want to go on stock firmware

Thank you
[Samsung Galaxy S7 Guides, News, & Discussion] Zoltair Wright:
I tried following the guide using SuperStock 2.6, but after encryption finishes I get "Verification failed"
[Samsung Galaxy S7 Guides, News, & Discussion] routerip:
I have the same fault, any idea´s to fix same.
[Samsung Galaxy S7 Guides, News, & Discussion] Spyritus:
I got the same issue (using stock kernel). I believe it is not possible anymore. Or I just don't know how to do :)
[Samsung Galaxy S7 Guides, News, & Discussion] Letitflow:
# 4

same here
[Samsung Galaxy S7 Guides, News, & Discussion] Justwan:
It wont work, i have try many times bu Chainfire has confirm that it's not workable, for now if i can say

https://www.xda-developers.com/xda-...tion-and-root-on-the-sgs7-variants-on-nougat/
[Samsung Galaxy S7 Guides, News, & Discussion] fyarik:
this method with Samsung S8

Hi every!

Hi everyone. I tried this method with Samsung galaxy S8. It works. I did exactly all steps. And after i had device with Android 7, encrypted, with root, pattern on display block and long strong password for file system encryption. But!!!!!! There was some problem that made my phone useless - the camera did not work at all.

First, after i've done all procedures and became to celebrate my success, i noticed that camera does not work. When i tried to to start it it closed immediately with an error. I thought that i have done something wrong and made full wipe and repeated everything. After i was very surprised - camera did not work again. I've done wipe again and started everything one more time. This time i checked camera after every step. It worked till last step "17. Type into terminal: adb sideload *supersu_name*.zip". So after i returned superSu in adb sideload and rebooted the phone, it was broken. I repeated everything several times to be sure that i do everything correctly. After i tryed to find the reason of this issue. First i made full unroot - no results. Then i returned stock recovery - no results. Then i tried another camera application from play market - absolutely the same error.

After i returned the phone to full stock, get root access, and made full backup of all applications that have word "camera" in the name using TitaniumBackup, made all next steps and tried to restore the camera from backup. No results too...

Now I'm desperate.... Everything works fine. I have encryption and root and even custom recovery but everything is useless without camera.

Does anyone have ideas to make camera work????
[Samsung Galaxy S7 Guides, News, & Discussion] bingoo1:
Hi everyone i'm using s7 edge with superman rom 2.5.0 with magisk can you help me encrypt the phone ? in this guide op used supersu and i have magisk , and assuming i encrypt the phone , how can i update it ?

Thanks in advance :)
[Samsung Galaxy S7 Guides, News, & Discussion] Zoltair Wright:
After many tests I can confirm that on Nougat, you can have root or encryption but not both

I ended up going back to Marshmallow and that's working great, I'm encrypted and running Magisk

I don't really need Nougat features and xposed working is a big plus
[Samsung Galaxy S7 Guides, News, & Discussion] Gremlin75:
Although I'm using a HTD Desire Eye (instead of the Samsung), your guide worked! Was able to load Viper ROM, encrypt, and have full functionality afterwards. Thanks for helping out!!
[Samsung Galaxy S7 Guides, News, & Discussion] chrswn:
Hi Zoltair, how exactly did you go about installing and encrypting the MM Rom with Magisk (I suppose you're on SuperMan Rom)?

Did you follow Tkkg1994's steps but instead of supersu just flashed Magisk after encryption?

Thanks

Chris
[Samsung Galaxy S7 Guides, News, & Discussion] Zoltair Wright:
it was a pain, so much so that I took detailed notes in case I had to do it again. I used Heimdall but Odin works too. the process below will wipe data so backup. also, some of the steps were probably unnecessary but it worked for me

go into download and with the stock images: "heimdall flash --BOOT boot.img --RECOVERY recovery.img --SYSTEM system.img --no-reboot"

let it boot to system, get wizard, seems back to stock

back to download mode, use heimdall to flash twrp recovery, boot direct to twrp (no system)

in twrp it asked me if I wanted to mount system r/w, I hit button for read-only

I wiped /data just to be sure, then realized I wanted to try using the 'disable dm verity and encryption optional" zip, so I rebooted to twrp again

this time, no option to set r/w. regardless went in and flashed 'disable dm verity' zip ONLY reboot to system.

boots fine, wizard passed, attempt encryption phone encrypts! yay!

boot to system to make sure it works ok, then...

...back to twrp. now I flash systemless dev base 1.7 and magisk 12 reboot to system, seems OK.

go to install new magisk manager apk but SD card not found

reboot again to system, sd card now appears in file manager.

install magisk mgr 4.3.3 and root is confirmed working. bloatware gone too at this point I do a little victory dance
[Samsung Galaxy S7 Guides, News, & Discussion] samuk190:
there's no way to encript in nougat :( ?
[Samsung Galaxy S7 Guides, News, & Discussion] AnyChris:
How to in actual time 2018? I have oreo wit superman 3.00
[Samsung Galaxy S7 Guides, News, & Discussion] lowrider82:
Hey guys, can I hit encryption from my phone settings to encrypt? I'm currently on superman rom 3.0.1 oreo with magisk root
[Android General] ThisIsRipunjay:
If You Want Android N Looks On Your Canvas Hue Running On MM 6.0.1 Then First Install

1. Xposed 3.0 Alpha From Here http://xdaforums.com/attachment.php?attachmentid=3383776&d=1435601440..

2. Then Download The Following File And Flash It Through Recovery http://dl-xda.xposed.info/framework/sdk23/arm/xposed-v85-sdk23-arm.zip ......

3. Then Wipe Dalvik And Cache.. After That Reboot.. It Will Take Some Time...

4. Install Android N-ify http://dl-xda.xposed.info/modules/tk.wasdennnoch.androidn_ify_v5_b94a95.apk ....

5. After Installing Open Xposed And Go To Modules.. Tick Android N-Ify And Simply Reboot.. That's It Guys.. Don't Forget To Hit Thanks Button...

It Will Also Work In Other Phones Running On CM13 Or Marshmallow
[T-Mobile LG G5 Questions & Answers] acathrow:
The unlock app isn't working for me so t-mobile said they'd email me an unlock code. The first rep said up to 48 hours. When I called back to check the following day I was told it was more like 2 to 14 days.

Has anyone here needed to get an unlock code from t-mo? If so how long did it take to receive it?

thanks
[T-Mobile LG G5 Questions & Answers] Dark Nightmare:
With the unlock app there's no option of using a code, unless the device meets the requirements or they override the requirements there's no other way to unlock it.
[T-Mobile LG G5 Questions & Answers] vhicke:
Prepaid $100 if postpaid 40 days and purchased phone for both. Less then 24 hours if your phone shows on there network. But the app is **** so does not matter if you meet the requirement.
[T-Mobile LG G5 Questions & Answers] sguerra923:
Hey guys, I'm debating on fully purchasing a T-mobile version of the G5 or waiting on root for the ATT variant. Has anyone purchased the Tmobile and used it on ATT network? If so, can you answer some questions?

1) Do I have to get it unlocked or just insert a ATT sim?

2) Will the visual voicemail app work using a Tmobile OS instead of the ATT?

Thanks in advance!
[T-Mobile LG G5 Questions & Answers] joshuadjohnson22:
1. You will need to unlock it

2. Visual voicemail app will work since it uses your phone number to activate.
[T-Mobile LG G5 Questions & Answers] sguerra923:
Thanks! So to confirm if I buy the phone straight out and unlock it.. I heard that I have to wait 45 days for the unlock code? Is that correct?
[T-Mobile LG G5 Questions & Answers] joshuadjohnson22:
It really depends. Some people have been able to activate it right away and some have to register it. If you are looking for a tmobile version you will have better luck buying from someone who has used it for over 40 days. If you could talk the user into calling tmobile and getting them to unlock it you will be in the best shape. Things to look out for and avoid would be if the device has not been fully paid off, if they won it at a event and if it is brand new and never activated. Also if they could provide the IMEI number and you can pull it up here and have no errors http://www.t-mobile.com/verifyIMEI.aspx then you should be able to activate (no guarantees).
[T-Mobile LG G5 Questions & Answers] sguerra923:
Joshua you da man! Thank you so much!
[Samsung Galaxy Ace 4] Kinglync:
I searched many sites but can not find any ROM plz tell me if they find any for this cell phone would appreciate it thanks! :laugh:
[Samsung Galaxy Ace 4] jnbavassi:
I'm in the same as you and apparently there is NOTHING...

Check here:

http://xdaforums.com/ace-4/help/custom-recovery-roms-sm-g313mu-t3102605
[Samsung Galaxy S7 Edge Guides, News, & Discussion] Tkkg1994:
This Guide will work on S7 and S7 Edge Variants, probably also on other Samsung Phones. It doesn't matter if you have xposed and/or supersu installed

I did lately try to encrypt my device after installing my rom. So I tried to search on xda but I couldn't find anything useful until now.

After quit some time I finally managed it to get a working encryption, even with custom rom installed (which contains root and xposed). I will present the following steps here to help you folks to get an encrypted device.

Root will work as always after encryption :highfive:

Attention, TWRP can't read /data partition after this guide, that's because twrp doesn't support samsungs encryption at all

Pre requests:

- A working pc with adb installed

- Enough battery (at least 80%)

- Charger in your near field

- Working internet connection

Steps:

1. Go to SuperSU application on your device

2. Head over to the settings Tab

3. Scroll down and hit Full unroot

4. Click continue, when it asks you to install stock boot.img say NO, also NO on restoring stock recovery

5. SuperSU app should disappear

6. Make one full reboot

7. Head over to settings, lock screen and security, set a password

8. Plug in your charger and start encryption

9. Wait until your phone has fully encrypted (this can take quit some time)

10. After your device has successfully encrypted, we want to gain root access again

11. Boot into TWRP recovery

12. You now need a pc with working adb connection

13. Click adb sideload on twrp

14. Download latest super su to your PC, you can get that from here: Beta Thread

15. Open a terminal on your PC

16. Put the supersu.zip in the same direction as your terminal is opened (example: user/home)

17. Type into terminal: adb sideload *supersu_name*.zip

18. Reboot your phone and you have a working, encrypted phone with root installed!

If this guide helped you, please share it and hit thanks as well! :good:
[Samsung Galaxy S7 Edge Guides, News, & Discussion] jesec:
[MENTION=5899304]Tkkg1994[/MENTION]

I don't think it could protect your data.

Here is a simple way to steal data from a encrypted phone with unlocked FRP.

Just add this script to ramdisk of kernel.

#!/system/bin/sh
rm -rf /data/system/lock*
rm -rf /data/system/gatekeep*

And this script will automaticlly remove any screen locks after the data partition is already unlocked by the system after boot.

You may ask:

Could I prevent unauthorized kernel from booting? (by re-enable FRP lock)

No, you can't because systemless install of SuperSU already modify the kernel and you can't boot modified kernel with FRP on.

Could I restore to stock kernel after finish this and then enable FRP?

You will lose your root.

And this way cannot prevent theft from reset your phone and then use it.

So, in a word, any tries to keep your phone safely after root are stupid.

It could only stop those low-IQ theft but it could not stop someone who really concern your data.
[Samsung Galaxy S7 Edge Guides, News, & Discussion] Tkkg1994:
Some guys need encrypted phones for their work (as some exchange server or email clients only work on encrypted devices)

I know that it is pretty much useless (since we have root access and can pretty much do anything with it)

So basically it brings you some more security but mainly gives those guys who need an encrypted phone for work a chance to have root and encryption together

Sent with my SM-G930F powered by SuperMan
[Samsung Galaxy S7 Edge Guides, News, & Discussion] remixtech:
Maybe my remark is stupid but with lollipop the user had to enter the decryption key just before loading the system... So even if the system was rooted, without the key it was impossible to recover the data...

You are saying me that now, in marshmallow Android is storing the key directly in the device ? And if one day there is a small flaw in the kernel all the data could be decrypt...

Thanks for you answer, i'am not an expert in security but i'am really interested in.
[Samsung Galaxy S7 Edge Guides, News, & Discussion] MrFr1day:
Hi,

I installed SuperMan rom without root/xposed and I can't get it to encrypt. It just restart the phone.

is there something else I need to do?
[Samsung Galaxy S7 Edge Guides, News, & Discussion] cridtohs:
Even with a locked FRP=1 I have been able to defeat it and gain access to the phone to USE, but never the data. Your script will only remove the locks once the data partition has beenunlocked, you still have not successfully recovered the data.

The key is ofc stored on the device, but it is in an encrypted state. ofc if there is a flaw in the kernel, unreported, this can be exploited to remove encryption somehow. Also you could remove the system rom chips and virtual simulate them and try to unlock thousands/millions of times defeating any format on bad password, etc. IF someone wants to access your data, they will. Just like the FBI iphones were opened. Its only a matter of money and time, no encryption is safe forever.
[Samsung Galaxy S7 Edge Guides, News, & Discussion] jesec:
Admittedly, yes.

It could only remove screen lock AFTER data partition is unlocked.

But in most situations, it could recover data because most people didn't set password as startup password.(What means data partition is already unlocked automatically before UI appear)
[Samsung Galaxy S7 Edge Guides, News, & Discussion] |mickey:
how do we make sure that we set a "start up" password then? Is it the same if you use a long pin instead of a password?
[Samsung Galaxy S7 Edge Guides, News, & Discussion] cridtohs:
in security Lock screen and security there is an option for set pin on startup.

Also as an update to this method, if you had Xposed and magisk root, or if you had supersu and suhide, they need to all be reinstalled. This is the same method as flashing a stock bootloader then re-rooting afterwards. With new TWRP though you do not need to sideload because it has password to decrypt /data and allow flashing of the ramdisk, so you dont HAVE to sideload the supersu, but I suggest following TKK's tutorial exactly for sucess
[Samsung Galaxy S7 Edge Guides, News, & Discussion] |mickey:
When you press encrypt you have to set such a password anyway so I don't see your point... You have to set a password, that is requested whenever you start your device... Is that not the same thing your describing?
[Samsung Galaxy S7 Edge Guides, News, & Discussion] unique730:
Can't get encryption to work. The process starts and after a few seconds my phone just reboots.

Tested on several ROMs and Kernels, same result.

Anybody got an idea? I'm clueless...
[Samsung Galaxy S7 Edge Guides, News, & Discussion] darkman088:
Same problem here - one more scream for HELP
[Samsung Galaxy S7 Edge Guides, News, & Discussion] Tkkg1994:
When I tested this I had similar issues due to root. You made both a full unroot and followed all steps?

Sent from my SuperMan powered SM-G930F
[Samsung Galaxy S7 Edge Guides, News, & Discussion] darkman088:
Hello and thanks for replying.

No, I didn't do a full unroot, because when I was testing this, I hadn't come across this thread :( And now I am not willing to invest that much time again, just to find out, that it's not working, once again :(

But I've tried many other strategies, which are very similar, but didn't work:

1) Disable SuperSU from the Application manager

2) Disable SuperSU from the settings of the app

3) Install busybox, boot in safe mode, connect the phone to my laptop, launche adb and enter there pkill -KILL daemonsu - this must be equivalent, as ps | grep daemonsu was not showing anything...

4) Tilting my phone in landscape mode

5) Repeating the attempt to encrypt several times after eachother

6) Many many more useless tips, which I found on the internet

Please kindly advise. Many thanks!

P. S.: HOW COME only the ROM of artas182x has encryption working PERFECTLY and I couldn't manage to encrypt my phone with no other ROM ? For example, I tried Slim ROM, which (if I'm not wrong) is not rooted and again - encryption didn't work, it hung somewhere along the process :( This is really terrible. Please excuse my total frustration :(
[Samsung Galaxy S7 Edge Guides, News, & Discussion] Tkkg1994:
Ehm what is artas182x rom? or slim rom? we don't have that on our s7 as far as I know.

This guide may needs some adaptions to work on other devices
[Samsung Galaxy S7 Edge Guides, News, & Discussion] darkman088:
It's a Marshmallow port from Galaxy S5 made by artas182x. I didn't like Slim ROM - it doesn't even have a file maanger

installed with it and when I tried encryption with it, it didn't work :(

Thank you!
[Samsung Galaxy S7 Edge Guides, News, & Discussion] modaifallah:
We need someone xposed module to emulate knox 0x0 so that we can use knox again. :(