yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact General] Frontier3:
Has anyone had a problem getting rw access to system? I tried with 4 different root explorer programs and tried installing kingroot and none of them will get rw access.

The other root functions I tried seemed to work, although honestly without system rw there isn't much point and I'm starting over from scratch.

Wondering if anyone else ran into this or has a solution.
[Xperia Z5 Compact General] :
Hi - yes I am had the same problem. You can try this:

Completely un-installed the SuperSU app

From alternative 3, start here: ./rootkernel.sh kernel.elf kernel-patched.elf

For the options, choose to disable sony RIC. (The root guide says don't disable it, but I think this is actually the cause of the issue, as Sony RIC is a tool uses to restrict rw access)

This run this as per tutorial: fastboot flash boot kernel-patched.elf

Install SuperSu again as described in Alternative 1.

See if you now have rw access

---------- Post added at 02:53 PM ---------- Previous post was at 02:50 PM ----------

Hi, I'd like to make some comments on the guide.

Point 1: Alternative 3 lacks any instructions on how to install the SuperSU app - please consider adding that, as it is a necessary part of alternative 3.

Point 2: This part of the guide impossible to for me to understand, and I think others will also have a problem:

5.Flash DK.ftf with flashtool for a more complete restore of DRM-based functionality with the original TA partition backup

I have had to skip this step, due to it not being clear - however as far as I can see all functions on the phone are working without the TA Partition / DRM keys. X-reality, camera, TrackID etc all work fine. And the cameria is working in low light fine.

Point 3:Alternative 3 - When patching the kernal the user DEFINITLY needs to disable Sony RIC and should strong consider installing busy box. If the user fails to disable Sony RIC - you end up with a device which reports that its rooted - yet still have no way to read/write to the system partition - This makes removing bloatware, using Titanium Backup etc useless.

Regards.
[Xperia Z5 Compact General] Lightheaded:
got stuck at "Starting apps...". Did a factory reset through TWRP, now got stuck at the Xperia wavy thingy screen.. Shame :(
[Xperia Z5 Compact General] camaro322hp:
Nice guide. I just completed the process using alternative 3, script version 4.51, beta SuperSU 2.74 and firmware 224 and it works great. Thanks!
[Xperia Z5 Compact General] jebo34:
Hi to all,

1) does a SIM card has to be inserted before starting this procedure?

2) Is there a way to flash/use a CM13-firmware within this procedure or do I have to do it afterwards??
[Xperia Z5 Compact General] jebo34:
Hi, it worked almost for me, but I don't understand the last commands:

What does this mean? Are these commands to type in somewhere??

rootkernel.sh and flash.dk are in the folder of the rootkernel, kernel_S1-SW-LIVE-F936-PID1-0006-MMC.elf in the folder of the firmeware and the TA-10072016.img in a third folder.

sudo.... doesn't work in the cmd-box with administrator rights.....

Where are these options, in flashtool?

Do I have to flash in fastboot or flashmode at the end?????

Sorry, Samsung is much easier and I don't know anything about Linux.......didn't have to before:D

I only have a Windows PC, no Linux or Android.....

---------- Post added at 10:03 PM ---------- Previous post was at 09:46 PM ----------

Found the answers:

ad 1) No

ad 2) no, there are no finished ROMs yet
[Xperia Z5 Compact General] jebo34:
deleted
[Xperia Z5 Compact General] camaro322hp:
I'm having some issues with MM so I'd like to go back to the 200 LP firmware. Can anyone tell me what versions of things (tobias script, supersu, etc) I need to use with the 200 LP firmware?
[Xperia Z5 Compact General] jebo34:
Problems with SuperSu and some Apps

Hi,

everything worked great at the end (E5823).

But now I have some problems:confused::

1) SuperSU pops up with: 'binary needs an update'. But doing this ends with an error.

2) Better Battery Stats needs to be converted to a system app, what ends up with an error.

3) AdAway can't copy the generated hosts-file

Is there a problem with the locked bootloader after flashing back the original TA???

4) The softkeys 'back'-button and 'task-button' doing a short vibration after long pressing them. But nothing special happens. Same on the 'home-button' leads to the google-app, popping up.

Should there be an action?? Somewhere to configure??

I followed the tutorial, except installing Xposed and used alternative 3 with:

flashtool-0.9.22.3-windows

rootkernel_v4.51_Windows_Linux

E5823_Customized DE_1298-1220_32.2.A.0.224_R2C

SuperSU-v2.74-2-20160519174328

Btw: thanks for this tutorial:good::)
[Xperia Z5 Compact General] smartphone-tester:
ad 1) and 2) If you followed my suggestions on the rootkernel script options, then the Sony RiC is still enabled, with the result that /system is read-only. If you want to change that (e.g. update the su binary without re-flashing SuperSU from the recovery or installing apps under /system), then you will need to remove that protection. I.e. run the rootkernel script again and re-flash the different kernel file.

ad 3) UPDATE: With the latest firmware, AdAway indeed doesn't work for me either - will have to check.

ad 4) I have not tried that to be honest.

If you restore the TA partition, the boot loader will automatically be locked again, and you will be back to the initial state (i.e. as it was before the procedure).
[Xperia Z5 Compact General] jebo34:
Sure I followed your suggestions:D

OK, I will flash again.

??How, the hosts file is under /system, which is read-only......as you wrote.

OK, I just found out, that the vibration by long-pressing the buttons comes from a setting in the Apex-Launcher:D

I don't mind, as long as everything works fine.

I did it only, because you wrote:

.....or is there no difference??
[Xperia Z5 Compact General] Antho02:
hello, do DK.ftf must be created again each time or we can use the same?
[Xperia Z5 Compact General] jebo34:
As the TA.img will never be changed and there is no expiry date of the DK.ftf:D I would guess: No:cool:
[Xperia Z5 Compact General] Antho02:
yea that's what i saw, didnt need to reflash it after updating the rom
[Xperia Z5 Compact General] jebo34:
Problem with permanent unlocked Bootloader

Hi Smartphone-Tester:)

After unlocking the bootloader (-> 'bootloader unlocked: yes') I still can't

1) install XposedInstaller

2) change BetterBatteryStats to a systemapp

3) get AdAway to store the new hosts-file (its writable only for 'owner', that means Apps with root-access as well...or am I wrong??)

Is there anything else, I can do???
[Xperia Z5 Compact General] smartphone-tester:
Did you root, disabling dm-verity and RiC in the process?
[Xperia Z5 Compact General] Antho02:
points 2 & 3 are due to sony RIC which doesnt permit write on /system

you should deactivate it when patch the kernel

xposed was installed sucessfully for me with no problem
[Xperia Z5 Compact General] stxe:
So I performed "alternative 3", flashing my original DRM keys. Everything seems to work including TWRP but after shutting down for the first time I can no longer get past the Sony logo. Tried wiping using TWRP but that didn't work. If I reflash everything I encounter the same problem after the first shutdown.
[Xperia Z5 Compact General] jebo34:
I patched the kernel with disabled RIC.

I guess I will do it all again with wiping next weekend....

---------- Post added at 05:03 AM ---------- Previous post was at 05:02 AM ----------

Which drivers???

---------- Post added at 05:06 AM ---------- Previous post was at 05:03 AM ----------

Very strange, now service shows 'bootloader unlockable: yes'....

---------- Post added at 05:22 AM ---------- Previous post was at 05:06 AM ----------

....and now unlocked: yes......????
[Xperia Z5 Compact General] iMessa:
So i have rooted with method 3. I have Xposed installed and everything is working great now, finally. BUT i see that update to .253 is available, so how can i keep everything alive without loosing anything and with any possible complications update it? Thank You!
[Xperia Z5 Compact General] ISO_Metric:
video

you should make a video of how to root from MM 6.0.1 from the beginning that would clear a lot of stuff up for most poeple
[Xperia Z5 Compact General] ISO_Metric:
thanks
[Xperia Z5 Compact General] smartphone-tester:
Simply start from flashing that firmware in the howto (and continue with patching kernel, re-installing Xposed, etc.).
[Xperia Z5 Compact General] iMessa:
There just must be a quicker way to not losing everything and then install every application, every per app and system settings and so on.. I use really a lot of apps and i can't every time do everything from scratch coz it tooks soo much time and nerves. It's too much of cost for a fricking root...
[Xperia Z5 Compact General] pw1nce:
guys i did not unlock bootloader but in menu my opt status is unlocked ..

OTP_LOCK_STATUS: UNLOCKED

what does it mean?
[Xperia Z5 Compact General] Antho02:
you wont loose your apps

and its the only way

update, patch, flash, install xposed if needed
[Xperia Z5 Compact General] mhaha:
Does any one have information as to why only the beta SuperSU 2.74 works with 224? Would it be wise to not allow Google Play to update SuperSU to 2.76?

253 is still not available in my region at this time, so upgrading to 253 is currently not an option (I don't want to use ROM from other regions)
[Xperia Z5 Compact General] Cerhio:
Hey so I'm trying to reboot using xposed after rooting using these instructions and I get an error message saying busybox isn't installed. I clicked Y to install it when asked. What is up?
[Xperia Z5 Compact General] Younes_Meknassi_Lagraoui:
Hi dears, I'm using fw 253 with superSu 2.76 looks like rooting and twrp installation were successful. I'm trying to install xposed systemless with thr method described. Each time I install anything related to this (xposed framework.zip or the prerequisite for systemless) I get stuck at sony logo after rebooting. Can you help with this?
[Xperia Z5 Compact General] militiaOfDeath:
Edit: Fixed, everything working. Thanks for the guide.
[Xperia Z5 Compact General] militiaOfDeath:
Quick update. Everything works as expected except for the fact that the system-less xposed v86 (material-design) crashes if spending too much time in the app; e.g. when searching for modules. App "hard-crashes" phone, and only way to get it back to life is to hold the "reset" button in the sim-tray for a couple of seconds. Might be that using the regular xposed v86 is more stable as of now, can't say as I haven't tested it.

Edit; uninstalled material-design xposed and went for the official one, so far no crashes, and everything works perfect.
[Xperia Z5 Compact General] kukuh05:
Is there anyone have a backup TA partition file and can shere it here?

Because Before i succeed root or unlocked my bootloader i don't understand how to backup partition, because before we want to back it up we must have root access but we don't have a root access.

So i don't backup my TA partition and have drm keys lost. I found somewhere on xda the thread who give us drm backup file but as long i use my phone sony special function(like x-reality, fingerprint, etc) will be gone automatically, so I must flash it again and again. So did any of you can tell me how to make it permanent? Thanks

Sorry for my bad english ?
[Xperia Z5 Compact General] civicsr2cool:
Your ta keys are gone forever and you can't get them back. You need to flash the DRM fix to get functionality back.
[Xperia Z5 Compact General] Younes_Meknassi_Lagraoui:
Hey, i removed sony protection and now everything works. Great guide! Thank you
[Xperia Z5 Compact General] :
PLEASE CONSIDER UPDATING THE GUIDE. This guide still has the recommentdation " don't disable RIC" which is crazy. The user MUST disable Sony RIC. If Sony RIC is enabled, the device will report its rooted, but most root apps wont work since they cant gain rw access.
[Xperia Z5 Compact General] sijav:
Hi, I just got this device, and wow it is so great, so I played a little bit around with it, heat and battery drain issue is so high that I like to downclock the CPU a bit :D so here I am wanted to root it and unlock but find out that things are a bit different from Xperia ZR that I had previously, however I'm not following your logic why are you flashing back the 32.0.A.6.200? to backup your TA? doesn't Backup TA from flashtools works without any root access?
[Xperia Z5 Compact General] dario2510:
Why do you think this solution is deprecated, compared with other? Which are the main differences between this kernel and the stock one?

thank you
[Xperia Z5 Compact General] kukuh05:
how to disable sony RIC?
[Xperia Z5 Compact General] Antho02:
answer YES when it asks if you want to disable it...
[Xperia Z5 Compact General] dario2510:
I had already installed a kernel with sony ric enabled, may i just flash a new one with sony ric disabled or i have to repeat all the steps of this tutorial?
[Xperia Z5 Compact General] Antho02:
just repatch and reflash your kernel ;)
[Xperia Z5 Compact General] Cerhio:
Hey quick question, I'm loving my rooted E5823 but was curious about what was the best way to factory reset my device yet retain rooted features, TWRP and SuperSU. Is this possible or should I just follow the steps from the beginning of this guide like mu phone is unrooted stock?
[Xperia Z5 Compact General] dario2510:
Hi there.

I've followed this tutorial but now i'm going to sell my white z5c because i've bought a black one... How can i fully restore it, without root, recovery etc?
[Xperia Z5 Compact General] mhaha:
Guys... the reason questions like these rarely gets replies is because the answers have already been clearly spelled out for you had you bothered to actually read the posts of the tools. It's your responsibility to understand the tools you are using, and quite frankly tool developers have already gotten out of their way to write up detailed descriptions and FAQs. Being a complete newbie or tech illiterate is no excuse for laziness. By asking such questions, you're implying that you are not willing to make any effort on your part to find the answers, you're just asking to be spoon fed. Not cool.

If you had followed this guide, then you would have used this tool to backup your TA partition before unlocking your bootloader.

Go to the linked thread, and scroll down to post #2. Follow the instructions, then reflash a clean stock ROM. (Maybe a factory reset will also work, not sure since I have not personally tried.)

If you didn't backup the TA partition before unlocking the bootloader, then you're out of luck.
[Xperia Z5 Compact General] Cerhio:
So I went to your link and there's nothing there regarding the easiest way to do a factory reset yet retain root features. I don't know how you missed that much when its like 8 sentences.

Did you even read my question? I already have my backed up TA partition and am asking something not covered at all in the post you linked. I don't want to mess things up with my phone by factory resetting through settings menu on my phone if I can't. If you don't want to help, don't comment. It's as simple as that. I searched ""factory reset"+"rooted"" and didn't find anything.
[Xperia Z5 Compact General] mhaha:
I owe you an apology, I quoted your post in error, I only meant to quote dario2510. I've seen similar questions all the time, and it just so happened that I decided to say something about it today. I'm sorry for the mistake, and I will edit my previous reply to remove your erroneously quoted post.
[Xperia Z5 Compact General] cybershotwalkman:
I've followed the steps to backup TA.img. ADB says successful. But I could not find where my TA.img file was saved. Anyone has any idea?
[Xperia Z5 Compact General] agnath18:
It will be there in the tool folder itself.
[Xperia Z5 Compact General] RoKr7:
It's possible for flash fw .350 from E5803 with kernel .253 from E5823?
[Xperia Z5 Compact General] ninestarkoko:
Hello [MENTION=2280770]smartphone-tester[/MENTION] , some other corrections to the first post:

1) delete step 6, it's completely outdated

2) tabackup.bat does the same as the commands explained, so just tell people to click on that and wait until they see

"TA.img copied successfully" and the .img file is created in the folder

3) delete the DEPRECATED methods, so the post is smaller and less confusing (new users don't understand those old things )
[Xperia Z5 Compact General] drixter:
Hi,

Is there any chance to optimize, speed up the instruction using Dirty Cow bug, CVE-2016-5195?

Can someone, with more expierence look on it?

Regards,
[Xperia Z5 Compact General] cyberwytch:
I had trouble once i got up to patching the .305 kernel...in the end, I flashed heptyle's .305 kernel for E5803 and everything works perfect!
[Xperia Z5 Compact General] maxisbored:
Halp! I followed the guide start to finish, i flashed firmware to E5823_Customized AU_1298-7260_32.2.A.0.305_R6C, got temp root, backed up keys, flashed to the kernel-patched elf which installed TWRP, but i don't have root.... ? What did i miss?

solved:

Big thanks to the guy here:

http://xdaforums.com/showpost.php?p=67629209&postcount=37 for pointing out that there's no info on installing SuperSU. I did that through TWRP, and all systems go... only took me 3 hours to figure it out :(
[Xperia Z5 Compact General] RoKr7:
its possible to claim warranty after UBL? anyone have experience about that?:(
[Xperia Z5 Compact General] maxisbored:
They basically say yes, without saying it.

I'd link their website but it won't allow me :(

Voiding the warranty

If you unlock the boot loader, you may void the warranty of your device and/or any warranty from your operator. See your device’s warranty statement for details. Additionally, due to the modified device software, Sony’s repair network will likely have to replace key components before it can properly test, repair and verify your device using our repair tools and software. Consequently, if Sony performs a warranty repair, Sony will likely charge you a significant service fee for the additional costs caused by your modification of the software.
[Xperia Z5 Compact General] SysGhost:
I did download E5823_StoreFront_1299-6910_32.0.A.6.200_R2B and created an FTF file from it. (without .ta files)

Then I flashed it in flashmode, and it went fine.

Now I have booted up the device, and I see that it is stuck *permanently* in demo mode. USB-connectivity is completely disabled. It can only charge, and there's no way to change this behaviour due to the permanent demo mode. Also it cannot enter flashmode nor fastboot anymore.

Seems this demo mode is permanent like concrete. The suggested dialer code *#*#73556673#*#* only returns that it is a demo unit, and demo mode cannot be disabled.

What can I do to get back to a non-demo firmware?

EDIT:

It seems there are no way to restore a "demo unit" once booted up in demo unit mode. It is permanent.

Now I have to buy a new unit. Too bad to see the money thrown away like this.

I strongly advice against using StoreFront firmwares, as they are permanent and irrecoverable. Could you please update the guide so others don't get stuck as I did with my unit? Or at least be EXTREMELY clear on how to create the FTF file in DETAIL. I assumed one created it like any other FTF file. (Include all sin files, exclude .ta files and .xml files).

There was no more information in the guide about this step so...
[Xperia Z5 Compact General] maxisbored:
It's not permanent by any means. Just download another firmware with xperifirm and flash it with flashtool...

If your machine can't see the device, it's because you don't have the driver, or your phone is stuck in MTP. Search MTP in the settings, if you can't find it by navigating. I went in and out of multiple storefront versions with no issue.
[Xperia Z5 Compact General] SysGhost:
My machine could see it just fine before. I'm running a linux system, with the proper udev rules. The problem with demo units is that ALL usb communication, including fastboot and flash mode are disabled. The device can only charge. Nothing else. Each reboot also clears everything out (hence the term "Demo mode").

There's two demo modes. one that the users can activate and deactivate freely with *#*#73556673#*#*.

The other one, which is permanent, is designed for stores front demo phones. (hence the name "StoreFront"). The dialer-code returns an error: "This is a demo unit, and demo mode cannot be disabled.". All settings around communication via USB are also disabled from all menus. It made that way to prevent stolen demo units being used.

So my question is: How did you create your TFT file in order to be able to enter and exit StoreFront demo mode? the TFT I made sure is completely stuck in demo mode.

...and no, MTP and/or USB mode settings are all gone in this one I created. I know very well where they should be, and they're not there. The whole sub-menu is gone. The device also doesn't accept nor have any sdcard capabilities (disabled too), so there's no ways to transfer any files to the device in order to circumvent the problem.
[Xperia Z5 Compact General] RoKr7:
Sorry, it's out of the topic

But, I want ask anyone have an issue when in calling with LINE and we minimize (go home) or change to other applications the sound of line will be hiccup (stagnating)?

Can you help me?

Sorry for out of the topic and bad English
[Xperia Z5 Compact General] gspbeetle:
Just did a flash to .305 without wipes with root kernel afterwards in fastboot, it boots okay without any issues, no data loss.

Venkat Kamesh's TWRP kernel files works great so far.

SU hide works now with SU 2.78 SR4

Magisk 9 still isn't quite working, but it is expected.
[Xperia Z5 Compact General] :.::
After i rooted my Sony Xperia Z5 Compact E5823

After i rooted my Sony Xperia Z5 Compact E5823. Everything looks great when i booted up, something was wrong and that was Bootloader.

I have unlocked bootloader and said yes that i have unlocked bootlader, after i shut off my phone and booted up. My bootloader unlock allowed NO!

its that normal or will i unlock bootloader again?

srry for my english
[Xperia Z5 Compact General] Superrman:
sry for the up , but what do i need DRM keys for?

i cant just >unlock the bootloader> flash boot.img with flashtool\adb > install ROM from recovery?

(thats what i did with my old sony)
[Xperia Z5 Compact General] mhaha:
Here you go
[Xperia Z5 Compact General] Superrman:
You wanna hear something funny?, thats how i got here!

if you dont know the answer you dont need to SPAM or troll the forum, and wasting people time,
[Xperia Z5 Compact General] mhaha:
Funny indeed, because this isn't some obscure knowledge, answers can be found all over the place with a simple search. Instead, you chose to be spoon-fed, and in addition to that felt it necessary to throw a tantrum and insult people who didn't feed you the answer. Precisely the kind of behavior expected of one who demands to be spoon-fed. With that attitude, good luck getting help anywhere.

Here's the funniest part. I've actually already handed you that spoon you want. Literally the second result has your answer. The title reads "Restore Lost Functionality on Unlocked Xperia Devices - Part 2", with the short description Google was nice enough to display below it proclaiming

Boom.
[Xperia Z5 Compact General] arshia.sunboy:
hi.I cant restore my backup

same android and original android

Error: Please specify a TA image to restore

Press any key to continue . . .
[Xperia Z5 Compact General] Superrman:
Hey , anyone know where i can get 5.1.1 firmware (that i can backup DRM?)

and it meters if its AU ROM or UK ROM for example?

via XperiaFirm i can find only the newest ROMS (6.0.1)

(ive tried download old XperiaFirm like it said in the 1st page but its still shows only new ROMS

thanks for help
[Xperia Z5 Compact General] dermaze:
Hi, here you can find the 5.1.1, 6.0.1, and already the 7.0 ftf. But I have not tested those images, so I have no idea whether they are harmless or not.
[Xperia Z5 Compact General] Gewiz:
Just use the Storefront image like described in OP. It's still there!