[Q] Why data is wiped when bootloader is unlocked? - Moto G Q&A, Help & Troubleshooting

I have a simple question: Why all user data is wiped when bootloader is unlocked?

It's a security measure, if you have a lockscreen and someone else unlocks your bootloader to gain access to the device, as a security measure all of your data is wiped.
sent from my Moto X Walnut

Related

[Q] Data deletion upon unlocking bootloader

I recently unlocked my bootloader and it cleared my internal memory (HTC One), I went thought the process of getting all my data back This tutorial, but only to find that the data is not there. Does anybody know the extent of the formatting when it clears your data when unlocking the bootloader? I wouldn't think it would do a complete format but, the data is not there.
Unlocking the bootloader on your HTC Phone wipes your /data partition. It was a complete Data format. You CANNOT get your data back
It deletes the user data for "privacy reasons" and "security concerns".
Sorry , but you can't get your data back.

[Q] Should I root and/or lock my bootloader

I have a nexus 5. The bootloader is unlocked. It has stock OTA lollipop.
I have a few questions about this device. I have read this device is special in that unlocking the bootloader does not wipe the phone. Is that true? My impression is that locking the bootloader does NOT wipe the device (true for many device), correct?
My dilemma is this. I have read it is good to have a locked bootloader, but I don't want to then later unlock it if it wipes my device. I could root and lock, but I think I lose root when the next OTA update comes. I will hence be in locked without root state.
Anyway, my question is, do I need to lock it? Should I root it first? What do I do when I lose root next OTA and the bootloader is locked? This isn't a problem if unlocking the loader doesn't wipe the device.
juniper1982 said:
I have a nexus 5. The bootloader is unlocked. It has stock OTA lollipop.
I have a few questions about this device. I have read this device is special in that unlocking the bootloader does not wipe the phone. Is that true? My impression is that locking the bootloader does NOT wipe the device (true for many device), correct?
My dilemma is this. I have read it is good to have a locked bootloader, but I don't want to then later unlock it if it wipes my device. I could root and lock, but I think I lose root when the next OTA update comes. I will hence be in locked without root state.
Anyway, my question is, do I need to lock it? Should I root it first? What do I do when I lose root next OTA and the bootloader is locked? This isn't a problem if unlocking the loader doesn't wipe the device.
Click to expand...
Click to collapse
Unlocking the bootloader will wipe your device, unless you're rooted and use bootunlocker. Personally I leave my bootloader unlocked. You do loose some security though by doing this
Sent from my Nexus 9 using XDA Free mobile app
jd1639 said:
Unlocking the bootloader will wipe your device, unless you're rooted and use bootunlocker. Personally I leave my bootloader unlocked. You do loose some security though by doing this
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
I guess it would help to know the security risks.
I only install apps from the play store, and usually only ones with a huge amount of traffic.
juniper1982 said:
I guess it would help to know the security risks.
I only install apps from the play store, and usually only ones with a huge amount of traffic.
Click to expand...
Click to collapse
The security risk is if you lost your phone or it's stolen. With an unlocked bootloader it's easier to get to the contents of your phone. But if you don't use a pin or pattern lock it wouldn't make a difference.
Sent from my Nexus 9 using XDA Free mobile app
jd1639 said:
The security risk is if you lost your phone or it's stolen. With an unlocked bootloader it's easier to get to the contents of your phone. But if you don't use a pin or pattern lock it wouldn't make a difference.
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
ah right. I was thinking that if someone physically got their hands on my they could just unlock and have access to it. but of course unlock wipes it!
Ok. thanks. I get it now.

Is it possible to lock and unlock bootloader without erasing data once your rooted

I just unlocked the bootloader to install twrp and maybe magisk i wanted to also try the Android P dev preview. but i know having a unlocked bootloader is a security risk also your get that warnign message at boot which makes booting up longer,is there a way to lock and unlock without losing data if im root.
Unlocking and locking wipes all data by design.
Telperion said:
Unlocking and locking wipes all data by design.
Click to expand...
Click to collapse
Is there a way to make the device secure with it having a unlocked bootloader?
With an unlocked bootloader, anyone can install a factory image, which wipes all your locks and your google account (and, therefore, defeats FRP), which is what makes it insecure. The only way to avoid that is to have a locked bootloader (and USB debugging off). (And I've seen reports here that unlocking the bootloader, installing TWRP and Magisk, then locking the bootloader, results in a hard brick (meaning buying another phone, because Google won't replace it)
Run with the unlocked booloader, don't ever leave the phone off your person and have "insurance" that replaces stolen (and possibly lost) phones.

Bootloader and may security patch

I unluckly discovered that with the may security update, both unlocking and locking the bootloader will result in a complete wipe of all user data.
Is this intended? Will this be the standard for all the next updates? It's really a shame that unlocking ther bootloader is now a relatively pricey and hard thing to do.
Or did I just do something wrong? Lost data... twice in a day
What about GCam and root if the bootloader can't be altered without clearing all user data? Does this mean I'll have to dump my data every time I update my system (and so root again)?
Hope someone knows better than me :crying:
_MrAlpha_ said:
I unluckly discovered that with the may security update, both unlocking and locking the bootloader will result in a complete wipe of all user data.
Is this intended? Will this be the standard for all the next updates? It's really a shame that unlocking ther bootloader is now a relatively pricey and hard thing to do.
Or did I just do something wrong? Lost data... twice in a day
What about GCam and root if the bootloader can't be altered without clearing all user data? Does this mean I'll have to dump my data every time I update my system (and so root again)?
Hope someone knows better than me :crying:
Click to expand...
Click to collapse
Yes, from now it's "normal"
On all devices you lose all data for locking/unlocking BL, our Mi A1 was lucky.
Its upgrading security
Wiping FRP was a piece of cake

Question LOCK the bootloader

I am intending to sell my s22u and want to lock the bootloader. The buyer freaks out when they see the startup message.
Is it possible and what's the command?
Also, will it wipe data if possible to lock it?
Follow the same process you used to unlock it. Locking the bootloader does wipe data.

Categories

Resources