Is it safe to flash Project Treble on rooted phone + Magisk?

Search This thread

Handsome Jack

Senior Member
Sep 26, 2013
131
10
My phone Sprint/XT1922-7_JETER_SPRINT_8.0.0 (16gb model)

I just root it and flash Disable_Dm-Verity_ForceEncrypt + Magisk
Until I saw this:

The instructions say: Flash GSI first.
Then flash Magisk.
I also don't know if Disable_Dm-Verity_ForceEncrypt would mess up?
 

Handsome Jack

Senior Member
Sep 26, 2013
131
10
either your device is Treble or not. check with this app
http://play.google.com/store/apps/details?id=com.kevintresuelo.treble

if yes you can flash any GSI
https://forum.xda-developers.com/t/gsi-10-lineageos-17-x-gsi-all-archs.4004673

you don't need encryption disabler, but sure you must factory reset device every time you switch ROM.


I already flashed Disable_Dm-Verity_ForceEncrypt + Magisk on the phone.

Do I Need to remove those before I flash GSI?
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,754
5
1,724
gitlab.com
No, how would you? It's too late. To undo modifications of Disable_Dm-Verity_ForceEncrypt you need to restore backup of vendor (sometimes nvram)
 

jwoegerbauer

Senior Member
Dec 11, 2022
434
1
95
Freestate of Bavaria, Germany

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,754
5
1,724
gitlab.com
what do you mean with safe? no, you will lose all data each time you format data (which is required step for every ROM installation).

as I said if your device is treble enabled it is possible to flash GSI. doesn't matter if encryption already has been disabled or phone was rooted with Magisk previously. Magisk lives in boot partition. if you install custom ROM it will overwrite boot + system anyway (sometimes even vendor, where encryption was patched)

GSI only overwrites system partition, it won't touch boot or vendor therefore all modifications preserved.
 

Handsome Jack

Senior Member
Sep 26, 2013
131
10
what do you mean with safe? no, you will lose all data each time you format data (which is required step for every ROM installation).

as I said if your device is treble enabled it is possible to flash GSI. doesn't matter if encryption already has been disabled or phone was rooted with Magisk previously. Magisk lives in boot partition. if you install custom ROM it will overwrite boot + system anyway (sometimes even vendor, where encryption was patched)

GSI only overwrites system partition, it won't touch boot or vendor therefore all modifications preserved.

I don't care about data. I understand that each time flash a new rom --> all data in the phone would be erased.
I am asking because the guide show flash GSI first.
Then install Magisk later.
It also doesn't mention anything about Disable_Dm-Verity_ForceEncrypt. That why I worry if Disable_Dm-Verity_ForceEncrypt would mess everything up.

phone Sprint/XT1922-7_JETER_SPRINT_8.0.0 (16gb model)
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,754
5
1,724
gitlab.com
I understand that each time flash a new rom --> all data in the phone would be erased.
not exactly. you should care about that last step yourself, it is highly recommended.

It also doesn't mention anything about Disable_Dm-Verity_ForceEncrypt. That why I worry if Disable_Dm-Verity_ForceEncrypt would mess everything up.

In this guide there are quick fastboot commands to revert back to stock. probably vendor is enough to repair encryption.
 
  • Like
Reactions: Handsome Jack

Top Liked Posts