file-based-encryption on Redmi 4x Nougat? - Xiaomi Redmi 4X Questions & Answers

I want to enable nougat FBE aka file-based-encryption ( armv8 support AES, so performance is acceptable?) on my rr custom rom+magisk+xposed system, should I proceed following steps and does sequence matter?
1. Revert TWRP to stock MI recovery (how?)
2. Re-lock BL (must with stock recovery? keep my current data?
3. Enable data encryption ( cannot undo? mount data in TWRP possible with password offered? )
Is step 3 applied alone safe enough ? (considering qualcomm 9008 )
Thanks!

Related

from EU to Official Global MIUI 8?

Hi All,
How Do i keep TWRP and flash MIUI 8 official global stable?
right now, Im stuck at MI logo with no progress dots that we usually see after rebooting to system. TWRP is still accessible though.
what I did is:
1. from TWRP recovery -> wipe dalvik, cache, system, data
2. install/flash MIUI 8 global rom zip from internal storage
3. reboot to recovery (TWRP)
4. from TWRP, reboot to System (to prevent TWRP recovery from being overwritten by stock recovery as others say)
basically, I want to retain my TWRP and use MIUI 8 Official Global rom. I'm coming from EU rom 8.0.10.0.
Also, Is it correct to use the recovery rom and not the fastboot rom?
Thanks in Advance, and will surely hit thanks with any help I can get.
Flash it via fastboot.

solved: Can't get past Error 7 (T713) - Bootloader?

1. I flashed TWRP 3.2.1.0 in download mode via Odin from here: https://dl.twrp.me/gts28vewifi/
2. Tried to flash Lineage 15.1 several times, from here: https://forum.xda-developers.com/tab-s2/orig-development/rom-lineageos-15-0-t3666233
3. Formatted all partitions via Format Data and Advanced Wipe in TWRP due to Error 7 messages from #2 (from USB-OTG thumb drive)
4. Then found a different how-to which had a step about unlocking bootloader. I didn't do that :fingers-crossed:
5. In download mode I see Qualcomm Secureboot: Enable (CSB) and Secure Download (enable)
6. Flashed SM-T713_1_20170118200126_cbhdxlhcd3 in Odin.
6. Back to stock rom, good. Unlocked bootloader here.
7. Reflashed TWRP.
8. Formatted Data in TWRP again.
9. Tried to flash Lineage again... Error 7:
This package supports bootloader(s): T713XXu2BQCW, T713XXu2BQD3, T713XXu2BQG2, T713XXu2BQI1; this device has bootloader T713ZSUAQA1.
Click to expand...
Click to collapse
solution:
Flash latest image from samfirm (via odin)
boot in to that
reflash twrp (odin)
format data in twrp (wipe -> format data)
Can't you just use kingroot?

Dummies guide to update to a Pie rom succesfully from stock Oxygen OS Stable build?

can someone create or show me Dummies guide to update to a Pie rom succesfully ? am currently on stock Oxygen OS Stable build 5.0.6- NO Bootloader unlock/ NO TWRP installed.Help appreciated!
bump
carreddy said:
can someone create or show me Dummies guide to update to a Pie rom succesfully ? am currently on stock Oxygen OS Stable build 5.0.6- NO Bootloader unlock/ NO TWRP installed.Help appreciated!
Click to expand...
Click to collapse
You can't update it to pie until it's an official update, you need to wipe and install a custom rom.
1. Setup fastboot on a computer or other android phone(search guide for your OS)
2. turn on dev mode in android (spam tap build info in android settings)
3. enable oem unlocking in new dev menu in android settings
4. enter bootloader mode on phone
5. run "fastboot oem unlock" (erases all data)
6. follow onscreen prompt
7. got back into bootloader
8. flash twrp with "fastboot flash recovery IMAGEFILE.IMG".
9. Reboot into twrp
10. go to wipe and format system, cache, and data
11. reboot twrp
12. copy rom, and optionally gapps, magisk, nanodroid, etc zips to phone
13. install rom, then the other zips if wanted
14. reboot
namanjr said:
You can't update it to pie until it's an official update, you need to wipe and install a custom rom.
1. Setup fastboot on a computer or other android phone(search guide for your OS)
2. turn on dev mode in android (spam tap build info in android settings)
3. enable oem unlocking in new dev menu in android settings
4. enter bootloader mode on phone
5. run "fastboot oem unlock" (erases all data)
6. follow onscreen prompt
7. got back into bootloader
8. flash twrp with "fastboot flash recovery IMAGEFILE.IMG".
9. Reboot into twrp
10. go to wipe and format system, cache, and data
11. reboot twrp
12. copy rom, and optionally gapps, magisk, nanodroid, etc zips to phone
13. install rom, then the other zips if wanted
14. reboot
Click to expand...
Click to collapse
Thank you for the detailed info. My problem is I can't boot into a PIE rom after all this as it ask's for password which i dont know.Please guide me through if possible
carreddy said:
Thank you for the detailed info. My problem is I can't boot into a PIE rom after all this as it ask's for password which i dont know.Please guide me through if possible
Click to expand...
Click to collapse
It's the password for hardware full disk encryption. Double check the rom you chose works with that, some only support software. Alternatively you can format data in TWRP after making a backup and copying to another device, or usb.
I don't have any encryption password. The device is encrypted by default.
carreddy said:
I don't have any encryption password. The device is encrypted by default.
Click to expand...
Click to collapse
Most likely the rom doesn't support hardware encryption.

Locking the Bootloader

Hello everyone,
as many of you, I also want to lock my bootloader after finding that my X2 Pro bought used few days ago was unlocked and with TWRP installed.
It was stuck to Color OS 6 with security patch updated at february and it had installed Magisk.
I tried to flash Realme UI but I couldn't because it had installed official TWRP and not the right one.
I formatted everything and after some hours of research and trials I managed to install Realme UI with security patches updated (october).
Now, I don't have TWRP but official recovery instead. No signs of Magisk and any other data because I formatted everything few time during my flashing trials.
I don't have fingerprint and face recognition, I think due to the fact the bootloader is unlock, yet.
To overcome this, I found a video-guide used for X2 (not Pro) in which I saw that after flashing the Realme UI, rebooting recovery and formatting data, those sensors worked again but with X2 Pro this procedure won't work.
To recap: I have official firmware and recovery, no fingerprint and face recognition. I think that I can use the official guide for locking the bootloader again as the app says that I can roll-out from the in-depth program.
Was someone in my situation? I mean, locking the bootloader with FP and FU disabled before relocking?
I ask this because I found a thread in which the user said that it was necessary to make FU and FP work again before locking the bootloader.
I had this phone for less than a week and I can't take a decision.
Thank to anyone in advance.
you must now download the FASTBOOT format of Android9 pie rom (6gb) and use REALME FLASHER which will
1. place original recovery
2. flash all partitions and downgrade your device to android pie (Color OS 6.1)
reboot
test you onscreen fb and other sensors while on setup ( IT SHOULD WORK) because you are on stock recovery! and vbmeta.img is untouched
now install DEEP testing and wait, it will check your device (use 4g data sim / NOT WIFI)
click end deep testing!
this will RELOCK your bootloader, (while you are on Original recovery ) and wipe all the data!
now your device is locked again!,
download ROM (recovery rom) from realme site, for latest REALME UI ( this file will be OPPO encrypted 3gb of .0zip) but since you are on stock recovery, you can use it to flash it.
reboot again to the NEWEST Realme ui and check the fingerprint sensor
now install DEEP TESTING APK again and try unlocking the BOOTLOADER, once unlocked the the DATA will be WIPED AGAIN
now you are on REALME UI (latest), stock recovery, no partitions altered and you will be taken to SETUP again,
your FB should work!
join this text and see the guide (xda keep sensoring it so i had to break it)
thecustomdroi d.com/realme-flash-tool/
YasuHamed said:
you must now download the FASTBOOT format of Android9 pie rom (6gb) and use REALME FLASHER which will
1. place original recovery
2. flash all partitions and downgrade your device to android pie (Color OS 6.1)
reboot
test you onscreen fb and other sensors while on setup ( IT SHOULD WORK) because you are on stock recovery! and vbmeta.img is untouched
now install DEEP testing and wait, it will check your device (use 4g data sim / NOT WIFI)
click end deep testing!
this will RELOCK your bootloader, (while you are on Original recovery ) and wipe all the data!
now your device is locked again!,
download ROM (recovery rom) from realme site, for latest REALME UI ( this file will be OPPO encrypted 3gb of .0zip) but since you are on stock recovery, you can use it to flash it.
reboot again to the NEWEST Realme ui and check the fingerprint sensor
now install DEEP TESTING APK again and try unlocking the BOOTLOADER, once unlocked the the DATA will be WIPED AGAIN
now you are on REALME UI (latest), stock recovery, no partitions altered and you will be taken to SETUP again,
your FB should work!
join this text and see the guide (xda keep sensoring it so i had to break it)
thecustomdroi d.com/realme-flash-tool/
Click to expand...
Click to collapse
OMG tahnk you so much for your help.
I didn't receive any notification of your reply so I couldn't answer you before.
Before reading your reply I successfully locked the bootloader with REALME UI on it but FP and FU doesn't work.
I thought that it may be caused by the fact that bootloader was unlocked with Colors OS 6.1 (Android 9) and then I relocked it with Realme UI 1.0 (Android 10).
For this operation I used the official tool usable only with Android 10.
Do you think I should unlock the bootloader again, downgrade to Color OS 6.1, lock the bootloader and only then update my device to Realme UI?
If so, how can I downgrade the Android version? With their flashing tool it can't be done.
Hope you well and thank you in advance for your help.
Dude try this,
Download Realme flash tools here from my Google Drive:
realme_Flash_Tool_V2.zip
drive.google.com
Now download OFP file to use with the flash tool here:
OFP files
https://www.droidwin.com/flash-ofp-realme-flash-tool/
docs.google.com
Boot into bootloader and flash it. See if it helps.

Root Without Dataloss [Bootloader Unlocked][Recovery Not Flashed]

Hey folk, My redmi k20 pro running on MIUI 12.5.1. I have unlocked bootloader succesfully but at that time i have not flashed twrp recovery. Now, i have almost 80 GB full storage and i don't want to backup. Is there any ways that i can flash recevery without data lost and enable root access to my device.
Goal: Enable magisk to make device certified and install MIUI launcher instead of poco launcher.
A AJAY said:
Hey folk, My redmi k20 pro running on MIUI 12.5.1. I have unlocked bootloader succesfully but at that time i have not flashed twrp recovery. Now, i have almost 80 GB full storage and i don't want to backup. Is there any ways that i can flash recevery without data lost and enable root access to my device.
Goal: Enable magisk to make device certified and install MIUI launcher instead of poco launcher.
Click to expand...
Click to collapse
TWRP flashes to recovery partition, while your settings, apps, documents, photos are on Data and Internal memory - hence by properly installing TWRP you will not affect your data (sirorryy, I will not teach/guide/assist how to flash TWRP, guides are available everywhere, they are mostly common to the various Xiaomi phones - and I don't have your phone anymore)
Also, Magisk patches to boot partition, Magisk data etc reside on data partition - hence it is again independent of flashing TWRP to recovery
Btw, you actually don't need TWRP or custom recovery to install Magisk.
The recommended method is to patch your boot.img and to flash the patched boot img through Fastboot.
Again, guides are available on XDA and elsewhere, incl. the official Magisk documentation on Github.
Although, installing Magisk should still work through TWRP as long as there is a compatible TWRP/custom recovery for the given device (seek on TWRP.me)
Advice: Please go through the Guides section and Questions section and read/study about installing custom recovery (for your device), Magisk etc.
That is also a general rule on XDA - search, read, study before asking (users usually don't have time and energy to guide newbies through the procedures that are already documented - and questions like here do fall into that cathegory)

Categories

Resources