How to make TWRP forget my password? - X 2014 Q&A, Help & Troubleshooting

I have a Moto X2 with Android 6.0 and TWRP 3.0.2
I just turned on full disk encryption and set a pattern screen lock.
The first time I enter TWRP, it asked me for the pattern. However, after that, when I reboot into TWRP, it doesn't ask for pattern anymore.
I can't find any option about forget password or ask every time in twrp.
I am afraid others can just enter TWRP and copy my files through ADB or MTP. So is there a way to solve that?
BTW. I read the principle of Android full disk encryption. I guess TWRP already stored my master key somewhere, but I can't find it.

Related

Remove encryption?

I am running Maximus 5. I used the built in storage encryption.
I want to remove the encryption but I can't. I tried to wipe it out in TWRP, just to mount it. No password prompts.
Nothing in the bootloader helps. Any ideas? Do I have to go back to the stock recovery to remove the encryption?
You'd need to open them in whatever program you used to encrypt it in the first place, and re-save the files without it. There's no way to just "decrypt" something, that's the whole point of encryption.

TWRP Password - Here is the Answer

On my Nexus 6 I constantly see the password prompt upon boot of TWRP;however, by canceling it, I was able to flash ROMs, gapps, etc. One thing that irritated me was not being able to do a backup as it kept giving an error about mounting the system. Since the device is encrypted and I used a pattern lock, I figured out that you must type the password in as shown in the attached image...
-aLan

[Q] TWRP asking for decryption password

I've flashed the Kali Nethunter .zip on top of the Chrome ROM. It didn't boot correctly and after that I wanted to go back to TWRP and restore my back-up. And it suddenly is asking for a decryption password. When I fill in: "default_password" it starts decrypting with alot of error messages.
Mainly being: E: Unable to stat /data/xxx/xxx/xxxx. xxx
When it's done it brings me back to the TWRP screen. I'm able to access /system but not /sdcard or /data.
Does anyone have an idea?
Is default password your password or the twrp default password?
MAybe you should reflash your ROM.over usb and see if it boots.
You said "did not boot correctly" vs "did not boot"
If you can get into your system, turn off lock screen passwords and your phone will not require a password to decrypt at boot, and TWRP won't need a password to access your userdata partition.

Help rooting stock without loosing data

Hi,
I got a new Mi Mix 6GB/256GB and am very happy with it. I have stock MIUI Global 9.2.1.0 NAHMIEK. I've been rooting my phones for a long time, but can't seem to succeed with this one.
I unlocked successfully. I tried multiple TWRP advised for this phone but get stuck with the password to decrypt my data partition. I tried to remove the pattern, use the digits associated to the pattern, set a password instead of a pattern, remove fingerprints, remove all security, but still could not decrypt. I tried both flashing and just booting to TWRP from fastboot.
Worst, I bricked a couple of times with the recovery flashing, or even simply booting remotely with twrp, being stuck in the "unlocked" logo on boot. Had to use mi flash to reflash stock ROM.
What I see is advice to wipe data and format unencrypted, but I prefer to keep my data partition impact to avoid reinstalling everything.
Any other idea on how to root? Basically, I need to install gcam which is my primary need.
Thanks!
If I'm not mistaken you need the modified rains twrp, somebody correct me if I'm wrong.
IV been unlocked and rooted for along time and don't really remember what process I used. But I do remember having to use rains twrp.
You can enable camera2.api via TWRP without rooting.
Read the whole thread.
https://xiaomi.eu/community/threads/google-camera-for-mi-max-2.42976/
As far as I know no-one has solved the problem of making a TWRP that can encrypt/decrypt.
If you don't really need the encryption it is better to format.
Thanks for your answers. I had tried TWRP by Mr Raines, but it seems an old version that must have worked on MIUI 8, but not on MIUI 9. TWRP 3.2.1 by Raupe is supposedly the only one working, but not in my case and still not able to bypass encryption...
I tried booting TWRP to push the build.prop with adb with APICamera2 enabled, I had high hopes, but every time I touch it, the phone gets soft bricked and I need to flash back stock...
Just got a solid breakthrough! I simply sideloaded magisk.zip. Then, from Android, used a buil.prop editor to enable cameraAPI2. It seems to work great so far. More precisely:
Install fastboot and adb on PC
Get TWRP 3.2.1 by raupe, and copy it in same folder as adb and rename to twrp.img
fastboot.exe boot twrp.img
From TWRP, cancel decryption, mount system, then go to advanced > ADB sideload
From PC, open cmd as admin, then: adb sideload Magisk.zip (where you would also have put the latest magisk zip in adb folder)
I then used a build.prop editor to add the line: persist.camera.HAL3.enabled=1
I can't believe it!
pzkfwg said:
Thanks for your answers. I had tried TWRP by Mr Raines, but it seems an old version that must have worked on MIUI 8, but not on MIUI 9. TWRP 3.2.1 by Raupe is supposedly the only one working, but not in my case and still not able to bypass encryption...
I tried booting TWRP to push the build.prop with adb with APICamera2 enabled, I had high hopes, but every time I touch it, the phone gets soft bricked and I need to flash back stock...
Click to expand...
Click to collapse
Yeah I meant to say Raupe instead of Mr Rains sorry for tell you that you should try rains. Like I said it's been awhile kinda forgot.. Again my apologies.
---------- Post added at 09:06 PM ---------- Previous post was at 09:05 PM ----------
Let me see if I can find the twrp I used I'm on miui 9.
pzkfwg said:
Just got a solid breakthrough! I simply sideloaded magisk.zip. Then, from Android, used a buil.prop editor to enable cameraAPI2. It seems to work great so far. More precisely:
Install fastboot and adb on PC
Get TWRP 3.2.1 by raupe, and copy it in same folder as adb and rename to twrp.img
fastboot.exe boot twrp.img
From TWRP, cancel decryption, mount system, then go to advanced > ADB sideload
From PC, open cmd as admin, then: adb sideload Magisk.zip (where you would also have put the latest magisk zip in adb folder)
I then used a build.prop editor to add the line: persist.camera.HAL3.enabled=1
I can't believe it!
Click to expand...
Click to collapse
Good for you!
Yes, I used raupes latest TWRP also, forgot to write that before.
Raupe has posted a lot in the otherwise abandoned "official" TWRP thread, you can read about his attempts on encryption:
https://forum.xda-developers.com/mi...y-official-twrp-xiaomi-mi-mix-t3498960/page57

ADB push not working/TWRP

I accidentally flashed the Universal SafetyNet Fix 1.1.0 via TWRP and had to start from scratch (flash MIUI via MIUI flash tool)
I installed TWRP and now want to copy files to the phone. I hence copy the file (gapps.zip) into the adb folder and run
adb push gapps.zip /sdcard
However, I end up with an error:
adb: error: failed to copy 'gapps.zip' to '/sdcard/gapps.zip': remote couldn't create file: No such file or directory
gapps.zip: 0 files pushed.
The device itself is detect:
adb devices
xxxxxxx recovery
I would highly appreciate some help here, this has been driving me nuts.
Update: Not sure if I properly flashed TWRP. I cannot boot into recovery, even though
fastboot flash recovery C:\Users\user\Downloads\mi\twrp.img
successfully runs
WTF is wrong with flashing TWRP?
flel said:
I accidentally flashed the Universal SafetyNet Fix 1.1.0 via TWRP and had to start from scratch (flash MIUI via MIUI flash tool)
I installed TWRP and now want to copy files to the phone. I hence copy the file (gapps.zip) into the adb folder and run
adb push gapps.zip /sdcard
However, I end up with an error:
adb: error: failed to copy 'gapps.zip' to '/sdcard/gapps.zip': remote couldn't create file: No such file or directory
gapps.zip: 0 files pushed.
The device itself is detect:
adb devices
xxxxxxx recovery
I would highly appreciate some help here, this has been driving me nuts.
Update: Not sure if I properly flashed TWRP. I cannot boot into recovery, even though
fastboot flash recovery C:\Users\user\Downloads\mi\twrp.img
successfully runs
WTF is wrong with flashing TWRP?
Click to expand...
Click to collapse
Leave off the /
adb push gapps.zip sdcard
What android are you on? 10, 11, etc.
Tulsadiver said:
Leave off the /
adb push gapps.zip sdcard
What android are you on? 10, 11, etc.
Click to expand...
Click to collapse
android 11, kernel version 4.4, miui 12.5
adb push is not working, showing error
also twrp can't read the internal storage, no file there, and it is not also 0 mb, amount of storage is okay but but twrp can't read the zip file I inserted, what to do? please help me
shafi1885 said:
android 11, kernel version 4.4, miui 12.5
adb push is not working, showing error
also twrp can't read the internal storage, no file there, and it is not also 0 mb, amount of storage is okay but but twrp can't read the zip file I inserted, what to do? please help me
Click to expand...
Click to collapse
Just drag and drop it in file manager/explorer/etc (whatever is on the OS you're using)
TWRP acts as an MTP device, so you can see the internal storage of the phone when it's booted to TWRP and connected to a PC. Why make life complicated using adb commands when it's easier to drag and drop.
Robbo.5000 said:
Just drag and drop it in file manager/explorer/etc (whatever is on the OS you're using)
TWRP acts as an MTP device, so you can see the internal storage of the phone when it's booted to TWRP and connected to a PC. Why make life complicated using adb commands when it's easier to drag and drop.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bro, this is the condition of internal storage, both in pc and twrp, and it also saying this: "unmodified system partition" "keep system read only?" then it is written: swipe to allow modification. I swiped but no modification I think took place, Misgk.zip is not showing, ADB push not working, and you can see in ss the condition of internal storage in pc.
I read about date encryption, saw 1 youtube video (not available any), they all say that internal storage showing 0 mb. but my internal storage is not showing 0 mb. it is showing 92 gb which is free currently, and each time after rebooting, twrp is gone, though after flashing, I hold on to power+volume up. Now please tell me the easiest solution. I gave a lot of effort in last 3 days, It's really depressing brother. But thank you for letting me know that twrp also work as MTP media.
shafi1885 said:
View attachment 5285045
bro, this is the condition of internal storage, both in pc and twrp, and it also saying this: "unmodified system partition" "keep system read only?" then it is written: swipe to allow modification. I swiped but no modification I think took place, Misgk.zip is not showing, ADB push not working, and you can see in ss the condition of internal storage in pc.
I read about date encryption, saw 1 youtube video (not available any), they all say that internal storage showing 0 mb. but my internal storage is not showing 0 mb. it is showing 92 gb which is free currently, and each time after rebooting, twrp is gone, though after flashing, I hold on to power+volume up. Now please tell me the easiest solution. I gave a lot of effort in last 3 days, It's really depressing brother. But thank you for letting me know that twrp also work as MTP media.
Click to expand...
Click to collapse
When starting TWRP, it must ask you for (your Android screen unlock pin/password or pattern) - without, TWRP cannot temporarily decrypt the file system and you see the garbage as on your screenshot for Data and Internal memory
If you switched the ROM, you HAD to FORMAT (not Wipe) Data.
Without, TWRP does not ask for that (unlock) pin/pass (or asks but fails to decrypt) and you have the garbage.
Didn't try but that must be also the reason for side-load failure
If you didn't switch ROM (and if you can boot to Android), go to Settings and reset the screen unlock pin/pass/pattern
zgfg said:
When starting TWRP, it must ask you for (your Android screen unlock pin/password or pattern) - without, TWRP cannot temporarily decrypt the file system and you see the garbage as on your screenshot for Data and Internal memory
If you switched the ROM, you HAD to FORMAT (not Wipe) Data.
Without, TWRP does not ask for that (unlock) pin/pass (or asks but fails to decrypt) and you have the garbage.
Didn't try but that must be also the reason for side-load failure
If you didn't switch ROM (and if you can boot to Android), go to Settings and reset the screen unlock pin/pass/pattern
Click to expand...
Click to collapse
brother, I haven't swtiched ROM and disabled my screen lock, facelock and fingerprint too. Yet ,twrp started with unmodified system partition.
shafi1885 said:
brother, I haven't swtiched ROM and disabled my screen lock, facelock and fingerprint too. Yet ,twrp started with unmodified system partition.
Click to expand...
Click to collapse
System partition is ro=read only in /vendor/etc/fstab.qcom and even if you would try to make it writeble through that question in TWRP, it will remain read only
But scrambled Data and Internal memory has nothing with read only /system - again, it is because of TWRP must use the Android screen unlock/pin pass.
Try to set the unlock pin to something (not empty) in Android Settings, and test again
Sorry, I'm not following now who stated what above in his earlier posts, I'm not on Pro but plain Mi 9T, with Xiaomi.eu MIUI 12.6 A11 beta, TWRP 3.5.2-9, and everything works for me as described.
Also at the time of switching to Xiaomi.eu I of course had to Format Data
And immediately after flashing TWRP I always reboot to TWRP (somebody also debated about):
fastboot oem reboot-recovery
Screenshots from TWRP attached. Observe that TWRP decrypts user space 0 (default user) but fails to decrypt 999 (second user) - that is still not supported by TWRP. Because of that, backing up Data partition fails unless I delete (from the rooted Android or from TWRP) /data/extm folder (although it's empty I have to delete the folder) before backing up /Data in TWRP
zgfg said:
System partition is ro=read only in /vendor/etc/fstab.qcom and even if you would try to make it writeble through that question in TWRP, it will remain read only
But scrambled Data and Internal memory has nothing with read only /system - again, it is because of TWRP must use the Android screen unlock/pin pass.
Try to set the unlock pin to something (not empty) in Android Settings, and test again
Sorry, I'm not following now who stated what above in his earlier posts, I'm not on Pro but plain Mi 9T, with Xiaomi.eu MIUI 12.6 A11 beta, TWRP 3.5.2-9, and everything works for me as described.
Also at the time of switching to Xiaomi.eu I of course had to Format Data
And immediately after flashing TWRP I always reboot to TWRP (somebody also debated about):
fastboot oem reboot-recovery
Screenshots from TWRP attached. Observe that TWRP decrypts user space 0 (default user) but fails to decrypt 999 (second user) - that is still not supported by TWRP. Because of that, backing up Data partition fails unless I delete (from the rooted Android or from TWRP) /data/extm folder (although it's empty I have to delete the folder) before backing up /Data in TWRP
Click to expand...
Click to collapse
brother, twrp still not reading my internal storage even after I just gave one pin lock as you said. then , I flashed magisk 22.0 using OTG(pendrive). twrp showed done as same as youtube xda video. but, after rebooting, magisk manager is not there, only magisk app which was not opening. I installed root checker to check root and it said, device is not rooted. Please tell me brother what to do
I have just discovered, in magisk app, it says NO RAMDISK
so, I followed the official magisk website, it instructed to read instructions in xda, i came to xda, xda sent me the same page saying read the instructions there :'(
shafi1885 said:
brother, twrp still not reading my internal storage even after I just gave one pin lock as you said. then , I flashed magisk 22.0 using OTG(pendrive). twrp showed done as same as youtube xda video. but, after rebooting, magisk manager is not there, only magisk app which was not opening. I installed root checker to check root and it said, device is not rooted. Please tell me brother what to do
I have just discovered, in magisk app, it says NO RAMDISK
so, I followed the official magisk website, it instructed to read instructions in xda, i came to xda, xda sent me the same page saying read the instructions there :'(
Click to expand...
Click to collapse
First and foremost Format (not Wipe) the Data, and then also Wipe Cache. If you don't like, continue on your own and good luck
zgfg said:
First and foremost Format (not Wipe) the Data, and then also Wipe Cache. If you don't like, continue on your own and good luck
Click to expand...
Click to collapse
brother, if I format all the data, will it clear my rom too? or it's like factory reset? I am asking to know if I can boot back to my normal stock MIUI 12.5 .
and brother, I am sorry you felt like that, actually I meant I couldn't understand about "patching images" because my ramdisk is NO. I didn't understand the technical details of it. could you please help me?
brother, what will I do without XDA, I learnt a lot from XDA in last couple of days. I unlocked my bootloader, I installed twrp, without XDA, I can't survive on my own. Love this community and the people here.
shafi1885 said:
brother, if I format all the data, will it clear my rom too? or it's like factory reset? I am asking to know if I can boot back to my normal stock MIUI 12.5 .
and brother, I am sorry you felt like that, actually I meant I couldn't understand about "patching images" because my ramdisk is NO. I didn't understand the technical details of it. could you please help me?
brother, what will I do without XDA, I learnt a lot from XDA in last couple of days. I unlocked my bootloader, I installed twrp, without XDA, I can't survive on my own. Love this community and the people here.
Click to expand...
Click to collapse
It's like a factory reset.
Personal storage data and user installed apps will be deleted. The ROM itself will be untouched.
Try renaming the Magisk apk and change the file extension to .zip. Then flash the renamed file in TWRP.
shafi1885 said:
brother, if I format all the data, will it clear my rom too? or it's like factory reset? I am asking to know if I can boot back to my normal stock MIUI 12.5 .
and brother, I am sorry you felt like that, actually I meant I couldn't understand about "patching images" because my ramdisk is NO. I didn't understand the technical details of it. could you please help me?
brother, what will I do without XDA, I learnt a lot from XDA in last couple of days. I unlocked my bootloader, I installed twrp, without XDA, I can't survive on my own. Love this community and the people here.
Click to expand...
Click to collapse
Please take your time, do your homework, read guides here on XDA, read other Q)A threads here on XDA, all these things about formatting data (previously TWRP, etc) are described and snswered already in many orher posts
So this is really the last time I will respond you (unless I see something that I consider is really out of scope of the 'regular' knowledge that can be learned around).
Btw, when I obtained my Mi 9T, I spent full three weeks googling, reading and learning before I asked/posted my first question and started to bother the others
Hence, you can continue asking the basic things, but let somebody else answer you, I will ignore
Data is not System and by formatting Data you don't loose ROM but you loose all your apps, settings, configurations, personal files incl. photos, etc. Android will boot as the first time once again.
Hence do some backups (photos to PC, WhatsApp can be backed up from its Settings, etc) - again, google about if you are not familiar about backing up
1. ADB push does not work on production releases (MIUI).
2. Do "Format" and not "Wipe" the Data partition from twrp , it will fix your problem but you will lose all data on the phone.
Got the same problem, found a simple solution.
On your phone go to TWRP - Advanced - ADB sideload.
On your pc type
Code:
adb sideload something.zip
.

Categories

Resources