Encryption not working on flashed ROM - Xiaomi Redmi Note 7 Questions & Answers

Hi, I flashed OrangeFox recovery and Pixel Experience 10 Plus, everything works but the encryption does not.
Altough it is enabled and asks for password I can see the names and content of all files in OrangeFox explorer even without putting the password in and decrypting first.
ro.crypto.state is encrypted and ro.crypto.type is file , fstab contains fileencryption=ice, setting it to aes-256-xts results in a bootloop.
What is going on? How do I really enable encryption?

I figured it out. Follow these steps exactly as described and carefully.
1. Backup your data either on apps or internal storage.
2. Remove pin/screenlock from your device.
3. Reboot to orange fox recovery.
4. Format data by clicking on the trash can icon, then typing yes on the confirmation (DO NOT USE MANAGE PARTITIONS FOR DATA WIPE)
5. Go to the advanced menu, click manage partitions but only tick cache & system.
6. Flash ROM.
7. Format data using the trash can again.
8. Reboot. Now, encryption will be working. If you boot into recovery and don't type the password, all the data will be random numbers & letters.

Related

Private Mode Question

Background: I'm on a stock rooted rom. After I rooted Private Mode still worked. Now it does not for some reason.
So I have a few questions.
1. Any idea of where private mode stores the files? I had a few GB of data stored in there, now that its not working I want to make sure I no longer have those files clogging up precious GBs on device storage.
2. Is the only way to get it back is to re-flash the stock rom?
3. I think I might have broken Private Mode by trying out ART. Now when I go into Developer Options, I notice that it always says Dalvik....When I switch to ART and reboot, and check the Developer options, it still says Dalvik. Any thoughts on this?
Thanks for any thoughts
sporklover said:
Background: I'm on a stock rooted rom. After I rooted Private Mode still worked. Now it does not for some reason.
So I have a few questions.
1. Any idea of where private mode stores the files? I had a few GB of data stored in there, now that its not working I want to make sure I no longer have those files clogging up precious GBs on device storage.
2. Is the only way to get it back is to re-flash the stock rom?
3. I think I might have broken Private Mode by trying out ART. Now when I go into Developer Options, I notice that it always says Dalvik....When I switch to ART and reboot, and check the Developer options, it still says Dalvik. Any thoughts on this?
Thanks for any thoughts
Click to expand...
Click to collapse
1. It doesn't double up your data, Private Mode only encrypt your data which you want to keep your data safe, so it's just right where your data is supposed to be
2. Unless you disable your private mode before re-flash rom, you will lose access to your encrypted data. what's the point of privacy when you just simply reflash to get yours back, so anyone can do that
3. You might be using xposed framework, it will not let you switch to ART runtime
babygau said:
1. It doesn't double up your data, Private Mode only encrypt your data which you want to keep your data safe, so it's just right where your data is supposed to be
2. Unless you disable your private mode before re-flash rom, you will lose access to your encrypted data. what's the point of privacy when you just simply reflash to get yours back, so anyone can do that
3. You might be using xposed framework, it will not let you switch to ART runtime
Click to expand...
Click to collapse
1. I'm not worried about doubling up on data, just don't want tobstorr files I can no longer access.
Unfortunately your answer about the files are where they are supposed to be isn't descriptive enough. The files I had in private mode were originally on my SD card but with private mode enabled I used the Samsung My Files app to move them to the private folder in that app. So it moved those files just not sure where.
2.I'm not trying to regain access to those files just asking a general question about getting private mode functional again. Is the only way to refladh a stock ROM.
3. I'm fairly certain I didn't install xposed.
I'm going to dive into a few other threads. I see there are files I can modify to manually switch between the two. I'll make sure I'm not in ART.
thanks!!
sporklover said:
1. I'm not worried about doubling up on data, just don't want tobstorr files I can no longer access.
Unfortunately your answer about the files are where they are supposed to be isn't descriptive enough. The files I had in private mode were originally on my SD card but with private mode enabled I used the Samsung My Files app to move them to the private folder in that app. So it moved those files just not sure where.
2.I'm not trying to regain access to those files just asking a general question about getting private mode functional again. Is the only way to refladh a stock ROM.
3. I'm fairly certain I didn't install xposed.
I'm going to dive into a few other threads. I see there are files I can modify to manually switch between the two. I'll make sure I'm not in ART.
thanks!!
Click to expand...
Click to collapse
1. Private Mode doesn't move your files to anywhere, your files are located at their original place. It just encrypted your data with a 'key' and use that 'key' to mark and decrypt them when needed
2. I'm not sure about this, but it seems to me that you will have to reflash a Stock Rom again.
3. Are you on Stock Rom? ART runtime seems not to work well with deodexed ROM.
babygau said:
1. Private Mode doesn't move your files to anywhere, your files are located at their original place. It just encrypted your data with a 'key' and use that 'key' to mark and decrypt them when needed
2. I'm not sure about this, but it seems to me that you will have to reflash a Stock Rom again.
3. Are you on Stock Rom? ART runtime seems not to work well with deodexed ROM.
Click to expand...
Click to collapse
1. When added files to the Private Files folder (Only visible in Private Mode) in the stock Samsung My Files app, those files were moved from my SD card to internal memory. I verified this by checking the storage usage. SD card usage was decremented by the same amount the internal storage increased.
2. I was afraid of that. Not sure I'll actually do it.
3. 100% certain stock room, just rooted with Chainfire. Odexed and everything.
I might have to do some additional reading. I know that after you root you have the option to disable Knox (which breaks private mode). I didn't disable knox, but I'll research which processes are frozen/stopped by disabling knox and see if restarting them can get private mode working again.... or if its even possible perhaps reinstalling knox/private mode without re-flashing.

on clockworkmod recovery and android 6 sd as internal storage...

Hello
i try to update yearly, and I tend to set it and forget it.
I am still using Samsung S4 sprint (jfltespr) with Cyanogenmod 13 (android 6) and I would like to update: some as there is some funk with receiving MMS messages and I would like to get some of the security updates to harden a bit.
Ideally I would have liked to go to lineageOS, but there is no maintainer. I think that I have seen some forks (but not quite sure)
I have been leaning toward Vanir... seems to have a following and there is activity.
I have backed up the existing setup by rebooting into recovery (clockworkmod recovery v6.0.4.7);
I noticed that once I rebooted that when I use a file manger to navigate to /sdcard/clockworkmod/ the folder is empty.
However, when I reboot into clockworkmod recovery and I select to install a zip from sdcard/clockworkmod/ the backup folder shows with a file to install (with the filename as the date I performed the backup).
why cant I view the file in a file manager such as solid explorer?
The only thing that I can think of, which is different from any time in the past, is that I selected for android 6 to treat the sd card as internal storage.
Will this affect any processes if I wanted to install a new ROM?
Kinda Stumped on exactly how to proceed.
the data that I would like to keep could be archived to my nextcloud server.
Any suggestions would be great.
Thank you for your time
qu1nn

"Phone is starting", after no other changes than reboot

Hi.
I need guidance on how to decrypt and mount my phone's encrypted "sdcard" storage so I can take a backup. (Alternatively, I would like some form of statement saying that even if I dirty flash, and then log into my Google account, I would be able to access my encrypted data. I doubt this is possible; I believe encryption to be unique per installation.)
My beloved OP5 was beginning to get sluggish (and sometimes wouldn't store photos I would take without having unlocked the phone), so after ~1.000hrs uptime I rebooted it. And now, it's stuck at "Phone is starting" displayed over my lock screen wallpaper. It can't seem to get past this stage, it will stay that way even if left overnight. My daily alarm seems to function normally, and I can access the notification drop-down -- and through that the Settings app.
It's running OxygenOS 10.0.0, with the latest OTA update. It is rooted and has the latest TWRP recovery and Magisk (solely for root, no Magisk modules installed).
Through the Settings app, I can see that the Default App registered for "Home app" is "None" -- wtf? Clicking it gives me no options (pretty much just a blank screen), although there is the stock launcher as well as ADW launcher (which I prefer, and had as default prior to the reboot).
I have tried wiping the cache and Dalvik. I have tinkered with turning lock screen settings (code, pin, pattern, etc) on and off, but found that anything other than the pattern would not allow me to access TWRP because that one either shows a pattern input, or a password input that accepts neither a pin, a password, nor my Google password. That is to say, using the pattern code, I can make full use of TWRP but apparently to no effect.
I have read that a factory reset "should" fix this, but I am running with an encrypted file system and thus I cannot simply make a data dump from TWRP. Also, although I can access the "USB preferences" setting (which I have set to default to "File transfer" anyhow), I cannot get it to mount on my Linux workstation (which has not been a problem before) -- I do get a device named "20160907_11062618" with the autorun.inf and such files, but the "OnePlus" device will not mount via MTP.
What else can I try to recover my encrypted data, before I inevitably re-flash this device? Can I use fastboot to decrypt and mount the phone's "sdcard" storage on my workstation, if so with which commands?
Ahr well ... I did not find any way around this...
I did a factory reset ---losing all my encrypted data in "/sdcard"--- and started over.

[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy Tab S2 stock to Android 10

[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy Tab S2 stock to Android 10
[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy Tab S2 (models SM-T713, T719, T813, T819) stock to Android 10 Q / LineageOS 17.1
Supported models:
- SM-T713 (gts28vewifi)
- SM-T719 (gts28velte)
- SM-T813 (gts210vewifi)
- SM-T819 (gts210velte)
This detailed step-by-step guide helps you transform your Samsung Galaxy Tab S2 to a powerful one with Android 10.
Make sure your tablet is compatible: in Android, go to Settings > About tablet. Check Model number is listed above.
If not, quit this tutorial.
### READ THOSE WARNING COMMENTS
### See all my tutorials at https://github.com/djibe/Android-tutorials
### Buy me a coffee: https://ko-fi.com/djibe
CHANGELOG
v3. TWRP 3.6, update pack, add download links
v2. Add support for Netflix and Disney+, Magisk updated
v1. Initial release for Android 10
1) DOWNLOAD
- djibe Galaxy Tab S2 pack: https://drive.google.com/file/d/1PcnZaQieCz3N0MJhOp6eC3MjAYYvx0wH/view?usp=sharing
(contains Samsung tweaked Odin 3.13.1 + Samsung USB drivers + TWRP 3.6 recovery for 4 models + Magisk Root). Unzip files.
+ ROM LineageOS 17.1 Unofficial: https://forum.xda-developers.com/t/rom-unofficial-10-lineageos-17-1-t713-t719-t813-t819.4070161/
SM-T713 (gts28vewifi): https://lineageos.wickenberg.nu/gts28vewifi
SM-T719 (gts28velte): https://lineageos.wickenberg.nu/gts28velte
SM-T813 (gts210vewifi): https://lineageos.wickenberg.nu/gts210vewifi
SM-T819 (gts210velte): https://lineageos.wickenberg.nu/gts210velte
Alternatives: https://los.rockhost.se/
### Camera doesn't work, 3G/Data network doesn't work
+ BiTGApps Package ARM64 10: https://github.com/BiTGApps/BiTGApps-Release/releases
+ Charge tablet to 100%
2) BACKUP DATA
Install Samsung USB drivers (you unzipped earlier).
Then plug tablet to PC in File transfer mode.
Collect all .jpg or .mp4
Use Google built-in cloud to backup apps like SMS Backup & Restore to backup texts, contacts, etc.
Backup your WhatsApp messages in Google Drive.
Everything else: podcasts, Authenticators, TODOs etc...
Then copy the backup on your PC.
Make sure you have latest official updates for your phone:
Connect to Wifi and go to Settings > About device > Software update > Update now
### BACKUP NOW, you will lose everything later.
3) FLASH TWRP 3.6 RECOVERY
Go to Settings > About tablet.
Tap 7 times on Build number to unlock Developer Options.
Go to Settings > Developer options and switch OEM unlock ON.
Shut down tablet.
Boot in Download Mode: hold Home + Power + Volume- until you see Warning screen.
Confirm access to Download mode by pressing Volume+.
Tab now displays "Downloading... / Do not turn off target".
Connect tab in USB, wait for drivers installation.
Then launch Odin.exe (included in my archive) and wait for Odin indicator ID:COM to become blue.
In options: Verify re-partition and Auto Reboot are NOT ticked while F. Reset Time is ticked.
In AP > select corresponding twrp file for your model (ie: twrp-3.6.0_9-0-gts28vewifi.tar for SM-T713)
### Warranty will be Void after next click ###
Click Start.
Wait until flash Success message appears.
Unplug tablet.
Restart tablet to recovery:
- hold Power + Home + Volume- until tablet screen becomes black.
- and immediatly switch from Volume- to Volume+ (still holding Power + Home) to land in TWRP recovery.
### If Android launches, hold 3 buttons until phone restarts and Samsung logo appears.
4) BACKUP PARTITIONS AND SYSTEM (Nandroid backup)
Boot in Recovery Mode : Hold Home + Power + Volume+ until you see Samsung's logo then release and wait a few seconds for TWRP recovery to boot.
Recovery asks for Keep System Read Only ? > Swipe to Allow Modifications.
Go to Wipe > Format Data.
Type: yes and confirm with bottom right check icon.
Encryption is removed. You can now access partitions.
### If you miss this step you won't have access to any partition.
Back to home menu > Backup.
You can now select the partitions you want to save.
I prefer to backup System, Data and Boot partitions. In case of problem, you will have your tablet in its original state.
Swipe to Backup and wait during process.
Go to Home screen and continue with next chapter.
Save backup: still under TWRP recovery, connect tablet to PC.
Go to Mount menu and check Data partition is checked and MTB button is on "Disable MTP" state.
From Windows explorer, access tablet's memory and copy-paste the TWRP folder (located in root folder, beside DCIM and Music folders) somewhere safe on your computer.
5) FORMAT PARTITIONS
### Make sure you copied TWRP backup from internal memory to somewhere safe.
Go to Wipe > Advanced wipe,
select Dalvik / ART Cache, System, Data, Internal Storage, Cache then Swipe to Wipe.
Back to TWRP home screen, go to Reboot > Recovery and swipe to reboot.
On next launch, check the checkbox to remember choice and swipe to allow modifications.
5) FLASH ROM, GAPPS +/- MAGISK ROOT
Back to TWRP main menu, go to Mount menu again to connect tablet to PC again.
Connect tablet to PC and use Windows explorer to copy files on tablet's internal memory.
Copy TWRP folder from your tablet to somewhere safe on PC.
This backup can restore your tablet to its original Samsung state.
Copy files of ROM + Bitgapps + Magisk on tablet.
Go back to TWRP Home menu. Then tap on Install > choose los*.zip,
then Add more zips and select bitgapps*.zip,
then Swipe to confirm Flash.
Wait for operation to end.
Again, go to Reboot > Recovery and swipe to reboot.
Optional: After restart, go to Install, select Magisk and swipe to flash.
Then tap Wipe cache/dalvik, swipe to confirm,
then Reboot System and on Install TWRP App? menu, tap on button Do Not Install
Wait for the tablet to boot.
It will be stuck with LineageOS animation on it's first launch. It is normal.
Force reboot using the Power and Volume Down buttons.
Now let LineageOS finish to start.
6) OPTIONAL: ROOT ACCESS
Configure Android as you like.
No need for extra work to be root.
Magisk launches with Android.
Superuser permissions can be managed from Magisk Manager app.
Open Magisk app (v23+).
Go to Settings > go to App Rename app to Godmode to hide hide.
Below, switch MagiskHide ON.
Now go to Magisk Modules tab > install liboemcrypto disabler and MagiskHide Props Config.
Connect to your Google account, download from Play Store Netflix and Disney+.
### If you are already connected to Google account.
Clear cache (Settings > Apps > All apps > Google Play Store > Storage > Clear storage) and restart tab.
Relaunch Play Store, Netflix and Disney+ will be available in SD.
7) TWEAKS
- Calibrate battery: https://www.ifixit.com/Wiki/Battery_Calibration
- Set dark Mode to improve battery by 30%: Settings > Display > Dark theme
- For better battery, remove Always on display
Settings > Display > Screen saver > Desactivated
- Activate Developer options
Go to Settings > About.
At bottom, tap 7 times on Build number. You activated Developer options.
Go to Settings > System > Advanced > Developer options.
- To tweak overclocking and more, use SmartPack-Kernel Manager
SmartPack-Kernel Manager - Apps on Google Play
The ultimate tool to manage your kernel
play.google.com
### If you experience battery drain, stick to 20220312 build (thx to @yoblo)
8) OBTAIN GOOGLE MOBILE SERVICES (GMS) CERTIFICATION
Google now restricts Google Play and Google apps access to certificated devices. Since you have a custom ROM, you are banned.
We now need to subscribe for the Google Play Certification.
Download Device ID (by Evozi) app from Play Store.
Launch app.
Tap on the Google Service Framework (GSF) line, then tap on the COPY button.
In your Android webbrowser, go to: https://www.google.com/android/uncertified/
Connect to Google using your Google/Android account.
In the input field of the page, paste the 16 digits code.
Click on the Save button, a success message confirms your device is Certified.
Then go to Settings > Apps > Google Play Store > Storage > Clear storage
Do I need to re-certify it ?
"Your device’s GSF ID is reset every time your device is factory reset (or when you wipe the GSF app itself) since it is stored in your data partition, so you must re-register your GSF ID every time you perform either of these actions."
More info here : https://lineageos.org/Google-Play-Certification/
Enjoy,
djibe
Thanks: ripee, Luk1337, LineageOS team, TWRP team
---------------------------------------
Force Samsung Galaxy Tab S2 to restart
Hold Power + Volume down for 10-20 seconds
I have just followed this to update my T719 tablet. All seems to work other than the camera, when you try to open the camera app it freezes before eventually saying 'unable to connect to camera', then closes. Have tried another camera app but still get the same issue. Is this a known error?
Thanks
.
Hi @smarty79 , yes camera doesn't work.
I will be more precise about it.
Thx for reporting
Hi,
3G network doesn't work
Click to expand...
Click to collapse
Do you mean that RIL does not work either (no 4G)?
Are you working on a fix for the camera and mobile network?
bulldozerecske said:
Hi,
Do you mean that RIL does not work either (no 4G)?
Are you working on a fix for the camera and mobile network?
Click to expand...
Click to collapse
Hi, you have to be careful and download ROM according to your model.
EDIT: yes Data and camera are not working.
Sadly you won't find a ROM with these. Or tell me which one.
You may try this Oreo for camera: https://forum.xda-developers.com/t/...-resurrection-remix-os-6-2-x-discont.3865882/
djibe89 said:
Hi, you have to be careful and download ROM according to your model.
Only camera is working.
If netowrk is not, you probably have chosen the wrong ROM.
Click to expand...
Click to collapse
I haven't downloaded any custom ROM yet since I need the Radio Interface Layer funcionality as well as the camera.
I have the T819 (LTE variant) but I would like to have a newer Android version than 7 because some apps are not supported anymore.
bulldozerecske said:
I haven't downloaded any custom ROM yet since I need the Radio Interface Layer funcionality as well as the camera.
I have the T819 (LTE variant) but I would like to have a newer Android version than 7 because some apps are not supported anymore.
Click to expand...
Click to collapse
Hi, you won't find better ROM except that Data and camera don't work.
For camera you may try this Oreo ROM: https://forum.xda-developers.com/t/...-resurrection-remix-os-6-2-x-discont.3865882/
bulldozerecske said:
I haven't downloaded any custom ROM yet since I need the Radio Interface Layer funcionality as well as the camera.
I have the T819 (LTE variant) but I would like to have a newer Android version than 7 because some apps are not supported anymore.
Click to expand...
Click to collapse
LineageOS 16 has RIL working, at least on the T719.
succefully installed. Thnak you !
Tutorial updated for Netflix and Disney+
sorry for this but i failed and i need help
i did every thing until wipe but afterwards my PC unable to see device folders so i can load the files
side note: didn't backup also so stuck on recovery screen
help please!!!
Thanks for this, works exactly as stated...
However I misread it, "### Camera doesn't work, 3G/Data network doesn't work" - I thought oh I don't care about 3G, I'm always connected to LTE without my brain acknowledging that it's all cellular connectivity not just 3G. DOH.
Is there anything available for SM-T817V? Looking desperate help to update Android 10.
Thanks
fmc000 said:
LineageOS 16 has RIL working, at least on the T719.
Click to expand...
Click to collapse
any particular build? there are multiple versions Thanks
When I boot, I end up back in the TWRP main menu. I've tried:
"Reboot System and on Install TWRP App? menu, tap on button Do Not Install" after:
"Then tap on Install > choose los*.zip,
then Add more zips and select opengapps*.zip,"
(advice given in another forum) but it makes no difference: LineageOS animation continued for several minutes, then I get into RECOVERY REBOOT and back to TWRP menu.
Samsung SM-T813
lineage-17.1-20210918-UNOFFICIAL-gts210vewifi
open_gapps-arm64-10.0-nano-20210929
Magisk-v23.0
Hi @Tetenterre,
first boot leads to bootloop.
Flash > boot > force reboot and wait
Thanks for your reply, djibe89 - when I do that (ie Power & Volume down), I end up back in TWRP.
Installed successfully by following your guide to a T (although I used the latest TWRP). I know support for this old girl has probably reached it's limit, but it was tough to find the ROM file (most links in the thread are dead - had to use one from archive.org)
Thanks a lot for putting this together!
MouldeyWan_Kenobi said:
Installed successfully by following your guide to a T (although I used the latest TWRP). I know support for this old girl has probably reached it's limit, but it was tough to find the ROM file (most links in the thread are dead - had to use one from archive.org)
Thanks a lot for putting this together!
Click to expand...
Click to collapse
Hi, sorry for that.
Thanks for telling me. It's hard to keep up with all the models I support.
I'll try to fetch all files and backup these on Androidfilehost.
Thx for archive.org, didn't know it.
Enjoy

Encrypted SDCARD in recovery mode (TWRP)

I have moved a file that i should flash in the phone internal storage, but when i try opening the /sdcard directory i can only see some folders with random names.
So i think that the sdcard is encrypted because when the phone boots to system the files are here.
I need to know how to disable the internal storage encryption at least when i am in recovery mode.
The phone is a Huawei P Smart 2018 FIG-LX1
slx23 said:
I have moved a file that i should flash in the phone internal storage, but when i try opening the /sdcard directory i can only see some folders with random names.
So i think that the sdcard is encrypted because when the phone boots to system the files are here.
I need to know how to disable the internal storage encryption at least when i am in recovery mode.
The phone is a Huawei P Smart 2018 FIG-LX1
Click to expand...
Click to collapse
There's really only two ways to get around this - one is by disabling encryption (from within system), and the other is by decrypting in TWRP. If TWRP is not able to decrypt using PIN/password/pattern, that leaves you with only one option.
V0latyle said:
There's really only two ways to get around this - one is by disabling encryption (from within system), and the other is by decrypting in TWRP. If TWRP is not able to decrypt using PIN/password/pattern, that leaves you with only one option.
Click to expand...
Click to collapse
The phone hasn't a password (lock screen) and how should i disable encryption in the system?
V0latyle said:
There's really only two ways to get around this - one is by disabling encryption (from within system), and the other is by decrypting in TWRP. If TWRP is not able to decrypt using PIN/password/pattern, that leaves you with only one option.
Click to expand...
Click to collapse
I have tried searching for an option in the system settings but i cant find anything.
Huawei might be different, but on my Pixel 5: Settings > Security > More security settings > Encryption and credentials. Encryption can only be disabled after a factory reset, which will wipe data.
V0latyle said:
Xiaomi might be different, but on my Pixel 5: Settings > Security > More security settings > Encryption and credentials. Encryption can only be disabled after a factory reset, which will wipe data.
Click to expand...
Click to collapse
It is not Xiaomi it is Huawei
slx23 said:
It is not Xiaomi it is Huawei
Click to expand...
Click to collapse
My mistake. Still, OEMs don't always use the AOSP menu structure.
V0latyle said:
My mistake. Still, OEMs don't always use the AOSP menu structure.
Click to expand...
Click to collapse
But if there isn't an option in the settings how can i disable that?
slx23 said:
But if there isn't an option in the settings how can i disable that?
Click to expand...
Click to collapse
You might not be able to
V0latyle said:
You might not be able to
Click to expand...
Click to collapse
Not even flashing something like a zip patch?
slx23 said:
Not even flashing something like a zip patch?
Click to expand...
Click to collapse
No, at least not without wiping data
V0latyle said:
No, at least not without wiping data
Click to expand...
Click to collapse
I am trying installing a custom ROM.

Categories

Resources