[Tools, Tips & Tutorials] Installing & Updating Weekly China Dev ROM - Keep Root, Gapps, TWRP
I had encountered many problems while flashing the latest weekly ROMS and will like to share what worked for me.
Right now, there is no Global Developer ROM for Redmi 3, thus we will have to survive with China Developer ROM (which is better).
What is the difference between Global Developer ROM and China Developer ROM?
The difference is the China Developer ROM has no GApps (but we can flash it easily), but you get the quickest Weekly Updates (every Friday, around 0200 GMT), and it also comes in English (only English, Chinese Simplified, Chinese Traditional available). The China Developer ROM also includes many Chinese bloatware which you can freeze using ROM Toolbox Lite or others.
Will I be able to get OTA after rooting and having TWRP Recovery?
No, you will be able to download and your phone will try to install it.... unsuccessfully and will request for you to download the full ROM.
After updating is root still available?
No, you will have to re-root.
I thought the China Developer ROM have a root option out of the box?
Yes, there is a root option under the Security -> Permissions, but it is a limited root. Adaway will not work. You can't freeze some system apps as well. It is a useless root.
STEP 1 - Install China Developer ROM
a. You need to be on China Developer ROM first. If you are on Global Stable ROM then you need to install China ROM and then you can install China Developer ROM.
b. Google "redmi 3 china developer rom", and choose the first link.
Download the China Stable ROM. Install it using Updater app in your Redmi. Press the 3 dots on the top right to choose the file you downloaded.
c. After installing that, go back download the latest Beta ROM (updated weekly) and install it.
d. Now you will be in China Developer ROM.
STEP 2 - Unlock Bootloader
a. Go to the MIUI Unlock site.
b. Login using facebook (easier)
c. You will be asked for your phone number which Xiaomi will send a SMS with a code for verification.
d. You will be asked for a reason to unlock bootloader. Just type something like "Phone bricked and stuck in bootloop."
e. After a few days (it took 2 days in my case), Xiaomi will send you a SMS letting you know that you have been approved.
f. Install MiFlash Unlock
g. Login to your Mi account on your phone. (Mi Account app)
h. Go into Fastboot mode. (Power off, then hold Volume Down + Power till you enter Fastboot mode).
i. Connect phone to PC. Open MiFlash Unlock, login, and press unlock.
j. After 10 seconds, your bootloader is unlocked.
STEP 3 - Install TWRP (Cofface Edition)
a. You can install the official TWRP but it will require some editing of some files. There is a modded TWRP which has made it easier without any editing. Search for "REDMI 3 TWRP Cofface" on the MIUI forum
b. It comes with a *.bat file which means once you open it, the script will install and reboot the recovery automatically.
c. Boot into Fastboot mode, connect to PC, and click the *.bat file. After it works its magic you will be rebooted into TWRP, in Chinese.
d. Swipe right (warning that you will have the power to edit system files).
e. To change language, 3rd button down, right row.
f. When you wish to exit, swipe the big button on the bottom to disable recovery going back to stock, thus keeping TWRP.
STEP 4 - Install Gapps
a. There's two methods. Flashing Open GApps in TWRP or installing an app called Google Installer (download from MIUI forum) which will download the required files and install it. Installing with the app, I encountered many Play Store error (like unable to connect to Play Store). I recommend flashing the first method.
b. Download from GAPPS official siteChoose Platform: ARM64, Android: 5.1. The Pico variant will work fine.
c. Power off. Hold Volume Up + Power Button. You will get into a menu with Chinese words. Press the button that has the word "recovery".
d. Flash Gapps, and remember to Wipe Cache afterwards.
e. Restart and you will have Play Store etc. on your phone.
STEP 5 - Root (with SuperSU)
a. Download the zip file from the official Chainfire site.
b. Boot into TWRP
c. Flash SuperSU, Wipe cache, Reboot
d. Rooted
STEP 6 - Updating ROM Weekly
a. Download the latest beta ROM. You need the full ROM (which is typically 900MB and above).
b. Go to TWRP, flash the ROM, wipe cache, flash Gapps (or you won't be able to connect to Play Store), wipe cache, flash SuperSU (because flashing the ROM removes root), wipe cache. Reboot.
Related
Taken in parts from information provided by Gluk41 on the russian 4pda forum, here is a simple guide how to install the latest Chinese Marshmallow (beta) on your Honor 4c / GPlay mini:
Be aware that:
all userdata will be erased, TWRP recovery, gapps and root have to be redone
system partition is almost full, pico opengapps barely fit (better to remove some apps)
this is a developer beta version for the chinese market (but has all languages included)
Downloads & Installation
Flash TWRP from here and backup whatever you need
Download the complete 6.4.16 ROM here and copy the dload folder to SD card
Flash the region information for UL00 umicom / cn from TWRP
Reboot and all 3 buttons pressed until the installation starts
--
Update: For your convenience I put all 3 files in the Mega Folder
--
The 3 button method uses its own built-in recovery and can be used with TWRP installed! All 3 buttons might have to be pressed for quite some time (20sec or even longer) until it starts. The ROM installs fine with the correct region information, otherwise it will fail around 5%.
TWRP & root
TWRP will be replaced by the standard recovery and needs to be re-flashed. For Root follow the MM Root thread by inshaalmirza. I had to flash the current SuperSU 2.7.1 beta twice until it worked.
The pre-installed app 'Phone Manager' seems to block SuperSU from working correctly. You might not see the root request if you start an app that requires root. A work-around is, to manually start SuperSU before or after starting the app that requires root. The, request eventually will pop up after a few seconds. Either uninstall the Phone Manager or configure it not to block SuperSU.
Google Apps
This ROM comes without Google Apps and a lot of chinese apps pre-installed. The system partition is almost full. Therefore it is recommended to remove some of the chinese apps before flashing Gapps. Use the openGapps arm64 6.0 pico version, others will not fit unless you remove a lot of the pre-installed apps. Flash the Gapps via TWRP, reboot and let the phone settle for a few minutes. After unlocking, you will get a black screen. Reboot in TWRP and wipe all user data. After the next reboot, setup wizard should start and everything should be fine.
Enjoy but be aware, it is just a developer beta version.
In China the latest update is 6.2.1,not 6.4.16. I wonder where is 6.4.16 from.Sorry for my bad English.
来自搭载Android 2.3 GingerBread的华为Y220-T10
how to go back from china marshmallow firmare to india firmware marshmallow.
Do I need to be bootloader unlocked before installing this ROM?
Inviato dal mio GT-N8000 utilizzando Tapatalk
Yes Bootloader should be unlock. But battery is poor
help
i cacant download thats rom,do u have another link?
JobSup said:
Taken in parts from information provided by Gluk41 on the russian 4pda forum, here is a simple guide how to install the latest Chinese Marshmallow (beta) on your Honor 4c / GPlay mini:
Be aware that:
all userdata will be erased, TWRP recovery, gapps and root have to be redone
system partition is almost full, pico opengapps barely fit (better to remove some apps)
this is a developer beta version for the chinese market (but has all languages included)
Downloads & Installation
Flash TWRP from here and backup whatever you need
Download the complete 6.4.16 ROM here and copy the dload folder to SD card
Flash the region information for UL00 umicom / cn from TWRP
Reboot and all 3 buttons pressed until the installation starts
--
Update: For your convenience I put all 3 files in the Mega Folder
--
The 3 button method uses its own built-in recovery and can be used with TWRP installed! All 3 buttons might have to be pressed for quite some time (20sec or even longer) until it starts. The ROM installs fine with the correct region information, otherwise it will fail around 5%.
TWRP & root
TWRP will be replaced by the standard recovery and needs to be re-flashed. For Root follow the MM Root thread by inshaalmirza. I had to flash the current SuperSU 2.7.1 beta twice until it worked.
The pre-installed app 'Phone Manager' seems to block SuperSU from working correctly. You might not see the root request if you start an app that requires root. A work-around is, to manually start SuperSU before or after starting the app that requires root. The, request eventually will pop up after a few seconds. Either uninstall the Phone Manager or configure it not to block SuperSU.
Google Apps
This ROM comes without Google Apps and a lot of chinese apps pre-installed. The system partition is almost full. Therefore it is recommended to remove some of the chinese apps before flashing Gapps. Use the openGapps arm64 6.0 pico version, others will not fit unless you remove a lot of the pre-installed apps. Flash the Gapps via TWRP, reboot and let the phone settle for a few minutes. After unlocking, you will get a black screen. Reboot in TWRP and wipe all user data. After the next reboot, setup wizard should start and everything should be fine.
Enjoy but be aware, it is just a developer beta version.
Click to expand...
Click to collapse
Great guide ..
Sent from my KIW-L22 using Tapatalk
Thanks
jkccl9 said:
Thanks
Click to expand...
Click to collapse
Ohh
Sent from my KIW-L22 using Tapatalk
gopinaidu77 said:
Ohh
Click to expand...
Click to collapse
Hi,
I want to go from 4.4.2 stock unrooted device to the official CM12.1 ROM. However, I am not sure what I need to do/have and the order in which I should proceed in order to make the process safe and optimal. I think that if someone more knowledgeable writes a simple guide here on in a separate thread on this topic it will be immensely helpful to the community.
Thanks in advance!
You only have to follow three guides:
1. Root your device
2. Install TWRP
3. Flash CM
Download-
1. Kingroot android app
2. Twrp manager app
3. Cm12.1
All you need to is-
1. Root your phone using kingroot app.
2. After rooting install twrp recovery by twrp manager app.
3. Then boot your phone into recovery mode and click on "install" then choose cm12.1
You don't need a pc for this... GOOD LUCK
Download-
1. Kingroot android app
2. Flashify (from the play store)
3. Twrp manager app
4. Cm12.1
5. Open Gapps (ones you prefer, I use mini)
All you need to is-
1. Root your phone using kingroot app.
2. Install Flashify & make a backup of stock kernel & recovery.
3. Install twrp recovery. Boot into TWRP recovery using power + volume down keys (while phone is off). THEN USE IT TO MAKE COMPLETE COSTUME BACKUP! Check every single partition to make a backup of (you may consider for the size reasons skipping the data partition, that is one containing apps you installed). Transfer this backup to a PC or other safe storage & take a good care of it because when ever you screw up things this one will allowe you to get back to stock. Also do the same with Flashify Kernel & stock recovery backups.
4. Boot into TWRP recovery using power + volume down keys (while phone is off). If not already there. Do the wipe! Install CyanogenMod 12.1 (I strongly recommend last official build) & after that install Gapps.
You are done with installing.
Lett it boot for a first time (which takes some time), do a initial required setup & after that go to options about the phone & tap on revision number until you enable developer options, then go into developer options & enable root access (to regain it) for apps & ADB.
& there you go. I leave future installing & adjusting what ever you want to your preferred choice.
How to flash official CM 12.1
1. Download ODIN v3.07 or higher.
2. Download TWRP Recovery (Tar.md5)
3. Download Auto root file for S3 Neo (Tar.md5)
4. Download Official CM 12.1.
6. PUT cm12.1 zip file to your internal or external memory.
5. Root from ODIN.
6. Flash Recovery for ODIN.
7. Get into recovery by pressing vol up+lock button
8. Clear data, install Zip file.
9. Restart your device.
10. Done :good:
Download Links:
1. Odin download Link: http://forum.xda-developers.com/attachment.php?attachmentid=1168421
2. Auto Root file download link: https://autoroot.chainfire.eu/
3. Recovery file (TWRP) download link: https://www.androidfilehost.com/?fid=95916177934551323
4. CM12.1 download link: https://download.cyanogenmod.org/?device=s3ve3g
Installing Stock Oreo 8.1.0 on Nexus 6P with Root
This is a quick guide on how to install and root stock Oreo 8.1.0 on a Nexus 6P.
The main problem I came across was trying to find a modified bootloader for Oreo 8.1.0, so instead I replaced the stock kernel with ElementalX-N6P-6.01 kernel. This alleviated the need for a modified bootloader. The reason this is required (or a modified bootloader) is to prevent the stock rom from replacing the custom recovery with the stock recovery on every boot. In addition, there is a need to remove the forced encryption of the data partition that is used in MM, Nougat and Oreo. Installing ElementalX kernel resolved both of these issues plus several other benefits including colour calibration plus plenty more.
This is not a beginner’s guide so I will assume you have the correct drivers and SDK tools installed on your PC (or Mac). Perform the following:
1. Enable USB Debugging (Developer Options)
2. Allow OEM Unlock (Developer Options)
3. Boot into download mode and unlock the bootloader with fastboot oem unlock
Downloads
1. Download the official stock firmware, currently “8.1.0 (OPM5.171019.014, Jan 2018, Softbank)” from here https://developers.google.com/android/images
2. Download “twrp-3.2.0-0-angler-4core.img” from https://androidfilehost.com/?fid=745849072291692306
3. Download “ElementalX-N6P-6.01.zip” from https://elementalx.org/devices/nexus-6p/
4. Download Magisk (Latest version) from https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Method
Have your phone switched on.
1. Within the downloaded stock firmware file there is a “flash-all.bat” file. Run this batch file. The phone will reboot into bootloader mode and flash the stock image.
2. When finished reboot the phone and finish the setup. No need to set up too much at this point as it will all be erased again shortly. Now you’re on stock rom 8.1.0. Again,ensure the following:
Enable USB Debugging (Developer Options)
Allow OEM Unlock (Developer Options)
At the moment the data partition is encrypted (default with Oreo, Nougat and MM) and this is not good for TWRP or rooting, so this needs to be changed.
5. Boot the phone into download mode, connect to your PC and flash TWRP
fastboot flash recovery twrp-3.2.0-0-angler-4core.img
6. Boot your phone into recovery. TWRP will now load but will ask for a password because the data partition is encrypted. Press “Cancel” in TWRP.
7. Slide the bar to allow modification to the system partition when asked by TWRP.
8. To decrypt the data partition, go to Wipe > Format Data and enter “Yes” in the provided field. It should not take more than a few seconds and then reboot into recovery again. This time it will not ask for a password and you should have access to the storage area of the phone from your PC.
9. Remain in TWRP and copy “ElementalX-N6P-6.01.zip” from your PC to the phone and install it.
10. While still in TWRP, install Magisk.
11. Wipe Cache/Dalvik cache and the reboot into the system.
Extras
• Check the colour calibration within ElementalX
• Viper4Android can be installed via Magisk downloads. Use the version for Magisk 15. It works.
Wrong forum....
vlaf said:
Wrong forum....
Click to expand...
Click to collapse
Where is the right forum? Can it be moved?
Thanks
vlaf said:
Wrong forum....
Click to expand...
Click to collapse
I put it in the right forum now(Ooops). Can this post be deleted from here please?
Thanks
Hi guys. I had a multiple day struggle and all the manuals were only partial, so I try to summarize all the steps taken to unlock my phone, root it with magisk and install Xposed SDK28.
1) Unlock bootloader
It takes time and I had to wait that mentioned 168h (it may differ) and there is nothing you can do about it on your K20/9T
I used the official xiaomi unlock tool, latest version, and followed all the steps there.
2) Install TWRP
Oh god, on this phone it gave me headache and I almost bricked my phone and it convinced me to write you a manual just in case you are lost as I had been. Here you go.
There are three versions of TWRP on this forum and I selected the Chinese one (no greek nor russian)
After unlocking the bootloader, I only flashed the twrp (no other files, just the img with the rom) and then did fastboot reboot.
It stucked on booting. Here I pressed volume up and power and it took me to the newly installed TWRP. This didn't work with an other TWRP than Chinese. I ended up in the bootloop to fastboot only.
Then I installed the ROM. In my case Pixel Experience, latest version. The manual mentioned in this forum tells you to install Magisk together with your ROM. It again caused a bootloop on my device, so I wiped my device in TWRP, installed clean Pixel Experience ROM, and let it boot without magisk and permissive.
I checked via root checker if my device is rooted. And it was not.
3) Root via Magisk/SU applicable
Then I downloaded
Magisk Manager 7.3.2.apk and installed it with confirmation in settings that I allow the whatever file manager to install apps from unknown source.
In the Magisk Manager I downloaded a zip with Magisk and rebooted to TWRP (turn off the device, and then volume up and power)
I flashed the zip downloaded by that manager - no wipe
rebooted back to system and checked the root. Rooted.
4) Xposed
Download Magisk manager 7.3.2.
Install modules via Magisk Manager
- Riru Core v19.4 or higher
- Riru - EdXposed v0.4.5.1._beta(4463) (YAHFA)
restart your device
Then install EdXposedInstaller_V2.2.4-release.apk and check if it works.
restart your device and you can start installing modules. Even Gravitybox (P) works!
I really hope I briefly helped you guys. Viva la modding and enjoy your cool Xiaomi. Thanks to all the contributors on xda, thanks to them I was able to summarize this little manual.
In case you stuck somewhere and need to recover anything such as boot.img or any other shananingans you did with your phone, as I did too, you need to download the miflash tool, in this case the latest version didn't work so I used 2014.05.09.0, and downloaded the official fastboot rom davinci_eea_global_images_V10.3.7.0.PFJEUXM_20190602.0000.00_9.0_eea_eab1d1cc52, flashed it with miflash (around 6 minutes), stucked again in bootloop, rebooted to TWRP via volume up and power during the bootloop, and followed the steps from flashing the TWRP (after MiFlash it has only the default MiRecovery) and installed my ROM.
Hi,
I have a Xiaomi Mi 9T Pro Global with :
- Bootloader unlocked
- TWRP v3.3.1-0 (lastest)
- Magisk Manager v7.5.1 (lastest)
- Magisk v20.4 (lastest)
So I am rooted and want to keep it (with my data). ^^
Problem: I am still on MIUI v10.3.3.0 and can't install OTA because it makes me reboot on TWRP
I found some different posts like :
Link: https://www.the***********.com/install-ota-update-rooted-android-device-guide/
-> It doesn't work for me because I don't have the A/B partition (message from Magisk when I tried to flash it) and I don't have the "Install to Inactive Slot (After OTA)" option...
Link: https://forum.xda-developers.com/mi-9t/how-to/guide-easiest-to-root-twrp-t4000209
-> I don't know if I have to do it, and when? (if needed, I have the boot.img of my current Global v10.3.3.0)
It seem I have to restore my stock recovery?
-> I see how to do it from TWRP, but I don't have the recovery.img file
How can I install OTA without lose my root and my data?
Thank you in advance,
Best regards.
ptit developer said:
Hi,
I have a Xiaomi Mi 9T Pro Global with :
- Bootloader unlocked
- TWRP v3.3.1-0 (lastest)
- Magisk Manager v7.5.1 (lastest)
- Magisk v20.4 (lastest)
So I am rooted and want to keep it (with my data). ^^
Problem: I am still on MIUI v10.3.3.0 and can't install OTA because it makes me reboot on TWRP
I found some different posts like :
Link: https://www.the***********.com/install-ota-update-rooted-android-device-guide/
-> It doesn't work for me because I don't have the A/B partition (message from Magisk when I tried to flash it) and I don't have the "Install to Inactive Slot (After OTA)" option...
Link: https://forum.xda-developers.com/mi-9t/how-to/guide-easiest-to-root-twrp-t4000209
-> I don't know if I have to do it, and when? (if needed, I have the boot.img of my current Global v10.3.3.0)
It seem I have to restore my stock recovery?
-> I see how to do it from TWRP, but I don't have the recovery.img file
How can I install OTA without lose my root and my data?
Thank you in advance,
Best regards.
Click to expand...
Click to collapse
You can keep TWRP and Magisk module, you will only need to patch the boot image and install it from TWRP to regain root after the OTA
- Download full Recovery/zip package 2.4 GB for your MI/IN/EU/RU you currently have with MIUI 10
- Flash that zip from TWRP (Install, zip)
- Reboot to TWRP, not to Android, otherwise you will loose TWRP
- Backup Boot in TWRP
- Reboot to Android. You shouldn't have lost your apps and settings. Magisk Manager will be there but no root
- From Magisk Manager take Install, keep Preserve AVB and Preserve Encryption (first two) but UNCHECK Recovery mode
- Choose to Patch image and navigate to the Boot backup you just made in TWRP, boot.emmc.win, 128 MB
- Reboot to TWRP, take Install, Image (not zip) and navigate to magisk_patched.img in Download
- Upon installing keep in TWRP and Wipe Dalwik and Cache, ONlY
-Reboot to Android - you will have root, your previous modules, rooted apps, all
PS: Doing OTA from System Update requires stock Recovery - that's why it reboots for you to TWRP and fails.
To be able to do OTA that way, you would need to first flash back your stock Recovery.
Then OTA update will fail and you wouldl have to force Full OTA.
At the end, you would also loose root - hence the above procedure is simpler, you even don't need PC, you will keep TWRP and you will only need to patch and install the patched boot image to regain root
Hi and thank you @zgfg,
So if I correctly understand, to be able to make OTA without losing my data and restore root, I have to :
1. Install stock ROM
-> When I did it on previous phone, I always lose everything, so are you sure?
2. Restart in TWRP (to not lose it)
3. Backup boot via TWRP
4. Go in Magisk Manager, and check "keep Preserve AVB" and "Preserve Encryption", but uncheck "Recovery mode"
5. Click on "Install" and choose "Patch image", then selected the boot image previous made with TWRP
6. Reboot in TWRP to install (image, not zip) this file created in the 5.
7. Wipe Dalvik and Cache
8. Enjoy
I found the following link on mi.com to allow me to download the Global v10.3.3.0 (zip and tar.gz) :
Link: https://c.mi.com/thread-2459743-1-0.html
Is it the good one?
Can I simply extract the boot.img of the file downloaded in the 1. and go directly to the 4. ?
Thank you in advance,
Best regards.
ptit developer said:
Hi and thank you @zgfg,
So if I correctly understand, to be able to make OTA without losing my data and restore root, I have to :
1. Install stock ROM
-> When I did it on previous phone, I always lose everything, so are you sure?
2. Restart in TWRP (to not lose it)
3. Backup boot via TWRP
4. Go in Magisk Manager, and check "keep Preserve AVB" and "Preserve Encryption", but uncheck "Recovery mode"
5. Click on "Install" and choose "Patch image", then selected the boot image previous made with TWRP
6. Reboot in TWRP to install (image, not zip) this file created in the 5.
7. Wipe Dalvik and Cache
8. Enjoy
I found the following link on mi.com to allow me to download the Global v10.3.3.0 (zip and tar.gz) :
Link: https://c.mi.com/thread-2459743-1-0.html
Is it the good one?
Can I simply extract the boot.img of the file downloaded in the 1. and go directly to the 4. ?
Thank you in advance,
Best regards.
Click to expand...
Click to collapse
In the first post you said that you already have v10.3.3.0 and that you want to update
Hence why would you now download v10.3.3.0 - you should download v11 (supposidely), that the same newer version that OTA offers you
Yes, you can extract boot.img from that newer MIUI (v11) that you will download and flash but that requires PC - in my instructions you simply use TWRP and make backup of the boot image upon you do update
By extracting boot.img from v11 you will not save any step, you still must flash its zip (not tgz) from TWRP and you must nevertheless reboot to TWRP first
---
By flashing OTA zip (full, 2.4 GB) from TWRP, you should not loose your data and apps. I did it with Mi 9T (not PRO - you are not on the PRO forum) but things must work the same way for PRO for Global or EU (you must update to the same Global, EU, Indian, Russian as you already have, just fownload the same newer version that OTA offers you)
Hi back,
Yes, I am in Global (EU) v10.3.3.0 and I should want to use OTA (first I have, it is to go on v10.3.4.0, and I guess, I will have more after until v11).
So I can use directly v11 one?
Thank you in advance,
Best regards.
ptit developer said:
Hi back,
Yes, I am in Global (EU) v10.3.3.0 and I should want to use OTA (first I have, it is to go on v10.3.4.0, and I guess, I will have more after until v11).
So I can use directly v11 one?
Thank you in advance,
Best regards.
Click to expand...
Click to collapse
Better follow what OTA gives you. Find and download Recovery/zip for that Global v10.3.4.0 and install as suggested.
Later similarly follow the version numbers the same way as they come by OTA