Relocking Bootloader - OnePlus 7 Pro Questions & Answers

Could someone help me? I'm currently rooted on OOS, with TWRP and a custom kernel installed. I'd like to unroot and go back to fully stock (in light of the recent development of SafetyNet and CTS; see TopJohnWu's tweets, cause I am by no means an expert, but he makes it clear this is the end of rooting permanently now). I need help on how to do it without bricking my device, and also a method of transferring as much of my current data as possible (obviously Titanium/Swift Backup is out of the question cause I won't have root access). Thank you very much in advance!

pratzyushd said:
Could someone help me? I'm currently rooted on OOS, with TWRP and a custom kernel installed. I'd like to unroot and go back to fully stock (in light of the recent development of SafetyNet and CTS; see TopJohnWu's tweets, cause I am by no means an expert, but he makes it clear this is the end of rooting permanently now). I need help on how to do it without bricking my device, and also a method of transferring as much of my current data as possible (obviously Titanium/Swift Backup is out of the question cause I won't have root access). Thank you very much in advance!
Click to expand...
Click to collapse
I think you con relock the bootloader/unroot with the msm tool. Dont hold me to that I may be wrong
https://forum.xda-developers.com/oneplus-7-pro/how-to/msm-tool-guac-t3934691
This would be a good place to start.

I have done this many times, firstly, install the lastest version using the full package from OP page, this will get rid of the TWRP for you, then restart in fastboot, in fastboot, run "fastboot oem lock" (or would be relock?), confirm in your mobile, reboot, reinstall the last full package and be happy.
Something like it, I donĀ“t remember exactly, but this is the idea.
Tks and good luck!

Related

[Q] Create/restore backup image of phone

My girlfriend just got a Desire S and we're thinking about rooting it and installing a custom ROM.
Before we even think about starting, we have to make a backup image of the phone because if we need to send it back under warranty then they may decline to honour it if it's rooted.
I'm just installing the Android SDK on my machine now with the USB driver.
I can get into the fastboot on her phone with [vol-]+[power] but not really sure what to do from there.
I did a bit of reading about fastboot here and here but they don't really seem to say much about creating a backup image.
How can I do this?
Ozzah said:
My girlfriend just got a Desire S and we're thinking about rooting it and installing a custom ROM.
Before we even think about starting, we have to make a backup image of the phone because if we need to send it back under warranty then they may decline to honour it if it's rooted.
I'm just installing the Android SDK on my machine now with the USB driver.
I can get into the fastboot on her phone with [vol-]+[power] but not really sure what to do from there.
I did a bit of reading about fastboot here and here but they don't really seem to say much about creating a backup image.
How can I do this?
Click to expand...
Click to collapse
Hello, unfortunately I'm not a fastboot expert, although I don't believe that you'll be able to take a useful backup using this method without an Enginerring bootloader which you don't have and can't get without S-OFF.
You be better off getting S-OFF using AlphaRevx, then rooting (using gingerbreak) and then using installing and using a recovery to perform full backup of your device.
You'll always be able to use an RUU to reflash your original ROM if you needed to restore and return for warranty. Assuming that Alpharevx have made their bootloader change reversible, which I'm sure that they will do soon.
Ozzah said:
My girlfriend just got a Desire S and we're thinking about rooting it and installing a custom ROM.
Before we even think about starting, we have to make a backup image of the phone because if we need to send it back under warranty then they may decline to honour it if it's rooted.
I'm just installing the Android SDK on my machine now with the USB driver.
I can get into the fastboot on her phone with [vol-]+[power] but not really sure what to do from there.
I did a bit of reading about fastboot here and here but they don't really seem to say much about creating a backup image.
How can I do this?
Click to expand...
Click to collapse
To make a back up image (Nandroid), you'll need to be rooted and S-off first. Any back up that you make will therefor be of an S-offed, rooted phone! What your looking for is the proper RUU for your device. Goto settings - about phone - software information, to find that out.

Recovery dead?

I have upgraded to 4.0.3 and its really slow and bugy, so I desided to downgrade, but this is what happens when I try to go into recovery, please help.
Phone is all stock, not rooted or anything...
http://youtu.be/0B1qNWH0xtw
Yes, this is normal. Your phone is an i9023, the backlight doesn't turn on with new recovery, you can see it if you use a strong torch/lamp at the correct angle, and yes it is all there and functioning (just no backlight).
I believe recovery will give you an error if you try and downgrade though. You'll need to root/unlock bootloader and use CWM before you can do that. You can happily lock the bootloader afterward.
Also, you might be happier with ICS if you do a factory reset, and maybe even reflash ICS. This can solve some problems.
Thank you very much Harbb, any suggestions which way to root is the best and easiest for Nexus S?
..
I'd go the bootloader method. This gives you full access to the system which will allow you to throw in the su command in /system/bin, or just allows you to install and backup any rom you'd like. Only thing is it is "obviously" unlocked and wipes EVERYTHING but the OS (that is, sdcard and ALL personal data and settings).
Of course you can relock it any time you want though, for warranty purposes. Easiest and most thorough walkthrough (from my limited scouring) is here. Has a video too
Just note, for ICS you want the latest superuser zip, not the one provided.
Thanks guys, will try something now.

MM update with root

Hi,
apologies if this has been asked before. I have received messages to update to marshmallow OTA, but my phone has an unlocked bootloader and is rooted. From what I understand the bootloader is not a problem, but the rooted phone is. I have also seen references to TCRW recovery, but I'm not sure if I have that (I forget now how I rooted the phone...)
So what steps should I take in order to update? Is it easier to just download and flash the MM firmware directly, or should I unroot the phone and then do it OTA? Easy instructions for either approach would be much appreciated!
Thanks.
eelgc said:
Hi,
apologies if this has been asked before. I have received messages to update to marshmallow OTA, but my phone has an unlocked bootloader and is rooted. From what I understand the bootloader is not a problem, but the rooted phone is. I have also seen references to TCRW recovery, but I'm not sure if I have that (I forget now how I rooted the phone...)
So what steps should I take in order to update? Is it easier to just download and flash the MM firmware directly, or should I unroot the phone and then do it OTA? Easy instructions for either approach would be much appreciated!
Thanks.
Click to expand...
Click to collapse
You need stock recovery and an unrooted phone to apply the update. You can flash stock MM firmware and then get the OTA. WAIT FOR SOMETIME.
Hi, thanks for the reply. Is there any way of unrooting without relocking the bootloader? It would make it easier to reroot once I upgrade to MM I imagine, but all the instructions I can find online do both - any links to a reliable set of instructions would also be appreciated!
eelgc said:
Hi, thanks for the reply. Is there any way of unrooting without relocking the bootloader? It would make it easier to reroot once I upgrade to MM I imagine, but all the instructions I can find online do both - any links to a reliable set of instructions would also be appreciated!
Click to expand...
Click to collapse
You do not, actually can not, relock the bootloader. You just need stock recovery, meaning no TWRP, and remove root and any significant changes made to the system with root.
There are no real instructions needed and it kind in some ways depends what you have done with root... if you have done heavy modifications to /system then you might as well just reflash the factory image. If you have done only a handful things, you MIGHT be able to take the OTA if you undo them, such as remove Xposed and it's modules, use the SuperSU app to do a full unroot (it's an option in the menu, just look for it), and you have to find the stock recovery for you device and flash it with fastboot.
There is no step-by-step tutorial because every situation is different, everyone does different things to their phone... If you are unsure you can do it, perhaps just flashing the factory image will do what you need? It will wipe everything, but nothing you can do will lock/relock your bootloader.
Thanks for the explanation, that makes sense. Some of the links I found implied that you could relock the bootloader (with 'fastboot oem lock begin'), but in any case, I think that step can be skipped anyway, and everything else seems straightforward.
I actually haven't done anything with root except install adaway (from what I remember! nothing fancy in any case), and am still on stock firmware, so will just do as you suggest and unroot with supersu and flash the stock firmware..
Cheers!
acejavelin said:
You do not, actually can not, relock the bootloader. You just need stock recovery, meaning no TWRP, and remove root and any significant changes made to the system with root.
There are no real instructions needed and it kind in some ways depends what you have done with root... if you have done heavy modifications to /system then you might as well just reflash the factory image. If you have done only a handful things, you MIGHT be able to take the OTA if you undo them, such as remove Xposed and it's modules, use the SuperSU app to do a full unroot (it's an option in the menu, just look for it), and you have to find the stock recovery for you device and flash it with fastboot.
There is no step-by-step tutorial because every situation is different, everyone does different things to their phone... If you are unsure you can do it, perhaps just flashing the factory image will do what you need? It will wipe everything, but nothing you can do will lock/relock your bootloader.
Click to expand...
Click to collapse
eelgc said:
Thanks for the explanation, that makes sense. Some of the links I found implied that you could relock the bootloader (with 'fastboot oem lock begin'), but in any case, I think that step can be skipped anyway, and everything else seems straightforward.
I actually haven't done anything with root except install adaway (from what I remember! nothing fancy in any case), and am still on stock firmware, so will just do as you suggest and unroot with supersu and flash the stock firmware..
Cheers!
Click to expand...
Click to collapse
Relocking the bootloader was possible with some older Moto G models, but I believe everyone with the 3rd Gen that has tried it has failed. Make sure any tutorials or guides you use are for the Moto G 3rd Generation or 2015 model, although previous models are similar there are definite differences.
I just ordered Moto G Turbo (which is probably the same as the normal Moto G 2015 phone.)
Quick question: I would like to keep it as stock, since it is for my parents' use. If I update it to the latest OTA (6.x), will I lose ability to unlock the BL?
Coming from the Droid's background, unlocking the BL is a complicated affair. But I hear things are simpler with the 'normal' Motos.

How to dump/backup my own stock firmware without root (nandroid like?)

Hi Team,
Prior any play with my new G930FD I want to fully backup all firmware elements like radio, EFS, etc. to bring it back to state as it is now.
Once this is done I can play with adding root, etc.
Thought process was that it should be possible with ODIN, but I can't find a guide treating this subject.
In the past I've used to use Philz Touch on S4 LTE and all worked fine besides I've had troubles to restore NAND backups. Needed to move back from LineageOS to older CyanogenMOD (due to some issues) only to find out that old backup was not working anymore. I've tested backup earlier but it was years ago and didn't re-test procedure anymore.
Since don't want to run into any similar situation that can't revert to state as I'm in now, thought will asks you experts here.
In the past I'd think about process of booting recovery from computer via fastboot, performing required backup to SD card and them doing whatever I'd need to do.
Checking all guides (and believe me I've spent plenty of time trying to find it) all I was finding was that it required root to perform dump, i.e. using su with dd.
I've no issue to type in terminal as used to patch kernel back in times of kernel v2.4.
I just want to make sure that throughout the process of getting root, I'll have always a roll-back procedure and don't want to trip Knox and other flags, whilst if possible keeping OTA access (based on guides here, this should be possible).
Please advise on steps I should take to backup all current data with any tool or point me to place I've missed as I'm sure someone has described it already and I'm just being blind.
Thanks in advance!
dkadds2 said:
Hi Team,
Prior any play with my new G930FD I want to fully backup all firmware elements like radio, EFS, etc. to bring it back to state as it is now.
Once this is done I can play with adding root, etc.
Thought process was that it should be possible with ODIN, but I can't find a guide treating this subject.
In the past I've used to use Philz Touch on S4 LTE and all worked fine besides I've had troubles to restore NAND backups. Needed to move back from LineageOS to older CyanogenMOD (due to some issues) only to find out that old backup was not working anymore. I've tested backup earlier but it was years ago and didn't re-test procedure anymore.
Since don't want to run into any similar situation that can't revert to state as I'm in now, thought will asks you experts here.
In the past I'd think about process of booting recovery from computer via fastboot, performing required backup to SD card and them doing whatever I'd need to do.
Checking all guides (and believe me I've spent plenty of time trying to find it) all I was finding was that it required root to perform dump, i.e. using su with dd.
I've no issue to type in terminal as used to patch kernel back in times of kernel v2.4.
I just want to make sure that throughout the process of getting root, I'll have always a roll-back procedure and don't want to trip Knox and other flags, whilst if possible keeping OTA access (based on guides here, this should be possible).
Please advise on steps I should take to backup all current data with any tool or point me to place I've missed as I'm sure someone has described it already and I'm just being blind.
Thanks in advance!
Click to expand...
Click to collapse
There's a method to do that but I'm afraid it's not for our phone, because you see for the devices that can install twrp with fastboot command you can make a command that only boots twrp "fastboot boot recovery" or something like that, I don't remember clearly,instead of "fastboot flash xxxx" but we can't flash twrp with fastboot so that's impossible for us I think, I strongly advise you not to try these methods because you might end up bricking your device, if you are afraid you might mess up your phone stay away from the root and flashing, AFAIK there's no other method than the one with Odin and formatting data.
Thanks for answer, hoped I was just missing something.
Might be interesting for some people, and in fact for myself too.
I've found out that baseband version I've is not listed at Sammobile:
https://www.sammobile.com/firmwares/galaxy-s7/SM-G930FD/
It is:
G930FXXU1DQEJ
Not sure how to proceed should I run into issues?
I do also consider downgrading back to Marshmallow to take advantage of Xposed.
btw. it was all so easy, nice and sweet back in times of my S4 LTE play and now it is all so complicated, that even encryption with root seems to be so, so dangerous. :-S
dkadds2 said:
Hi Team,
Thanks in advance!
Click to expand...
Click to collapse
Maybe this one https://forum.xda-developers.com/android/software-hacking/tool-twrp-backup-restore-tool-pc-t3572241 or https://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
Long time ago... though forgot to make sure I say thank you! I've had laptop OS level issues and missed to say that. Sorry.

OnePlus 7P Root w/o Magisk/TWRP

Hi,
I'm quite new to rooting. I've jailbroken many iPhones but it's been much easier than rooting Android.
Either way, I have an app to connect my PS3 controller to my OP7pro. This app requires the phone to be rooted. I'm wondering if I have to do everything in the tutorials or just something simple like unlocking the bootloader. I'm also curious if after the root I will be able to install the backup from my pc and keep the root. I do not need nor want Magisk or TWRP at the moment, I will install it at some point.
What do I need to do to make a root-critical app work as simply as possible?
is very simple to root just follow one of the multiples guides in this forum, if you have a T-mobile variant you need to sim unlock first then convert it to intl.
it all sounds complicated but is very easy
piotrekkrzewi said:
Hi,
I'm quite new to rooting. I've jailbroken many iPhones but it's been much easier than rooting Android.
Either way, I have an app to connect my PS3 controller to my OP7pro. This app requires the phone to be rooted. I'm wondering if I have to do everything in the tutorials or just something simple like unlocking the bootloader. I'm also curious if after the root I will be able to install the backup from my pc and keep the root. I do not need nor want Magisk or TWRP at the moment, I will install it at some point.
What do I need to do to make a root-critical app work as simply as possible?
Click to expand...
Click to collapse
If you NEED root then at the moment you NEED magisk
Unlock bootloader first for you need to and it'll wipe all your data...
Twrp is not necessary however it makes things easier such as backing up, flashing from recovery, etc.
HtcOnekid said:
is very simple to root just follow one of the multiples guides in this forum, if you have a T-mobile variant you need to sim unlock first then convert it to intl.
it all sounds complicated but is very easy
Click to expand...
Click to collapse
Aight, but will I be able to restore my backup and keep the root?
What's this app you are using to use your ps3/4 controller?
No point in trying to avoid Magisk. I reckon the same applies to TWRP as well. They're extremely simple to install. Connect your phone to a PC, reboot to bootloader/fastboot mode, then run
fastboot boot TWRP.img (either rename the twrp image or change the filename the command refers to), then in the temporary twrp you flash 2 zip files (twrp installer + Magisk). Done. Rooted with twrp and magisk (After you unlock your bootloader, of course).
Trying to root without Magisk or TWRP will not only be more difficult, but also likely cause you issues (such as no Google Pay).
Magisk is your best XDA friend! Cheers
equlizer said:
What's this app you are using to use your ps3/4 controller?
Click to expand...
Click to collapse
Sixaxis controller is the app
I'd like to thank you all for clarifying the topic. It seems like a really nice forum. But what I need to know is will I be able to restore my OnePlus Switch backup from the app and will i keep the root? The last thing I want is to reinstall all the apps.
Why would you need root to use a bluetooth device?
djsubterrain said:
Why would you need root to use a bluetooth device?
Click to expand...
Click to collapse
You can not pair a ps3 controller with the phone and just make it work. It need some sort of a driver, and this app is one. But for some reason it needs root to show the local bluetooth adress and connect.
piotrekkrzewi said:
I'm wondering if I have to do everything in the tutorials or just something simple like unlocking the bootloader.
Click to expand...
Click to collapse
Unlocked bootloader is just an unlocked bootloader. It is not root.
As other have touched upon, Magisk is the root method for this device. I'm not aware of any other root method. Only different variations on flashing Magisk. It's awesome, works great, reliable, and well supported by the developer. So I see no reason to avoid it. Yes, Magisk has some features you may not need. But you can simply opt not to use them. My opinion, it still is a lightweight and unbloated root solution.
You can root using Magisk, without TWRP. But you need to flash a patched boot image (and the correct one for your OOS version, or you will have problems). So you would really be making the process harder for no good reason. And in my opinion, having a modded device (root) without a custom recovery (TWRP) is not a good idea. It is called "recovery" for a reason, as it allows you a lot of options to recover the device if things go wrong. Much more so than the stock recovery (which is nearly useless, really only good for installing stock OTA updates on stock devices).
I don't personally use Oneplus Switch backup app. But I don't see any reason why it would not work once rooted. If you downloaded the apps from the Google Play store, they should just automatically reinstall anyway (after root, and starting up the phone again)?
In any case, losing data (having to setup the phone again, etc.) is always a possibility when unlocking the bootloader and rooting these devices. If you choose to mod the phone, it's just a possibility we all live with.

Categories

Resources