[Q] OEM Locking - Nexus 7 General

If I relock OEM will this wipe my Nexus 7 like it did when I unlocked?

I believe it does, you can use "adb backup" (google it) and "adb restore" to backup and restore when not-rooted.
Or if you are keeping root then restoring with titanium backup would only take a min

Locking back should not wipe anything, but will wipe again should you decide to unlock in the future.

olivierlee said:
Locking back should not wipe anything, but will wipe again should you decide to unlock in the future.
Click to expand...
Click to collapse
I can confirm he's correct, it didn't for me
Sent from my Nexus 7 using xda premium

Related

[Security breach?] Your data is NOT SAFE! Simple bypass of data wipe when unlocking

I've always been a bit startled by how the bootloader bootloader is unlocked on my nexus 4. After pushing the unlock command to my device and choosing "yes", the bootloader is unlocked right away. The data isn't wiped before I reboot into the system, while on the nexus 7 the bootloader is not unlocked before after the wipe.
Yesterday i re-locked, rebooted and unlocked my device again as an experiment. I then proceeded to boot a custom recovery without rebooting into the system. I suceded, and was able to boot into TWRP without the bootloader wiping my data. I could then proceed to adb pull/push watever i wished from the data partition or any other partition without the data having been wiped. What? I thought my data was secure after re-locking my bootloader, but it appears it isn't.
If this applies to all nexus 4 devices, I was also able to reboot into the system after wiping cace from TWRP. This means you can oem unlock and root without without my data being wiped simply by booting a custom recovery right after unlocking.
If this applies to all nexus 4 devices, our data is not safe. This means that even normal users with locked bootloaders can have their data stolen easy as pie. We need more confirmations on this issue to confirm it. If you are willing to try, just follow the instructions below. Please report if it works or if it doesn't. WARNING! Do this at your own risk! I'm not responsible if your data is wiped, etc. Please perform a full nandroid or adb backup and copy it to a safe place before performing the following seps:
1. If you're unlocked, re-lock your bootloader and reboot into fastboot:
Code:
fastboot oem lock
fastboot reboot-bootloader
2. Unlock your bootloader:
Code:
fastboot oem unlock
3. There's no need to reboot into bootloader after performing the previous step. It makes no difference. Just do not reboot into the system.
4. Flash or boot a custom recovery:
Code:
fastboot flash recovery custom_recovery.img
OR
Code:
fastboot boot custom_recovery.img
5. Now you're in custom recovery if all goes as expected. Root by flashing SuperSU/whatever or pull data with adb or do some serious damage! :good:
6. If you want to reboot back into your system without loosing data, you'll have to wipe cache in custom recovery. This prevents the bootloader from rebooting back into the stock recovery (if you didn't overwrite it) and wipe your phone. If you flashed a custom recovery and you're stuck in a bootloop or something, this applies to you too.
And again: Please report back if it worked or if it didn't! Good luck! :^)
Edit: This wasn't all my idea. Found out about the last cache wipe step here.
fiskenigaten said:
I've always been a bit startled by how the bootloader bootloader is unlocked on my nexus 4. After pushing the unlock command to my device and choosing "yes", the bootloader is unlocked right away. The data isn't wiped before I reboot into the system, while on the nexus 7 the bootloader is not unlocked before after the wipe.
Yesterday i re-locked, rebooted and unlocked my device again as an experiment. I then proceeded to boot a custom recovery without rebooting into the system. I suceded, and was able to boot into TWRP without the bootloader wiping my data. I could then proceed to adb pull/push watever i wished from the data partition or any other partition without the data having been wiped. What? I thought my data was secure after re-locking my bootloader, but no!
I was also able to reboot into the system after wiping cace from TWRP. This means I can oem unlock and root without without my data being wiped simply by booting a custom recovery right after unlocking.
I want to find out if this applies to all other makos on all bootloaders. If you are willing to try, this is what I did. Please report if it works or if it doesn't. WARNING! Do this at your own risk! I'm not responsible if your data is wiped. Please perform a full nandroid backup and copy it to a safe place before performing the following seps:
1. If you're unlocked, re-lock your bootloader and reboot into fastboot:
Code:
fastboot oem lock
fastboot reboot-bootloader
2. Unlock your bootloader:
Code:
fastboot oem unlock
3. There's no need to reboot into bootloader after performing the previous step. It makes no difference. Just do not reboot into the system.
4. Flash or boot a custom recovery:
Code:
fastboot flash recovery custom_recovery.img
OR
Code:
fastboot boot custom_recovery.img
5. Now you're in custom recovery if all goes as expected. Root by flashing SuperSU/whatever or pull data with adb or do some serious damage! :good:
6. If you want to reboot back into your system without loosing data, you'll have to wipe cache in custom recovery. For some reason this keeps the stock recovery from wiping the phone. If you flashed a custom recovery and you're stuck in a bootloop or something, this applies to you too.
And again: Please report back if it worked or if it didn't! Good luck! :^)
Edit: This wasn't all my idea. Found out about the last cache wipe step here.
Click to expand...
Click to collapse
The upside is, the person who steals or finds your phone is most likely not a developer, an android nerd, or has ever heard of XDA to gain this information.
Semantics said:
The upside is, the person who steals or finds your phone is most likely not a developer, an android nerd, or has ever heard of XDA to gain this information.
Click to expand...
Click to collapse
/deleted I have no idea what I'm talking
Not up for experimenting, but it reminded me of my experience on the N4.
-initial BL unlock via the standard method = data wiped,
-upon relocking, and then unlocking the BL again = no data wipe (same method as above)
Can't recall if the behaviour was the same on my GN.
CMNein said:
Not up for experimenting, but it reminded me of my experience on the N4.
-initial BL unlock via the standard method = data wiped,
-upon relocking, and then unlocking the BL again = no data wipe (same method as above)
Can't recall if the behaviour was the same on my GN.
Click to expand...
Click to collapse
My data is allways wiped after bootloader unlock, but it is only wiped upon reboot. It was like that the first time as well.
I can almost (95%) confirm this, because the first time I unlock my Nexus 4, I fastboot flash cwm directly, and boot into recovery, to flash PA and wipe cache and data. Everything in my sdcard was intact and I was also confused like you did.
Maybe if I ever wanted to full wipe again I will give it a try...
ksilver89 said:
I can almost (95%) confirm this, because the first time I unlock my Nexus 4, I fastboot flash cwm directly, and boot into recovery, to flash PA and wipe cache and data. Everything in my sdcard was intact and I was also confused like you did.
Maybe if I ever wanted to full wipe again I will give it a try...
Click to expand...
Click to collapse
Excactly! This is really careless by Google. It means NO nexus 4 without encryption is safe! I want my data to be safe!
I don't get it. I thought even Samsung's phones you can do that? Just just go flash cf root then yeah done? Are they even trying to protect the data in your internal memory data from getting stolen?
fiskenigaten said:
My data is allways wiped after bootloader unlock, but it is only wiped upon reboot. It was like that the first time as well.
Click to expand...
Click to collapse
Sorry, I should have clarified I was referring to the virtual sdcard side of it.
Yup this is the exact reason I opened a thread about compatibility issues with encryption and CWM recovery. We have to encrypt our phones if we want to secure our data. What are the options once we go the 3rd party recovery route is another question.
http://forum.xda-developers.com/showthread.php?p=41257911
Sent from my Nexus 4 using Tapatalk 2
Excactly! This is really careless by Google. It means NO nexus 4 without encryption is safe! I want my data to be safe!
Click to expand...
Click to collapse
Guess it's time to encrypt your device then...
Seriously, bugs and exploits are going to happen. This is software written by humans, after all.
If you are serious about data security on your device, you would have already encrypted by now.
Can confirm easily. I relocked my boot loader with my phone at its current state. (CMRC1 + Bricked Kernel). Then proceeded to unlock, rebooted boot loader, booted into recovery, wipe cache, data intact
Sent from my Nexus 4 using xda premium
Well if someone steals your phone they most likely don't give a **** about your data (unless there's bank info on it) they probably just wanna resell it for an easy 3-400$
Sent from my Nexus 4 @1.72 GHz on Stock 4.2.2
To be honest if you want your bank info safe never put it on a device that is easily lost or stolen or transmits the info over the air.
Wayne Tech Nexus
Guys, honest question. If someone were to grab your data but you encrypted it via the settings menu, does that mean they can still decipher your contents? For example, the TSA is known to get your electronic items and copy the data for their "Security protocol." Would this allow them to copy the data but not decipher it?
Sent from my Nexus 4
nexicon said:
Guys, honest question. If someone were to grab your data but you encrypted it via the settings menu, does that mean they can still decipher your contents? For example, the TSA is known to get your electronic items and copy the data for their "Security protocol." Would this allow them to copy the data but not decipher it?
Sent from my Nexus 4
Click to expand...
Click to collapse
If the TSA got ahold of your device they would be able to decrypt it easily enough. No amount of encryption would prevent that.
zelendel said:
If the TSA got ahold of your device they would be able to decrypt it easily enough. No amount of encryption would prevent that.
Click to expand...
Click to collapse
Nothing in this country is safe and private anymore. Sigh..
Sent from my Nexus 4
nexicon said:
Nothing in this country is safe and private anymore. Sigh..
Sent from my Nexus 4
Click to expand...
Click to collapse
Not really. The only way to beat Gov hackers is to be a better hacker.
zelendel said:
Not really. The only way to beat Gov hackers is to be a better hacker.
Click to expand...
Click to collapse
Easy for you to say
Sent from my Nexus 4
nexicon said:
Easy for you to say
Sent from my Nexus 4
Click to expand...
Click to collapse
No not really man. Not sure what Country your in but it is most likely not very different here.

[Q] backingup stock recovery???

I would like to know as to how can i backup stock recovery? Bcoz, i wish to go S-off and unlocked via Revone method, then flash TWRP, flash a few mods, and then get back to stock recovery , s-off, locked bootloader. Is that all possible. Does a nandroid backup, backup's stock recovery as well???
Thanks in advance guys.
You can't do a nandroid without custom recovery so that is out of the picture. OTA zip files however contain the recovery file you need.
mathrania said:
I would like to know as to how can i backup stock recovery? Bcoz, i wish to go S-off and unlocked via Revone method, then flash TWRP, flash a few mods, and then get back to stock recovery , s-off, locked bootloader. Is that all possible. Does a nandroid backup, backup's stock recovery as well???
Thanks in advance guys.
Click to expand...
Click to collapse
If you're still on stock recovery at the moment - go into fastboot and command:
fastboot boot name_of_your_custom_recovery.img
This will just boot into custom recovery without flashing it. Do a backup and it will backup your stock recovery.
Sent from my HTC One using xda premium
redbull123 said:
If you're still on stock recovery at the moment - go into fastboot and command:
fastboot boot name_of_your_recovery.img
This will just boot into recovery without flashing it. Do a backup and it will backup your stock recovery.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Yes I am in stock recovery..
how do I know the name of the recovery?? Or do I need to name it by mnyself..... and after backup, which place do i need to find it in my phone to secure the backup copy....
Sorry, Limited to 8 thanks per day...
mathrania said:
Yes I am in stock recovery..
how do I know the name of the recovery?? Or do I need to name it by mnyself..... and after backup, which place do i need to find it in my phone to secure the backup copy....
Sorry, Limited to 8 thanks per day...
Click to expand...
Click to collapse
You'll need to download either CWM or TWRP. You can rename the download if you want to something like cwm.img or twrp.img to make it easier.
Once the backup is done it will be on your phones internal storage in the clockworkmod or TWRP folder - depending which one you choose to boot. Just copy it to your PC.
Sent from my HTC One using xda premium
redbull123 said:
You'll need to download either CWM or TWRP. You can rename the download if you want to something like cwm.img or twrp.img to make it easier.
Once the backup is done it will be on your phones internal storage in the clockworkmod or TWRP folder - depending which one you choose to boot. Just copy it to your PC.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
I will comeback to thank you after my limit of 8 thanks per day get expired
redbull123 said:
You'll need to download either CWM or TWRP. You can rename the download if you want to something like cwm.img or twrp.img to make it easier.
Once the backup is done it will be on your phones internal storage in the clockworkmod or TWRP folder - depending which one you choose to boot. Just copy it to your PC.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
One question though... i bought this phone as a used, and it was Tampered and Relocked. When I selected the recovery option, it booted the phone to somewhat stock like recovery, and then after some process, the phone rebooted, and the phone was totally Factory Reset.... everything in the storage was gone too..... so is there an way to check if it is indeed a stock recovery, or this is the normal behaviour of stock recovery...?
You need to unlock your bootloader before doing anything with custom recovery. Use Revone or the official HTC Dev method
Sent from my HTC One using xda premium
redbull123 said:
If you're still on stock recovery at the moment - go into fastboot and command:
fastboot boot name_of_your_custom_recovery.img
This will just boot into custom recovery without flashing it. Do a backup and it will backup your stock recovery.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Good tip
redbull123 said:
If you're still on stock recovery at the moment - go into fastboot and command:
fastboot boot name_of_your_custom_recovery.img
This will just boot into custom recovery without flashing it. Do a backup and it will backup your stock recovery.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
this method of just booting a custom recovery used to work with OLDER hboot versions. but it doesn't work with newer hboots. my hboot version is 1.54.0000 and when I use the command mentioned above, my bootloader menu just freezes!! guess I'll have to look for the OTA file then to find the stock bootloader!
pritam.paul.360 said:
this method of just booting a custom recovery used to work with OLDER hboot versions. but it doesn't work with newer hboots. my hboot version is 1.54.0000 and when I use the command mentioned above, my bootloader menu just freezes!!
Click to expand...
Click to collapse
Yep, I know. It worked when I wrote it, over 6 weeks ago.
Sent from my HTC One using XDA Premium 4 mobile app
redbull123 said:
Yep, I know. It worked when I wrote it, over 6 weeks ago.
Sent from my HTC One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
uh, I see! guess I didn't notice the date!
pritam.paul.360 said:
this method of just booting a custom recovery used to work with OLDER hboot versions. but it doesn't work with newer hboots. my hboot version is 1.54.0000 and when I use the command mentioned above, my bootloader menu just freezes!! guess I'll have to look for the OTA file then to find the stock bootloader!
Click to expand...
Click to collapse
Not sure if it helps as I was still on 1.44 HBoot, but when I tried the command while the bootloader was locked, my bootloader would also freeze and I had to do a hard reset. Once I unlocked my bootloader, the boot command worked.
wckong said:
Not sure if it helps as I was still on 1.44 HBoot, but when I tried the command while the bootloader was locked, my bootloader would also freeze and I had to do a hard reset. Once I unlocked my bootloader, the boot command worked.
Click to expand...
Click to collapse
first of all, you must have your bootloader unlocked in order to boot/flash a custom recovery. you can't do so if your bootloader is locked. and secondly, yeah, I also had the boot command worked out before I had the 1.54 Hboot. I guess this one doesn't allow 'just' booting a custom recovery!

any1 wants to unroot htc one 1.29.401.12 see here

1.You must be s-off with revone
2. After being s-off lock the bootloader by opening the command in the fastboot folder in ur laptop writing "fastboot oem lock"
3. Run the ruu 1.28.401.7 from http://www.bugsylawson.com/files/fi...13323127-1031113105-release-310878-signedexe/
4. Now your unrooted:fingers-crossed:
HassanA98 said:
1.You must be s-off with revone
2. After being s-off lock the bootloader by opening the command in the fastboot folder in ur laptop writing "fastboot oem lock"
3. Run the ruu 1.28.401.7 from http://www.bugsylawson.com/files/fi...13323127-1031113105-release-310878-signedexe/
4. Now your unrooted:fingers-crossed:
Click to expand...
Click to collapse
If you have S-off you don't have to lock your bootloader to run a RUU
If you just want to unroot, meaning get rid of root permission, you don't need to run ruu, supersu will do the job for you, there is an option in setting of supersu, unroot, then reboot your phone, job done.
Whenever you want to root, flash supersu from recovery, the unroot to go back to normal.
Sent from my HTC One using xda app-developers app
h.han said:
If you just want to unroot, meaning get rid of root permission, you don't need to run ruu, supersu will do the job for you, there is an option in setting of supersu, unroot, then reboot your phone, job done.
Whenever you want to root, flash supersu from recovery, the unroot to go back to normal.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
So will that give you back stock recovery also?
Sent from my HTC One using xda premium
h.han said:
If you just want to unroot, meaning get rid of root permission, you don't need to run ruu, supersu will do the job for you, there is an option in setting of supersu, unroot, then reboot your phone, job done.
Whenever you want to root, flash supersu from recovery, the unroot to go back to normal.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
I mean if u want to install the official 4.2.2 update
jadaress1 said:
So will that give you back stock recovery also?
Click to expand...
Click to collapse
No, you have to install that using fastboot.

TWRP Wipe for a used device

I recently bought a used Nexus 6 in mint condition, but I noticed after a factory reset in TWRP that I still see old install folders and even some of the previous owner pics and docs.
How do I do a proper wipe without missing something up like the rom itself? What settings in TWRP should I use without killing the rom.
Thanks in advance
rsalas187 said:
I recently bought a used Nexus 6 in mint condition, but I noticed after a factory reset in TWRP that I still see old install folders and even some of the previous owner pics and docs.
How do I do a proper wipe without missing something up like the rom itself? What settings in TWRP should I use without killing the rom.
Thanks in advance
Click to expand...
Click to collapse
Do a data factory reset in /settings/backup and restore/factory reset/. Backup first off course, this will wipe the device.
gee2012 said:
Do a data factory reset in /settings/backup and restore/factory reset/. Backup first off course, this will wipe the device.
Click to expand...
Click to collapse
So don't even use the TWRP factory reset?
Format Data
Factory reset in twrp doesn't wipe sdcard. Also factory reset in settings uses recovery default which if twrp also, doesn't wipe sdcard.
In twrp go to wipe > advanced wipe > internal storage
rsalas187 said:
So don't even use the TWRP factory reset?
Click to expand...
Click to collapse
If you prefer that you can:
Wipe cache and dalvik cache, data factory reset and reboot. Also backup apps and files/pics etc first. Do not wipe system or sdcard!
gee2012 said:
If you prefer that you can:
Wipe cache and dalvik cache, data factory reset and reboot. Also backup apps and files/pics etc first. Do not wipe system or sdcard!
Click to expand...
Click to collapse
He wants to wipe sdcard...
rootSU said:
He wants to wipe sdcard...
Click to expand...
Click to collapse
Don't think so if I read the op right, at least don't hope so ?
Verstuurd vanaf mijn Nexus 6 met Tapatalk
gee2012 said:
Don't think so if I read the op right, at least don't hope so ?
Verstuurd vanaf mijn Nexus 6 met Tapatalk
Click to expand...
Click to collapse
Yeah he does. He wants to wipe all the pictures from previous owner on sdcard but can't because twrp doesn't do that unless he follows my instructions s
rootSU said:
Yeah he does. He wants to wipe all the pictures from previous owner on sdcard but can't because twrp doesn't do that unless he follows my instructions s
Click to expand...
Click to collapse
Oké, doesn't do data factory reset in settings do the same? Wipe user data.
Verstuurd vanaf mijn Nexus 6 met Tapatalk
gee2012 said:
Oké, doesn't do data factory reset in settings do the same? Wipe user data.
Verstuurd vanaf mijn Nexus 6 met Tapatalk
Click to expand...
Click to collapse
Twrp does not wipe sdcard. This is done on purpose to save sdcard for ROM flashers. It is no good wiping a device before flashing a ROM if the ROM you want to flash is wiped from sdcard.
Only stock ROM wipes sdcard with factory reset
Reset from settings uses recovery. So of stock recovery installed, using setting wipes sdcard. If twrp installed, using settings does not wipe sdcard.
rootSU said:
Twrp does not wipe sdcard. This is done on purpose to save sdcard for ROM flashers. It is no good wiping a device before flashing a ROM if the ROM you want to flash is wiped from sdcard.
Only stock ROM wipes sdcard with factory reset
Reset from settings uses recovery. So of stock recovery installed, using setting wipes sdcard. If twrp installed, using settings does not wipe sdcard.
Click to expand...
Click to collapse
Oké got it bro.
Verstuurd vanaf mijn Nexus 6 met Tapatalk
you can always wipe the sd storage with twrp, but you have to specificly choose your storage to be wiped.
Failure of Factory Reset
I bought a Nexus 6 today, and listen to the "father" tell me that his "son" placed TWRP for recovery and installed PureNexus ROM on the device. Of course, I figured that this wasn't and issue, and the first thing that I did was do a factory reset. I issued the reset and once I was in TWRP, I immediately received a fail. I did a fastboot to a newer version of TWRP, but still no joy.
I have tried advance wipe and still nothing. Is there any pointers on where I might find the answer to being able to do a factory reset.
kcallis said:
I bought a Nexus 6 today, and listen to the "father" tell me that his "son" placed TWRP for recovery and installed PureNexus ROM on the device. Of course, I figured that this wasn't and issue, and the first thing that I did was do a factory reset. I issued the reset and once I was in TWRP, I immediately received a fail. I did a fastboot to a newer version of TWRP, but still no joy.
I have tried advance wipe and still nothing. Is there any pointers on where I might find the answer to being able to do a factory reset.
Click to expand...
Click to collapse
Need some details here... First and foremost, what kind of fail are you talking about? Is there an error message?
(It's also interesting to know what kind of factory reset you did. The "normal" way in settings or in TWRP?)
Didgeridoohan said:
Need some details here... First and foremost, what kind of fail are you talking about? Is there an error message?
(It's also interesting to know what kind of factory reset you did. The "normal" way in settings or in TWRP?)
Click to expand...
Click to collapse
The first time I did a Factory Reset was via the Setting --> Backup & reset --> Factory data reset. At which time, TWRP kicked in and attempted the automatic Factory reset.
Code:
Updating partition details..
... done
Full SELinux support is present.
Simulating actions...
At the top was the following:
Code:
OpenRecoveryScript Complete
Failed
So I thought there might be an issue with the version I was running so I followed up with going into the bootloader and then:
Code:
fastboot flash recovery openrecovery-twrp-2.8.5.0-shamu.img
I even tried to fastboot oem unlock:
Code:
[email protected]:~/Downloads/Nexus 6$ fastboot oem unlock
...
(bootloader) Device state transition will erase userdata.
(bootloader) Are you sure you want to continue this transition?
(bootloader)
(bootloader) Press POWER key to continue.
(bootloader) Press VOL UP or VOL DOWN key to cancel state transition.
(bootloader) State transition confirmed!
(bootloader) Please select 'YES' on screen if you want to continue...
(bootloader) Unlocking bootloader...
(bootloader) Not supported command in current status!
FAILED (remote failure)
finished. total time: 38.915s
I booted back into recovery and then tried to do a wipe. That one failed! I tried other partitions and still failed. So while the ROM seems to be working fine, I have not been able to do the factory reset and as such have not been able to first time boot where I could start the 1st time start so I could get the google cloud stuff downloaded to the device. I guess I could just go into Play and download stuff, but I would like to truly make this into my own device.
Sounds like the bootloader is locked. Go to settings in the ROM and tap on the build number seven times to expose Developer Options. Go to Developer Options and make sure "Enable OEM Unlock" is checked. Then try unlocking the bootloaded.
If you're successful, you can then replace TWRP with an updated version and go from there to customize the Nexus. This includes using TWRP to wipe the Nexus.
Didgeridoohan said:
Need some details here... First and foremost, what kind of fail are you talking about? Is there an error message?
(It's also interesting to know what kind of factory reset you did. The "normal" way in settings or in TWRP?)
Click to expand...
Click to collapse
Strephon Alkhalikoi said:
Sounds like the bootloader is locked. Go to settings in the ROM and tap on the build number seven times to expose Developer Options. Go to Developer Options and make sure "Enable OEM Unlock" is checked. Then try unlocking the bootloaded.
If you're successful, you can then replace TWRP with an updated version and go from there to customize the Nexus. This includes using TWRP to wipe the Nexus.
Click to expand...
Click to collapse
It is already in Developer Mode and the OEM is unlocked. One of the first things that I checked...
kcallis said:
It is already in Developer Mode and the OEM is unlocked. One of the first things that I checked...
Click to expand...
Click to collapse
Try instead to flash a factory image. Might work and your device will be nice and clean.
And TWRP 2.8.5.0 is ancient (sort of). Latest is 3.0.2-0.
Didgeridoohan said:
Try instead to flash a factory image. Might work and your device will be nice and clean.
And TWRP 2.8.5.0 is ancient (sort of). Latest is 3.0.2-0.
Click to expand...
Click to collapse
That was the trick... 3.0.2 made the factory reset a breeze

Question How to lock/unlock bootloader without wiping!

Using the standard XIAOMI batch unlock tool, WHILE you click UNLOCK or after issuing
Code:
fastboot oem lock
,
keep volume down pressed!
Then from a shell, type:
Spoiler
fastboot -u continue
data will wipe, no other option till now.
Zibri said:
Using the standard XIAOMI batch unlock tool, WHILE you click UNLOCK or after issuing
Code:
fastboot oem lock
,
keep volume down pressed!
Then from a shell, type:
Spoiler
fastboot -u continue
Click to expand...
Click to collapse
Do you mean the Xiaomi Mi Unlock tool??, youre post is a bit vague, are you saying that i can unlock my bootloader without the data being wiped, thats awesome if thats the case
gotta try this next time
Zibri said:
Using the standard XIAOMI batch unlock tool, WHILE you click UNLOCK or after issuing
Code:
fastboot oem lock
,
keep volume down pressed!
Then from a shell, type:
Spoiler
fastboot -u continue
Click to expand...
Click to collapse
Hmm if you're saying we can re-lock the bootloader without wiping data then there might be a way to keep root and get the bootloader locked... Any videos on the correct setup?
BigChungus321 said:
Hmm if you're saying we can re-lock the bootloader without wiping data then there might be a way to keep root and get the bootloader locked... Any videos on the correct setup?
Click to expand...
Click to collapse
no.. you won't be able to boot an unmodified bootloader....
but you can keep the data partition at least... check something, then reunlock...
ashufftb said:
data will wipe, no other option till now.
Click to expand...
Click to collapse
NO. data won't wipe. but you won't be able to boot a tampered system.. all you will be able to do is to keep the data partition
Zibri said:
NO. data won't wipe. but you won't be able to boot a tampered system.. all you will be able to do is to keep the data partition
Click to expand...
Click to collapse
tampered system huh
Then whats the point if phone wont Boot?.
Its my understanding when you install a rom stock or not, the partition has to be formatted for it to encrypt the new install, so its not gonna boot anyway unless ya wipe data, defeats the purpose for me ha ha, i was hopeful i could unlock and boot back to wiui without having to reinstall lol.
gazza35 said:
Then whats the point if phone wont Boot?.
Its my understanding when you install a rom stock or not, the partition has to be formatted for it to encrypt the new install, so its not gonna boot anyway unless ya wipe data, defeats the purpose for me ha ha, i was hopeful i could unlock and boot back to wiui without having to reinstall lol.
Click to expand...
Click to collapse
Example:
you have a rooted phone with modified bootloader, recovery and everything...
you want to try out an original rom with original locks like in a freshly bought phone
but you don't want to lose applications and data.
Yoou reflash the stock rom without deleting the data partition, and you relock the bootloader. Usually doing so it wipes the data partition too...
It's just a way for testers and hackers to go back and forth without wiping anything.
Zibri said:
Example:
you have a rooted phone with modified bootloader, recovery and everything...
you want to try out an original rom with original locks like in a freshly bought phone
but you don't want to lose applications and data.
Yoou reflash the stock rom without deleting the data partition, and you relock the bootloader. Usually doing so it wipes the data partition too...
It's just a way for testers and hackers to go back and forth without wiping anything.
Click to expand...
Click to collapse
Nice find man, i get ya, and yer perfect for testing those roms out.

Categories

Resources