Guide: flash roms without factory reset and boot.img

jhorne917

Senior Member
May 15, 2017
99
10
0
I'm so glad I ran across this.

Not good at writing guides but I'll try because it is very helpful.

With root permissions and a root files explorer go to vendor/etc find this file and on line 15 change the word force encrypt to encryptable. Save file. Reboot.

That's it you can now flash treble ROMs like you did nougat ROMs and have a working twrp. If you have any questions please ask because I know this isn't the most detailed guide

P.S. if you update the vendor partition you will have to do this again...
 

Attachments

Last edited:
  • Like
Reactions: Dhana96

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
It's not working on my device. Bootloop. On stock Oreo. :(
You can do it this way:

Save /data/hw_init (from rom, needs root) to sdcard

Make the vendor modification

Format data as f2fs in twrp

Mount data in twrp

Copy folder hw_init to /data

Reboot.



Gesendet von meinem BLN-L22 mit Tapatalk
 
  • Like
Reactions: Dhana96

Dhana96

Member
May 5, 2015
15
2
0
You can do it this way:

Save /data/hw_init (from rom, needs root) to sdcard

Make the vendor modification

Format data as f2fs in twrp

Mount data in twrp

Copy folder hw_init to /data

Reboot.



Gesendet von meinem BLN-L22 mit Tapatalk
Thank you buddy. I'm going to try this now...