Pls HELP~Is there a way "unlock bootloader without erase userdata" - Sony Xperia T2 Ultra

thz a lot~

You cannot do that
You cannot do that it is by design, it is a security measure. The data is wiped to prevent access of your sensitive data.

Related

[q] fastboot oem unlock

When running this command and the prompt comes up stating this will erase all data, will this leave the phone blank? or will it revert to 4.0.1 Android operating system and erase all user data?
it wipes all user data including data on the sdcard partition.
Will it return my phone to a factory state, or just wipe user data and still stay at the current version?
leeroyjenk said:
Will it return my phone to a factory state, or just wipe user data and still stay at the current version?
Click to expand...
Click to collapse
just wipes the data, it does not format system

Stock, unencrypted. How can I OTA without having it automatically re-encrypt?

So far I've followed the directions from Heisenberg's guide:
fastboot flash bootloader C:\bullhead\images\bootloader-bullhead-bullhead-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\bullhead\images\radio-bullhead-bullhead-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\bullhead\images\boot.img
fastboot erase cache
fastboot flash cache C:\bullhead\images\cache.img
fastboot flash recovery C:\bullhead\images\recovery.img
fastboot flash system C:\bullhead\images\system.img
fastboot flash vendor C:\bullhead\images\vendor.img
then I flashed TWRP 3.0.0.0. Do I need to do anything else to make sure my phone doesn't encrypt itself on first boot?
You have to change fstab.bullhead on the ramdisk to disable forced encryption. If you flashed the SuperSU beta 2.6x zip it should automatically change that for you.
I just decrypted mine by doing that, along with some other magic unrelated to your situation.
That said, if you are worried you should backup the userdata partition beforehand so you can restore it easily if anything goes wrong.
alvinhochun said:
You have to change fstab.bullhead on the ramdisk to disable forced encryption. If you flashed the SuperSU beta 2.6x zip it should automatically change that for you.
I just decrypted mine by doing that, along with some other magic unrelated to your situation.
That said, if you are worried you should backup the userdata partition beforehand so you can restore it easily if anything goes wrong.
Click to expand...
Click to collapse
So let's say I used MHC19J and I didn't happen to flash SuperSU, so that fstab.bullhead wasn't changed and my previously unencrypted data was then encrypted and now when I boot into TWRP 3.0.0.0 it asks for a password I don't have... is there nothing I can do to make TWRP able to access my data now?
I made a backup before applying any changes, of course. But that was a nandroid, which TWRP puts on my /sdcard, which just got encrypted, so TWRP can't access it?
What's my best approach in my current state? I wouldn't mind restoring from the nandroid, and re-upgrading to MHC19J (making sure I flash SuperSU that time), if I could only get to the nandroid.
----EDIT (1 hour later)----
Somewhat fixed by flashing back my old system, vendor, cache, radio, boot. Then in TWRP I was able to restore from my nandroid.
However, it now appears I'm encrypted? In Settings --> Security --> "Encryption" says "Encrypt phone" "Encrypted". I'm certain I unencrypted way back when I unlocked my bootloader and first rooted.
Tom____ said:
<snip>
----EDIT (1 hour later)----
Somewhat fixed by flashing back my old system, vendor, cache, radio, boot. Then in TWRP I was able to restore from my nandroid.
However, it now appears I'm encrypted? In Settings --> Security --> "Encryption" says "Encrypt phone" "Encrypted". I'm certain I unencrypted way back when I unlocked my bootloader and first rooted.
Click to expand...
Click to collapse
Do you remember formatting userdata after you unlocked? If not then you were encrypted by default.
bobby janow said:
Do you remember formatting userdata after you unlocked? If not then you were encrypted by default.
Click to expand...
Click to collapse
Back when I first unlocked my bootloader I did, per Heisenberg's step 3 (this was back with TWRP 2.8.7.0). This time no, I didn't (I wanted to keep my data). I suppose I'll have to if I want to re-unencrypt. But then to keep my data I'll have to get my nandroid off my phone and then put it back after the format, which I'm not eager to do.
For now I'll just see how encrypted will work as I wait for this whole MMB29V vs. MHC19J and TWRP 3.0.0.0 accessing an encrypted data partition situation to become more clear.
For those following along, if I understand correctly, the problem was booting into system before having SuperSu modify my boot image to disable forceencrypt.

How to enable Encryption

I decrypted my phone with erase userdata, a while ago, and since then Its re-encrypted without me clicking enable encryption.
I have locked my bootloader (and re-unlocked) since, does locking the bootloader re-enable encryption? trying to figure out how I did it.
Thanks

Encryption in everything

TWRP got encrypted some how and I wiped data and typed the YES to stop encryption and now I am am in a TWRP boot loop with Red failures every where I can not get out of.
Jimi Mack said:
TWRP got encrypted some how and I wiped data and typed the YES to stop encryption and now I am am in a TWRP boot loop with Red failures every where I can not get out of.
Click to expand...
Click to collapse
Have you tried wiping data with the "fastboot erase userdata" command? That might take you out of the bootloop. However, as you already know, this erases all data, including the internal storage. So, do it at your own risk.
VR25 said:
Have you tried wiping data with the "fastboot erase userdata" command? That might take you out of the bootloop. However, as you already know, this erases all data, including the internal storage. So, do it at your own risk.
Click to expand...
Click to collapse
Finally got out and flashed stock, thanks though

[solved] decryption unsuccessful

Hello,
I just unlocked my bootloader after waiting for 30 days.
Then I flashed official twrp via fastboot and booted to it with
Code:
fastboot boot twrp-3.2.3-0-whyred.img
I wiped Dalvik / Art Cache, System, Data, Cache but NOT internal storage
I flashed the PE extended 9.0 rom.
Now when I reboot it wants me to enter a password, I entered my PIN and it says:
Code:
Decryption unsuccessful
The password you entered is correct, but unfortunately your data is corrupt.
To resume using your phone, you need to perform a factory reset. When you set up your phone after the reset, you'll have an opportunity to restore any data that was backed up to your Google Account.
I click on Reset Phone and it reboots into TWRP and then automatically boots the system and again it wants me to enter my password.. and again the decryption unsuccessful message
In my first attempt I wiped everything including internal storage, then rebooted to recovery again and then installed the rom, but that didn't help. So I had to flash MIUI with the mi flash tool, then I did all the setup etc. and tried the method I used above..
But I always get stuck with this decryption unsuccessful.. What am I doing wrong?
//EDIT:
Solved the problem by TWRP -> Wipe -> Format Data -> Yes.
Now I feel stupid haha, I shouldn't do this stuff after working a night shift..
format data is the only way to decrypt

Categories

Resources