How difficult is it to safely re-lock the bootloader? - Xiaomi Poco F2 Pro (Redmi K30 Pro) Questions & Ans

If I were to at any point attempt to re-lock the bootloader what would the safest way to do it be?
Aside from anti rollback bricks which shouldn't be an issue despite the var being set to 1 and EDL mode being locked down what are some other precautions I'd need to watch out for?

What is the version of the phone?
K30 pro or Poco f2 pro?
Chinese, global, eu?

NOSS8 said:
What is the version of the phone?
K30 pro or Poco f2 pro?
Chinese, global, eu?
Click to expand...
Click to collapse
F2 Pro EU

Diwifisidisifie said:
F2 Pro EU
Click to expand...
Click to collapse
no particular problem.
***download the rom(tgz file) https://xiaomifirmwareupdater.com/archive/miui/lmi/ pick FASTBOOT
download miflash https://xiaomiflashtool.com/
select clean all and lock and Flash rom.
****Open the tgz file and extract the "imi global image folder in the same folder as miflash. Rename the folder without space (ex: MIUI124Eu).

NOSS8 said:
no particular problem.
***download the rom(tgz file) https://xiaomifirmwareupdater.com/archive/miui/lmi/ pick FASTBOOT
download miflash https://xiaomiflashtool.com/
select clean all and lock and Flash rom.
****Open the tgz file and extract the "imi global image folder in the same folder as miflash. Rename the folder without space (eg: MIUI124Eu).
Click to expand...
Click to collapse
Thanks!

Related

Any way to encrypt /data/data and /sdcard on Xiaomi EU ROM?

Hello,
Xiaomi EU ROM is running decrypted, that's a security breach...
Is there a way to use Xiaomi EU ROM, based on Miui 10, in a encrypted phone?
Thanks
I tried but no success. The only method to enable encryption is miflash official rom. For me it works perfectly in Los. Apparently xiaomi Eu removed encryption from vendor.
And there is no way to add the files to the vendor partition?
I am using the EU ROM for months encrypted (FBE).
It's a little complicated to get there (and to stay), but it can be done.
1. You need to come from an encrypted MIUI Rom
2. Enter TWRP, enter your decryption code.
Important note: NEVER format in TWRP, otherwise you'll have to start from MIUI again (which means flashing with MiFlash).
4. Dirty flash EU Rom. Do NOT reboot.
5. After flashing the ROM, go to the main menu in TWRP and mount the Vendor partition.
6. Install the attached Zip file with TWRP (copy to phone before starting the whole procedure steps)
7. Reboot
As I said I followed this procedure for the last months, running EU and still encrypted.
You have to do ALL the steps 2-7) again EVERYTIME you flash a new EU Rom.
Hello,
Thanks for the answer. I will try it, but...
1) After flash this, I can wipe device (not format) from TWRP?
2) Is also /sdcard encrypted or only /data/data?
3) I can't install Global MIUI from TWRP if I will return to Global?
4) I assume that I can install Magisk after 6 and before 7
Thanks
hoehm72 said:
I am using the EU ROM for months encrypted (FBE).
It's a little complicated to get there (and to stay), but it can be done.
1. You need to come from an encrypted MIUI Rom
2. Enter TWRP, enter your decryption code.
Important note: NEVER format in TWRP, otherwise you'll have to start from MIUI again (which means flashing with MiFlash).
4. Dirty flash EU Rom. Do NOT reboot.
5. After flashing the ROM, go to the main menu in TWRP and mount the Vendor partition.
6. Install the attached Zip file with TWRP (copy to phone before starting the whole procedure steps)
7. Reboot
As I said I followed this procedure for the last months, running EU and still encrypted.
You have to do ALL the steps 2-7) again EVERYTIME you flash a new EU Rom.
Click to expand...
Click to collapse
I reply my questions:
After flash EU ROM and the ZIP that @hoehm72 in the previous posts, the EU ROM is working fine.
You can wipe the device from TWRP and also return to Global version (you need to backup your /cust partition before flash EU for first time and restore /cust before flash Global ROM).
Also, /sdcard and /data/data remains encrypted in EU, like in Global.
Thanks mate!
EDIT: If you forgot to flash the zip file after flash EU ROM the phone will enter in a bootloop. No problem, you only need to enter TWRP then:
* mount vendor
* edit /vendor/etc/fstab.qcomm
then update "encryptable" by "fileencryption" then reboot...
Thank you, it worked for me too!
Hello how can I know if my rom is encrypted ?
If your device is rooted...
enter TWRP and, when TWRP asks for password click on cancel button.
Next, click on advanced -> file manager then navigate to /sdcard
If when you are on /sdcard (and also on /data/data) the file manager displays correctly the filenames you aren't encrypted and any can access to the files if has access to your device.
Bradco said:
Hello how can I know if my rom is encrypted ?
Click to expand...
Click to collapse
Bradco said:
Hello how can I know if my rom is encrypted ?
Click to expand...
Click to collapse
You can find it in settings-passwords&security- data privacy(or data security, I don't know in english) -encryption
The most secure mode to check it is to check over twrp, like I've explained.
Some roms, like eu, says encrypted but really aren't
Seosam said:
You can find it in settings-passwords&security- data privacy(or data security, I don't know in english) -encryption
Click to expand...
Click to collapse
This is what i posted some thime ago in xiaomi.eu forum.
I downloaded miui_MIMIX2SGlobal_V10.3.2.0.PDGMIXM_7e27e6e0d5_9.0.zip and xiaomi.eu_multi_MIMix2S_V10.3.1.0.PDGCNXM_v10-9.zip
than i extracted these folder and three files from global rom:
firmware-update
vendor.transfer.list
vendor.new.dat.br
vendor.patch.dat
than i deleted those three files and folder from xiaomi.eu rom
than i repacked xiaomi.eu rom with three vendor files from global rom (i used winrar, just drag and drop )
than i installed .zip on my phone
I managed to encrypt the latest (9.7.11) version too. You need to use vendor files from china beta (9.7.11). If you use older files your wifi wont work.
A less painful solution is to extract missing files from china rom
The file lists that should be added/replaced from china miui rom (about 3 MB, tested on Mi6 10.4.2.0, eu/cn):
Ps., some of below files are not necessary, but I am not sure which one did the trick.
/system/vendor/etc/gps.conf
/system/vendor/etc/mixer_paths_overlay_dynamic.xml
/system/vendor/etc/init/hw/init.qcom.rc
/system/vendor/etc/izat.conf
/system/vendor/etc/wifi/WCNSS_qcom_cfg.ini
/system/vendor/etc/fstab.qcom
/system/vendor/app/TrustZoneAccessService/TrustZoneAccessService.apk
/system/vendor/app/TrustZoneAccessService/oat/arm64/TrustZoneAccessService.odex
/system/vendor/app/TrustZoneAccessService/oat/arm64/TrustZoneAccessService.vdex
/system/vendor/app/ConnectionSecurityService/oat/arm64/ConnectionSecurityService.odex
/system/vendor/app/ConnectionSecurityService/oat/arm64/ConnectionSecurityService.vdex
/system/vendor/app/PowerOffAlarm/oat/arm64/PowerOffAlarm.vdex
/system/vendor/app/PowerOffAlarm/oat/arm64/PowerOffAlarm.odex
/system/vendor/app/PowerOffAlarm/PowerOffAlarm.apk
/system/vendor/app/SSGTelemetryService/oat/arm64/SSGTelemetryService.odex
/system/vendor/app/SSGTelemetryService/oat/arm64/SSGTelemetryService.vdex
/system/vendor/app/TimeService/oat/arm64/TimeService.odex
/system/vendor/app/TimeService/oat/arm64/TimeService.vdex
/system/vendor/app/TimeService/TimeService.apk
/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so
/system/vendor/lib/mediadrm/libwvdrmengine.so
/system/vendor/lib/libmmcamera_imx386_semco.so
Obviously, in android 9 based miui 10, xiaomi.eu has removed encryption files from vendor, not just modified "fstab.qcomm".
On Mi6 10.4.2.0, I successfully encrypted /sdcard/ with above files.
In fact, you only need to replace fstab.qcomm at vendor/etc from the one included at eu miui from the one at stock rom.
This file as a size if 2KB
watert said:
Sorry, but I will add the file lists that should be added/replaced from china miui rom in hours later (about 3 MB).
Click to expand...
Click to collapse
Modification of "vendor/etc/fstab.qcomm" worked on android 8 based xiaomi.eu's miui, but not for android 9 based xiaomi.eu's miui -- at least for MI6.
If you only modify fstab.qcomm, but do not copy files which actually did the encryption job, encryption is fake (although it showed encrypted on "setting"). Check this by : goto twrp, click 'cancel' when it asks for gesture, then you would find you can still access files on /sdcard/ (without encryption).
bartito said:
In fact, you only need to replace fstab.qcomm at vendor/etc from the one included at eu miui from the one at stock rom.
This file as a size if 2KB
Click to expand...
Click to collapse
I have only modified fstab file and my device is encrypted (see screenshot).
The only that you need to do it not to do a format data under twrp after install EU ROM.
This is due the phone encryption will be done in global ROM. EU is not capable to do it even with the modified fstab, 9nly that can do is to manage a previously encrypted partition.
watert said:
Modification of "vendor/etc/fstab.qcomm" worked on android 8 based xiaomi.eu's miui, but not for android 9 based xiaomi.eu's miui.
If you only modify fstab.qcomm, but do not copy files which actually did the encryption job, encryption is fake (although it showed encrypted on "setting"). Check this by : goto twrp, click 'cancel' when it asks for gesture, then you would find you can still access files on /sdcard/ (without encryption).
Click to expand...
Click to collapse
Yes, that is one way. but I'd like to format/wipe everything in twrp before flashing.
If data partition was formated, I think ~3 MB files from china rom are necessary for encryption.
bartito said:
I have only modified fstab file and my device is encrypted (see screenshot).
The only that you need to do it not to do a format data under twrp after install EU ROM.
This is due the phone encryption will be done in global ROM. EU is not capable to do it even with the modified fstab, 9nly that can do is to manage a previously encrypted partition.
Click to expand...
Click to collapse
Please, post the files when possible. I will check. Thanks
watert said:
Yes, that is one way. but I'd like to format/wipe everything in twrp before flashing.
If data partition was formated, I think ~3 MB files from china rom are necessary for encryption.
Click to expand...
Click to collapse
hoehm72 said:
I am using the EU ROM for months encrypted (FBE).
It's a little complicated to get there (and to stay), but it can be done.
1. You need to come from an encrypted MIUI Rom
2. Enter TWRP, enter your decryption code.
Important note: NEVER format in TWRP, otherwise you'll have to start from MIUI again (which means flashing with MiFlash).
4. Dirty flash EU Rom. Do NOT reboot.
5. After flashing the ROM, go to the main menu in TWRP and mount the Vendor partition.
6. Install the attached Zip file with TWRP (copy to phone before starting the whole procedure steps)
7. Reboot
As I said I followed this procedure for the last months, running EU and still encrypted.
You have to do ALL the steps 2-7) again EVERYTIME you flash a new EU Rom.
Click to expand...
Click to collapse
For me this works with actual miui eu.
I checked it in TWRP too.
But maybe you need these 3MB when you do a clean start, without official miui first.
Seosam said:
For me this works with actual miui eu.
I checked it in TWRP too.
But maybe you need these 3MB when you do a clean start, without official miui first.
Click to expand...
Click to collapse
absolutely agree

stuck

my Xiaomi note 10 pro stuck in fastboot how can i solve it?
orsheli said:
my Xiaomi note 10 pro stuck in fastboot how can i solve it?
Click to expand...
Click to collapse
You bootloader is unlock?? Reinstall stock rom by miflash .
i do so and there is an eroor : can not found file flash_all_lock.bat
orsheli said:
i do so and there is an eroor : can not found file flash_all_lock.bat
Click to expand...
Click to collapse
Extract the fastboot ROM.
Then select the extracted ROM folder (not "images"). Should be fine
i get the same error
can you give a link to download rom for miflash for xiaomi mi note 10 pro ?
orsheli said:
can you give a link to download rom for miflash for xiaomi mi note 10 pro ?
Click to expand...
Click to collapse
You will find them all here.
https://t.me/s/MIUIUpdatesTracker?q=#tucana
Download a fastboot ROM and extract the .tgz archive then extract the resulting .tar file then point miflash at the extracted folder.
i extract the .tgz with 7-zip and ther us no .tar ???
i extract again the directory and it will ectract well . finally i flash it. thank you so much.

How to reverse to Chinese Stock rom, from global.eu ? UPDATED - SUCCESFULLY

I have Mi 10 Ultra Dual Sim, with Miui 12.5 V12.5.6.0 RJJCNXM Stable - Miui by Xiaomi.eu
And the phone has TWRP
And I want to flash Miui Stock China and to have original recovery with original rom.
1. Can I flash Chinese Rom Recovery thru TWRP, with WIPE, Flash Roma Chinese and after that FLASH Lazyflasher ? this method will install stock succesfully ?
2. I tried to flash Stock Chinese Fastboot rom, with Xiaomi Mi Flash, the phone is Unlocked, but when I press FLASH after 2 second apear ( erasing boot error )
3. Is there another option ?
I have attach file here with error in MiFlash, thank you
Update - Succes
That error from ERASING BOOT, is from version of MIFLASH !
I will put here all steps to go back to Chinese Stock Rom from global
1. Download Xiaomi Mi 10 Ultra Fastboot Rom China from here :
Download Mi 10 Ultra (cas) V12.5.6.0.RJJCNXM MIUI 12.5 Stable Full Rom | XiaomiROM.com
The Stable update V12.5.6.0.RJJCNXM has been officially released for Mi 10 Ultra (codename is cas). Before updating, please make sure you have …
xiaomirom.com
2. Download Xiaomi MiFlash, this version, from here :
MiFlash20200314
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
3. Unpack Xiaomi MiFlash and Unpack Chinese Rom
4. Make a folder in Disk C, withe the name "XiaoMi" ( see pictures )
5. Xiaomi MiFlash put in Local Disk C inside of XiaoMi folder, and the rom folder inside of MiFlash folder
6. Right click on Xiaomi MiFlash app, and Run as Administrator
7. At the end of flashing, it will be an error with red "No catch Checkpoint" but it doesn't matter, don't be worry, the flashing it's done, and everything is ok ! The phone will be with stock rom
8. That's it ! succesfully flashed

How To Guide Restore your Global OnePlus 9 LE2115 via MSM

For those with model LE2115 having trouble restoring their device, follow these steps:
https://easyupload.io/xgw3x5
NOTE: Link expires April 26, 2022
M1-1) Download the above file in this post and extract it to the same directory as your MSM tool.
M1-2) Launch MSM tool and put phone in EDL mode -> flash by choosing Auto Reboot and Firehose Lite opens checked.
M1-3) Phone will reboot to OOS 11 Global. Then update to OOS 12 C36 through System Update.
M1-4) Reboot system. It will have OOS 12 C36 with touchscreen ACTUALLY WORKING.
M1-5) Update to C40 (or whatever the latest version is right now) through System Update.
M1-6) Reboot system. It will have C40 (or whatever updated version you flashed) with everything still working.
M1-7) Reboot to fastboot and unlock bootloader.
M1-8) Reboot to system. Profit.
If the link above has expired, you can do the manual procedures below:
M2-1) Download both OP9 Global and OP9 Pro India MSM packages.
M2-2) Decrypt both OPS files using this tool: https://github.com/bkerler/oppo_decrypt
M2-3) Copy attached settings.xml file and overwrite the extracted settings.xml file (which was created by step 2).
M2-4) Repack the firmware to a new OPS file and copy this to the main MSM folder. Also move all other OPS files out of this folder.
M2-5) Follow steps M1-2 to M1-8.
Why not use global ROM unzip it to ops & flash with msm tool (O2) ?
I flashed my le2110(bricked) that way and after updating android 12 it says I got a le2115 lol
Here my working msm tool drivers (setup exe) all you have to do is download the global rom , I believe I used fizzy of XDA , it saved me twice
File folder on MEGA
mega.nz

Question Scatter File Mediatek 6895-GT NEO 3 150W

Hi, Do you know any way to get the scatter file of the mt6895 "Dimensity 8100". I have a Rom Extracted from the Payload . I would like to flash but I don't have the scatter file.
I appreciate the help
nprotecc said:
Hi, Do you know any way to get the scatter file of the mt6895 "Dimensity 8100". I have a Rom Extracted from the Payload . I would like to flash but I don't have the scatter file.
I appreciate the help
Click to expand...
Click to collapse
You can try this scatter (Oneplus Ace)
But in this momet d n exist auth bypass file for dimencity 8100
And you cant flash, because this
nprotecc said:
Hi, Do you know any way to get the scatter file of the mt6895 "Dimensity 8100". I have a Rom Extracted from the Payload . I would like to flash but I don't have the scatter file.
I appreciate the help
Click to expand...
Click to collapse
And, can you upload a full backup?
GTAstar said:
And, can you upload a full backup?
Click to expand...
Click to collapse
the rom is extracted of this https://github.com/ChuJian2/ota_update
I'm going to test that scatter file.. thanks
Use fastboot enhance to flash the payload.bin.
[TOOL][Windows] Fastboot Enhance [Payload Dumper & Image Flasher]
Fastboot Enhance What it can do? - Show fastboot vars - Switch between fastbootd & bootloader - Switch between A & B slot - Flash Payload.bin in fastbootd - Flash images - Erase partitions - Delete logical partitions - Create logical partitions...
forum.xda-developers.com
antonic said:
Use fastboot enhance to flash the payload.bin.
[TOOL][Windows] Fastboot Enhance [Payload Dumper & Image Flasher]
Fastboot Enhance What it can do? - Show fastboot vars - Switch between fastbootd & bootloader - Switch between A & B slot - Flash Payload.bin in fastbootd - Flash images - Erase partitions - Delete logical partitions - Create logical partitions...
forum.xda-developers.com
Click to expand...
Click to collapse
i try to flash the payload.bin .. but it did not make any changes, I guess I need to have the bootloader unlocked... but the RMX3563 doesn't have Deeptesting app supported
Can you try the deep test app of RMX3562 on your phone?
antonic said:
Can you try the deep test app of RMX3562 on your phone?
Click to expand...
Click to collapse
i tried but this always happens, i have RMX3563 <- GT Neo 3 150w Global ROM
nprotecc said:
i tried but this always happens, i have RMX3563 <- GT Neo 3 150w Global ROM
Click to expand...
Click to collapse
Try this
GTAstar said:
Try this
Click to expand...
Click to collapse
none worked
This is the original scatter file
Can you upload payload and that properties?
Is it flashing with SP_Flash_Tool?
nprotecc said:
Hi, Do you know any way to get the scatter file of the mt6895 "Dimensity 8100". I have a Rom Extracted from the Payload . I would like to flash but I don't have the scatter file.
I appreciate the help
Click to expand...
Click to collapse

Categories

Resources