Switching to developer rom - Xiaomi Mi 5 Questions & Answers

Hi,
so I received my Mi 5 on friday and now I need root. Therefore I want to switch to the developer rom but I heard that this will wipe my data.
Is this true? And will it just wipe apps and settings or also the /sdcard/* ?
Because I'm using the chinese rom, I previously couldn't restore from my google backup and I'm afraid that this is again no possibility after a wipe... any ideas?

Related

[Q] Fixed bootloop - Is there anyway to get everything back?

Background info:
Updated Cyanogenmod 12.0 to 12.1 through a nightly update that the OS automatically recommended me do. Upon updating, the phone went into a boot loop. I did a data backup through TWRP and then I wiped the dalvik-cache and cache, but it still bootlooped, so I wiped the data. After wiping the data, the phone booted up just fine. At this point, I'd like to restore my data and I have tried doing so through TWRP, but then it just goes into a bootloop again.
Primary Questions:
Can I restore my data and not get the boot loop? If not, can I go back to Cyanogenmod 12.0 and then restore my data and not get the boot loop? If not, what are my options from here?
Secondary Questions:
What did I do wrong to get the boot loop and how can I prevent this from occurring in the future when updating to a new nightly?
thex2 said:
Background info:
Updated Cyanogenmod 12.0 to 12.1 through a nightly update that the OS automatically recommended me do. Upon updating, the phone went into a boot loop. I did a data backup through TWRP and then I wiped the dalvik-cache and cache, but it still bootlooped, so I wiped the data. After wiping the data, the phone booted up just fine. At this point, I'd like to restore my data and I have tried doing so through TWRP, but then it just goes into a bootloop again.
Primary Questions:
Can I restore my data and not get the boot loop? If not, can I go back to Cyanogenmod 12.0 and then restore my data and not get the boot loop? If not, what are my options from here?
Secondary Questions:
What did I do wrong to get the boot loop and how can I prevent this from occurring in the future when updating to a new nightly?
Click to expand...
Click to collapse
I'm going to answer your second question first, as the second answer shapes the first answer.
Sometimes a ROM needs a wipe before flashing..the reason for this is conflicting data.. Most commonly,.this will happen if going from one ROM to another from a different dev, but can also happen upgrading roms from the same dev.
The conflict will happen due to system settings.. All system settings go in /data/data along with your user app settings. Most settings will go in an sqlite database.
The boot loop problem occurs usually when there is an entry in one or more of these databases that correlates with a setting that no longer exists, or the entry doesn't match the options in a ROM. For example, if your ROM allows you to set screen sleep in 15, 30, 60 seconds only, but your database has your setting set at 45, android doesn't know what to do and boot loops.*
The fix is of course, wiping data.. This is why when restoring using titanium backup on a new ROM, we recommend only restring your user apps and data (using the filters and options) otherwise if you restore system apps and data you're restoring the problem.
The first question, you can restore app a from a nandroid backup using titanium. There is an option in preferences.
*please note, this is just a basic example for illustration purposes. Screen sleep may or may not cause a loop
Thank you for the detailed response. It was very helpful. I have a few more questions for you below.
rootSU said:
Sometimes a ROM needs a wipe before flashing..the reason for this is conflicting data.. Most commonly,.this will happen if going from one ROM to another from a different dev, but can also happen upgrading roms from the same dev.
Click to expand...
Click to collapse
Is there an easy way to predict whether this will occur prior to upgrading? And if so, how?
Can I downgrade back to my old nightly and restore my data to go back to the working setup that I previously had?
Is there a way to get my old OS customizations back from the nandroid backup that I created? For example, my desktop icon positions for my apps, etc..
Is it probable that a new version will come out that's compatible with the old versions settings? For example, you mentioned the screen sleep timer being 15, 30, 60 and then changing to 45 and the boot loop occurs. Do the developers ever recognize this issue occurred and then correct it in the next nightly to allow for 15, 30, 45 and 60 so I could restore my data without the boot loop occurring?
thex2 said:
Thank you for the detailed response. It was very helpful. I have a few more questions for you below.
Click to expand...
Click to collapse
Let's see what I can do
thex2 said:
Is there an easy way to predict whether this will occur prior to upgrading? And if so, how?
Click to expand...
Click to collapse
There are no hard and fast rules.. If you're going from Dev A ROM to Dev B ROM, you will almost certainly have to wipe. Also, between major version updates (5.0 to 5.1 for example) you too will most likely have to wipe
Usually for any upgrade on the same ROM that isn't a major version update (dev a 5.0 to dev a 5.0 base) you usually won't have to wipe, but you may well have to, depending on whether the dev changes things a lot. Always have a titanium and a nandroid backup before updating.
thex2 said:
Can I downgrade back to my old nightly and restore my data to go back to the working setup that I previously had?
Click to expand...
Click to collapse
Yes probably. Restore the full nandroid if you want.
thex2 said:
Is there a way to get my old OS customizations back from the nandroid backup that I created? For example, my desktop icon positions for my apps, etc..
Click to expand...
Click to collapse
It depends which launcher you're using.. If you install a launcher from play store, it is a user app.. So if you're restoring user also using titanium filters, it should restore it fully, including widgets etc. That said, sometimes it doesn't always work out. If the launcher has built in backup, it may be wise to use it.
If the launcher is built into the ROM, its classed as a system app, so even though user apps and system apps both keep their app data in /data/data, it will not be seen with titanium if you're using a filter to shoe only user apps and data.. Work around is backup system and user data without a filter in titanium then when restoring, apply the filter for user apps.. Then once user apps are restored, find the system apps you need to restore data for and restore individually as required. You need to restore as little as possible though to avoid the boot loop.
thex2 said:
Is it probable that a new version will come out that's compatible with the old versions settings? For example, you mentioned the screen sleep timer being 15, 30, 60 and then changing to 45 and the boot loop occurs. Do the developers ever recognize this issue occurred and then correct it in the next nightly to allow for 15, 30, 45 and 60 so I could restore my data without the boot loop occurring?
Click to expand...
Click to collapse
Usually not.. Generally ROM v2 changes from ROM v1.. ROM v3 is usually even further away from ROM v1. If a dev is changing such a setting they are probably doing so for a reason.. Sometimes if the setting is part of a function that the dev decides to remove again ROM v3, its possible. But its best to be prepared and accept that wiping and restoring is a common practice in custom ROM flashing

Need some rom suggestion / advice regarding flashing custom roms and what rom.

Few questions
1. I have sprint and nexus 6. Ideally I'd like a stock rom, but with the clear recent tasks button in the bottom, and enabled tethering, and also rooted. What minimalist or close to stock rom would you suggest? I am tired of using stock and having a pain every time there is an OTA update whereby it won't flash and having to go through the steps of editing build.prop and the sql database file to enable tethering.
2. What is the easiest way to keep a custom rom up to date. I just want it to almost behave like stock with updates easy to obtain and near automatic. Is there an app or rom that has this feature?
3. what is the difference between factory build LMY48M and LMY47Z? They are both listed as 5.1.1
4. I use titanium backup. However, if i update a rom and just save user data (when i previously had it save system data I had a problem) and after i flash restoring user data, I notice many of the settings such as my bluetooth and smart lock etc. settings aren't saved. Any suggestion to streamline the flashing process further?
Thanks for your help and advice!
deadave said:
Few questions
1. I have sprint and nexus 6. Ideally I'd like a stock rom, but with the clear recent tasks button in the bottom, and enabled tethering, and also rooted. What minimalist or close to stock rom would you suggest? I am tired of using stock and having a pain every time there is an OTA update whereby it won't flash and having to go through the steps of editing build.prop and the sql database file to enable tethering.
2. What is the easiest way to keep a custom rom up to date. I just want it to almost behave like stock with updates easy to obtain and near automatic. Is there an app or rom that has this feature?
3. what is the difference between factory build LMY48M and LMY47Z? They are both listed as 5.1.1
4. I use titanium backup. However, if i update a rom and just save user data (when i previously had it save system data I had a problem) and after i flash restoring user data, I notice many of the settings such as my bluetooth and smart lock etc. settings aren't saved. Any suggestion to streamline the flashing process further?
Thanks for your help and advice!
Click to expand...
Click to collapse
you do realize that all you have to do to update a rooted stock rom is flash the system.img via fastboot, then quickly reroot(flash the supersu file)? yes, its that easy.
oh, and i backup my apps and settings through google. every time i wipe, google will restore all my apps, my wallpaper, and my system settings.
/data/data/com.android.providers.settings/databases/ doesn't have to get changed if you just flash system img?
deadave said:
/data/data/com.android.providers.settings/databases/ doesn't have to get changed if you just flash system img?
Click to expand...
Click to collapse
no. that is if you don't wipe data. you wont lose any data flashing just the system.img. you will lose SuperSU though. but all you have to do is reflash it.
Is there a TWRP for the Nexus 6? Can I go from stock rooted to CM12 & back without bricking?
RichTJ99 said:
Is there a TWRP for the Nexus 6? Can I go from stock rooted to CM12 & back without bricking?
Click to expand...
Click to collapse
Yes, TWRP is available for the Nexus 6.
And yes you can go from stock rooted, to a different ROM (CM12 if you want) and back without any problems.

Installing update via Smart Switch

Hi all,
I need to know if installing OS update via smart switch wipes all your phone. Smart Switch doesn't answer this part. Plus, the download is 5,085mb which means it's a complete ROM. That makes me wonder if it will flash the rom completely and wipe my device in the process or not?
Thanking in anticipation
Any one?
As far as I remember, Smart Switch is asking You to do backup first. BUT as long as You don't change your region, data should be intact.
Anyway, backup your stuff first!

Setup EU ROM with locked bootloader on K20 Pro Global ROM

Hi,
I read a tons of topics here, but more I read more it become unclear to me. I need your help to understand how it works, please.
Step-by-step:
I have bought my Redmi K20 Pro from AliExpress 1.5 years ago with Global ROM installed and unlocked bootloader initially
At the time when I was in Europe the biggest disadvantage using the device was that I couldn't set Google Pay to my device. Now I am in Indonesia and Google Pay is not commonly used here, so it's not the big problem now, but anyway, I would like to fix it.
Currently I am doing a lot of work in Instagram, and the huge problem I realized that my device doesn't work properly with Instagram stories. If I use in-app camera to record the story it looks laggy SO MUCH. Also if I am trying to upload pre-recorded video using native camera app to instagram story, video is still laggy and furthermore it's quality is horrible. Seems like it's compressed from 1080p to 360p. Just weeks ago another problem appears that uploading the videos > 15sec the Instagram app doesn't split it to the blocks (where you can add some notes/text/graphics separately to each block) but uploading as a multiple stories with a same graphics and text I selected before uploading. There are tons of complains about it and seems related exactly to this phone model, but still no solutions.
What I want to do is:
install EU ROM with a hope that Instagram will work properly there
Lock bootloader to setup Google Pay
Checking this forum and other resources I found the info that it's not always possible safely migrate to EU from GLOBAL. Furthermore, many people do not recommend to lock bootloader if it was unlocked.
The questions are:
Is it possible to do what I want safely? Migrate to EU ROM and lock bootloader
will EU ROM help me with instagram issue?
how can I do it?
can ROM migration somehow change the IMEI code? My device is registered in Indonesia, and according to new laws here, if the IMEA changes, I will need to register it again, and it could be a problem
Thank in advice. :angel:
I would suggest you to flash the best custom miui rom out there: Xiaomi EU. Visit the below link and read the rom features section to get an idea.
https://xiaomi.eu/community/threads/miui-12-0-stable-release.56191/
I'm suggesting this because, you can keep your bootloader unlocked and SafetyNet passes by default (Google Pay). Instagram will work properly and fyi, changing roms doesn't change IMEI unless you dont mess it up. Instead of TWRP, use OrangeFox recovery:
https://orangefox.download/device/raphael
BACKUP First before proceeding.
This is the download link for latest stable custom miui eu rom 12.0.5.0:
https://sourceforge.net/projects/xi...MI9TPro_V12.0.5.0.QFKCNXM_v12-10.zip/download
Thanks for your reply
Siddk007 said:
I'm suggesting this because, you can keep your bootloader unlocked and SafetyNet passes by default (Google Pay). Instagram will work properly and fyi, changing roms doesn't change IMEI unless you dont mess it up. Instead of TWRP, use OrangeFox recovery:
Click to expand...
Click to collapse
The instructions in a link you provided above are about TWRP usage. Should I just replace all steps related to TWRP with OrangeFox?
Also, there are some steps to unlock the bootloader. Should I skip it because bootloader is already unlocked in my case?
Siddk007 said:
BACKUP First before proceeding.
Click to expand...
Click to collapse
Is there some specific backup tool or I can still use my Google Account backup options? Is there any way to keep all my apps (or at least settings) after new ROM installed?
romahaaa said:
Thanks for your reply
The instructions in a link you provided above are about TWRP usage. Should I just replace all steps related to TWRP with OrangeFox? - YES
Also, there are some steps to unlock the bootloader. Should I skip it because bootloader is already unlocked in my case? - YES, skip it
Is there some specific backup tool or I can still use my Google Account backup options? Is there any way to keep all my apps (or at least settings) after new ROM installed?
Click to expand...
Click to collapse
- first of all copy all the files on your phone's internal storage to a pc/laptop.
- Google backup should work, but i'm not sure.
- Better to reinstall all the apps and set it up since, the rom is totally fresh and latest.
installation steps:
remove any password/pin if set.
After flashing orangefox recovery,
wipe system, data, cache, dalvik, vendor.
install rom. wait for atleast 15 mins to boot.
btw, is your system is encrypted?
Siddk007 said:
btw, is your system is encrypted?
Click to expand...
Click to collapse
Just checked - yes, it's encrypted. As I understand I need to disable it? Should I do it only for installation and after set it back encrypted?
Also, from the other instructions people recommend to logout from Mi account/Google account and remove pin code and fingerprints before flash operations.
romahaaa said:
Just checked - yes, it's encrypted. As I understand I need to disable it? Should I do it only for installation and after set it back encrypted?
Also, from the other instructions people recommend to logout from Mi account/Google account and remove pin code and fingerprints before flash operations.
Click to expand...
Click to collapse
If you want to disable it, you will have to format your data which will wipe your phone completely. Or you can leave it encrypted.
Yes, remove google/mi account and remove pin/password before flash.
Siddk007 said:
If you want to disable it, you will have to format your data which will wipe your phone completely. Or you can leave it encrypted..
Click to expand...
Click to collapse
Don't see any reason to disable it then if it's possible to change a ROM keeping that setting.
Will try run the process today-tomorrow
So, I did it spending tons of time.
Unfortunately Google Play app is still not visible in GooglePlay store, probably because of unlocked bootloader.
The tons of instructions I didn't find any detailed but simple enough. Here are some easy steps:
1. Make sure you got all suitable software and drivers installed. This needed to run terminal `fastboot` command, what is a part of google `developer_tools` package. In my case I had it before. To check, does it exist or not you can just run `adb -devices` in terminal and it shoul show you the list of android device connected by USB
2. Create a local backup using MIUI Back up and restore menu in settings. Same created backup folder on you PC
3. Remove all locks/fingerprints
4. Logout from Google account. I couldn't logout from Mi account, but that didn't affect somehow
5. Start flashing:
5.1. download Orange Fox and extract. We need only .img file from the archive
5.2. run `fastboot flash reboot` to allow device start in boot mode
5.2. run `flash recovery <path to recovery.img from Orange Fox>`
5.3. after completed, hold Volume - and power button until MI logo appear
5.4. copy Orange Fox zip archive to device internal storage, run the installation and reboot
5.5. crete a backup in Orange Fox
5.5. while in Orange Fox bootloader copy ROM zip archive to internal storage. Wipe the data: data, cache, dalvik. Wipe system and vendor if only you are sure what are you doing. I wiped because it's needed for "clean" install in my case. DONT reboot after.
5.6. Run ROM installation. After completed and you are still loaded automatically to Orange Fox, this means you need to format data partition. Select Menu > Partitions > Data in Orange Fox. Reboot. MIUI setup will start

Switching between roms.

Hello ,
I need a little help. I am using Galaxy M205F. Recovery: orange fox,
current rom : Project Sakura 5.R (Android 11)
Now I want to switch to Project sakura 2.Q(Android 10). I want to switch because the latest version causing many problems such as : I can't even open 2 apps at a time. Its ram management is too poor. Also I want a gapps version.
Now what should I do to switch to that rom.
I mean can anyone guide me with full explanation.
Also can I use migrate to move apps and app data to that rom. (I am concerned cause am using Orange fox. )
Use the app Migrate for moving apps and such
[APP][ROOT][5.0+][1st Nov 2020] Migrate - custom ROM migration tool
Jumping from one custom ROM to another can be a challenging task. So I decided to make an app to simplify the process. Introducing Migrate! Migrate-GPE (v4.0) is on Google Play It was temporarily suspended. Read more here...
forum.xda-developers.com
And after backing up your apps and such with migrate format data and cache then flash the new rom.
Instructions on restoring the backup is in the Migrate XDA post.
Kenora_I said:
Use the app Migrate for moving apps and such
[APP][ROOT][5.0+][1st Nov 2020] Migrate - custom ROM migration tool
Jumping from one custom ROM to another can be a challenging task. So I decided to make an app to simplify the process. Introducing Migrate! Migrate-GPE (v4.0) is on Google Play It was temporarily suspended. Read more here...
forum.xda-developers.com
And after backing up your apps and such with migrate format data and cache then flash the new rom.
Instructions on restoring the backup is in the Migrate XDA post.
Click to expand...
Click to collapse
So I don't need to wipe system, data? I had to wipe these when i switched to custom rom from stock .
Should I just format data and cache?
You should wipe them for sure, just in case of breaking stuff.
Just make sure you keep your Migrate backup somewhere safe.
Kenora_I said:
You should wipe them for sure, just in case of breaking stuff.
Just make sure you keep your Migrate backup somewhere safe.
Click to expand...
Click to collapse
Are you sure I can go to Android 10 from Android 11. (Current rom Android 11 and i want to go to Android 10 but same rom.)
Oops, no you cant if the bootloader has changed.
Your are running 5.R?
Isnt it 5.1?
Kenora_I said:
Your are running 5.R?
Isnt it 5.1?
Click to expand...
Click to collapse
Oops sorry its 5.1. and i wanna go back to 2.Q.
Yoh should see if the bootloader version has changed, samsung phones brick if you try to flash a older bootloader on a newer one.

Categories

Resources