Question Is it possible to gain temporary root without wiping data? - OnePlus Nord N200 5G

I just reached 180days, and got the network unlock.
Is it possible to get temporary root access without wiping all the data from the phone in the process? I wasn't sure if the bootloader unlock automatically wipes the device?
I have the issue where system logs are accumulating, consuming all the phones storage. I can't access the folders to delete the logs without root.

https://forum.xda-developers.com/t/..._settings-without-a-computer-or-root.4308083/
You might try this.

Finnzz said:
I wasn't sure if the bootloader unlock automatically wipes the device?
Click to expand...
Click to collapse
Unlocking your bootloader WILL wipe your device, there's no avoiding that.
There are ways to fully backup (pre bootloader unlock), then restore (post bootloader unlock) the data/apps/etc. from your phone; but I'm not familiar enough with any of them to give you directions...

edale1 said:
Unlocking your bootloader WILL wipe your device, there's no avoiding that.
There are ways to fully backup (pre bootloader unlock), then restore (post bootloader unlock) the data/apps/etc. from your phone; but I'm not familiar enough with any of them to give you directions...
Click to expand...
Click to collapse
Unrooted ADB Backup
I'm going to attempt this now that I have my unlock code.
Using this line: adb backup -apk -shared -obb -all -nosystem -f backup12302021.ab

Related

[Q] I'm confused about unlocking bootloader

I bought the atrix 4G from Egypt so i guess its the international one
i already rooted it ....however i dont have a custom recovery installed
I wanted to unlock the bootloader but in the instructions it says i should have a backup first which means i need CWM installed first to make a nandroid backup
when i go to install CWM it says i have to unlock bootloader first
I'm confused about which step should be done first, unlocking bootloader or installing CWM?
Can someone please walk me through this?
Think about it for a secon. Even if there was a way to make a nandroid backup without a custom recovery (and there actually ARE ways to do it), how exactly would you perform a restore of that backup if something goes wrong with unlocking the BL and/or installing a custom recovery?
ravilov said:
Think about it for a secon. Even if there was a way to make a nandroid backup without a custom recovery (and there actually ARE ways to do it), how exactly would you perform a restore of that backup if something goes wrong with unlocking the BL and/or installing a custom recovery?
Click to expand...
Click to collapse
I read that you lose all your data and application if during unlocking the bootloader
i'm just assuming if it went well , i dont wanna set up everything from the beginning i just want to restore it
but yeah that's something to consider you r right, i still want to know which step to do first ?
pepo36 said:
I read that you lose all your data and application if during unlocking the bootloader
Click to expand...
Click to collapse
You lose nothing by unlocking the bootloader. However the procedure for doing that might at one point make your phone unusable until you flash custom recovery and then some ROM (custom or stock or whatever). And that is where you're likely to lose data.
You don't need a nandroid backup to retain data though. Just back it up using TiBu.
pepo36 said:
but yeah that's something to consider you r right, i still want to know which step to do first ?
Click to expand...
Click to collapse
In a nutshell:
make any backups using TiBu
download a fruitcake firmware you want (probably the same version you have right now)
unlock the bootloader
flash custom recovery
flash the fruitcake
boot
restore TiBu backup
I folowed instructions here and it worked flawlessly:
http://forum.xda-developers.com/showthread.php?t=1302423

[Q] ADB backup question

i just ADB backed up my phone with the intentions of wiping it to unlock the bootloader and then rooting it.
do you know if a ADB backup when restored will relock the bootloader or should it stay unlocked?
kazelement said:
i just ADB backed up my phone with the intentions of wiping it to unlock the bootloader and then rooting it.
do you know if a ADB backup when restored will relock the bootloader or should it stay unlocked?
Click to expand...
Click to collapse
Never attempted to backup/restore this way, but I believe that it shouldn't relock your bootloader, but depending what you restore (if /system) you might loose Root access.
megabiteg said:
Never attempted to backup/restore this way, but I believe that it shouldn't relock your bootloader, but depending what you restore (if /system) you might loose Root access.
Click to expand...
Click to collapse
good because i was planning on unlocking the boot loader, restoring the phone and then rooting it. so that i dont lose anything and it seemed like the best way to get this done without losing any data.

(Q) DRM keys

When i originally unlocked the bootloader I had backed up my TA partition.
Now I have a question, can I restore my drm keys from it since im on another version of lollipop?
Sent from my D6503 using XDA Free mobile app
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Sent from my D6503 using XDA Free mobile app
_delice_doluca_ said:
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
Excuse me I ment im on another version of Android*, From your answer I understood I cant restore that.. So what are my options for restoring them?
Sent from my D6503 using XDA Free mobile app
As I understand, the DRM keys are not reliant on your Android version. So keys from 4.4.4 should work on 5.0.2 as they shouldn't change. I'm pretty sure envious_data has confirmed this (please correct me if I'm wrong).
HOWEVER, restoring them will relock the bootloader. If you are on a non-sony custom ROM (so CM, AOSP, etc) the phone will not boot (eXistenZ, Moonwalker (I think), and other stock based ROM's will however).
Stock based ROM's will ONLY boot if you have a stock kernel (which is found inside of the ftf file), any custom kernel (advanced stock, AndroPlus, any CM/AOSP, any other stock based kernel) kernels will not.
A locked bootloader recovery will not prevent the phone from booting, as it is on the /system partition and not inside of a kernel.
Also, if you have a recovery installed to the FOTAKernel partition, restore that to stock as that will prevent the phone from booting. The stock FOTAKernel file can be found in the ftf file too. If needed I can strip an ftf file down to stock kernel and FOTAKernel to be flashed.
CosTuMe said:
Excuse me I ment im on another version of Android*, From your answer I understood I cant restore that.. So what are my options for restoring them?
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
You can restore your DRM keys on any android version but you must make sure you'r completely on a stock build. (No custom kernals)
Deleted.
whats the procedure for restoring them?
CosTuMe said:
whats the procedure for restoring them?
Click to expand...
Click to collapse
If you used the BackupTA tool (or whatever it is called, it's in the cross device section) use the restore function in that.
But before you do, make sure you are on a stock based ROM, with a full stock kernel and full stock FOTAKernel partition.
gamer649 said:
If you used the BackupTA tool (or whatever it is called, it's in the cross device section) use the restore function in that.
But before you do, make sure you are on a stock based ROM, with a full stock kernel and full stock FOTAKernel partition.
Click to expand...
Click to collapse
Ok, i had done it(and the phone boots). is there anyway to check i got them back?
CosTuMe said:
Ok, i had done it(and the phone boots). is there anyway to check i got them back?
Click to expand...
Click to collapse
Open the phone dialer, *#*#7378423#*#*, Service Tests, Security, and then look to each row. Each one will be followed by [KEY OK][ACTIVE].
Also, to check the bootloader is relocked.
Open the phone dialer, *#*#7378423#*#*, Service Info, Configuration, look to rooting status. It will say "Bootloader unlock allowed: Yes", instead of "Bootloader unlocked: Yes".
Thank you very much, I had succeeded restoring them
Sent from my D6503 using XDA Free mobile app
im currently on kitkat rom with full root and unlocked bootloader, and im planning to lock the bootloader. if i upgrade my phone to the latest official lolipop rom. can my phone lock the bootloader? can i get a new DRM key?
PS: i unlocked BL without backing the DRM keys so i lost it.
ulyshut said:
im currently on kitkat rom with full root and unlocked bootloader, and im planning to lock the bootloader. if i upgrade my phone to the latest official lolipop rom. can my phone lock the bootloader? can i get a new DRM key?
PS: i unlocked BL without backing the DRM keys so i lost it.
Click to expand...
Click to collapse
You can re-lock the bootloader without the DRM keys, however it will not restore them. You can use the bootloader unlock/re-lock function in flashtool to lock the bootloader again.
You can lock the bootloader on any android version, regardless of what version you unlocked it on. But if you didn't back up your DRM keys there is no way to get them back, they are lost forever unfortunately.
thanks for the reply, because my remote play access did not work when i rooted my phone . now based on the other thread, its about the DRM key and unlock BL that is causing the issue.
Steps to restore DRM keys?
Hey,
I want to just request some help about the DRM keys. I know more or less what to do since I have lost them in order to get root. As I have understood the steps go:
Backup all apps and whatnot
Flash stock ftf file from any version (wipe APPSLOG, CACHE, DATA) via Flashtool
Root using Easy Root Tool
Backup TA partition using this tool
Push dual recovery into phone using NUTs Dual Recovery script
Restore TA partition using the tool above
And hopefully I would have Root with working keys? I am currently getting the 17.1.2.A.0.314 & 17.1.1.A.0.402 ftf firmware. If I am missing anything from the steps above please inform me.
Thanks ^^
.
suenoromis said:
Hey,
I want to just request some help about the DRM keys. I know more or less what to do since I have lost them in order to get root. As I have understood the steps go:
Backup all apps and whatnot
Flash stock ftf file from any version (wipe APPSLOG, CACHE, DATA) via Flashtool
Root using Easy Root Tool
Backup TA partition using this tool
Push dual recovery into phone using NUTs Dual Recovery script
Restore TA partition using the tool above
And hopefully I would have Root with working keys? I am currently getting the 17.1.2.A.0.314 & 17.1.1.A.0.402 ftf firmware. If I am missing anything from the steps above please inform me.
Thanks ^^
Click to expand...
Click to collapse
If you unlocked your BL before making backup of TA your keys are lost FOREVER .
Even if you downgrade and start everything again you won't get the keys back as they were unique to your device. If you don't have a TA backup of your keys don't waste time downgrading...
But if you DO HAVE A WORKING TA backup with YOUR keys then downgrade to 4.4.2, root, restore your TA (BL will get locked in the process), install dual recovery and upgrade to a pre-rooted firmware. You'll still have your keys and BL locked.
Steps to restore DRM keys?
ptmaniac said:
If you unlocked your BL before making backup of TA ..... You'll still have your keys and BL locked.
Click to expand...
Click to collapse
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
_delice_doluca_ said:
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Click to expand...
Click to collapse
suenoromis said:
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
Click to expand...
Click to collapse
Confused about what? you are overcomplicating things.
You can get your keys back ONLY if you have a backup of your TA BEFORE unlocking your bootloader.
DID YOU BACKUP YOUR TA BEFORE UNLOCKING YOUR BOOTLOADER?
If you answer YES --> you can restore your keys
If you answer NO --> they are lost forever.
SImple.
suenoromis said:
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
Click to expand...
Click to collapse
Sorry, If I got things complicated. Let me explain it in scenerios and steps;
Small İnfo first; there is a small partition (or a small and untouchable part inside of a partition) in our phones. It contains and "device-specific" keys, basically an ID.
Some Sony-made softwares (like a picture or sound enhancer which are activated when user starts a music or takes a picture) are patent protected and search for these keys before run. If keys are not there user still can take a picture or listen to music however the patented enhancing software will not kick in. So how do you lose the keys? Why is Sony making this?
Because they want to protect their patented technology from being exposed to inspections or non-Sony users. So basically they tell you if you "unlock your bootloader" you will be able to do anything with your phone freely but the keys-including-partition will be wiped forever and those patented software addings will not run.
Let's get to scenerios.
1th Scenerio: You want to install custom kernel, recovery or ROM to your device? You have to unlock bootloader and it is simple. But doing this basically will wipe your keys and they will be gone forever.
2nd Scenerio: The device can be rooted without unlocking its recovery (very clever Sony, you think about protecting your patent and invent the "keys partition" and lock them to bootloader and get rooted that easily). Once we obtain root, we can read and write to any partition, including the one with the keys (it is called Trim Area). Once we are rooted, with FlashTool, we can backup the TA partition and protect the keys on our PCs.
"After the backing up", once we unlock the bootloader the phone will wipe TA partition but we will have a backup of them on our PCs.
With that backup on our PCs, we can safely do whatever we want; install custom ROMS, kernels, recoveries etc. (actually, there is even a recovery installation possible with "locked bootloader" ) and once we need to claim our warranty or want Sony-patented software enhancements, we can simply restore the TA partition (again with FlashTool).

how to unlock bootloader

hello devs and members
i want to unlock bootloader of my d6503
how to do that
should i need to backup something?
before unlock bootloader
and bootloader unlocking is safe and to install roms like cm
Just follow original Sony guide. It may be a bit confusing for the first time but everything is described there.
Also before unlocking bootloader you may want to backup your TA partition. Just Google how to do it.
And yes, if you unlock your bootloader then you can install every rom.
I think there are guides on how to do what you want...
But make sure to backup EVERYTHING BEFORE you start the unlocking process.
Thank you sir for information
Unlocking bootloader is safe?
Unlocking your bootloader is perfectly safe, just make sure to backup everything since your phone(not your SD card though) will get wiped
thank you sir I backup my ta partition then I unlock bootloader. and now I'm using resremix latest version
Any way of unlocking the bootloader when the service menu says it can't be unlocked?

[GUIDE] No Wipe Root

Due to a bug, I have been able to get root on my OnePlus 2 running Oxygen 2.1.1 without a wipe.
DISCLAIMER: This may not give you root on yours, and obviously it may also loose you data, so don't do it unless you know you can cope with that. YMMV, but I've documented here for posterity how to do it!
I had unlocked the bootloader previously, because my device is an import, so it is possible, though unlikely that it simply doesn't wipe on an unlock after re-lock (OTA locks bootloader).
The basic steps are :
Encrypt your device
Unlock the bootloader (this won't wipe because of encryption!)
Boot TWRP
use adb to push SuperSu to your device and then flash it
Then you will have root. Step by step instructions below.
Note that TWRP currently doesn't support encryption on our devices, so you'll have to use something other than that to back up your data if you want to use a custom rom. This simply gives you rooted stock Oxygen.
After rooting :
Code:
$ adb shell
[email protected]:/ $ su
[email protected]:/ # id
uid=0(root) gid=0(root) context=u:r:init:s0
Step 1: Encrypt your device.
This is irritating but fairly simple. You have to have fully charged your device AND keep it plugged in, and it takes ~50 minutes to complete. It's the standard android encryption, so follow any guide for this, such as https://support.google.com/nexus/answer/2844831?hl=en-GB
Step 2: Unlock the bootloader.
Again, this is well documented - here's a guide : http://forum.xda-developers.com/oneplus-2/general/guides-how-to-guides-beginners-t3146568 - The important thing is that if you're encrypted, this does not do a wipe, in my experience.
Step 3: Boot TWRP
Download TWRP from https://dl.twrp.me/oneplus2/ and save it somewhere you can find it later - I'm going to assume you're on linux and have saved it in ~/Downloads/TWRP.img
Reboot into bootloader mode (Power and Volume up) and start TWRP by issuing the following command (substituting your path to twrp) :
Code:
~$ fastboot boot Downloads/twrp-2.8.7.0-oneplus2.img
Step 4: Root it!
This is a bit tricky because once you're encrypted you can't access the SDCard, so you need a bit of magic to flash the zip.
First, do the swipe to enable modifications, then in mount, tick the /system option.
Then, on your PC, download SuperSU's .zip update from https://download.chainfire.eu/696/supersu/ (similar to above, assuming same download location) and use adb push to put it on the device in /tmp :
Code:
adb push Downloads/UPDATE-SuperSU-v2.46.zip /tmp/su.zip
Next, from the main TWRP menu, select Install. Navigate up (you start in sdcard that is empty) and into tmp, then select the su.zip file in there.
Swipe to install the zip - TWRP will complain because it can't access /data, but handily, /data is not needed to root!
Select Reboot, and viola, you have SuperSU and root! Now you can install Titanium Backup and back up your device.
Cool, perhaps renaming the title like "Unlock and root without wiping" could make more sense?
ranyardm said:
I had unlocked the bootloader previously, because my device is an import, so it is possible, though unlikely that it simply doesn't wipe on an unlock after re-lock (OTA locks bootloader).
Click to expand...
Click to collapse
OTAs don't re-lock the bootloader though...
If you've unlocked it previously, it'll stay unlocked unless you boot into fastboot mode and do a "fastboot oem lock".
Spannaa said:
OTAs don't re-lock the bootloader though...
If you've unlocked it previously, it'll stay unlocked unless you boot into fastboot mode and do a "fastboot oem lock".
Click to expand...
Click to collapse
Not true I'm afraid. The OP2 OTA to 2.1.0 did indeed relock the bootloader. I know this because I would never want to lock the bootloader, and I'm on a Chinese OP2 which came with masses of spyware, so to install clean 2.0.1 I had to unlock the bootloader originally (they managed to get the spyware into the recovery image!). Anyway, it's irrelevant to this thread how the bootloader got relocked, I just documented this fiddly way of getting an unlocked bootloader with root on a locked OP2.
ranyardm said:
Not true I'm afraid. The OP2 OTA to 2.1.0 did indeed relock the bootloader. I know this because I would never want to lock the bootloader, and I'm on a Chinese OP2 which came with masses of spyware, so to install clean 2.0.1 I had to unlock the bootloader originally (they managed to get the spyware into the recovery image!). Anyway, it's irrelevant to this thread how the bootloader got relocked, I just documented this fiddly way of getting an unlocked bootloader with root on a locked OP2.
Click to expand...
Click to collapse
Maybe my post should have said "OTAs don't re-lock the bootloader since 2.1.0"
Anyway, if your method works then great :good:
There's another way to do it here.
Can everyone who's done this attest that the data indeed doesn't get wiped?
cheekrox said:
Can everyone who's done this attest that the data indeed doesn't get wiped?
Click to expand...
Click to collapse
I'd also be very happy to have this confirmed by another party!
Confirmed. Data does NOT get wiped.
cheekrox said:
Confirmed. Data does NOT get wiped.
Click to expand...
Click to collapse
Confirmed on 2.2.0 or still on 2.1.X?
Can confirm, this still works on 2.2.0.
i didnt try this tutorial, but when i rooted my phone, my data didnt got wiped either.
will root on 6p running android n dev preview wipe phone?
Any chance this works also on 1+1? I'm desperate for a way to root without unlocking so I can install titanium/nandroid and do a full proper backup before wiping clean (battery life is utter crap). Running latest stock 6.01 COS. Never unlocked, never wiped since 15R.
Thanks!
anyone tried this on OOS 3 ?
Yeah, bump!
Now my OP2 is on Oxygen 3.0.2, and Android 6.0.1 - stock.
My phone had always been (bootloader) unlocked and rooted, since the day after I got it.
But to get the new OTA update to Oxygen 3, I tried a different method this time, where some people said you can do a temporary un-root, get the stock OTA update, and then re-root.
I followed their instructions, but I can't re-root as simple and easy as they said.
Before the process, I didn't do a nandroid backup because my sdcard doesn't have room :-|
So now I need to re-root without losing data.
And I've tried helium before, many times, and it never works for me.
Any other ideas, or has anyone tried this encryption trick yet with Oxygen 3?
Thanks!
tried it on oos 3.1:
everything worked until a bootloop at the last restart.
also twrp asked me to unlock the phone, i did that.
what to do now?
Did anyone ever have any success with this approach on 3.1?
LoL How do you boot/flash TWRP on locked bootloader?
aIecxs said:
LoL How do you boot/flash TWRP on locked bootloader?
Click to expand...
Click to collapse
Lol, you can't.

Categories

Resources