yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact General] mhaha:
It's much simpler to just buy a SD card, they're dirt cheap these days, it will save you a lot of hassle (plugging cables, waiting for files to transfer.. etc.) - plus you get more storage space!

You can certainly backup on your PC without a SD card. Options include:

Connect your phone to the PC, it will be detected as an external drive labeled Z5 Compact, copy all contents of Internal Storage. That backs up your data, things like photos and videos, but not your texts and such. For backing up those you can consider the following two:

Use Sony's software Xperia Companion to make backups.

Or, if you're comfortable with storing things in the cloud, use Sony's built-in app Backup & Restore, which can be found in Settings.

Personally, I'm wary of doing so, and I have never used the cloud account as a backup location, so I'm not sure how it works exactly. I presume it's very similar to if not the same as using the SD card as a backup location.

Can you list the "acronyms" you don't understand? I didn't think I used any, if anything they're probably technical terms that can't be described any other way.

Do you have a spare phone that can do the tether while you're rooting? A reminder, you will need to download firmware for the rooting process, which are like 2~3GB a piece, so you'll want to plan ahead to make sure you don't hit that 10GB cap prematurely.
[Xperia Z5 Compact General] macedindu:
well i had bought a SD card but it was DOA and it irked me so i think ill just back up to my pc

i just downloaded the TApartition back up and the flash tool

can you explain what the abd fastboot tool is for?

okay and i just reread the instructions and it seems pretty straightforward

once i unlock the bootloader and it wipes the phone.. will i have to flash the backup or just copy and paste? newb question lol

steps 3-6 is where i will have problems

i dont know if i will do this
[Xperia Z5 Compact General] mhaha:
I honestly don't know if it's a good idea for you to do this when the phone you want to perform the root procedure on is your sole source of internet access, especially when you're completely new to this.

If you've decided to go ahead with it, then read the guide carefully beforehand to get an idea of what operations are involved, and make note of all the downloads that you will need to do and download it all before you actually start the process.

The adb and fastboot tools are part of the Android SDK tool package intended for developers to access Android phones from a computer.
[Xperia Z5 Compact General] ainge06:
Hi all,

I always fail on booting after flashing the boot.img created though this tutorial.

Stuck on Sony logo with orange LED.

I've tried on 32.2.A.5.11 firmware using rootkernel 5.11

Can someone share their boot.img on the same firmware?

Thanks!!
[Xperia Z5 Compact General] Gewiz:
https://xdaforums.com/z5-compact/general/firmware-32-2-5-11-t3513515/post69987858#post69987858
[Xperia Z5 Compact General] MrAnonymous_:
How do I restore the TA partition (and lock the bootloader) permanently after using this tool when I don't want root anymore?
[Xperia Z5 Compact General] mhaha:
Use this tool:

https://xdaforums.com/showthread.php?t=2292598
[Xperia Z5 Compact General] MrAnonymous_:
I get this error when I try:

EDIT: Nevermind, fixed it.
[Xperia Z5 Compact General] rich2007:
Can anyone patch this kernel with DRM fix? Thanks in advance.

https://drive.google.com/file/d/0B9qoy-Bqqwt6TEY1WFpVUDNtR2M/view?usp=sharing
[Xperia Z5 Compact General] m4cn4ir:
Hello and servus.

Thanks to you great guide, I successfully rooted my z5c (E5823). I did all the steps including backing up the TA partition and had as a result a rooted nougat on 32.3.a.2.33. #*#*service*#*# -> security told me everything was ok.

However I wanted to try xposed so I decided to redo the steps from 3 to 8 on 32.0.A.6.200 which resulted in two problems:

1.: rootkernel never asked me to include xposed no matter which version of rootkernel or spelling of xposed .zip I tried. So I decided to go without it which led to

2.: bootloop after step 8. So I shut down the phone with vol up+power.

Now I tried 32.3.a.2.33 again but this time with phh's superuser instead of SuperSu (which I accidently used the first time). Everything went well, no errors whatsoever. The system bootet as it should however I did not have root?!

Sooo.. I did steps 3-8 again with the data I had from my first attempt which successfully rooted my z5c and yet again: flash without any errors, system starts without problems, but again: no root.

What did I oversee? Later in the thread I discovered that I could´ve used twrp to do a nandroid update but now it is too late for that. (Iam newbie in rooting :o )

Currently Iam on 32.3.a.2.33, kernel 3.10.84-perf-g1016077

#*#*service*#*# -> security says:

Blobs: generic error!

HUK: generic error!

OTP_LOCL_STATUS: Locked

fido_keys: not provisoned, SUNTORY error

developer mode was activated with every try. OEM lock was and still is greyed out but seems to be activated?

So, I have a running nougat with no root and no idea how to regain it. Any ideas? Maybe its "to miss the forest for the trees" as mentioned earlier.. :D

Thanks for your help and thanks for the guide!
[Xperia Z5 Compact General] B1nz:
Question

"navigate to the directory where you unzipped the TA Backup tool" how do i do that?
[Xperia Z5 Compact General] kobi-wan:
[MENTION=8221046]m4cn4ir[/MENTION]

Did you leave the superuser.zip unrenamed? That was my problem at first. I renamed the superuser to SuperSU and did'nt recognize the errors in logfile. After I renamed it back to original filename, it was build correctly.

The tutorial was a little bit unclear at that Position. But it was the only thing, I had problems with. So all in all a great tutorial. :D
[Xperia Z5 Compact General] mhaha:
Just curious, how did you determine that you had successful root?

The service menu checks whether DRM keys are present in the phone, it does not relay information regarding root.

That's a really old firmware version, not really recommended. You should download 32.2.A.5.11 instead, the latest MM version, and I just checked that it's still widely available.

Are you sure you placed the xposed.zip file in the same directory as the rootkernel tool?

Integrating xposed with the kernel is optional, you should not have experienced bootloops if everything was done right. Did you wipe all of your data (line #4 in Step 5)?

You should always perform a clean flash when downgrading firmware.

Ah, I realized I left out an important piece of information in the guide for people who used phh's superuser. You will need to go to the Play store and install the accompanying apk "phh's superuser".

Download it here: https://play.google.com/store/apps/details?id=me.phh.superuser

Again, as I mentioned above, this merely shows you the state of your DRM keys, not a root checker. This output means your DRM keys are not detected (possibly not present).

You said that it said "everything was ok" on your first root attempt, so I assume that you followed Step 7 correctly the first time, and that this was not what you originally saw.

Did you apply DRM fix when patching the kernel?

In theory, you should not have to do Step 7 again, although it probably won't hurt if you did, it'd just be redundant.

What do you wish to do with your phone? Do you want to downgrade to MM and use xposed? Or just root Nougat?
[Xperia Z5 Compact General] mhaha:
Google "how to use command prompt"
[Xperia Z5 Compact General] adam_rl:
Perfect...no issues here. Basically..

- clean flash of stock

- fiddle with ftf as instructed to create boot.img

- flash newly fiddled boot.img

- performed final xposed apk install

Genius, thanks
[Xperia Z5 Compact General] lisheng811:
Root access denied

my device: z5c 5823, 32.3.A.2.33 OTA

my procedure:

1. I have the TA copy (backup on 6.0)

2. make boot.img including TWRP&superuser by rootkernel_5.23_windows. it's 18,440,192 byte

3. make Dk.ftf by rootkernel_5.23_windows. it's 473 byte

3. unlock BL

4. flash Dk.ftf by flashtool

4. run "fastboot flash boot boot.img"

5. reboot , flashtool tell me "Root access denied"

6. I can enter TWRP

7. I don't flash ftf of 32.3.A.2.33. It's on my device already.

what step I missed? should manually flash superuser in TWRP?
[Xperia Z5 Compact General] koekoek91:
I'm not really familiar with rootkernel so I'm not sure if it's supposed to be rooted already for you..

But I'd say you need to flash supersu to obtain root.

You can find it here:

Latest beta version https://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

Latest stable version: https://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703
[Xperia Z5 Compact General] lisheng811:
thanks your response. I was told supersu has battery draining issue on 7.0.

I just put supperuser.zip on SD card and install it under TWRP. No root yet.

any suggestion?
[Xperia Z5 Compact General] koekoek91:
I don't know if supersu causes the battery draining issue on Nougat.

I don't think so... it may be contributing to it though, but im not sure about that either.

Alot of people claim alot of different things about the battery draining issue on Nougat, but I dont think ''the real issue'' has been found and/or resolved yet.

Personally i'm using Magisk and its Magisk Manager app + phh's superuser to root my Xperia Z5 E6653.

You can find both on XDA if you do a search on the top right of your screen on the XDA website.
[Xperia Z5 Compact General] mhaha:
Did you install phh's superuser apk afterwards?
[Xperia Z5 Compact General] lisheng811:
I install "market unlocker", a apk need root authority. it works and I get the notification from superuser. Seems my phone is rooted, although flashtool told me "Root Access Allowed".

anyway, thanks your suggestion.

---------- Post added at 09:04 AM ---------- Previous post was at 08:52 AM ----------

I did. Seems my phone is rooted. refer my last post,

~~~~~~~~~~~

I install "market unlocker", a apk need root authority. it works and I get the notification from superuser.

~~~~~~~~~~~

I know nothing about android. the above procedure can prove my phone is rooted?
[Xperia Z5 Compact General] Pelepako:
umm.. I probably lost my DRM keys when the TA backup filesize is 0 bytes?

I realised that there is something wrong in step 7 when flash_dk failed. I wish there would have been warning in step 1 to check the filesize of the TA backup before going further. There might have been some errors etc. in creating the backup file but it said "successfully etc..." in the end and the file was created so I thought everything was fine. Damn!
[Xperia Z5 Compact General] mhaha:
Quoted from the TA backup tool thread:

Putting this information in the guide is a good idea, I will update it.
[Xperia Z5 Compact General] mhaha:
The order of your procedure is a bit strange, and I have no idea what that "market unlocker" app is you installed, but you can see if you're rooted using any of the root check tools in the Play store. Just search "root check".
[Xperia Z5 Compact General] lisheng811:
i install a root check app. Rooted! thanks u
[Xperia Z5 Compact General] koekoek91:
If an app requests for root and it is granted and the app works, then it's safe to assume you're rooted.

Also if flashtool says root access allowed, that means you are rooted.

Additionally you can download an app called rootchecker from the playstore which you can use to check if you are properly rooted.

But it sounds to me like everything is fine on your phone ;)
[Xperia Z5 Compact General] Pelepako:
Yep, I saw this instruction at the TA backup tool but way too late. This was another clue for me that I messed up this time :(
[Xperia Z5 Compact General] reloaded000:
These steps worked fine on 32.3.A.0.378, but they're not working on 32.3.A.2.33. The end result is that the root access is not granted. Flashtool reports "Root access denied". Tried this twice. Same result

04/022/2017 11:22:04 - INFO - Connected device : Sony Xperia Z5 Compact

04/022/2017 11:22:04 - INFO - Installed version of busybox : N/A

04/022/2017 11:22:04 - INFO - Android version : 7.0 / kernel version : 3.10.84-perf-g1016077 / Platform : 64bits / Build number : 32.3.A.2.33

04/022/2017 11:22:06 - INFO - Checking root access

04/022/2017 11:22:22 - INFO - Root access denied
[Xperia Z5 Compact General] Slagathor:
Can anyone help me to find the best way to root? I am on the latest firmware 2.33
[Xperia Z5 Compact General] NeoBeum:
I'm waiting for TWRP to review my device tree, but I'm going to start working on getting the recovery working with rootkernel or magisk.
[Xperia Z5 Compact General] Dean F:
Step 7 of this guide does not work. You can carry out the steps with no error - but you will find the TA keys are not restored - so you must use ROOT + drm fix. However If you return to stock firmware you will find your DRM keys are missing - making the camera suck (no close in focus, noise, and sony features missing X-reality, etc).

The good thing is that DRM keys are backed up........... just this guide instructions just cant restore them....
[Xperia Z5 Compact General] Gewiz:
It does work!

You just expect it to work in the wrong way. Where does it say it should "restore" the keys? It's not meant to restore DRM keys fully. Since if you would do that, your bootloader will be locked again and you have no chance to use root. So instead it writes your original DRM Keys to a part of your phone from where the (with rootkernel) patched kernel can read and use them.

Of course if you use stock kernel you will have no keys until restore them fully. But in this case you will have no root, and this is what this article is about.
[Xperia Z5 Compact General] Dean F:
I see, any idea of the command needed to restore the keys?
[Xperia Z5 Compact General] Gewiz:
Try this:

https://xdaforums.com/z5-compact/general/how-to-backup-restore-ta-partition-root-t3479532

or

https://xdaforums.com/crossdevice-d...-ta-backup-t3514236/post69972315#post69972315

Of course you have to be fully stock to boot afterwards the bootloader is relocked, so you maybe have to flash stock .ftf
[Xperia Z5 Compact General] mhaha:
[MENTION=7725478]Dean F[/MENTION] You can also try this: https://xdaforums.com/showpost.php?p=71759011&postcount=134
[Xperia Z5 Compact General] netaccs:
I follow the instructions. Finality I got MM with supersu installed.

How to update to Nougat without losing twrp and supersu ?

I start the camera and I saw that the light is lower than my z3 compact also rooter.

Is that mean that I mess something with drm keys ?

Thanks for helping !

I found my mistake and now everything works fine.

When I try to generate boot.img using Phh superuser there were some errors, soI install SuperSu.

After few updates in google play store SuperSu want's to be updates, but it cannot be.

Also adaway cannot built hosts file for example.

So how can I update it and is there anyway to install twrp recovery ?
[Xperia Z5 Compact General] crazy_taz22:
Works for z5c Android 7, Kernel 3.10.84-perf-g1016077 Build 32.3.A.2.33

With

E5823_StoreFront_1299-6910_32.0.A.6.200_R2B

E5823_Customized DE_1298-1220_32.3.A.2.33_R5D

Flashtool 0.9.23.2

Because there was a battery drain with SuperSU, even in Super-Stamina Mode (I have also the 3c Toolbox in suspicion to drain the battery, so I uninstalled it), I created the boot.img with the phh superuser. Just put the superuser.zip from phh into the rootkernel folder. No problem with battery drain at all!!

I also encountered problems to install the fastboot driver and this this did the trick

:good:

Thanks!!!
[Xperia Z5 Compact General] freexta:
problem with unlocking bootloader

hi guys,

thanks for this guide, much appreciated.

however, unfortunately i'm having issues unlocking the bootloader in my Z5C...

whenever i try to send off the fastboot command to unlock the bootloader (i've done everything according to that Sony guide) i get the following error: FAILED (remote: Command not allowed)

bootloader status is "unknown" in the service menu:

ht tp://i.imgur. com/qyWHWLw.png

(remove space between ht tp and . com)

heres some more info:

ht tp://i.imgur. com/w1LtMnM.png

(remove space between ht tp and . com)

i get the same error when i try to flash the boot.img:

is there anything i can do? any help appreciated. oh and i got the device second hand., so unfortunately i don't know what's been done to it before it got into my hands..

e: Android 7 installed btw.

could it really be that i need to downgrade (to marshmallow) in order to get the bootloader unlocked?

i've found this thread which is suggesting downgrading: ht tps://talk.sonymobile. com/t5/General-Discussion/Unable-to-Unlock-Sony-Z5-Compact-on-Ubuntu-14-04-LTS-unlock/td-p/1213824

any help appreciated thanks in advance :)
[Xperia Z5 Compact General] ngelee:
Very nice step by step guide, clear, logical and readable, can't believe you are fresh to Xperia devices.

I'd like to know if i have already unlocked bootloader without TA backup, and use other old method to fix the drm lost issue, can I still use this guide just do a little modification to the process? thanks very much.

Currently I'm on 32.1.A.1.185 (Android 6.0).
[Xperia Z5 Compact General] NeoBeum:
The restore also needs to be done on the same firmware version you created it with. unless you use rootkernel drm fix

---------- Post added at 13:24 ---------- Previous post was at 13:21 ----------

have you ever run a command like

fastboot oem unlock .....

if the answer is no, unlock your boot loader
[Xperia Z5 Compact General] Dean F:
Just go into developer options in your phone, and make sure "allow oem unlocking" is enabled. Once that is done , your oem unlocking code will work no problem. Follow the steps exactly from sony.
[Xperia Z5 Compact General] NeoBeum:
you can add to OP that people can use this method for dk.ftf backup, and get recovery to the recovery partition with

https://xdaforums.com/z5-compact/general/recovery-nougat-7-0-android-bootable-t3609358
[Xperia Z5 Compact General] freexta:
done everything according to the guides... "fastboot devices" showed my z5c connected then ran

fastboot -i 0x0fce oem unlock 0x80B8D8DC91950CBD

...according to that Sony guide and the "failed command unknown" message appears

do I need to remove the "-i 0x0fce" arguments before executing?

yeah I've done that before executing anything, unfortunately it didn't work. I'll give it another try later on thanks
[Xperia Z5 Compact General] NeoBeum:
you need to include the whole line with your unique key. that hex initializes the unlock.

if you get the fail error, go to dev options, and make sure the toggle is not off.

if it's off, and you're getting the error, and you previously used flashtool to unlock, reopen the TA on flashtool, then close ftool and run the command

if you don't have your device key, you're starting to run in to brick territory. and I mean real brick. if you wipe your imei, it's hard to recover from that without your device key. so be careful. write down your imei too.
[Xperia Z5 Compact General] freexta:
thank you for taking the time.

i've made it into another error now. it's not the same FAILED message i got first off:

i've followed every single step in that Sony guide (downloaded command line sdk tools -and through that the platform tools and usb driver, made sure to overwrite and re-load that especially downloaded fastboot driver after connecting the phone in fastboot mode)

it took like 10 seconds to throw back the above message.

OEM unlocking and USB debugging are set to ON in dev settings before doing all this...

anything else i can do?

BTW: i'm not interested in the genuineness of the phone and all this drm talk. i just want to unlock the bootloader in order to root it (in order to be able to fully control my phone / remove stock sw).

edit2:

i've tried to unlock the bootloader with flashtool and that's what i got (see lines in bold):

so is there any other way to do this?
[Xperia Z5 Compact General] NeoBeum:
Flash 32.0.A.6.200 or 32.2.A.0.305
[Xperia Z5 Compact General] freexta:
so it is possible to flash the fw with a locked bootloader then? i shall try and report back, cheers.
[Xperia Z5 Compact General] netaccs:
Where I am wrong.

Unlock the bootloader, downgrade to MM, backup the TA.

Upgrade to E5823_32.3.A.2.33_R2D_MobilTel EAD BG (download and create with xperiafirm, flashtool)

Unplug your phone and do not power it on yet -> create kernel with rootkernel 5.23 (first time with SuperSu 2.82,

second time with phh superuser, after all completes download the app from store)

flashing the drm keys flash_dk TA_E5823.img DK.ftf,

then flash the boot -> fastboot flash boot boot.img (no xposed)

When phone boots there is supersu, but no working.

Adaway says "disable", es file explorer don't restore my app's cache and etc.

When Wipe partitions with flashtool should I select MISC-TA (Cust reset, master reset, reset wipe)

or just SIN (apps, diag, persist, ssd, userdata) ?
[Xperia Z5 Compact General] freexta:
unfortunately still unable to unlock the boot loader.

i've got my "old" error message back after flashing 6.200 and enabling oem/usb:

i've selected to wipe everything as explained in this guide and it flashed/downgraded successfully but still no luck with unlocking the bootloader using the sony guide... anything else i can try?

edit: also still the same error in flashtool:

edit2: i've re-flashed 6.200 and tried to flash the kernel, also tried it through flashtool and it's the same error as when trying to unlock the bootloader:

edit3: ...maybe there's a way to flash the rooted kernel within the whole fw flashing process? any help appreciated at this point really
[Xperia Z5 Compact General] mhaha:
How did you install SuperSU here?

You should always start from scratch when you change root managers to avoid problems.

If you flashed with phh's superuser.zip integrated to the kernel and installed phh's superuser apk, and you want to switch to SuperSU, then I advise you re-patch the kernel with SuperSU.zip integrated and re-flash your entire firmware to ensure a clean install without any conflicting residue from using phh's superuser.

If you used the latest version of SuperSU, why would it need to be updated in the Play store?

Inability to use AdAway indicates that your device is not rooted correctly. I suggest starting over the root process from Step 5, you can skip Step 7.

If you followed the guide, then TWRP is already installed. It can be accessed by pressing UP during boot when the LED is yellow, the LED should turn orange and you'll be in TWRP.

EDIT: If you're rooting Android 7.0 firmware, then you need to make modifications to the rootkernel tool to integrate TWRP. Search the rootkernel thread for more information.
[Xperia Z5 Compact General] NeoBeum:
You can only ever flash Official Sony Firmware without unlocking the bootloader - this is where most people get confused.

Can you take a screenshot of your developers options, I want to see the visual state of your flags.
[Xperia Z5 Compact General] mhaha:
The guide was written for the viewpoint of a user who has never rooted or modified their phone, but of course you can take what you need from the guide, it's just a summarized collection of various available tools used for rooting.
[Xperia Z5 Compact General] mhaha:
Removed reply, other people offered much better constructive advice.