OnePlus 5: Is MagiskSU working with unencrypted data?

dragancla

Senior Member
Feb 2, 2011
118
9
0
Bucharest
It does work. For Users who want to Decrypt Data have to Flash DM Verity Zip and Format Data.

1. Boot into TWRP Recovery and allow system modifications.
2. Swipe right and enable modifications.
3. Select your preferred Language, Tap “Never show this screen on boot again,” and Swipe allow modification.
4. Download and transfer the latest no-verity-opt-encrypt zip to your device over MTP and flash it ( https://build.nethunter.com/android-tools/no-verity-opt-encrypt/ )
(This will also allow you to use [Format Data] to completely disable your encryption if desired)

Go to “Wipe” section and tap “Format Data”, and type “yes” (If you want to mount internal storage)

Transfer Magisk Or SuperSU to the device over MTP to your Oneplus 5
Swipe to confirm the flash
Reboot System
 

snowwolf725

Senior Member
Mar 23, 2010
138
370
103
Taipei
After more than 1x times of trial and error, I've finally found out how to decrypt data on stock OOS with magisk.
Decrypt Data on stock OOS with magisk:
1. Go to “Wipe” section, tap “Format Data”, and type “yes”
2. Transfer no_verity_op5.zip to the device over MTP
3. Go to “Install” section, select no_verity_op5.zip, and swipe to confirm the flash
4. Go to “Install” section, select magisk.zip, and swipe to confirm the flash

PS. you should format data before flashing no_verity_op5.zip.

[Proof]

[How it work?]
OnePlus 5 uses FBE(File-Based Encryption) to encrypt data partition.
The latest no-verity-opt-encrypt zip ( https://build.nethunter.com/android-tools/no-verity-opt-encrypt/ ) only replace "forceencrypt" to "encryptable".
It didn't replace "fileencryption", so your data partition is still encrypted.
In order to decrypt data partition, I modified the no-verity-opt-encrypt.zip by myself.
The no_verity_op5.zip will replace "fileencryption" to "encryptable".

boot.img/ramdis/fstab.qcom
 

Attachments

Last edited:

Pho3nX

Senior Member
Jun 13, 2013
2,240
1,654
193
@snowwolf725 excellent work, my MoKee & Octo roms work great with Magisk because of you ;)

I advise to you create a topic just for the new zip "no_verity_op5.zip"!
 
Last edited:

str8str

Senior Member
Apr 1, 2013
3,786
1,034
253
Kitchener Ontario
What link?

---------- Post added at 15:50 ---------- Previous post was at 15:36 ----------

Yes for whatever reason the original posts had it the other way around. They had it flashing the no opt zip first then formatting data
 

Stupifier

Senior Member
Jun 8, 2010
1,906
680
133
Does this wipe/delete Internal storage?

Answered my own question:
"Format Data" wipes the entire internal storage......and SD card.
 
Last edited:

VoxiBe

Senior Member
Apr 24, 2017
136
20
0
no-verity-opt-encrypt was updated to no-verity-opt-encrypt-6.0.zip on November 22nd. Are you going to do the update snowwolf725 ?