Automatic encryption - Xiaomi Redmi 4X Questions & Answers

How to fix this ....whenever I install any custom (I have tried 5-6) it gets automatically encrypted and there is no option to remove encryption.
Any solution???

dont post these type of question here . Post this in question and anwser or Guides and Discussion Forums .

rkdok23 said:
dont post these type of question here . Post this in question and anwser or Guides and Discussion Forums .
Click to expand...
Click to collapse
Ok

Moderator kindly remove this thread

Format data partition.
Not into twrp and choose" format data " then type yes
You will loss all your data including internal

Related

[resolved] Full wipe

Can anyone bring me through the steps for fully wiping all the data from my device?
Also to remove all the previous tweaks etc so that there will be no conflicts
Also not sure of which parts of internal sdcard can be deleted, or can I just delete everything in there?
chongc1996 said:
Can anyone bring me through the steps for fully wiping all the data from my device?
Also to remove all the previous tweaks etc so that there will be no conflicts
Also not sure of which parts of internal sdcard can be deleted, or can I just delete everything in there?
Click to expand...
Click to collapse
Your question has been posted multiple times . Forum rules require you to search before posting .
Google <<< I9300 your search terms > xda
STICKYS
http://forum.xda-developers.com/showthread.php?t=2344125
In recovery format data cache system and sdcard .
Boot to download mode flash stock rom via Odin .
JJEgan said:
Your question has been posted multiple times . Forum rules require you to search before posting .
Google <<< I9300 your search terms > xda
STICKYS
http://forum.xda-developers.com/showthread.php?t=2344125
In recovery format data cache system and sdcard .
Boot to download mode flash stock rom via Odin .
Click to expand...
Click to collapse
sorry I found threads but were mainly for other devices, wanted to double check before wiping everything. Will search more in the future

LOCKED: How to Reset Pattern? (Urgent)

Hello,
My Device: Oneplus 3T
I have installed multirom on my mobile with Resurrection and MIUI installed ROMs. Although i insert the correct pattern, some how both the OS not accepting the pattern after reboot and my phone is locked . Please help me to unlock/reset the pattern.
Note: I have TWRP 3.0.3 (Multirom) installed in my device and the phone is rooted.
Amitshahc said:
Hello,
My Device: Oneplus 3T
I have installed multirom on my mobile with Resurrection and MIUI installed ROMs. Although i insert the correct pattern, some how both the OS not accepting the pattern after reboot and my phone is locked . Please help me to unlock/reset the pattern.
Note: I have TWRP 3.0.3 (Multirom) installed in my device and the phone is rooted.
Click to expand...
Click to collapse
Boot into TWRP and go to the file manager under advanced. From here cd to data/system/ and delete the 2 .key extension files along with the lockscreen.db files. This will remove your lockscreen from your primary rom. You can do the same with secondary. This is a known MultiROM bug and a quick search in the thread would have provided you with the answer.
cmbdom said:
Boot into TWRP and go to the file manager under advanced. From here cd to data/system/ and delete the 2 .key extension files along with the lockscreen.db files. This will remove your lockscreen from your primary rom. You can do the same with secondary. This is a known MultiROM bug and a quick search in the thread would have provided you with the answer.
Click to expand...
Click to collapse
Thanks for your reply, but i already found those solutions and tried too.
But still the Resurrection OS is locked. while the internal OS which points to MIUI is unlocked and not asking anything. should i reinstall the 2nd OS of Resurrection?
Now there are no .key files or lockscreen.db files in /data/system.
Amitshahc said:
Thanks for your reply, but i already found those solutions and tried too.
But still the Resurrection OS is locked. while the internal OS which points to MIUI is unlocked and not asking anything. should i reinstall the 2nd OS of Resurrection?
Now there are no .key files or lockscreen.db files in /data/system.
Click to expand...
Click to collapse
You now need to travel to your secondary rom's install location (ex. Internal Storage). I'd assume you installed it to the userdata partition so travel to sdcard/MultiROM/ then continue to data/system/. If it is not in this location then take a quick Google search for the partition you installed it to.
cmbdom said:
You now need to travel to your secondary rom's install location (ex. Internal Storage). I'd assume you installed it to the userdata partition so travel to sdcard/MultiROM/ then continue to data/system/. If it is not in this location then take a quick Google search for the partition you installed it to.
Click to expand...
Click to collapse
Thanks, this seems something would have worked if I didn't had deleted and reinstalled the OS. sorry I can't wait so reinstalled it. I will try to follow this next time if I face the same issue. thanks...
cmbdom said:
You now need to travel to your secondary rom's install location (ex. Internal Storage). I'd assume you installed it to the userdata partition so travel to sdcard/MultiROM/ then continue to data/system/. If it is not in this location then take a quick Google search for the partition you installed it to.
Click to expand...
Click to collapse
[Solved] :good:
Thanks, this one really worked for me.. the path was sdcard/multirom/roms and then data/system.
Amitshahc said:
[Solved] :good:
Thanks, this one really worked for me.. the path was sdcard/multirom/roms and then data/system.
Click to expand...
Click to collapse
This happens whenever you set a lockscreen pattern while using MultiROM on any of the installed ROMs.

format data

Hello just a simple question about format data in twrp, i can't find a real answer on google, if i format data to get rid of encryption (not only factory reset) will my os still be there or i'll have to flash a rom to get my device booting as usual?
That means if i format data can i reboot my phone right after normally? I know all my pics apps etc will be lost but os will still be there?
I suggest u upgrade twrp to 3.1.0.1 and you will not have to format data.
if you will saty on your twrp and format data your os will stay there, dont worry....
t.h.i said:
I suggest u upgrade twrp to 3.1.0.1 and you will not have to format data.
if you will saty on your twrp and format data your os will stay there, dont worry....
Click to expand...
Click to collapse
So no need to format data if i want to install lineage for example? I'm already on latest twrp 3.1.0-1 . I ask this cause last time i tried to install lineage it ended up with a softbrick and had to install a fastboot rom and setting up my phone from scratch.
...also, take a look at the FAQ page of twrp website
here: https://twrp.me/FAQ/
from that list: this entry has the title "What should I wipe in TWRP?"
https://twrp.me/faq/whattowipe.html
advice: first do a backup in twrp; a full one chosing sysimage instead of system ...so if something goes wrong you can go back.
note: in the twrp faq page there is an entry related to the backup procedure.
Good read and tell us about your progress.
glogal said:
...also, take a look at the FAQ page of twrp website
here: https://twrp.me/FAQ/
from that list: this entry has the title "What should I wipe in TWRP?"
https://twrp.me/faq/whattowipe.html
advice: first do a backup in twrp; a full one chosing sysimage instead of system ...so if something goes wrong you can go back.
note: in the twrp faq page there is an entry related to the backup procedure.
Good read and tell us about your progress.
Click to expand...
Click to collapse
Thx for the info i already read this, but i'm french and i couldn't find a real explanation between wipe and format and what was left on the system after each operation , even in french forum it wasn't clear!! Anyway i format data and installed last RR build running good so far!!

Why custom ROMs not friendly with encryption?

Hi to all!
It seems custom ROMs are not supports encryption of user data... Why?
After stock MIUI on Xiaomi Redmi 4X I try sevral custom ROMS, and from all of it I cannot encrypt user data partition.
Custom ROMs are (all latest official): Resurrection Remix, AOSP Extended and LineageOS 14.
My steps:
0) flash phone with stock recovery via MiFlash (to restore "innocent state");
1) install latest TWRP (v3.1.1);
2) wipe all partotions except SD card and insstall custom ROM from SD card;
3) new system initial setup without "ask password on boot";
4) go to Settings -> Security -> Encrypt User Data;
Phone performs reboot and data still not encrypted.
All three custom ROMs behave the same at this point.
If perform initial setup with "boot password prompt", user data is whown as encrypted in Security settings, but TWRP still not asks password on booting to recovery mode. And I can unpack backup archive produced by TWRP (it seems not encrypted).
So, my question: if I not produce mistake, it seems custom ROMs are not friendly with data encryption, why? And is it possible to fix it?
p.s.
Also I try to erase data with "fastboot format userdata" and configure phone again. It not helps to solve problem.
Hi. Perhaps anybody can bring some light into this encryption issues?
My situation is a little different:
I installed LineageOS 14.1 from TingyiChen. But did not format /data. So it is still encrypted. I did not try to restore an backup from data within twrp yet. But I have read that there can occure problems?
The official version of twrp (3.2.1.0) is not able to decrypt /data. But there is an inofficial version (3.1.1) that works with encrypted data? Please tell me what's the difference? Is it only the switch "TARGET_HW_DISK_ENCRYPTION "? Why did TingChen remove encryption feature two weeks ago in his github repo (Sorry, I'm not allowed to post links yet)?
Fingerprint unlock is not working after reboot anymore. I have read that this also is because of encrypted data. partition. Please tell me what's the problem here or point me to a thread which covers this topic. I was unable to find one yet.
If I do a backup of my data partition in twrp and format it to disable encryption. Can I then restore this backup or what do I need to do for disabling encryption without loosing my data?
Thank you for your answers.
Regards,
Oliver
olistudent said:
Hi. Perhaps anybody can bring some light into this encryption issues?
My situation is a little different:
I installed LineageOS 14.1 from TingyiChen. But did not format /data. So it is still encrypted. I did not try to restore an backup from data within twrp yet. But I have read that there can occure problems?
The official version of twrp (3.2.1.0) is not able to decrypt /data. But there is an inofficial version (3.1.1) that works with encrypted data? Please tell me what's the difference? Is it only the switch "TARGET_HW_DISK_ENCRYPTION "? Why did TingChen remove encryption feature two weeks ago in his github repo (Sorry, I'm not allowed to post links yet)?
Fingerprint unlock is not working after reboot anymore. I have read that this also is because of encrypted data. partition. Please tell me what's the problem here or point me to a thread which covers this topic. I was unable to find one yet.
If I do a backup of my data partition in twrp and format it to disable encryption. Can I then restore this backup or what do I need to do for disabling encryption without loosing my data?
Thank you for your answers.
Regards,
Oliver
Click to expand...
Click to collapse
Wipe Internal Data & perform Clean flash, you will have to dothis everytine you flash ROM. Some says Custom TWRP (redwolf port) Have solved the issue, but Better wipe Internal everytime you flash a ROM
---------- Post added at 08:10 PM ---------- Previous post was at 08:06 PM ----------
it's very easy for anyone with just a little bit of knowledge to get around any kind of security that TWRP might have. All they have to do is flash one of the other recoveries that's available that doesn't have password protection to get around it. You can Still flash a Custom Recovery by PC without prompting a pass again. And you're Internal is already Encrypted. Stay at MIUI with Unlocked bootloader if you're too much concerned with the security.... But an expert will use test points to Unlock that too...

{WARNING} Realme X2 RMX1992AEX

Guys,
Custom ROMs are working with RMX1992EX version only as of now.
If your mobile is RMX1992AEX, DO NOT INSTALL CUSTOM ROM without precautions.
read the instructions given in before starting.
{Mod edit}
Issue related to rmx1992aex
Hi friend, I've 199AEX indian varient. I was on C_08 update before I flashed the latest C_11 via twrp. At that time I took backup of all the partition of C08 update just to be on safer side before I attempt to update C_11 via twrp.
The update was successful and the update of C_11 was running fine but due to my own mistake I cleared fbe cache from recovery the next day and my entire internal storage including data partition was encrypted and I was stuck in bootloop. I managed to boot back to system on C_11 by formatting the data partition and internal storage.
Now I want to restore the backup of C_08 back to my phone so that atleast I can get the apps and its data back.
I tried flashing the old C_08 zip over C_11 and got the error that
"this software is 1970, the current one is 1971"
Simply means I cannot flash old update over the latest one.
I tried editing the updater script and removed the line which detected the software version but I got a new twrp error :5 about which there no information on Google.
I directly tried restoring the data partition of C_08 over C_11 but got error : "createTarFork() : error 255"
Tried all the solution out there on the Internet to no help.
I wanted to know if there's any way I can get back to the old C_08 update somehow so that I can restore the old twrp backup and get back all the lost data.
I was wondering if there are and fastboot images of Realme UI for "1992AEX" model so that it can help to go back to first realme UI version using which I can flash the c_08 update and restore the data.
Or if there is any other way I can get back, please help me with it.
nani67 said:
Guys,
Custom ROMs are working with RMX1992EX version only as of now.
If your mobile is RMX1992AEX, DO NOT INSTALL CUSTOM ROM without precautions.
read the instructions given in before starting.
{Mod edit}
Click to expand...
Click to collapse
@nani67 THREAD CLOSED and OP edited!
We only grant developers the privilege to post about their social media in the OP of their own development thread; these conditions don't apply here.
XDA Forum Rules (excerpt):
...
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
...
Click to expand...
Click to collapse

Categories

Resources