How to flash official stock rom after an older stock rooted rom - Redmi Note 9S / Note 9 Pro (Indian Model) Question

Hello I have a rooted phone with official miui12 rom.
TWRP is flashed but I can also run TWRP using adb.
How can I flash the New miui13 stock version ? Do I use the official Xiaomi flash tool? Or do I use TWRP to flash the stock rom?

iostrym said:
Hello I have a rooted phone with official miui12 rom.
TWRP is flashed but I can also run TWRP using adb.
How can I flash the New miui13 stock version ? Do I use the official Xiaomi flash tool? Or do I use TWRP to flash the stock rom?
Click to expand...
Click to collapse
Through fastboot, you should use the fastboot ROM, and through TWRP, you should use the recovery ROM.

Thanks. A preferred option ?
Using TWRP do I need to erase stuff before or can I install directly the rom and this is all ?
I guess that recovery room is not the one provided officially by Xiaomi, right ? It the same but packaged a different way ?

Do you know if SD card will be erased during the stock rom flashing process ?

I see on official Xiaomi site that official rom is quite old. Miui11 version so I guess I will need to perform a lot of OTA update... Can I trust recovery rom provided on other websites to have the latest stock rom version ?

iostrym said:
Thanks. A preferred option ?
Using TWRP do I need to erase stuff before or can I install directly the rom and this is all ?
Click to expand...
Click to collapse
Normally, you don't need to erase data, as they just update without erase per se.
iostrym said:
I guess that recovery room is not the one provided officially by Xiaomi, right ? It the same but packaged a different way ?
Click to expand...
Click to collapse
As I said you, there are two official versions, the fastboot and the recovery ROM.
iostrym said:
Do you know if SD card will be erased during the stock rom flashing process ?
Click to expand...
Click to collapse
No.
iostrym said:
I see on official Xiaomi site that official rom is quite old. Miui11 version so I guess I will need to perform a lot of OTA update... Can I trust recovery rom provided on other websites to have the latest stock rom version ?
Click to expand...
Click to collapse
The OTA updates come, either in form of fastboot or recovery ROM, when Xiaomi provides an update, you will, also, find the minimal OTA package, yet included in the whole ROM.
In this site, you will find the most up-to-date releases https://xiaomifirmwareupdater.com/archive/miui/joyeuse/

thanks. I would like to be sure that my flashed TWRP will be erased during the process, will both flashing process (fastboot or TWRP) erase all my phone and put in a new "clean" state ? (except maybe for sdcard content)

iostrym said:
thanks. I would like to be sure that my flashed TWRP will be erased during the process, will both flashing process (fastboot or TWRP) erase all my phone and put in a new "clean" state ? (except maybe for sdcard content)
Click to expand...
Click to collapse
Nope, both the processes, don't wipe per se, either through recovery or fastboot, in the Mi Flash tool, there is an option to format data, if you like it, if not, it remains un-ticked.

Sorry to insist but what are you calling 'data' ? Is it the SD card content (I don't think so) or is it the data partition on my internal memory ? So it could be :
Photo taken in internal memory
Data stored by apps like photo from WhatsApp or stuff like that ?
Temp file of each app like settings of app, etc.
Would it be a problem if I erase all my phone and loose all my apps but data off app are still there, it will take space for nothing right ?
What about flashed TWRP? will it be removed by the flashing process ? I think TWRP is flashed in recovery partition but not sure.
As you see I'm not familiar with android partition even if I did several times this kind of process with different phones.

iostrym said:
Sorry to insist but what are you calling 'data' ? Is it the SD card content (I don't think so) or is it the data partition on my internal memory ? So it could be :
Photo taken in internal memory
Data stored by apps like photo from WhatsApp or stuff like that ?
Temp file of each app like settings of app, etc.
Would it be a problem if I erase all my phone and loose all my apps but data off app are still there, it will take space for nothing right ?
What about flashed TWRP? will it be removed by the flashing process ? I think TWRP is flashed in recovery partition but not sure.
As you see I'm not familiar with android partition even if I did several times this kind of process with different phones.
Click to expand...
Click to collapse
Not exactly what I call data, but, what data means in Android World.
Formatting data, it's deleted all the data from apps stored in /data partition, all the data regards settings, all the apps installed by the user, general configurations and all the data stored in internal storage, also the system apps uninstalled by the user can come again.
As per the SD Card, if you have one inside, it is not touched in the process.
If you flash the recovery ROM using TWRP, it won't be overwritten, if you flash the fastboot ROM, you'll lose the access to TWRP.

Thanks. Tell me if I'm wrong but if a choose to flash stock miui 13 version whereas I'm currently in miui12 I should maybe erase data also ? Maybe apps won't works again from 12 to 13 version ? I should be cleaner to reinstall them again don't you think ?
About fastboot stock rom isn't it strange that the official website provides only miui 11 rom whereas your site has miui13 version? How is it possible ? For recovery rom I understand because people can backup their phone and could create a recovery rom like this with miui13 after doing the ota. But for the fastboot rom, if Xiaomi don't provides it and provides only miui11 one, where does the miui13 come from ?

iostrym said:
Thanks. Tell me if I'm wrong but if a choose to flash stock miui 13 version whereas I'm currently in miui12 I should maybe erase data also ? Maybe apps won't works again from 12 to 13 version ? I should be cleaner to reinstall them again don't you think ?
Click to expand...
Click to collapse
It would work even if you don't erase data, but, I personally prefer erasing it, to avoid some lags/bugs in the future.
iostrym said:
About fastboot stock rom isn't it strange that the official website provides only miui 11 rom whereas your site has miui13 version? How is it possible ? For recovery rom I understand because people can backup their phone and could create a recovery rom like this with miui13 after doing the ota. But for the fastboot rom, if Xiaomi don't provides it and provides only miui11 one, where does the miui13 come from ?
Click to expand...
Click to collapse
Firstly, be sure that your device is Joyeuse.
All the updates, either recovery and fastboot ROM, are provided by Miui, all of them are official updates, not uploaded from users´ devices.
It's A12, not A13, I don't think your device see the light on A13.

Yes android 13. But miui 13 comes with android 12 and my current os is miui12 that comes with android11. (If I'm correct).
I have Redmi note 9 pro, M2003J6B2G (photo is 64M). I don't know where Curtana or joyeuse word can be really found in my phone but after some readings I had the feeling that M2003J6B2G = joyeuse version.

iostrym said:
Yes android 13. But miui 13 comes with android 12 and my current os is miui12 that comes with android11. (If I'm correct).
Click to expand...
Click to collapse
Xiaomi also could update the Miui version, so Miui 13 came with Android 11 for some devices, don't stay there, just check the Android version that is specified in a tab, at the download list.
iostrym said:
I have Redmi note 9 pro, M2003J6B2G (photo is 64M). I don't know where Curtana or joyeuse word can be really found in my phone but after some readings I had the feeling that M2003J6B2G = joyeuse version.
Click to expand...
Click to collapse
There are some apps like Device Info and other similar, from Play Store that can tell you, exactly, which your model is, Anyway, Redmi Note 9 Pro is Joyeuse but, be sure, before to proceed, consult some app like the mentioned.

SubwayChamp said:
Xiaomi also could update the Miui version, so Miui 13 came with Android 11 for some devices, don't stay there, just check the Android version that is specified in a tab, at the download list.
There are some apps like Device Info and other similar, from Play Store that can tell you, exactly, which your model is, Anyway, Redmi Note 9 Pro is Joyeuse but, be sure, before to proceed, consult some app like the mentioned.
Click to expand...
Click to collapse
Cpu-z indicate joyeuse-eea. Should be good.
Ok so I will delete the data partition and I will use fastboot flash using Xiaomi tool. I'm not sure to understand your answer about the SD card. Will it be erased during the process ? I know that sdcard are now crypted so that they could be used only by my phone. If the os is modified, maybe I won't be able to read it even if it is not formated. Don't you think ?

iostrym said:
Cpu-z indicate joyeuse-eea. Should be good.
Click to expand...
Click to collapse
Good, then it is the european version.
iostrym said:
Ok so I will delete the data partition and I will use fastboot flash using Xiaomi tool. I'm not sure to understand your answer about the SD card. Will it be erased during the process ? I know that sdcard are now crypted so that they could be used only by my phone. If the os is modified, maybe I won't be able to read it even if it is not formated. Don't you think ?
Click to expand...
Click to collapse
Just to not confuse, sdcard is the internal memory, that is symlinked as /data/media/0, all the internal memory is gone when we format data, some folders are recreated at the first boot, after performing it.
SD Card refers to Secure Digital card, that is an external media storage, it is absolutely excluded to any operation from Android, when flashing, updating the system or formatting data, of course, you should consider that some apps like camera can store its pictures there, previous authorization from user, but they will stay there yet, and some folder can be created too, at the first boot, but nothing that harms.
Just to know, sdcard as internal memory is not encrypted at all, it's accessible for any user, always, that can bypass the locking feature of the choice of the user, i.e. PIN, pattern, etc.

Thanks I didn't know that sdcard and SD card weren't the same. My concern is about external memory card (SD card). If not formated. I'm afraid that it couldn't be used after reboot. Except if the decryption key is linked to my phone (hardware) and not the software part (os) of my phone

iostrym said:
Thanks I didn't know that sdcard and SD card weren't the same. My concern is about external memory card (SD card). If not formated. I'm afraid that it couldn't be used after reboot. Except if the decryption key is linked to my phone (hardware) and not the software part (os) of my phone
Click to expand...
Click to collapse
The encryption is permanent since A6, it remains, at least, you can do something about it, using a custom recovery, a custom module, script, or something, nothing that the end user can worry about, for the normal use of the device.
Trying to guess, you did encrypt your SD card, then the encryption key is linked, only to your SD card, the SD card, specially, in newer Android versions, is treated as a privacy media user concern, so every time more, apps can't access to, as easy as the older times, it is RO by default.

Sorry I have difficulties to read and understand your last message as my English is bad.
Especially the second part... I don't encrypt anything myself. I just now that recent version of Android encrypt the sdcard and it couldn't be used in a computer for instance or another phone. So I think that maybe after new rom flashed. SD card won't be read or write from the phone and I will have to format it myself so that I can read it from my phone. Correct ?

iostrym said:
Sorry I have difficulties to read and understand your last message as my English is bad.
Click to expand...
Click to collapse
Probably my English is worse than yours.
iostrym said:
Especially the second part... I don't encrypt anything myself. I just now that recent version of Android encrypt the sdcard and it couldn't be used in a computer for instance or another phone. So I think that maybe after new rom flashed. SD card won't be read or write from the phone and I will have to format it myself so that I can read it from my phone. Correct ?
Click to expand...
Click to collapse
You are again mixing the terms, in the first part, you're saying "...recent version of Android encrypt the sdcard" and linking to the second part, you're saying "...after new rom flashed. SD card won't be read or write"
As I said to you previously /sdcard AKA internal storage is not encrypted at all, at any time, the fact that you need to authorize the MTP connection within your device and a PC, doesn't change that, if you or anyone else, have access to the Android interface, then you or anyone else, can see all the data/files/pictures/audio/video stored, in the internal storage, by using a file manager app, or a specific app for every file instance/format, i.e. a music player for videos/sounds/musics, a gallery app for pictures/images, and so on.
As per the SD card, the same, if the user (you, in this case), didn't encrypt it, then, Android, also, doesn't encrypt it, so you and anyone else, can access to the data stored in it, either during the OS functioning normally, and/or after the flashing/formatting process.

Related

How can find /cust partition?

Hi everybody!
I have Le Max 2 and i have problem with cust partition.
I have had Indian ROM and decided the original ROM, but have lost the CUST.img and have problem with boot animation and the 4G Internet. I wanted more of this img, but i can't find anywhere. I need your help! Thanks!
Cust. Partition is not present nor needed. Only my Chinese phones have this partition. It is not a requirement for a phone to be operational, as far as I know or all phones would have it.
jim262 said:
Cust. Partition is not present nor needed. Only my Chinese phones have this partition. It is not a requirement for a phone to be operational, as far as I know or all phones would have it.
Click to expand...
Click to collapse
Hello community , I have a new Le Max 2 with 64GB storage . After the first start , I looked in the settings . He shows me ( no , that I have something installed ) , that 38 GB are occupied. I have TWRP installed and wanted to see . Here I see that I generally have only 21GB of internal memory and a partition named " CUST " could not be mounted. Can someone help?
I also have a problem with /cust partition that can't be mounted. Looks like I cannot use the phone to call anymore, it says that network is unavailable, although the 4G data is fine. Installations of ROMs looks like still possible, but the thing with calling is killing me... suddenly the phone is not a phone anymore )
I guess that my /cust partition was erased/deleted/disappeared when I wanted to install the ROM for X829 which other users with x820 said it was ok (not blaming anyone for anything ). Now when I choose band mode, I have the options only "USA band Mode" and "Band 6".
Can someone check in Europe what bands he has as an option?
PS: On Honor forums looks like this "cust" partition should contain information about the area where you are... for your provider to be able to understand the phone's settings or such. Really waiting for cust.img if someone can provide.
The best thing would be factory images, such as for Google Nexus Phone.
[“Flashing the Android factory image can be scary, especially for beginners. Flashing the factory image differs from installing the over-the-air (OTA) update in That the factory contains the full system image files for your device, whereas the OTA update contains only the upgrade information. In other words, flashing a factory image is more like completely deleting all the software on your device and replacing it. The OTA Will only replace what is being changed SINCE your last update” (as i read on another page)].
But unfortunately we don’t have this possibility from the Chinese Phones. I had problems with TWRP, of all versions and finally found the final version from GrossoShop.
I don't have more problems with cust partition and i have installed the ROM package from them. They are the best. Try it and your will be satisfied.
This is web link http://blog.grossoshop.net/come-installare-rom-grossoshop-cuoco92-powered-su-leeco-x820-le-max-2/ .
You can try the latest version (5.8.015S_V29_CUOCO92), but I am satisfied with the version (5.6.014S-v3_V28_CUOCO92).
dermozza said:
Hello community , I have a new Le Max 2 with 64GB storage . After the first start , I looked in the settings . He shows me ( no , that I have something installed ) , that 38 GB are occupied. I have TWRP installed and wanted to see . Here I see that I generally have only 21GB of internal memory and a partition named " CUST " could not be mounted. Can someone help?
Click to expand...
Click to collapse
Hi, I have the same problem with my Le Max 2. Have you resolved your storage problem by flashing factory image or by some other way?

‏‏‎

‏‏‎
dimasyudha said:
Hi, There!
3 days ago, I dare myself to install MIUIPro as my OS. Today, there's a little update. And my question is, "How to update my device into the latest MIUIPro version (without lost any data)?" Thanks
Click to expand...
Click to collapse
download latest miuipro
copy to phone internal memory
reboot to recovery
wipe cache , delvak, system
reboot to recovery
install the zip file (miuipro zip)
Thnx for telling the process but will it lead to loss of files in the phone's memory?
Champ16 said:
Thnx for telling the process but will it lead to loss of files in the phone's memory?
Click to expand...
Click to collapse
no.this will not erase phones internal storage files.if u updating older miui pro to latest version.just flash it the new miui pro.zip and wipe cache&dalvic cache.by this way you will not lost any data or applications installed on phone

Ended up with an encrypited device on PE, how to get to a dycripted state.

I got my F1 this morning and followed everything in the pixel edition guide. After first booting my phone I saw that I lost access to my PC connection (thought the drivers went bad but that wasn't the case) and my storge seem to be completely inacccessable from TWRP (but SD card was recognized). On the device itself I can't access the zip files that I had on preboot or anything the camera shoots. I did flash the Disable forced encryption and the Magisk Zips so I'm not sure why my device got encrypted anyway!
Where do I go from here to get back my file access and (presumably) dycript the device? My theory is that I should place all the files I need to do a clean install on the SD and wipe everything. But I'm not sure if that'll prevent encryption because it didn't the first time. Also, I'd be thankful if you pointed me to which zip files combination is the most functional since there's just so many different versions of everything!
Try format data then mount your local storage from twrp (you should see your storage pop on Windows) put your rom inside and flash it again
Format data not in advance wipe and then flash dfe.
SamyakJ said:
Format data not in advance wipe and then flash dfe.
Click to expand...
Click to collapse
I've don't that, now how do I know that I got access to my files? Can't test on the what I had before since they all got wiped and The device is definitely not encrypted now but when I take photos they still don't show up anywhere. This could be a bug in the pixel camera and not file access but IDK. Is there a way to check
Abd121 said:
I've don't that, now how do I know that I got access to my files? Can't test on the what I had before since they all got wiped and The device is definitely not encrypted now but when I take photos they still don't show up anywhere. This could be a bug in the pixel camera and not file access but IDK. Is there a way to check
Click to expand...
Click to collapse
In twrp you can't see anything except zip files but I think can see in file manager of twrp(haven't tested this)

backup software/app?

whats a good backup software/apps for this. i am running pixel experience i get data wipe when i update the os. is there an app to backup pictures, contacts etc
Heimex said:
whats a good backup software/apps for this. i am running pixel experience i get data wipe when i update the os. is there an app to backup pictures, contacts etc
Click to expand...
Click to collapse
I use migrate.
Migrate will work for apps and contacts etc. but not for personal files like photos, videos etc. I don't know of any app which does that. Only backup/copy to PC and restore.
Heimex said:
whats a good backup software/apps for this. i am running pixel experience i get data wipe when i update the os. is there an app to backup pictures, contacts etc
Click to expand...
Click to collapse
I use Google backup to backup my app list installed from Play Store and also contacts etc. Then I use Swift Backup to backup apps with data and apps that isn't available in PS. For photos and videos etc, you can just use SD card or transfer through PC or sync with Google Photos. Or you can just skip wiping internal storage everytime flashing new rom.
MFAR198 said:
I use Google backup to backup my app list installed from Play Store and also contacts etc. Then I use Swift Backup to backup apps with data and apps that isn't available in PS. For photos and videos etc, you can just use SD card or transfer through PC or sync with Google Photos. Or you can just skip wiping internal storage everytime flashing new rom.
Click to expand...
Click to collapse
how do i skip wiping internal storage whenever i flash the update of rom?
Heimex said:
how do i skip wiping internal storage whenever i flash the update of rom?
Click to expand...
Click to collapse
Something is wrong either with your setup or the way you flash. It is not necessary to wipe internal storage everytime you flash a ROM. Looks to be an encryption/decryption issue. Unless you have an incompatible TWRP (which should usually handle encryption/decryption), you should not face this. Wiping/formatting internal storage may be required occasionally like when people try to flash the OOS Pie.
Did you ask in the ROM thread?
tnsmani said:
Something is wrong either with your setup or the way you flash. It is not necessary to wipe internal storage everytime you flash a ROM. Looks to be an encryption/decryption issue. Unless you have an incompatible TWRP (which should usually handle encryption/decryption), you should not face this. Wiping/formatting internal storage may be required occasionally like when people try to flash the OOS Pie.
Did you ask in the ROM thread?
Click to expand...
Click to collapse
yes in the recent update of PE rom, it was an encryption/decryption issue which led to the loss of my data. Is there a way around this?
Heimex said:
yes in the recent update of PE rom, it was an encryption/decryption issue which led to the loss of my data. Is there a way around this?
Click to expand...
Click to collapse
Don't use DFE ever and don't go back to a previous version of vendor-firmware. And possibly TWRP.
guhvanoh said:
Don't use DFE ever and don't go back to a previous version of vendor-firmware. And possibly TWRP.
Click to expand...
Click to collapse
so after each dirty flash, i should let the encryption process continue upon restart of phone?
Heimex said:
so after each dirty flash, i should let the encryption process continue upon restart of phone?
Click to expand...
Click to collapse
So here's the thing. Your fone comes naturally with encryption. You go and turn it off by flashing DFE. Then you make a booboo by forgetting to flash DFE after you update vendor/firmware. And now you're sol. Avoid the problem, don't use DFE. If you want to move to a different from, back up your data to external drive, do your fresh install and restore your data as needed. That's what I do and have never had any problems.
guhvanoh said:
So here's the thing. Your fone comes naturally with encryption. You go and turn it off by flashing DFE. Then you make a booboo by forgetting to flash DFE after you update vendor/firmware. And now you're sol. Avoid the problem, don't use DFE. If you want to move to a different from, back up your data to external drive, do your fresh install and restore your data as needed. That's what I do and have never had any problems.
Click to expand...
Click to collapse
ok thanks for clearing it up. However, if i were to not flash DFE on the next update of pixel experience and subsequent updates, will i lose all my data on the next update upon completion of encryption process?
Heimex said:
ok thanks for clearing it up. However, if i were to not flash DFE on the next update of pixel experience and subsequent updates, will i lose all my data on the next update upon completion of encryption process?
Click to expand...
Click to collapse
If you've already flashed DFE, you need to remember to flash it immediately after flashing vendor/firmware next time. If you only update PE without updating vendor/firmware you should be fine. Note that in many instances these days updating PE requires updating vendor/firmware, therefore you may need to flash DFE if and only if you already use it. In my case I'm encrypted, therefore all I need to do flash vendor/firmware and PE. I don't use DFE.
Hope this clears the air.

Be careful the TWRP for BS series

Avoid and pass by a fool and a madman
Thanks for this warning post. Glad that we only use it in "boot mode" to extract the boot.img, and backup our system partitions, and we don't install it just to make sure things are not touched. The chinese version TWRP can't read Global version's encrypted user data, so it can't install anything on your phone unless you format the user data within TWRP, I guess.
wga0 said:
Is it needed to provide our own twrp, which is bulit into all of the global version, with the official TWRP? Are you really need it?
Click to expand...
Click to collapse
Well, I only use it to backup system partitions of non-rooted phone and nothing else, so if we could find another way to do that then I can easily ditch it. Otherwise it would be nice if we have our own Global TWRP for sure.
wga0 said:
I bought this phone to play games.... but It make me only to work terribly...
Click to expand...
Click to collapse
I feel you bro, as I have the same problems as yours.
KM7 said:
Thanks for this warning post. Glad that we only use it in "boot mode" to extract the boot.img, and backup our system partitions, and we don't install it just to make sure things are not touched. The chinese version TWRP can't read Global version's encrypted user data, so it can't install anything on your phone unless you format the user data within TWRP, I guess.
Well, I only use it to backup system partitions of non-rooted phone and nothing else, so if we could find another way to do that then I can easily ditch it. Otherwise it would be nice if we have our own Global TWRP for sure.
I feel you bro, as I have the same problems as yours.
Click to expand...
Click to collapse
Oh.. you're right. It uses different encryption, so it can't approach to userdata. :good:
Just re-lock the critical sections will be good for global users, and it seems that china users need to be careful. And I didn't see it through. I just stopped at the batch files it uses... It can be merely unofficial twrp. Thank you for your great discovery...

Categories

Resources