Guide: flash roms without factory reset and boot.img - Honor 6X Guides, News, & Discussion

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...

Mounts both internal and external storage

It's not working on my device. Bootloop. On stock Oreo.

Dhana96 said:
It's not working on my device. Bootloop. On stock Oreo.
Click to expand...
Click to collapse
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

cyclon1978 said:
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
Click to expand...
Click to collapse
Thank you buddy. I'm going to try this now...

Related

[Q] Can't install roms on GT-i8160P

Hi folks,
Been trying for a few days to flash a rom onto my GT-i8160P with no success, every time I do, errors come up and the installation aborts.
I've got a rooted GT-i8160P unlocked to any network with jellybean on it, temporary cwm. been trying to flash [4.3.1][TeamCanjica] CyanogenMod 10.2
is there any special way or something I must do specifically.. I have tried to add the tee folder to the rom as said on a tut around here and it doesn't work for me..
Much appreciate your help!
drenan said:
Hi folks,
Been trying for a few days to flash a rom onto my GT-i8160P with no success, every time I do, errors come up and the installation aborts.
I've got a rooted GT-i8160P unlocked to any network with jellybean on it, temporary cwm. been trying to flash [4.3.1][TeamCanjica] CyanogenMod 10.2
is there any special way or something I must do specifically.. I have tried to add the tee folder to the rom as said on a tut around here and it doesn't work for me..
Much appreciate your help!
Click to expand...
Click to collapse
No one....?
I'm sure some charitable soul can help me..
Edit updater script inside zip package. Delete assert lines...
Sent from my GT-I8160
This was the last clue I needed to get CM10.2 up and running in my 8160P :victory:
Thank you so much
To install on I8160P must make changes to file system/build.prop and change ro.product.device = GT-I8160P to GT-I8160 then save and reboot.
install custom rom gt-i8160P
What changes are needed in order to install custom rom gt-gt-i8160 in I8160P. please do tutorial. thaks
You need Root and File manager (Total Commander).
1) Open File manager and go to folder SYSTEM and in the folder SYSTEM open/edit build.prop file.
2) In file build.prop you must find ro.product.device = GT-I8160P and replace GT-I8160P for GT-I8160
3) Save, reboot your phone and try install CM 10.2
No more error Installation aborted.
lpez_manu said:
What changes are needed in order to install custom rom gt-gt-i8160 in I8160P. please do tutorial. thaks
Click to expand...
Click to collapse
Let me try having some spare time back at home and I'll try to give you the details of what I needed to do for CM 10.2.
lpez_manu said:
What changes are needed in order to install custom rom gt-gt-i8160 in I8160P. please do tutorial. thaks
Click to expand...
Click to collapse
ok, let's see; following are basically the steps I followed to install custom rom for GT-I8160 into a GT-I8160P. In my case it was the [ROM][4.3.1][TeamCanjica] CyanogenMod 10.2:
1.- Get the custom ROM.
2.- Get the /system/lib/tee folder contents from your GT-I8160P JB installation (from stock rom). You may need root access, although in my case I could simply move trough the hidden directories and copy the folder to my sd card.
3.- Swap the /system/lib/tee folder, and put what you got from step 2, into the zip file of step 1, same place, same everything. You may very well dispose the original /system/lib/tee folder in the zip file.
4.- Change /system/build.prop and introduce a P in every GT-I8160 entry (from GT-I8160 to GT-I8160P).
5.- (tricky one) look for the updater script file within the custom ROM zip file, and delete the first complete entry of the assert command (you shall see some GT-I8160 there).
6.- If you dont already have CWM, get yourself one (I used this one [JB] CWM Recovery 6).
7.- Put both zip files into your sd card; get a copy also of gapps in case you're interested in.
8.- Back up all your data.
9.- Swicht off your phone and restart in recovery mode (up volume, home and power buttons pressed simultaneously).
10.- Load from the external sd card the CWM zip file.
11.- Wipe data/factory reset; wipe cache partition; and wipe dalvik cache (under advance options).
12.- Install from external sd card: a) custom CM rom; and b) gapps if you're for it.
13.- Restart.
14.- You shall be done!!!
Hope this really helps you.
Success
I was succesfull with a hint of the post #5 of Warpyzda.
Thanks a lot!!!

Stock music files

Hello folks -- I rooted/installed a custom ROM on my M8 the other day and I forgot to back-up the stock music samples files, a couple of which I actually enjoyed (there was one by Soulstice and a few more I forget). Would any of you be kind enough to post them if permissible?
Alternatively, I did back-up my stock configuration but I'm uncertain how to unpack the md5 files created by TWRP. When I rename them to zip, they become corrupted. Any thoughts?
jpbl1976 said:
Hello folks -- I rooted/installed a custom ROM on my M8 the other day and I forgot to back-up the stock music samples files, a couple of which I actually enjoyed (there was one by Soulstice and a few more I forget). Would any of you be kind enough to post them if permissible?
Alternatively, I did back-up my stock configuration but I'm uncertain how to unpack the md5 files created by TWRP. When I rename them to zip, they become corrupted. Any thoughts?
Click to expand...
Click to collapse
You need to name the .win files to zip so for example just system.zip ...also md5 aren't any files directly for system it's just for the recovery to compare if the backupped files aren't having any missing files...
Gesendet von meinem HTC One_M8 mit Tapatalk
One-M8-Master said:
You need to name the .win files to zip so for example just system.zip ...also md5 aren't any files directly for system it's just for the recovery to compare if the backupped files aren't having any missing files...
Gesendet von meinem HTC One_M8 mit Tapatalk
Click to expand...
Click to collapse
Thanks for taking the time to reply: that's actually what I did previously -- there are 3 large files and when I rename them and try to extract them, I get a message saying the operation can't be completed because they're corrupted.
Oh well. Doesn't matter. I'm certain someone will share them eventually.

Is Oppo internal storage locked or something?

For some reason whenever I try to move a file to my internal system through root explorer, it keeps failing lol.. I am only moving an 8mb BootAnimation to replace the current Oppo boot animation so I am pretty sure that I have enough space.
You might not be rooted.
Gesendet von meinem One mit Tapatalk
I also struggled over that after rooting my device.
phps it is a bug in android 4.3.
I managed to copy stuff to internal storage with "ES Datei Explorer" - ES File Explorer - I hope it helps.
Aut0mat3d said:
I also struggled over that after rooting my device.
phps it is a bug in android 4.3.
I managed to copy stuff to internal storage with "ES Datei Explorer" - ES File Explorer - I hope it helps.
Click to expand...
Click to collapse
You my friend are correct, I ended up downloading other various similar apps and it seems that it was only Root Explorer that didn't work with the Find 7a. I have managed to copy over files to my system, but now I am faced with another problem. Which is enabling custom boot animation support..

TWRP not showing .zip files.

Hello everyone,
So after flashing TWRP 3.0.2-0 and installing a custom rom, TWRP stopped showing .zip files. I've googled the issue to maybe get an idea of a workaround and some people have suggested to put the file in "0" folder or the media folder. I've also tried mounting the system partition, I'm not sure if its supposed to take effect right away or after a reboot, if its after a reboot it unmounts.
I'm on HTC M8, marshmallow, using TWRP 3.0.2-0.
Thank you.
That's a weird issue to be related to TWRP
If earlier you choosed flash image you need to revert the selection to flash zip
Sent from my HTC M8 using XDA Labs
Sorry, I do not understand. Are you referring to the way I flashed twrp? This is the command I used "fastboot flash recovery twrp-2.8.x.x-xxx.img".
I'm not sure if this is at all related, I have duplicate file structures, /Data/Media/0, everything is the same as in my internal storage.
I've created a folder to put the zip into so I can recognize it and I still cannot see the zip file in twrp. I've checked both directories. I've even tried putting the zip on my SD card, nothing, twrp just does not see the zip.
SpaceGold said:
Sorry, I do not understand. Are you referring to the way I flashed twrp? This is the command I used "fastboot flash recovery twrp-2.8.x.x-xxx.img".
I'm not sure if this is at all related, I have duplicate file structures, /Data/Media/0, everything is the same as in my internal storage.
I've created a folder to put the zip into so I can recognize it and I still cannot see the zip file in twrp. I've checked both directories. I've even tried putting the zip on my SD card, nothing, twrp just does not see the zip.
Click to expand...
Click to collapse
can you put the twrp.img in the same directory as zip files and see if you can see it in the recovery install option
Sent from my HTC M8 using XDA Labs
I'm not sure what fixed it, I made a back up and restored the phone, twrp now sees the zips. I doubt what I did fixed anything as the restore probably has 0 impact on twrp, but it works.
Thanks for the help.
SpaceGold said:
I'm not sure if this is at all related, I have duplicate file structures, /Data/Media/0, everything is the same as in my internal storage.
Click to expand...
Click to collapse
For your reference ... when you have this issue ...
Just run commands when connected to PC while OS is running
adb shell
su
restorecon -FR /data/media/0
exit
then reboot, this should fix it
ckpv5 said:
For your reference ... when you have this issue ...
Just run commands when connected to PC while OS is running
ad shell
su
restorecon -FR /data/media/0
exit
then reboot, this should fix it
Click to expand...
Click to collapse
May i ask for an explanation
THANKS IN ADVANCE
Sent from my HTC M8 using XDA Labs
ahmed.ismael said:
May i ask for an explanation
THANKS IN ADVANCE
Sent from my HTC M8 using XDA Labs
Click to expand...
Click to collapse
That's usually happens when the update from Lollipop to Marshmallow done with firmware flashing only, not the OTA.
After marshmallow firmware is flashed on top Lollipop firmware, upon reboot the system recreated the new emulated internal storage .. then we'll see we have a "0" folder in the internal storage. Internal storage is the new emulated storage but the "0" folder is the old emulated storage.
To fix it, we can manually copy all data in "0" folder to internal storage then delete the "0" folder
or use the above command to let the system do it automatically.
The extreme one is format data (not wipe) in TWRP so the data/media/0 is recreated brand new.
ckpv5 said:
That's usually happens when the update from Lollipop to Marshmallow done with firmware flashing only, not the OTA.
After marshmallow firmware is flashed on top Lollipop firmware, upon reboot the system recreated the new emulated internal storage .. then we'll see we have a "0" folder in the internal storage. Internal storage is the new emulated storage but the "0" folder is the old emulated storage.
To fix it, we can manually copy all data in "0" folder to internal storage then delete the "0" folder
or use the above command to let the system do it automatically.
The extreme one is format data (not wipe) in TWRP so the media/0 is recreated brand new.
Click to expand...
Click to collapse
As usual extremely helpful
Thank you
Sent from my HTC M8 using XDA Labs
ckpv5 said:
For your reference ... when you have this issue ...
Just run commands when connected to PC while OS is running
ad shell
su
restorecon -FR /data/media/0
exit
then reboot, this should fix it
Click to expand...
Click to collapse
Is this usable on an already bootable rom? I guess it is since you did say to reboot. Just being cautious haha.

Problem writing in /system/sbin/.magisk/mirror/system_root/system

Hello There. I rooted with magisk today. Evrrything worked fine until I tried to change something in /system folder.
I have read in the internet that u wont have access to system folder if you are on root with magisk. It says u need to modify the .mirror folder. In this ./system/media I try to change the bootanimation. zip, but I cant change or delete the stock one. I think I do not have root acess in this folder. But I can use apps like Greenify without problems. Have I done something wrong? I gave different file exporer full root access I am using:
Mi10t Lite
MIUI 12.0.8 (GLOBAL)
Android 10
Gauguin
Magisk Version is the newest: 21.4
Magisk Manager: 8.0.7
I think i found the answer...:
System partition locked to read only in Android 10
Help, I don't know what I did but after installing a custom ROM, I noticed that my system partition cannot be mounted as read/write. I tried "mount -o rw,remount /system" command on a terminal
android.stackexchange.com
Create a Magisk module to modify files in /system partition.
_mysiak_ said:
Create a Magisk module to modify files in /system partition.
Click to expand...
Click to collapse
How do I do that?
Francescohub said:
How do I do that?
Click to expand...
Click to collapse
Either create your own module from scratch following the Magisk guide, or adapt one of the existing ones.
You're trying the mount -o rw,remount as root (means: you did a "su" before the "mount")?
Maybe a "blockdev --setrw /dev/block/dm-X" helps (see which dm- is mounted as system for the X).
Greetz
Kurt
hello
also i tried to modify mixer_paths_cdp.xml in / vendor / etc, but i am not able to get myself a magisk module
You can use for example this very simple Magisk module as a template.
Create desired folder structure in the zip file, add your xml files for modification, remove the AOD overlay apk/folder and try to flash it.
Keep TWRP at hand if you mess up something so you can delete the module from recovery if necessary.
I stumbled upon this solution for RW system partition in Android 10+. Someone brave enough might give it a try. https://forum.xda-developers.com/t/script-mount-system-as-read-write-android-10.4240703/
_mysiak_ said:
I stumbled upon this solution for RW system partition in Android 10+. Someone brave enough might give it a try. https://forum.xda-developers.com/t/script-mount-system-as-read-write-android-10.4240703/
Click to expand...
Click to collapse
i can't download it
carabot said:
i can't download it
Click to expand...
Click to collapse
Works for me.. Anyway, you should provide your feedback/complaints to the author.
download ok
I hope not to do any damage

Categories

Resources