Hi all, I just ordered my Mi Mix and had a couple of questions regarding locking and relocking the bootloader:
I usually like to root my phones just because it gives me some finer levels of control (such as f.lux, titanium backup, adaway, etc), so I have been considering unlocking the bootloader and installing TWRP as per instructions in the forums here. I have read however that it is possible to relock the bootloader and in essence restore the phone to a "unmodified" state. Does anyone know if it is possible to remove root, flash the original recovery and then relock the bootloader in case I ever wanted to go back to stock MIUI?
Sorry if this is a duplicate - I did a quick search and did not notice the question asked. Appreciate any tips and advice!
nommermon said:
Hi all, I just ordered my Mi Mix and had a couple of questions regarding locking and relocking the bootloader:
I usually like to root my phones just because it gives me some finer levels of control (such as f.lux, titanium backup, adaway, etc), so I have been considering unlocking the bootloader and installing TWRP as per instructions in the forums here. I have read however that it is possible to relock the bootloader and in essence restore the phone to a "unmodified" state. Does anyone know if it is possible to remove root, flash the original recovery and then relock the bootloader in case I ever wanted to go back to stock MIUI?
Sorry if this is a duplicate - I did a quick search and did not notice the question asked. Appreciate any tips and advice!
Click to expand...
Click to collapse
There is the official MIUI website that has the details. Check out en.miui.com/thread-471497-1-1.html
This is an amazing resource! Thank you!
Related
Hi all,
I have a stock Xperia Z at the moment. Its a work phone.
I want to root it but because its a work phone I have to know I can go back to complete original state if I want to.
Now I have read the threads about backin up your TA partition but I am not sure if by doing this and also by having a stock image I can go back to 100% original?
I read this thread: http://forum.xda-developers.com/showthread.php?t=2234627
Few questions:
- If I root the phone - does it do anything permanent or can I then just loose root easily and go back to exactly how it is now?
- What exactly is the difference between rooting your phone and unlocking your boot loader?
- If I backup the TA partition using the steps in the thread provided above, can I then just do anything else I want to the phone and then restore back to original or are there other steps? and if so, what are they.
Any and all up to date information from someone who knows what they are talking about hugely welcomed.
More nervous than usual just because its a work phone (rooted and used to Custom ROM my HTC Sensation all the time but didn't care as it was my own phone).
Thanks
No one?
Sent from my C6603 using Tapatalk 4 Beta
nnila said:
Hi all,
I have a stock Xperia Z at the moment. Its a work phone.
I want to root it but because its a work phone I have to know I can go back to complete original state if I want to.
Now I have read the threads about backin up your TA partition but I am not sure if by doing this and also by having a stock image I can go back to 100% original?
I read this thread: http://forum.xda-developers.com/showthread.php?t=2234627
Few questions:
- If I root the phone - does it do anything permanent or can I then just loose root easily and go back to exactly how it is now?
- What exactly is the difference between rooting your phone and unlocking your boot loader?
- If I backup the TA partition using the steps in the thread provided above, can I then just do anything else I want to the phone and then restore back to original or are there other steps? and if so, what are they.
Any and all up to date information from someone who knows what they are talking about hugely welcomed.
More nervous than usual just because its a work phone (rooted and used to Custom ROM my HTC Sensation all the time but didn't care as it was my own phone).
Thanks
Click to expand...
Click to collapse
1 - Rooting only changes things on the software side. So it allows you to get complete access to the system files and execute low level actions. So it doesn't do anything on the hardware side. That said, is your phone customized by your employer? Does it have anything specifically done to it? In that case two things might happen. The software is so customized that if you root it and flash a custom ROM on top of that, you WILL lose all the original apps and settings. So there might not be anyway of getting back to the original state. Secondly, your employer might have locked the bootloader permanently. This, I shall take up for answering your next question.
2 - As I mentioned, rooting is only a software level hack that gives unrestricted access. However, let's say you need to flash a custom KERNEL or flash CyanogenMod/AOKP/AOSP (based ROMS), then it's absolutely necessary to unlock your bootloader. This basically is telling the bootloader (which loads your kernel) to allow any unsigned kernels .i.e. non-stock kernels, to be flashed on to your phone. Now mind you, this will cause the DRM keys in your phone to be erased which means you will lose Bravia Engine enhancements for your Pictures. It does remain for the videos though. Lastly, you can relock your bootloader. But you can never get back the DRM keys and hence the Bravia Engine.
So you can either root by unlocking your bootloader or by using root exploits while keeping your bootloader locked.
3 - Since your bootloader is locked right now, I suggest you use DooMlord's rooting toolkit
Here's the link:
http://forum.xda-developers.com/showthread.php?t=2327472
Click to expand...
Click to collapse
Also, backing up the TA partition is only necessary if you want to unlock your bootloader. This aims at backing up your DRM keys so that you can flash them back when you want to relock your bootloader. However this method is still dicey and I wouldn't recommend it considering it is a very risky method and can easily hard brick your device.
Upshot: Locked bootloader - Use Rooting toolkit. Will retain DRM keys.
Unlocked bootloader - For custom Kernels and CM Roms. Will lose DRM keys.
nnila said:
Hi all,
I have a stock Xperia Z at the moment. Its a work phone.
I want to root it but because its a work phone I have to know I can go back to complete original state if I want to.
Now I have read the threads about backin up your TA partition but I am not sure if by doing this and also by having a stock image I can go back to 100% original?
I read this thread: http://forum.xda-developers.com/showthread.php?t=2234627
Few questions:
- If I root the phone - does it do anything permanent or can I then just loose root easily and go back to exactly how it is now?
- What exactly is the difference between rooting your phone and unlocking your boot loader?
- If I backup the TA partition using the steps in the thread provided above, can I then just do anything else I want to the phone and then restore back to original or are there other steps? and if so, what are they.
Any and all up to date information from someone who knows what they are talking about hugely welcomed.
More nervous than usual just because its a work phone (rooted and used to Custom ROM my HTC Sensation all the time but didn't care as it was my own phone).
Thanks
Click to expand...
Click to collapse
-Root ---U can get back your device unRoot by update your device via SUS.
- ROOTING and Unlock BL very difference.
Root >> i can only reach your device till system app or modified many thing in system exclude kernel. and i cant install MOD ROM that need kernel from that ROM.
Unlock BL -- U will loss DRM key your device but u can install may MOD rom or new kernell with good features. and u always can root your device with easy
About TA idk to much and only do backup here, not want to restore it coz can get Hard Bricked my device.
only that i know.... and im sorry for my poor English.
maybe other ppl can explain more or u can search by yourself in android development section.
Sent from my C6602 using xda premium
nnila said:
Hi all,
I have a stock Xperia Z at the moment. Its a work phone.
I want to root it but because its a work phone I have to know I can go back to complete original state if I want to.
Now I have read the threads about backin up your TA partition but I am not sure if by doing this and also by having a stock image I can go back to 100% original?
I read this thread: http://forum.xda-developers.com/showthread.php?t=2234627
Few questions:
- If I root the phone - does it do anything permanent or can I then just loose root easily and go back to exactly how it is now?
- What exactly is the difference between rooting your phone and unlocking your boot loader?
- If I backup the TA partition using the steps in the thread provided above, can I then just do anything else I want to the phone and then restore back to original or are there other steps? and if so, what are they.
Any and all up to date information from someone who knows what they are talking about hugely welcomed.
More nervous than usual just because its a work phone (rooted and used to Custom ROM my HTC Sensation all the time but didn't care as it was my own phone).
Thanks
Click to expand...
Click to collapse
If you backup your TA partition, you can restore it later. This doesn't include anything other than the TA partition.
Rooting the phone just means that you have root access just like on any other linux distribution. You can fully unroot at anytime without any problems. Flashing an unrooted ROM or flashing the original ftf will remove root.
Rooting implies getting root access. You have higher privileges & apps that run as root have higher privileges. Unlocking the bootloader gives you access to protected partitions. The only real question is, do you want to use a custom kernel? - If you do, then unlock. Some ROMs, such as CM, run on custom kernels, so if you plan on using such ROMs, you need to unlock.
No, backing up TA is not enough, Follow this thread to get yourself a full ftf for your current customization that can be flashed with the official flashtool for Unlocked bootloaders or the unofficial flashtool that works with locked bootloaders. Further, you also need to relock your bootloader to fully return back to the original state.
If you aren't comfortable with doing all this, don't.
The next time you want to ask a quick question, please post in the Help Thread.
These questions are nothing new, already been answered multiple times, just adding to the clutter in the Q&A forum.
Hi All
So firstly I should say I only have myself to blame. I'm quite a techy guy so I just assumed i'd be able to root my phone without any issues and pick it up as I go. What i've quickly found out is i'm in way over my head and i'm an absolute noob!
Any advice would be greatly appreciated from those guys out there that actually know what they are doing. I have read many forums but i'm still lost.
My story is as follows:
- I have a Z1 that was locked on stock firmware 4.4
- I read that it would be a good idea to unlock the bootloader so i did this
- I wanted to root my phone but from what I read I could see I would have to downgrade the firmware to 4.2. So this is what i did.
- By doing this I lost my IMEI number, got very worried i'd ruined my phone. I tried many things to restore it, there were a variety of different solutions online, none of them worked. I eventually flashed a 4.3 firmware i found on this forum which restored my IMEI.
- I then read through a few posts of people who had similar issues and advice was given to downgrade again (if i wanted to root) but this time exclude the baseband etc. I did this, but lost my IMEI again! the advice didn't work
- So I then went and updgraded again! to 4.3 to restore my IMEI and network access
- There doesn't seem to be a way to root on 4.3 so my phone isn't rooted, that's ok. But when i try to use my banking apps they don't work! they say my phone is rooted even though it isn't! I have checked with root checker
- Like an idiot, i didn't back up the phone when i first started doing all of this, i didn't really know what i was doing so I am now in a situation where i have the worst of both worlds. They are, i can either 1. downgrade the firmware to 4.2, root my phone but not have a valid IMEI and network access or 2. stay on 4.3, have a valid IMEI and not be rooted but certain apps think i'm rooted so i can't use them.
So all in all i've just messed things up and i'm in way over my head. I would really appreciate some advice
Thanks
Yes you are right.
Also, there is no issue with losing IMEI when downgrading, it happens to everyone, but it comes back when you upgrade.
Also, if you unlock the bootloader there is no need to downgrade, that is a locked bootloader method of rooting
You should root before unlocking the bootloader in order to backup the TA partition, but you are too late now...
Solution
1) Use flashtool to relock the bootloader
2) Use pccompanion to update to latest firmware
3) Unlock the bootloader again with flashtool
4) Flash a custom kernel for stock based ROMs
5) Install SuperSU from the play store.
DONE!
6317
gregbradley said:
Yes you are right.
Also, there is no issue with losing IMEI when downgrading, it happens to everyone, but it comes back when you upgrade.
Also, if you unlock the bootloader there is no need to downgrade, that is a locked bootloader method of rooting
You should root before unlocking the bootloader in order to backup the TA partition, but you are too late now...
Solution
1) Use flashtool to relock the bootloader
2) Use pccompanion to update to latest firmware
3) Unlock the bootloader again with flashtool
4) Flash a custom kernel for stock based ROMs
5) Install SuperSU from the play store.
DONE!
Click to expand...
Click to collapse
Hi Greg
Thank you very much for your quick response. I will try and follow your advice to the letter tonight/tomorrow and let you know how it goes.
Thanks again
retro100386 said:
Hi Greg
Thank you very much for your quick response. I will try and follow your advice to the letter tonight/tomorrow and let you know how it goes.
Thanks again
Click to expand...
Click to collapse
..and if you want to see the Video which help you to understand better just check the @gregbradley Signature or mine.
eclyptos said:
..and if you want to see the Video which help you to understand better just check the @gregbradley Signature or mine.
Click to expand...
Click to collapse
The video by shem is for locked bootloaders, he needs an unlocked bootloader method
gregbradley said:
The video by shem is for locked bootloaders, he needs an unlocked bootloader method
Click to expand...
Click to collapse
So we have to ask @shem2409 to do another vid for Unlocked Bootloaders...
eclyptos said:
So we have to ask @shem2409 to do another vid for Unlocked Bootloaders...
Click to expand...
Click to collapse
I don't think so, the unlocked bootloader method is very generic and there are hundreds (if not thousands) of guides and probably as many videos.
gregbradley said:
I don't think so, the unlocked bootloader method is very generic and there are hundreds (if not thousands) of guides and probably as many videos.
Click to expand...
Click to collapse
I know but as you see the users still do mistake anyway, even if there is a lot of vids with a clear explanation.
conflicting messages?
gregbradley said:
Yes you are right.
Also, there is no issue with losing IMEI when downgrading, it happens to everyone, but it comes back when you upgrade.
Also, if you unlock the bootloader there is no need to downgrade, that is a locked bootloader method of rooting
You should root before unlocking the bootloader in order to backup the TA partition, but you are too late now...
Solution
1) Use flashtool to relock the bootloader
2) Use pccompanion to update to latest firmware
3) Unlock the bootloader again with flashtool
4) Flash a custom kernel for stock based ROMs
5) Install SuperSU from the play store.
DONE!
Click to expand...
Click to collapse
Hi Greg, can you give me a bit more advice please.
i'm just looking at the tutorial to relock by bootloader. It says "before u relock bootloader u have to be on pure stock kernel (flash only the kernel.sin using flashtool), else the device WILL NOT BOOT after relock"
The problem is i'm already flashed on to an FTF image that was on this site. From so by doing this am i going to brick my phone? i'm confused and i don't want to make things work so your advice would be apprecaited
thanks
retro100386 said:
Hi Greg, can you give me a bit more advice please.
i'm just looking at the tutorial to relock by bootloader. It says "before u relock bootloader u have to be on pure stock kernel (flash only the kernel.sin using flashtool), else the device WILL NOT BOOT after relock"
The problem is i'm already flashed on to an FTF image that was on this site. From so by doing this am i going to brick my phone? i'm confused and i don't want to make things work so your advice would be apprecaited
thanks
Click to expand...
Click to collapse
Hi Greg
it's fine, i am just being stupid again, i just relocked without a problem, thanks again
http://www.lifehacker.com.au/2014/0...oid-kitkat-devices-in-one-tap-no-pc-required/
check this out
Hi all,
Long time lurker and benefactor of all the great advice and wisdom on here. Thanks to everyone for the knowledge you share with the rest of us while we're learning! I have a quick question i can't seem to find the answer to anywhere here. Please forgive me and redirect if I'm being dense and it's somewhere else.
Firstly my One is unlocked, rooted, s-on and running ARHD 71.1
Ideally I want to keep root and my custom rom but if really necessary, I can return to stock and redo the process later.
Ok here's the issue. I didn't avail of the Google Drive storage offer before unlocking my bootloader. Now HTC are telling me I need to relock it to redeem. I'm still pushing them but just in case they hold firm:
1. Can I relock the bootloader without losing root and my custom rom? If so, how? All the guides I can find are about unrooting, locking and returning to stock.
2. If I do relock the bootloader, redeem the storage offer and then later unlock it again, is it going to wipe my data partition again?
Like I said. It's not the end of the world having to return to stock and redo, or having to flash ARHD again if the phone is wiped, but i would prefer a quick, clean and easy method if anyone has any ideas?
You can relock and still have root in the custom rom. How about making a nandroid backup, copy it off the device, relock, redeem the storage, unlock, then restore the /data partition from the backup.
diarm said:
Hi all,
Long time lurker and benefactor of all the great advice and wisdom on here. Thanks to everyone for the knowledge you share with the rest of us while we're learning! I have a quick question i can't seem to find the answer to anywhere here. Please forgive me and redirect if I'm being dense and it's somewhere else.
Firstly my One is unlocked, rooted, s-on and running ARHD 71.1
Ideally I want to keep root and my custom rom but if really necessary, I can return to stock and redo the process later.
Ok here's the issue. I didn't avail of the Google Drive storage offer before unlocking my bootloader. Now HTC are telling me I need to relock it to redeem. I'm still pushing them but just in case they hold firm:
1. Can I relock the bootloader without losing root and my custom rom? If so, how? All the guides I can find are about unrooting, locking and returning to stock.
2. If I do relock the bootloader, redeem the storage offer and then later unlock it again, is it going to wipe my data partition again?
Like I said. It's not the end of the world having to return to stock and redo, or having to flash ARHD again if the phone is wiped, but i would prefer a quick, clean and easy method if anyone has any ideas?
Click to expand...
Click to collapse
I just used @scotty1223 method posted here to lock and unlock
http://forum.xda-developers.com/showthread.php?t=2475914
you'll need s-off first
clsA said:
I just used @scotty1223 method posted here to lock and unlock
http://forum.xda-developers.com/showthread.php?t=2475914
you'll need s-off first
Click to expand...
Click to collapse
cschmitt said:
You can relock and still have root in the custom rom. How about making a nandroid backup, copy it off the device, relock, redeem the storage, unlock, then restore the /data partition from the backup.
Click to expand...
Click to collapse
that looks the best idea. will wait to see if htc get back with good news tomorrow otherwise i'll do this. thanks guys.
i'm having a nightmare here!
first when i relocked the phone it gave me "security warning" in the bootloader and refused to let me reboot the phone or even launch recovery.
i eventually managed to get the phone working again by rebooting the bootloader 7 or 8 times and then unlocking it again with my old unlock code.
then looking for another way to get relocked, i tried to get s-off but as my hboot is 1.55 there seem to be very few ways.
have been trying to use firewater (i'm on ARHD 71) but after going through everything, it tells me "ERROR: kernel contains HTC anti-firewater patch! Try again with a different kernel".
so then I flashed the ElementalX kernel thinking that would work but it gives me the same message.
anyone have any ideas? should i try another kernel? maybe a different ROM? I've tried to restore to the original nandroid backup i made when i first unlocked the thing but that's not working either!
Hi,
I've searched and found how to do it but it was for Android 5.1 but I'm on 7.0 and I my recovery is TWRP 3.0.2-0 and apparently there are more steps to do if you are on TWRP, I'm wondering what are they.
Thanks
test84 said:
Hi,
I've searched and found how to do it but it was for Android 5.1 but I'm on 7.0 and I my recovery is TWRP 3.0.2-0 and apparently there are more steps to do if you are on TWRP, I'm wondering what are they.
Thanks
Click to expand...
Click to collapse
First, questions need to go in the Nexus 6 Q&A, Help & Troubleshooting Thread, not the General thread. Second, the steps to lock the bootloader have not changed. It's done from the bootloader with fastboot and the command "fastboot oem lock". It shouldn't matter what recovery you have.
Re-locking needs stock recovery(maybe full stock; boot, recovery, system) if you try to re-lock your boot loader without stock recovery you might hardbrick your phone. So just backup your apps and files, flash a stock image from google and re-lock your boot loader with "fastboot oem lock". Which probably needs wiping your phone.
Before you do anything search these forums for the many people who locked their bootloader and then when they had problems ended up with a bricked and useless device. Unless you have a very special reason for locking, leave it unlocked
dahawthorne said:
Before you do anything search these forums for the many people who locked their bootloader and then when they had problems ended up with a bricked and useless device. Unless you have a very special reason for locking, leave it unlocked
Click to expand...
Click to collapse
this right here...there is really no reason to ever re lock your bootloader
I flashed the factory image and and it went fine. But the bootloader is still unlocked. My main concern for locking the bootloader is to prevent any malicious app to root the phone and hide themselves by like installing as system app or something. And I'm not planning to flash any custom ROM. So:
1- Since I'm on stock ROM, is there still a possibility of hard bricking my phone if I relock?
2- If I leave it unlocked, will malwares be able to tamper with the phone by the means I mentioned or similar approaches?
Thanks
2. No, they don't. Bootloader is on a completly different layer.
test84 said:
I flashed the factory image and and it went fine. But the bootloader is still unlocked. My main concern for locking the bootloader is to prevent any malicious app to root the phone and hide themselves by like installing as system app or something. And I'm not planning to flash any custom ROM. So:
1- Since I'm on stock ROM, is there still a possibility of hard bricking my phone if I relock?
2- If I leave it unlocked, will malwares be able to tamper with the phone by the means I mentioned or similar approaches?
Thanks
Click to expand...
Click to collapse
I feel your concerns. I think the safest bet is to watch where you download apps and content from. And make sure "unknown sources" is turned off. That should minimize your potential for problems. I think the main thing is watching where you get apps from.
So, I have a Global MI 8, with stock rom, on MIUI 10.2.3, locked bootloader.
I was contemplating rooting, since i always have rooted phones.
Was looking into some tutorials, and i have a couple of questions, that are still the things that are preventing me to move on with this.
1) In some tutorials, as part of the process to Flash Magisk, it is mentioned a flashing of a script that removes encryption, but some others tutorials don't. So... question would be... is it alwasys necessary? Or just if you encrypted your phone or something?
2) Since unlocking your bootloader makes some thigns not working (like the Find my device thing and other banking things...) i was wondering if the bootloader can be re-locked. I plan to stay with the stock Android, but i assume i have to drop the root? So...maybe re flashing stock rom/recovery/bootloader and re-lock after? I'm not clear with this part, so if anyone can shed some light on it, it's very appreciated.
Thanks