Installing Xposed via TWRP on encrypted internal sd - Xposed General

I encrypted my internal drive last nite and just now installed android now, which was not straightforward like before as I had to put the zip on the unencrypted external SD.
I have tried to install xposed but it does not work as it comes up with errors in accessing /data which would be on the encrypted drive.
Is there anyway to get around this or do I just have to unencrypt (not sure i can as i remember it said this operation is not reversible! Lol) or do a clean install from scratch and make sure I dont encrypt it again to ensure compatibility with xposed (and other mods I might want to try in future)?
Sent from my LG-D855 using Tapatalk

Mmh what version of TWRP are you using? Latest TWRP should be able to decrypt the data partition (for CM 12 since 2.8.5.6 i think) , for Stock Roms i am not sure, they can be different though

I had the same thing happen. However, I was running a GPE rom. GPE has it's own encryption that is not standard so TWRP couldn't decrypt it.
However, generally speaking the newer versions of TWRP can decrypt android encryption so you can install and remain encrypted. You'll just need to enter your password. That could be a pin unlock or pattern unlock.

Related

[Q] How to mount encrypted storage with TWRP?

I'm using Android Revolution HD 30 and TWRP 2.6.3.0 (Flyhalf205 version). The phone is S-OFF.
I tried to encrypt the phone storage. It worked, but TWRP was not able to mount /data anymore. It should have asked me for the encryption password, but it didn't.
What are the commands to mount /data using and adb shell?
Regards
Same issue here. TWRP 2.6.3.0 asks for password on Nexus 7 (2012), doesn't ask or mount anything on my One. I'm on the latest stock GPE ROM, S-ON, custom kernel with /system protection off.
I feel uncomfortable knowing that if I lose my phone, anyone could very easily retrieve private content.
At least with stock recovery and locked bootloader, accessing private content requires motivation and work, since simply unlocking the bootloader to install a custom recovery would erase /data/ partition too.
With a custom recovery installed the risk is even worse, since reading personal data doesn't require any work.

How to encrypt Nexus 6 7.1.1 Build N6F27M

I have an Nexus 6 Version 7.1.1. The complete Storage is crypted. So it is not possible to wipe the data and system by using TWRP. I did an factory reset but after that the storage also was crypted. How can I encrypt these Version of Nexus 6?
I believe that the stock rom forces encryption.
Use TWRP's format data to remove encryption if you want to install a recent custom rom. Of course, you'll lose all your files by doing that.
Hi, thank you. But if I install twrp on this N6, I need for using twrp a password. If I try to format user Data, the formatting dont work. After start android I have the same crypted data storage. I thing, android install after new starting an crypted storage! I try now to install lineage os after formatting data.
runekock said:
I believe that the stock rom forces encryption.
Use TWRP's format data to remove encryption if you want to install a recent custom rom. Of course, you'll lose all your files by doing that.
Click to expand...
Click to collapse
Hi runcock,
thank you for your help. I installed twrp, formatted all data removed encryption and installed lineageos 17.1 and gaps by using extern otg-storage. All funktions on the nexus 6 works normally. Update to the last version of shamu also worked. Thank you till the next question!

How to prevent data/internal storage encryption after ROM switch?

Yesterday i flashed xiome eu stable ROM from weekly beta but couldn't boot as all my data was encrypted with strange random folder name. I had to format data to boot into ROM. I am using orange fox kwrnel 11.0. How can i prevent this from happen in future when flashing other ROM?
shoeseat said:
Yesterday i flashed xiome eu stable ROM from weekly beta but couldn't boot as all my data was encrypted with strange random folder name. I had to format data to boot into ROM. I am using orange fox kwrnel 11.0. How can i prevent this from happen in future when flashing other ROM?
Click to expand...
Click to collapse
When switching ROM you have to Format Data in TWRP. Not just because of strange folder names but to avoid all kinds of troubles. New ROM will encrypt Data and Internal storage, you will have protection and everything will properly work as originally
New TWRP versions know how to read encryption, when booting to TWRP you will have to enter your Android Pin/Pattern (same as when you boot to Android or you use to unlock the screem in Android) and TWRP will then also work properly
That's the price of switching ROMs. Backup your Data to PC, backup things (WA and so) to Google and cloud, etc, and restore upon installing the new ROM (btw, I use also Mi Cloud and it restores automatically my apps and other things)
Otherwise, you had to Forrmat Data originally and flash DFE = Disable Forced Encryption (I never used, old school from the times when TWRP did not know to work with encrypted Data and Internal storage) with all your ROMs to prevent them to encrypt. However, you would have no protection then (in Android and TWRP).
Furthermore, after switching the ROM, you could expect then various troubles since new ROM trying to work with settings saved by the old ROM.
Hence, you would still have to Wipe Data upon that ROM switch - therefore, what do you get then by avoiding formatting and proper encryption to automatically happen when booting to the newly installed ROM
Thanks for the explanation but this encryption of data and formatting data partition was never the problem in my past devicea like nexus 5 and oneplus 3 roms. I freely flashed many roms in those devices without formatting my internal storage. Wiping data and system were the only thing i did in past to flash new rom. Is this the xiome phones only restriction?
Also if i have to backup all my data in PC Everytime i want to switch to new rom then it's very troublesome and time consuming aa i have 200GB of data in my internal storage. Isn't their any easy way to flash ROMS without entirely formatting my personal data?
shoeseat said:
Thanks for the explanation but this encryption of data and formatting data partition was never the problem in my past devicea like nexus 5 and oneplus 3 roms. I freely flashed many roms in those devices without formatting my internal storage. Wiping data and system were the only thing i did in past to flash new rom. Is this the xiome phones only restriction?
Also if i have to backup all my data in PC Everytime i want to switch to new rom then it's very troublesome and time consuming aa i have 200GB of data in my internal storage. Isn't their any easy way to flash ROMS without entirely formatting my personal data?
Click to expand...
Click to collapse
Things change with the evolution of Android. In the old times rooting was simple, just run King(o) root and then flash CM recovery by flashify, and flash the ROM you wanted - but it doesn't apply anymore
zgfg said:
When switching ROM you have to Format Data in TWRP. Not just because of strange folder names but to avoid all kinds of troubles. New ROM will encrypt Data and Internal storage, you will have protection and everything will properly work as originally
New TWRP versions know how to read encryption, when booting to TWRP you will have to enter your Android Pin/Pattern (same as when you boot to Android or you use to unlock the screem in Android) and TWRP will then also work properly
That's the price of switching ROMs. Backup your Data to PC, backup things (WA and so) to Google and cloud, etc, and restore upon installing the new ROM (btw, I use also Mi Cloud and it restores automatically my apps and other things)
Otherwise, you had to Forrmat Data originally and flash DFE = Disable Forced Encryption (I never used, old school from the times when TWRP did not know to work with encrypted Data and Internal storage) with all your ROMs to prevent them to encrypt. However, you would have no protection then (in Android and TWRP).
Furthermore, after switching the ROM, you could expect then various troubles since new ROM trying to work with settings saved by the old ROM.
Hence, you would still have to Wipe Data upon that ROM switch - therefore, what do you get then by avoiding formatting and proper encryption to automatically happen when booting to the newly installed ROM
Click to expand...
Click to collapse
I agree with you point here but i have been using decrypted storage since i go this phone..Mostly i delete my android folder and other folder which might be created by rom itself after flashing any rom with dfe and never had any issue on new roms.

Question UNABLE TO BACK UP ANY ANDROID 12 MIUI OR CUSTOM ROM (internal storage 0mb) in TWRP

I'm able to use backup & restore in Android 11 custom or miui rom. but unable to use it when i flashed android 12 roms.
Can anyone walk me through how to fix this.
Did the ff workaround in youtube as well in any similar post but still not working.
1. Advance wipe > click data >Repair or Change File System > Change File System to EXT2 & EXT4
2. Format data
This process is temporarily working the internal storage is visible, but after booting to system and go back to twrp recovery, the internal storage appears 0mb again.
I flashed stock rom/ eu rom as well in TWRP as i read this is worked with them. but not on my end.
Kindly help me to solve this issue please.
TWRP is not yet compatible with Android 12, it can't decrypt the internal storage. You can't fix it until TWRP (or some other recovery) solves Android 12 support.
I think in theory you might be able to back up the ROM to an unencrypted storage like an SD Card or OTG USB drive, but I'm not sure (and I'm even less sure if such backup could even be successfully restored if you back the partition up without decrypting).
Use otg usb
rufio85 said:
I'm able to use backup & restore in Android 11 custom or miui rom. but unable to use it when i flashed android 12 roms.
Can anyone walk me through how to fix this.
Did the ff workaround in youtube as well in any similar post but still not working.
1. Advance wipe > click data >Repair or Change File System > Change File System to EXT2 & EXT4
2. Format data
This process is temporarily working the internal storage is visible, but after booting to system and go back to twrp recovery, the internal storage appears 0mb again.
I flashed stock rom/ eu rom as well in TWRP as i read this is worked with them. but not on my end.
Kindly help me to solve this issue please.
Click to expand...
Click to collapse
Case_ said:
TWRP is not yet compatible with Android 12, it can't decrypt the internal storage. You can't fix it until TWRP (or some other recovery) solves Android 12 support.
I think in theory you might be able to back up the ROM to an unencrypted storage like an SD Card or OTG USB drive, but I'm not sure (and I'm even less sure if such backup could even be successfully restored if you back the partition up without decrypting).
Click to expand...
Click to collapse
Cisuwek said:
Use otg usb
Click to expand...
Click to collapse
In my opinion it's only possible to backup encrypted storage as in A12 if you flash DfE but then you'll have to format and later you're decrypted and in future you can backup via TWRP.
But you can copy actual personal files with a file manager, if android is booted up, to external storages or internal micro SD. android internal app data can't copied.
Laptapper said:
In my opinion it's only possible to backup encrypted storage as in A12 if you flash DfE but then you'll have to format and later you're decrypted and in future you can backup via TWRP.
But you can copy actual personal files with a file manager, if android is booted up, to external storages or internal micro SD. android internal app data can't copied.
Click to expand...
Click to collapse
You can install cutom roms, flash magisk, kernel and other stuff. The memory is only encrypted, the rest works perfectly fine. Have you checked on the latest recovery?
A new kernel was flashed an hour ago. I have made a backup of the boot and dtbo images. It really works
Not checked to backup complete rom, but suppose it's possible with otg
Cisuwek said:
You can install cutom roms, flash magisk, kernel and other stuff. The memory is only encrypted, the rest works perfectly fine. Have you checked on the latest recovery?
A new kernel was flashed an hour ago. I have made a backup of the boot and dtbo images. It really works
Not checked to backup complete rom, but suppose it's possible with otg
Click to expand...
Click to collapse
.....Not checked to backup complete rom, but suppose it's possible with otg....?
But this is what he wants to do, or not?
Cisuwek said:
You can install cutom roms, flash magisk, kernel and other stuff.
Click to expand...
Click to collapse
I guess (I was in fact asking about exactly this in another thread recently), but then if the install script tries to modify the data partition in any way (which remains encrypted with current recoveries under Android 12), you're almost certainly screwed and at best the installation will fail, at worst you'll have to reinstall everything.
Thanks for the reply guys..this already solved..with the help of @Laptapper in other thread. Using orangefox, dfe,
How to flash a Android 12 ROM without decryption problem?
I've been struggling to flash Android 12 without my internal storage to be unaccessible by TWRP... I simply can't decrypt my data and the only way to fix it is to format data and revert back to a Android 11 ROM. Did anyone manage to flash Android...
forum.xda-developers.com
here's the thread.
Case_ said:
I guess (I was in fact asking about exactly this in another thread recently), but then if the install script tries to modify the data partition in any way (which remains encrypted with current recoveries under Android 12), you're almost certainly screwed and at best the installation will fail, at worst you'll have to reinstall everything.
Click to expand...
Click to collapse
Previously I had a Redmi note 7. On the encrypted partition, I could also install everything in the same way. I am not a specialist, my knowledge has ended here.

Question TWRP 3.7.0_12 fails to decrypt storage on stock A11?

Hi folks,
So, i'm still on the Stock MIUI 12.5.7 (Android 11).
Before upgrading, i just wanted to check out if TRWP works correctly, so i flashed the most recent official version...and to my surprise, it could _not_ decrypt the internal storage?
Also, in the Backup menu, the EFS and modem partitions have correct sizes, but the dynamic Super partiton is shown as ( 0 MB).
I thought there would be no more issues with such old ROMs...or maybe I'm missing something?
UPDATE:
After wiping data and resetting the phone, TWRP managed to mount the internal storage, as long as there's no PIN on it.
As soon as i enter a PIN in Android, the same PIN entered in TWRP fails to decrypt the internal storage.
Borosin said:
Hi folks,
So, i'm still on the Stock MIUI 12.5.7 (Android 11).
Before upgrading, i just wanted to check out if TRWP works correctly, so i flashed the most recent official version...and to my surprise, it could _not_ decrypt the internal storage?
Also, in the Backup menu, the EFS and modem partitions have correct sizes, but the dynamic Super partiton is shown as ( 0 MB).
I thought there would be no more issues with such old ROMs...or maybe I'm missing something?
UPDATE:
After wiping data and resetting the phone, TWRP managed to mount the internal storage, as long as there's no PIN on it.
As soon as i enter a PIN in Android, the same PIN entered in TWRP fails to decrypt the internal storage.
Click to expand...
Click to collapse
Sounds like you need an OS reinstall preceded by data format, not wipe, to remove encryption. There is a Nebrassy 3.6 version that decrypts for A11.
Borosin said:
Hi folks,
So, i'm still on the Stock MIUI 12.5.7 (Android 11).
Before upgrading, i just wanted to check out if TRWP works correctly, so i flashed the most recent official version...and to my surprise, it could _not_ decrypt the internal storage?
Also, in the Backup menu, the EFS and modem partitions have correct sizes, but the dynamic Super partiton is shown as ( 0 MB).
I thought there would be no more issues with such old ROMs...or maybe I'm missing something?
UPDATE:
After wiping data and resetting the phone, TWRP managed to mount the internal storage, as long as there's no PIN on it.
As soon as i enter a PIN in Android, the same PIN entered in TWRP fails to decrypt the internal storage.
Click to expand...
Click to collapse
Which twrp Version?
TWRP 3.7.0_12
It's the latest available on twrp.me for the Note 10 Pro.
Borosin said:
TWRP 3.7.0_12
It's the latest available on twrp.me for the Note 10 Pro.
Click to expand...
Click to collapse
Try this orangefox
https://forum.xda-developers.com/t/...ry-with-decryption-for-android-12-13.4471637/
or the newer one
Laptapper said:
Try this orangefox
https://forum.xda-developers.com/t/...ry-with-decryption-for-android-12-13.4471637/
or the newer one
Click to expand...
Click to collapse
It works with Orange fox.
Well, now that i have done a "format data" it works with TWRP, as well.
I moved to a xiaomi.eu rom, and everthing works fine, so far.
Also note that TWRP seems to always get replaced by the stock recovery when on a stock rom from Xiaomi.

Categories

Resources