zxz0O0's temporay root for locked bootloader and (somehow) debloating - Xperia Z4 Tablet General

I wanted to share two things with you guys here in Tablet z forum:
1- First of all, @zxz0O0 has developed a code based on the CVE-2015-1805 vulnerability that gives temporary root access to a select range of devices (including Tablet Z4). Let me try to explain in my words what that means. A full blown root gives permanent read/write access to /system and /data partitions. On an unrooted Tablet Z4 you only have read access to /system and no access to /data. With this root, you will be able to have a temporary terminal or adb session that gives you read access to /system and read/write access to /data. Why not write access to /system? Because Sony runs a service called RIC on Xperia devices that makes it impossible to mount /system as writable. In the past this would be patched by modifying the system partition. But in the recent Kernels sony has implemented a mechanism (dm-verity) which checks /system and if it is modified the device does not boot. So even if this (or any other) root method gave you the ability to write in /system you could not use it because your device would not restart the next time you turn it off. The solution would be to patch the kernel which requires an unlocked bootloader. IF you unlock your bootloader you lose your TA partition permanently which includes some of the Xperia features and licenses that have to do with image processing and some DRM. So a lot of us do not want to unlock the bootloader.
Then what good is this new root method? Since it gives you read access to the system partitions you can use this method to back up your TA partition. The idea is that if you ever unlock your bootloader you may be able to use this TA back up to return the system to its original state if you ever decide to relock it. Another benefit is that tools like Titanium back up which require access to the /data partition can now function (in a limited sense) although someone has to work out the details of that.
To download the pack that allows backup and restore of the TA partition go to http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
After you create the backup, you can unlock the bootloader, and use your TA backup and the procedure outlined here: http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 to create a csutom kernel that uses all the good stuff in the TA backup and emulates an environment where your tablet behaves like one with an unlocked bootloader. The camera denoising algorithm and all other Sony proprietary software which would be disabled after unlocking the bootloader should work.
If you want to return the tablet to its unlocked condition you will need this TA backup. Some explanation about retrieving the TA partition from this backup, if you unlock the bootloader and decide to relock it, is given here http://forum.xda-developers.com/showpost.php?p=66142823&postcount=16 and methods to do so are outlined at: http://forum.xda-developers.com/showpost.php?p=66158970&postcount=68
Note that to use this root you need to downgrade to lollipop (preferably version 28.0.A.8.260)
I have explained procedures to use the above tools here http://forum.xda-developers.com/z4-tablet/general/guide-safe-bootloader-unlock-restore-t3362391 at length.
2- Now, here is the use I have found for this temporary root: I was always bothered by the fact that not only I could not (easily) get the 17 hour advertised on-screen use out of my tablet, the standby power consumption was always too much. Whereas I could optimize my other (rooted) devices to only drain 1-2% a day in standby, tablet Z4 seems to settle for nothing less that 5-10% a day in standby. This is what you can do to get excellent standby power from your tablet:
A) Say goodbye to your google apps (with the exception of Chrome and Maps) and other marginally advantageous apps. They wake your device up all the time when it is supposed be sleeping and endlessly chat with google servers even if you turn all the communications off in the google settings. So disable all of the apps listed in the attached pictures , plus lifelog,via settings. Don't complain about not being able to use the gmail or youtube apps. Other great replacements exist. Leave "Google App" active if you use the voice search or voice typing feature. Also uninstall the pre-loaded apps that you aren't using like facebook (which is cancer for any phone), Lifelog, Privilege, spotify, etc.
B) In settings under wifi open the advance menu turn off both "network notification" and "scanning always available", and change "keep wifi on" to "only when plugged in"
C) Under "power management" in settings, activate stamina mode and extended standby (no need to activate extended usage).
D) Finally (and here is where the temp root becomes useful) extract the file "iovyroot" from the file in the above link and put it in your adb directory. Open a command terminal and type:
Code:
adb push root\iovyroot /data/local/tmp/iovyroot
adb shell chmod 777 /data/local/tmp/iovyroot
adb shell
This gives you an android terminal shell. Continue with the following:
Code:
/data/local/tmp/iovyroot
pm disable com.sonyericsson.idd.agent
pm disable com.sonymobile.entrance
pm disable com.sonyericsson.updatecenter
pm disable com.sonymobile.anondata
pm disable com.dsi.ant.server
pm disable com.sonymobile.gmailreaderservice
pm disable com.sonymobile.googleanalyticsproxy
pm disable com.sonymobile.mx.android
pm disable com.sonymobile.enterprise.service
pm disable com.sonymobile.synchub
pm disable com.sonymobile.phoneusage
That is it. You just disabled the update service and a bunch of other things and extended your standby battery life. These settings will survive a reboot.
Let me know how it works out for you. If you find other creative uses for this temp root share here.

This is the BEST and probably the most right to the real point post ive ever readed in this particular forum since I joined....
Forgive me if I say I have had lost the faith on sony's z4t development here... It's a real pleasure to know there's still ppl working on what I think should be the right development direction on gettin' control of our loved devices, instead of breaking them and throw a lot of expensive features to the flush.
Thanks again mate to share it.

Interesting, if I downgrade do I also lose my Marshmallow data and settings (i.e. is it the same as factory reset?)
BTW Finally this tablet becomes viable, almost a year after its release...

Stevethegreat said:
Interesting, if I downgrade do I also lose my Marshmallow data and settings (i.e. is it the same as factory reset?)
BTW Finally this tablet becomes viable, almost a year after its release...
Click to expand...
Click to collapse
If you want to have a stable system you will need to overwrite the user data which means you will lose your apps and settings and possibly (depending on how you flash) your internal storage so make a back up.
In general application data of Android firmware are not downward compatible with older versions.

Hmm, but if you can also temp root then you can backup everything using TitaniumBackup anyway before unlocking.
So if I understand this right, if you can back up TA we can infact unlock the bootloader now with no loss of DRM ?
So can now actually get full root based on that ?

najoor said:
If you want to have a stable system you will need to overwrite the user data which means you will lose your apps and settings and possibly (depending on how you flash) your internal storage so make a back up.
In general application data of Android firmware are not downward compatible with older versions.
Click to expand...
Click to collapse
I will only downgrade to get a TA Backup, so stability is not an issue to me (after the TA Backup, I'll go back to MM and probably unlock it).
My only issue would be if downgrading would actually harm my data and/or my capacity to get the TA backup properly (if I'm not wipe first I mean).

Stevethegreat said:
I will only downgrade to get a TA Backup, so stability is not an issue to me (after the TA Backup, I'll go back to MM and probably unlock it).
My only issue would be if downgrading would actually harm my data and/or my capacity to get the TA backup properly (if I'm not wipe first I mean).
Click to expand...
Click to collapse
I don't think it will affect the TA back up process by it may harm you application data (not your sdcard data). The reason is that on every reboot android cleans up the) /data partition as much as it can (for example if it sees that an app has been uninstall but it has left some data behind). I'm doing so lollipop may corrupt some of your marshmallow data,
Why don't you take a backup of your data before a downgrade and the restore them later? The tablet itself has a utility to do it and I hear Helium is a tool that backs up your app data without the need for root.

najoor said:
I don't think it will affect the TA back up process by it may harm you application data (not your sdcard data). The reason is that on every reboot android cleans up the) /data partition as much as it can (for example if it sees that an app has been uninstall but it has left some data behind). I'm doing so lollipop may corrupt some of your marshmallow data,
Why don't you take a backup of your data before a downgrade and the restore them later? The tablet itself has a utility to do it and I hear Helium is a tool that backs up your app data without the need for root.
Click to expand...
Click to collapse
Mostly to save time as I have too much data. I though to do it like this
Downgrade to Lollipop -> Use the Exploit -> TA Backup -> Upgrade back to Marshmallow.
In principle everything should have had worked as by the end of it I would be back to Marshmallow (I would not linger into Lollipop). But now that you're telling me that lollipop may corrupt my data permanently I have second thoughts.
I thought, that my data would not work well on Lollipop, but that wouldn't matter to me; but now you're telling me that they won't work when I'll back in Marshmallow too, which is a totally different beast. Am I understanding you correctly?

Does everyone need to downgrade tho?
Once we have the TA partition available to restore, once its made available online surely everyone else can just restore the same one?
Or is the key unique?
Kinda assuming here that all the stuff that needs the TA partition will work with an unlocked bootloader, or does it have to be locked to be usable again?
Edit: Can we restore TA partition after unlocking bootloader?
Yes but this will also relock the bootloader.
Bugger
Ultimately never rooted my device for fear of losing something (that I will never use anyway!)

DRM Keys are unique, in fact that's the whole point of TA backups.
Also there's a talk (on the other thread) of a tool that would merge your particular keys with a particular custom kernel.
That way you'd keep all Sony Exclusive features, but also be able to make use of root apps. It would be great if such a tool becomes usable with AndroPlus Kernel...

Nice, had all but given up hope of being able to unlock my Z4 so that sounds promising!

I am looking for a high-end tablet and it seemed the Z4 Tablet was the best one for me over the Pixel C and even the iPad Air 2..though I did consider the budget Nvidia Shield K1 also.
The next thing I did was see if the bootloader could be unlocked and custom ROMs installed as I really hate the Sony UI that I have experienced with my sisters M2, and I never stick to the stock ROM in any of my phones. I just love knowing and doing customising!!
..Unfortunately, it seems like I will be stuck with it so I may have to look for another brand now

D0MINO said:
I am looking for a high-end tablet and it seemed the Z4 Tablet was the best one for me over the Pixel C and even the iPad Air 2..though I did consider the budget Nvidia Shield K1 also.
The next thing I did was see if the bootloader could be unlocked and custom ROMs installed as I really hate the Sony UI that I have experienced with my sisters M2, and I never stick to the stock ROM in any of my phones. I just love knowing and doing customising!!
..Unfortunately, it seems like I will be stuck with it so I may have to look for another brand now
Click to expand...
Click to collapse
I don't know how you got that impression, since the whole point of the OP and the links I posted with it is that you will not be stuck with the stock firmware.
So to summarize the points mentioned in the OP:
As of today, the following is possible with a tablet Z4:
1- The TA partition can be backed up.
2- The booloader can be unlocked.
3- The unlocking is reversible with the help of the backed up TA pertition
4- When the bootloader is unlocked a custom kernel can be flashed (currently one is posted in the Z4 forum courtesy of @AndroPlus).
5- When the bootloader is unlocked the stick Kernel can be patched to retrieve the Xperia proprietary facilities that are lost to the unlocking process (courtesy of @tobias.waldvogel).
6- When the bootloader is unlocked /system can be fully modified. That means flashing completely custom ROMs.
So you can either make your own modification to the system, or wait for someone to make a ROM. In light of the above possibilities it is only a matter of time before customs ROMs start to pop up.
By the way, to the extent that the stock firmware is customizable without unlocking the bootloader, it is actually a good ROM and you can change a lot of things from the general appearance to the default launcher.
PS: Tablet Z4 is my second Sony tablet and the third Sony mobile device and I have about 10 of this kind of devices at any given time. The other android devices are miles behind in terms of elegance and manufacturing quality. There is just something about a Sony device that is unique and unmatched.

Can anyone confirm how to re-lock the bootloader once unlocked?
I would say:
1. Flash a stock firmware (the lollipop version that you used to backup the TA partition).
2. Use the iovyroot temp root batch tarestore to restore your TA partition.
3. Reboot and that's it: you are back to unlocked bootloader unrooted original drm included stock firmware.
Anyone already tried?
Thank you.

I unlocked the bootloader and rooted the device SGP771.
Bevor that, i backed up the TA.
Then i flashed the androplus kernel.
Everything works great.
But you cannot modify androplus kernel with that tool. That means DRM restore is only possible on stock rom.
When you restore TA to stock rom, your bootloader will be in a lockes status again and there is no more root. Too bad

odicamillo said:
Can anyone confirm how to re-lock the bootloader once unlocked?
I would say:
1. Flash a stock firmware (the lollipop version that you used to backup the TA partition).
2. Use the iovyroot temp root batch tarestore to restore your TA partition.
3. Reboot and that's it: you are back to unlocked bootloader unrooted original drm included stock firmware.
Anyone already tried?
Thank you.
Click to expand...
Click to collapse
Can ta be restored on any fw like marshmallow or can it only be restored on the fw that you backed it up from?

This looks very promising, thanks OP.
Has anyone else managed to get it to work as described?
Thanks in advance

najoor said:
I don't know how you got that impression, since the whole point of the OP and the links I posted with it is that you will not be stuck with the stock firmware.
So to summarize the points mentioned in the OP:
As of today, the following is possible with a tablet Z4:
1- The TA partition can be backed up.
2- The booloader can be unlocked.
3- The unlocking is reversible with the help of the backed up TA pertition
4- When the bootloader is unlocked a custom kernel can be flashed (currently one is posted in the Z4 forum courtesy of @AndroPlus).
5- When the bootloader is unlocked the stick Kernel can be patched to retrieve the Xperia proprietary facilities that are lost to the unlocking process (courtesy of @tobias.waldvogel).
6- When the bootloader is unlocked /system can be fully modified. That means flashing completely custom ROMs.
So you can either make your own modification to the system, or wait for someone to make a ROM. In light of the above possibilities it is only a matter of time before customs ROMs start to pop up.
By the way, to the extent that the stock firmware is customizable without unlocking the bootloader, it is actually a good ROM and you can change a lot of things from the general appearance to the default launcher.
PS: Tablet Z4 is my second Sony tablet and the third Sony mobile device and I have about 10 of this kind of devices at any given time. The other android devices are miles behind in terms of elegance and manufacturing quality. There is just something about a Sony device that is unique and unmatched.
Click to expand...
Click to collapse
Dear najoor,
are you telling us that, now, we can unlock a z4 tablet which has the "rooting status: Bootloader unlock allowed: NO" , in the service info/configuration area ?!?
if it is the case, i would be delighted to know how to proceed step by step, as i would love to install a lineage rooted custom rom on it (it is the SGP771 one,with phone capability)!!!
thank you
kind regards from France

retikulatus said:
Dear najoor,
are you telling us that, now, we can unlock a z4 tablet which has the "rooting status: Bootloader unlock allowed: NO" , in the service info/configuration area ?!?
if it is the case, i would be delighted to know how to proceed step by step, as i would love to install a lineage rooted custom rom on it (it is the SGP771 one,with phone capability)!!!
thank you
kind regards from France
Click to expand...
Click to collapse
Unfortunately if that is the case you cannot unlock the bootloader.
I am just curious, why does yours look like that? Do you have myXperia or some other find-my-phone service activated on your phone?

najoor said:
Unfortunately if that is the case you cannot unlock the bootloader.
I am just curious, why does yours look like that? Do you have myXperia or some other find-my-phone service activated on your phone?
Click to expand...
Click to collapse
Thanks for the fast reply even if you ruined my hopes
no, i don't think i have myXperia , i checked on my apps and find nothing.
Since i had display issues with my tab s (sm-t800), i tried the z4 tablet for its LCD screen instead of the super amoled of samsung...
My bootloader was already locked when i purchased it, i updated it thinking it will change that but unfortunatly that did nothing.
It wasn't a new one though, perhaps the previews owner messed up with it and got its bootloader locked :/
Because it is some kind of lotery to have a bootloader unlockable with sony, i will wait patiently until samsumg release its 16:9/10 tab s4: imho, the tab s3 actual 4:3 format is a nonsense....
Thank you again
Kind regards from France

Related

[GUIDE] Rooting the OPX without unlocking the bootloader.

This method uses KINGROOT, no mingling with the bootloader.
STEP 1
Just google "kingroot" (kingroot.net) and dowload the latest apk, open the app and after the initial welcome screens click on the button in the bottom that says "TRY IT", give it some time 4-5 minutes.
Thats it, your device is rooted, just like that.
BENEFITS OF THIS METHOD.
Since you have not unlocked the bootloader once you choose to unroot the device(why would anyone ) no one will be able to tell if you actually rooted the device.
RECOMMENDED (Like seriously recommended)
Once you get the root access install the app "Partitions Backup" by the one and only "wanam" and backup the partitions highlighted in yellow(at least these three modem, modemst1 and modemst2) these are your devices efs partitions. They will be the only thing that will save a lot of trouble if you manage to corrupt your efs partitions(I've been there people, trust me not a pretty situation!:crying, copy these safely to your ext sd, computer, email yourself a compressed copy(this way The NSA will also get a copy which they off course never looked into, so now it's like completely safe).
One more optional thing is to uninstall the sister app of kingroot "PURIFY" its really an annoying little app(imo at least).
OTA
This method also disables ota updates.
So the only way to update is to dirty flash the base stock rom dump throught stock recovery(which i forgot to mention as a benefit you have not mingled with) and then go ahead and sequentially update your device and then eepeat the root process in the aforementioned manner.
If I've made any mistake please do correct me(my first thread, my first guide) , if you have anything to add please let it out.... Thanks for reading, and be kind to each other. :angel:
Will this wipe my device?
I'm going to close this thread based on the fact that there are multiple threads on this same topic, including an active thread that can be found linked below.
http://forum.xda-developers.com/oneplus-x/general/guide-root-oneplus-x-twrp-pc-t3251027

Pros/Cons of Rooting Moto G5 Plus!?

I wish to root my phone(XT1686) but intend to keep the stock ROM(no bootloader unlock).
Is there any advantage in doing so? And will OTA updates be affected?
yourSAS said:
I wish to root my phone(XT1686) but intend to keep the stock ROM(no bootloader unlock).
Is there any advantage in doing so? And will OTA updates be affected?
Click to expand...
Click to collapse
It is not possible to root without unlocking the bootloader on this device...
If you don't have a specific reason to root, don't do it.
And once rooted, you cannot accept any OTA... most likely case if you do it will just fail, worst possible case it bricks (which can happen but is extremely rare).
To answer the question in your title, about the advantages of rooting...
Rooting gives you near full access to your device, and thus the ability to customize it beyond the options provided to you via the default interface. Also, some apps provide additional features on rooted phones. For example, some security programs recommend rooting your device so that it can more forcefully integrate itself with the device to protect against malware, hacking, etc. I tend to install a security package that works better on a rooted device, as well as make use of features that tend to only work on a rooted device, such as folder mounting from the internal SD card to the external one. Also, allows me to access system files that are unavailable otherwise, allowing me to customize certain sounds (or copy them at least).
If you decide you want to root your device, make sure you understand the steps to take BEFORE trying it. That means when you come across a guide on how to do it, make sure you get all the files that will be required and reading through the instructions step by step. If any of the steps sound like it will leave you lost on what to do, then DO NOT do any of it. Also, make sure you read the comments for the guide as well, looking for any mention of issues encountered and consider if you might encounter those issues as well. For example, if it causes issues for devices that use a particular carrier and you use that same carrier, you might want to leave well enough alone. Compare your phone version numbers with what others report having issues with (kernel, baseband, build, etc). Anything that someone has an issue with where their phone somehow matches up with yours in some way, take that as a sign to investigate deeper, so as to avoid having any issues yourself.
For the most part, unless you have a need or desire for a feature/function that requires rooting your device, don't mess with it. I'm not kidding, as one mistake can leave you without a working phone and without any options for returning/replacing it.
Thanks for the replies & warnings.
I'm not a noob so I know the risks of rooting. So maybe I should have rephrased it-
What are the advantages of rooting Moto G5 plus specifically?
Say like in terms of mods and other stuff? Also, is it possible to unroot once rooted- I mean to ask if it's possible to revert the state to factory mode with bootloader locked and stock ROM so that device will be eligible for OTA updates again?
yourSAS said:
Thanks for the replies & warnings.
I'm not a noob so I know the risks of rooting. So maybe I should have rephrased it-
What are the advantages of rooting Moto G5 plus specifically?
Say like in terms of mods and other stuff? Also, is it possible to unroot once rooted- I mean to ask if it's possible to revert the state to factory mode with bootloader locked and stock ROM so that device will be eligible for OTA updates again?
Click to expand...
Click to collapse
Bootloader lock is not relevant to OTA's. You might be able to relock, but the fact it was once unlocked cannot be hidden, it will always be very clear that it was unlocked.
Unrooting is easy, the issue arises undoing what you did with root, undoing them all depends what you changed.
I don't know of any reasons specific to this device to root.
acejavelin said:
Bootloader lock is not relevant to OTA's. You might be able to relock, but the fact it was once unlocked cannot be hidden, it will always be very clear that it was unlocked.
Click to expand...
Click to collapse
If the OEM knows I've unlocked bootloader, why will it push OTAs to my phone even though I've locked bootloader on my end? So isn't bootloader lock status relevant for OTA?
yourSAS said:
If the OEM knows I've unlocked bootloader, why will it push OTAs to my phone even though I've locked bootloader on my end? So isn't bootloader lock status relevant for OTA?
Click to expand...
Click to collapse
No, the status of your bootloader is not relevant... Moto will notify you of an available update and happily attempt to apply it regardless if your bootloader is locked or not.
What matters is if the boot or system partitions is changed, if there is ANY change to those, among other things like if the radio version or recovery versions don't match or the partition table is changed, the update will fail. If you flash any custom recovery it will fail as well.
On this subject I mention a slight con which is that some banking or financial apps might complain to you if they detect root. I have maybe 10 different bank and credit apps installed and all work flawlessly except 1. The Huntington Bank app wont allow me to use fingerprint login but otherwise the app is fully functional like mobile deposits. Just wanted to mention to be aware.

Help I wanto to Re-Lock the bootloader

Hi I need your help, Iwant yo re-lock the bootloader on my OnePlus 6T
I understand that I have to go back everything on factory but I dont know how do it.
I did the ''root'' because I wanted to change the font and improve the sound but tlost quality on Netflix, and I that is important to me because I use it a lot. I want to back to L1
The problem was when I tried to eliminate the ''root'' (magisk) The system did not star and i was afraid because Iam not an expert so i flashed the ''full OTA'' and it works again, Now I want to remove twrp but I dont know how so I need help because i dont want brick my phone
I got the recovery 9.0.7 stock.img if I flash it will work?
sorry for my english..
Thanks
ross92 said:
Hi I need your help, Iwant yo re-lock the bootloader on my OnePlus 6T
I understand that I have to go back everything on factory but I dont know how do it.
I did the ''root'' because I wanted to change the font and improve the sound but tlost quality on Netflix, and I that is important to me because I use it a lot. I want to back to L1
The problem was when I tried to eliminate the ''root'' (magisk) The system did not star and i was afraid because Iam not an expert so i flashed the ''full OTA'' and it works again, Now I want to remove twrp but I dont know how so I need help because i dont want brick my phone
I got the recovery 9.0.7 stock.img if I flash it will work?
sorry for my english..
Thanks
Click to expand...
Click to collapse
Check this thread, and follow local update method, then you need only of a command to lock the bootloader:
https://forum.xda-developers.com/oneplus-6t/how-to/how-to-update-return-to-stock-oneplus-6-t3870795
I just locked the bootloader for my OnePlus 6t. Follow the steps given below.
1. Backup all the important data. I am not responsible for any data loss!!!
2. Remove security lock screen (pin/pattern) or any thing
3. Download the stock rom from https://oxygenos.oneplus.net/OnePlus6TOxygen_34_OTA_020_all_1904032212_38e22c8b9abd42e3.zip
and transfer it to your phone.
4. Boot into twrp recovery.
5. flash the downloaded zip
6. Once done, reboot the system.
7. Now, boot back into the fastboot. (you can enable advance restart from developer mode for easy boot into fastboot)
8. Run fastboot oem lock
9. You will be presented with two options on phone screen. Select the one that says lock the bootloader.
10. It will wipe everything.
11. Once you in the system, enable developer mode and make sure that oem unlock is turned off. If not, turn it off and restart your phone.
And, you are done.
Let me know if it helps or if you have any question/concern.
MDM Tool in my opinion the easiest and quickest way to go back to 1000% stock. It will re-flash every partition on the phone so it's like brand new again. Using the MSM Tool guarantees that everything is back to stock and should restore the Widevine version back to L1 or whatever it was originally.
A question please
Once you lock again your phone, does it loose the root????
I mean, I have a Xperia 10 with the bootloader unlocked , it is root as well. Now root permissions for special aps work fine, but Google Pay is unusable, it does not work anymore. I hid root with xposed framework and rootCloak, but Google Pay still does not work now because the bootloader is unlocked...
As you should know, it is possible to lock the phone again... and many of those phones that relock their bootloaders keep the root permissions...
However , in my case, with Xperia devices (bq and xiaomi happen de same) is you lock the bootloader again, the phone resets, everything dissapear and root is eliminated. What is a really disaster.
As you have heard, the majority of phones, if you lock them again the root continues working, at least the apps that you gave them root permissions they continue working as they used to. But in my case this is different....ç
So please,
Is there any possibility to Lock my bootloader again without loosing the Root in my Xperia?????
Thousand of thanks!!!!
Bardok84 said:
A question please
Once you lock again your phone, does it loose the root????
I mean, I have a Xperia 10 with the bootloader unlocked , it is root as well. Now root permissions for special aps work fine, but Google Pay is unusable, it does not work anymore. I hid root with xposed framework and rootCloak, but Google Pay still does not work now because the bootloader is unlocked...
As you should know, it is possible to lock the phone again... and many of those phones that relock their bootloaders keep the root permissions...
However , in my case, with Xperia devices (bq and xiaomi happen de same) is you lock the bootloader again, the phone resets, everything dissapear and root is eliminated. What is a really disaster.
As you have heard, the majority of phones, if you lock them again the root continues working, at least the apps that you gave them root permissions they continue working as they used to. But in my case this is different....ç
So please,
Is there any possibility to Lock my bootloader again without loosing the Root in my Xperia?????
Thousand of thanks!!!!
Click to expand...
Click to collapse
Go ask in Xperia threads
Striatum_bdr said:
Go ask in Xperia threads
Click to expand...
Click to collapse
Yes I did:
https://forum.xda-developers.com/xperia-10/development/help-how-to-lock-bootloader-loosing-t3965829/post80203451#post80203451
Also I asked for help here:
https://forum.xda-developers.com/android/help/how-to-lock-google-pay-xperia-rooted-t3965637
https://forum.xda-developers.com/galaxy-nexus/themes-apps/app-bootunlocker-nexus-devices-version-t1731993/page66
https://forum.xda-developers.com/galaxy-nexus/themes-apps/app-bootunlocker-nexus-devices-version-t1731993/page66
This is the only Thread where I could find some information about locking a bootloader again. Yes , this is dedicated to xiaomi 6t, but locking bootloaders is something common.
The only thing I want is to lock my Bootloader again without loosing Root permisions. Xperia devices seem to RESET everything when you lock the booloader automatically...., but perhaps there is another way.... a possibility to lock the bootloader without the phone is reset (loosing root permissions) ....
I asked for some help here. I regret any inconvenience that could may be caused on this thread with my message.
Regards
Nobody have your phone here how could we help you? Each phone has its specific behavior
If you relock a OnePlus phone you reset everything, like when you unlock it and it's logical. A locked bootloader is meant to ensure safety of data, safety that can't be provided with root access. Locked BL and root are antinomic.
Striatum_bdr said:
Nobody have your phone here how could we help you? Each phone has its specific behavior
If you relock a OnePlus phone you reset everything, like when you unlock it and it's logical. A locked bootloader is meant to ensure safety of data, safety that can't be provided with root access. Locked BL and root are antinomic.
Click to expand...
Click to collapse
Thank you for your message and understanding. So in Oneplus devices happen the same. So once you unlock the bootloader you loose Google Pay forever because it does not work wit BL unlocked...
Some users suggested me to lock again the bootloader,
Imagine:
- I become Root. Then I modify some apps
- I give to some apps root permissions.
- I lock the bootloader again.
- I won't be able to modify my phone anymore, but all those apps that were given root permissions, Will they be kept in the phone although it has BL locked again.
would it be like this?
or all changes you did while being root would dissapear with everything?????
If So... there is no exit what I see..., We have to choose between being Root users.... or being stock with Google Pay. It is a Pity.
I was not sure if all Phones reset and erase everything when you lock the bootloader .... but as I can see here, this is the reality. Root users loose Google PAY definitely.
Is there any option to solve this??
thanks again for your attention.
regards
Bardok84 said:
Thank you for your message and understanding. So in Oneplus devices happen the same. So once you unlock the bootloader you loose Google Pay forever because it does not work wit BL unlocked...
Some users suggested me to lock again the bootloader, but if I do that, as you have said, the Root and everything will be erased because the phone resets everything. So... there is no exit what I see..., We have to choose between being Root users.... or being stock with Google Pay. It is a Pity.
I was not sure if all Phones reset and erase everything when you lock the bootloader .... but as I can see here, this is the reality. Root users loose Google PAY definitely.
Is there any option to solve this??
thanks again for your attention.
regards
Click to expand...
Click to collapse
I'm unlocked and rooted c and Google pay works perfectly with Magisk
Striatum_bdr said:
I'm unlocked and rooted c and Google pay works perfectly with Magisk
Click to expand...
Click to collapse
Does google pay work??? What did you do in magisk exactly to achieve that???
I rooted my xperia using Magisk..., is there any tutorial or info that you suggest to me to follow ? or what should I do in magisk options???
I have 10 days with my phone stopped, trying and trying to make Google Pay works....Maybe this is happening to me because my Xperia uses Android 9.0.... or Magisk should make google pay work even being in android 9.0?
First Google pay recognized Root, and the app stopped working. I hid it using xposed and RootCloak
Then, Google pay recognized Bootloader. But now... I dont know what to do to hid bootloader unlocked for Google..., Google pay recognises it is unlocked... a disaster and a nightmare for me, I dont know what to do...
Thousand of thanks, I really thankfull for your help.
Regards

Xperia Z2 TA/DRM Backup Problem

Hi everyone.
I have been looking to join for a long time now, I hope my first post is not considered a poor quality post as I'm really stuck at the moment and can't wait to fullfil this learning curve.
I've been reading as much as I can for a long time, considering to root my Z2 mobile for a long time also, I finally decided I would like to for various reasons.
I am running D6503 / 6.0.1 / 23.5.A.1.291
So far I have enabled my Windows 10 machine to allow adb, this took a few attempts but when reading the comments it became clear I needed to type ./adb devices and not just "adb devices", once I noticed this small issue the process worked.
I then tried to run Backup-TA.bat as this is needed before rooting, to save losing any DRM Keys
Waiting for USB Debugging...OK
Pushing Backup TA Tools...OK
Checking for SU binary...FAILED
Requesting root permissions...FAILED
I'm sorry if this is a typical newbie question, I have an idea that I'm missing the SU Binary and need to provide root permission due to the message but I've not read a clear comment about where to get those.
EDIT:
Not to sound even further like a newbie or like I've not read anything, but I've read you need to root first, before backing up TA/DRM?
I thought the point was to backup TA/DRM before rooting since rooting will lose the DRM forever?
EDIT2:
I'm not looking for anything too advanced right now and would be happy with just rooting, no custom roms, just happy to remove bloatware, add some apps, mod the camera etc
Can somebody confirm, you need to root and then backup ta/drm, then unlock bootloader (which will lose your ta/drm forever unless you backup first)?
I'm sure it's all simple after the first success, I just don't want to make any mistakes that can't be undone.
unknown5 said:
Hi everyone.
I have been looking to join for a long time now, I hope my first post is not considered a poor quality post as I'm really stuck at the moment and can't wait to fullfil this learning curve.
I've been reading as much as I can for a long time, considering to root my Z2 mobile for a long time also, I finally decided I would like to for various reasons.
I am running D6503 / 6.0.1 / 23.5.A.1.291
So far I have enabled my Windows 10 machine to allow adb, this took a few attempts but when reading the comments it became clear I needed to type ./adb devices and not just "adb devices", once I noticed this small issue the process worked.
I then tried to run Backup-TA.bat as this is needed before rooting, to save losing any DRM Keys
Waiting for USB Debugging...OK
Pushing Backup TA Tools...OK
Checking for SU binary...FAILED
Requesting root permissions...FAILED
I'm sorry if this is a typical newbie question, I have an idea that I'm missing the SU Binary and need to provide root permission due to the message but I've not read a clear comment about where to get those.
EDIT:
Not to sound even further like a newbie or like I've not read anything, but I've read you need to root first, before backing up TA/DRM?
I thought the point was to backup TA/DRM before rooting since rooting will lose the DRM forever?
EDIT2:
I'm not looking for anything too advanced right now and would be happy with just rooting, no custom roms, just happy to remove bloatware, add some apps, mod the camera etc
Can somebody confirm, you need to root and then backup ta/drm, then unlock bootloader (which will lose your ta/drm forever unless you backup first)?
I'm sure it's all simple after the first success, I just don't want to make any mistakes that can't be undone.
Click to expand...
Click to collapse
Yes you can root on LB and backup TA partition.just follow the awesome guide by @rocker00.
Link: https://forum.xda-developers.com/xperia-z2/general/tool-rooting-23-5-1-291-supersu-t3437280
vikash1994b said:
Yes you can root on LB and backup TA partition.just follow the awesome guide by @rocker00.
Link: https://forum.xda-developers.com/xperia-z2/general/tool-rooting-23-5-1-291-supersu-t3437280
Click to expand...
Click to collapse
Thank you but I have read this thread again and again, I am still looking to get everything in order fully.
Waiting for USB Debugging...OK
Pushing Backup TA Tools...OK
Checking for SU binary...FAILED
Requesting root permissions...FAILED
You failed. Why failed?
You need accept permission SuperSu for device.
Before you plug in device, you need turn USB Debugging and plug in device you need to accept permission SuperSu, allow all (important)
Ok. Do it, again and enjoy your phone.
When you are a Sony Xperia Z2 owner on Android 6.0.1 you need to be a wizard to get started with rooting your device.
I managed to get a wizard. The huge problem is: When you wanna root your z2 6.0.1 you need to get into the recovery but you cant get into the recovery without root ....... the magical trick is to downgrade to android 5.x and use kingroots or whatever the app is called and than you can flash a recovery and install a custom rom. Or use the android 6.0.1 magic which is just another workaround: https://forum.xda-developers.com/xpe...persu-t3437280
When you have trouble to deal with that instructions let us know why you fail.
A super awesome super user here helped me with every step if moderators wish to close this thread now.

Help with recovery

So the new security patch bricked my 8 pro into qualcomm crash dump screen.
I have done no funny business at all, yes my bootloader is unlocked and yes I have root. But it is only for basic things like titanium backup and permission ruler. I have never done anything crazy with my phone, never even flashed a rom, my phone has been rooted for well over a year and I always install all the security patches so this was super random and I'm pissed off.
Anyways I cannot find a video about recovering the phone without erasing everything and I thought this was only necessary when you DON'T have an unlocked bootloader. I thought it was possible to flash oxygen with fastboot and it fixes the problem. But I just dont know exactly how to do this and I didnt want to screw up anything. I'm totally fine with losing root and having the bootloader locked again I just really want to save my data. Any help and I would be grateful, because at this point I'm going to work tommorow without my phone.
one way... MSM tool and ITS deleting all your files
beterman said:
one way... MSM tool and ITS deleting all your files
Click to expand...
Click to collapse
wow man, this literally came from the security patch
If phone is accessible via ADB ( no bootloop ! ) then you can pull the data of interest by means of ADB-commands to a connected computer.
Look inside here:
[TOOL][ADB][WIN]Android Partitions Backupper / Cloner
Hi all, wrote a Windows CMD script that backups / clones partitions of an Android device via ADB because I wasn't content with any 3rd-party APK what claims to do this job. The backups /clones are stored on Windows computer as...
forum.xda-developers.com
Codeman785 said:
So the new security patch bricked my 8 pro into qualcomm crash dump screen.
I have done no funny business at all, yes my bootloader is unlocked and yes I have root. But it is only for basic things like titanium backup and permission ruler. I have never done anything crazy with my phone, never even flashed a rom, my phone has been rooted for well over a year and I always install all the security patches so this was super random and I'm pissed off.
Anyways I cannot find a video about recovering the phone without erasing everything and I thought this was only necessary when you DON'T have an unlocked bootloader. I thought it was possible to flash oxygen with fastboot and it fixes the problem. But I just dont know exactly how to do this and I didnt want to screw up anything. I'm totally fine with losing root and having the bootloader locked again I just really want to save my data. Any help and I would be grateful, because at this point I'm going to work tommorow without my phone.
Click to expand...
Click to collapse
Far as I'm aware the security patch was incremental and not a full update, seeing as you're rooted then I'd advise against installing incremental updates, when you update get the full one and pull the boot image for instances just like this.
Easiest way out of this is MSM although if you can obtain the boot image from 9.9 then you may be able to save it by booting that image / patched image.

Categories

Resources