[q] fastboot oem unlock - Samsung Galaxy Nexus

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

Related

[Q] Flashed 4.3 - What happened to my GNex ?

Hi All,
two days back i flashed the 4.3 factory image (because the OTA was downloaded but installation resulted twice in Robot with the red triangle and the error message "error"), rooted, restored the apps/settings with Titanium Backup.
Yesterday the device behaved normal.
This morning the device got no GPS fix and i restarted the device.
Since then i experience these strange things:
- No Notifications
- No QuickSetings
- Not able to receive incoming calls (SIM card is working in other phone)
- Home button triggers vibration and shows optical feedback, but doesn't switch back to the home screen
- "Shutdown dialog" only shows option for Shutdown. No option to change sound profile, flight mode etc
- No Screen-Lock
Wiped the cache partition and the dalvik cache - Without success.
Can anybody help me to heal my GNex ?
Yes, do this:
Fastboot erase boot
Fastboot erase recovery
Fastboot format cache
Fastboot format system
Fastboot format userdata
Then flash a factory image and don't use your titanium backup.
Sent from my Galaxy Nexus using xda premium
Judge584 said:
Yes, do this:
Fastboot erase boot
Fastboot erase recovery
Fastboot format cache
Fastboot format system
Fastboot format userdata
Then flash a factory image and don't use your titanium backup.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
you can restore apps, but do not restore system data using TitaniumBackup. if you restore from a google account then most of your settings will be restored anyway. when you do restore however quickly go to the play store and cancel all the downloads, then restore the apps from Titanium

Unable to decrypt

I don't know what I'm doing wrong, I've tried just about every method I've been able to find in order to decrypt this phone but nothing seems to work for me. After every attempt I boot into recovery and can see in the log that the phone decrypted with default password. I also check in security settings and it says the phones encrypted. I've tried flashing twrp 2.8 and 3.0, in both cases I perform a factory reset as the guides instruct and wipe dalvic & cache with no success. I've also rooted the phone with chainfire systemless root and flashed the modified boot img but phone stays encrypted. Also tried flashing a custom kernel that supposed to disable force encryption. I know there must be something I'm missing. Right now I've started from square one and returned phone to stock. Any help would be appreciated, thanks.
Sent from my Nexus 5X using Tapatalk
Format data, not factory reset.
Sent from my Nexus 5X using Tapatalk
Boot into TWRP
Format userdata
Flash SuperSu-systemless
Reboot
So, format user data from adb? Because I chose advanced wipe in twrp and ticked off everything but system.
Sent from my Nexus 5X using Tapatalk
issacbourne12 said:
So, format user data from adb? Because I chose advanced wipe in twrp and ticked off everything but system.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Wiping and formating are two different things. You may format userdata in twrp or with fastboot.
TWRP: Wipe > Format Data (next to the Advanced Wipe button)
fastboot: reboot to the bootloader/power off then hold both the power button and volume down > connect to computer > open terminal > type "fastboot format userdata" without quotes and press enter
This will wipe your device clean. If you want to flash a ROM push it to the phone after formatting data.
Damn, yeah that's the one thing I hadn't done. Got it, thanks pious.
Sent from my Nexus 5X using Tapatalk
PiousInquisitor said:
Wiping and formating are two different things. You may format userdata in twrp or with fastboot.
TWRP: Wipe > Format Data (next to the Advanced Wipe button)
fastboot: reboot to the bootloader/power off then hold both the power button and volume down > connect to computer > open terminal > type "fastboot format userdata" without quotes and press enter
This will wipe your device clean. If you want to flash a ROM push it to the phone after formatting data.
Click to expand...
Click to collapse
nice.
Is "flashing factory img" will get the same effect as format userdata?

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.

[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

Stuck at boot animation on multiple custom ROMs [ Redmi Note 8 ] [ ginkgo ]

I thought of having a new ROM installed on my phone and it is not the first time I'm doing it.
Device: Redmi Note 8 [ ginkgo ]
These are the steps that I followed:
Moving to bootloader and rebooting to TWRP recovery
Wiping the cache, system, data and dalvik cache
Moving to install option and installing the CustomROM1.zip from the Internal Storage
But the screen is stuck at boot animation
Using my laptop I tried to do the following:
5.1. fastboot erase system and fastboot erase recovery
5.2. Flashed TWRP recovery again using fastboot flash recover twrp.img
Moved the CustomROM2.zip file in the Internal Storage and tried to flash resulted in boot animation loop
I even tried to ADB sideload and flash the zip but resulted in the same error.
CustomROM1 = Havoc-OS-v3.7-20200708-ginkgo-official.zip
CustomROM2 = AncientOS-CIVILIZATION-v3.0.1-ginkgo-PRIMEVAL-20200331-0828.zip
Any sort of help to get out of this would be totally appreciable. And thank in advance.
You have to format data in recovery (format where you have to type yes not wipe). Ideally do this before installing ROM.
So wipe everything, format data then install ROM
Tim-developer said:
You have to format data in recovery (format where you have to type yes not wipe). Ideally do this before installing ROM.
So wipe everything, format data then install ROM
Click to expand...
Click to collapse
I format
Dalvik / ART Cache
Cache
System
Vendor
Data
but same problem
arnobzit said:
I format
Dalvik / ART Cache
Cache
System
Vendor
Data
but same problem
Click to expand...
Click to collapse
That is the 'wipe' screen options. NOT the format screen options.
Please read again. What is said for you to do.
In twrp.
Go to wipe menu
At bottom press format
This gives you screen that says to format, type "yes"
mrmazak said:
That is the 'wipe' screen options. NOT the format screen options.
Please read again. What is said for you to do.
In twrp.
Go to wipe menu
At bottom press format
This gives you screen that says to format, type "yes"
Click to expand...
Click to collapse
Thanks a lot.......................problem solved.....................too much happy thanks brother
Tim-developer said:
You have to format data in recovery (format where you have to type yes not wipe). Ideally do this before installing ROM.
So wipe everything, format data then install ROM
Click to expand...
Click to collapse
Thanks you too
mrmazak said:
That is the 'wipe' screen options. NOT the format screen options.
Please read again. What is said for you to do.
In twrp.
Go to wipe menu
At bottom press format
This gives you screen that says to format, type "yes"
Click to expand...
Click to collapse
Hey bro I did but nothing goes well....
Look I was on stock miui 12.0.2.0 , my device is whyred.
And I was trying to flash a miui Rog port rom so I installed the custom recovery and format the data from advance wipe menu, and then I flashed the rom but it shows "error 7" .....and you know what happened then....
Adnaan21 said:
my device is whyred
Click to expand...
Click to collapse
Ask in whyred forums

Categories

Resources