yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] Antwanster:
Hello,

Im running .575 firmware, stock kernel, stock firmware, with TWRP AND Xposed framework. I lost my root when I updated from 5.x to 6.1.

When I run this phone reboots into recovery... but i don't have root.

Any suggestions?

EDIT: I noticed this:

* server not running *
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Device Detected!

Installing ...

[100%] /data/local/tmp/mm_twrp_recovery_install/boot_twrp_recovery.sh
[100%] /data/local/tmp/mm_twrp_recovery_install/busybox
[100%] /data/local/tmp/mm_twrp_recovery_install/byeselinux.ko
[100%] /data/local/tmp/mm_twrp_recovery_install/chargemon.sh
[100%] /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh
[100%] /data/local/tmp/mm_twrp_recovery_install/iovyroot
[100%] /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch
[100%] /data/local/tmp/mm_twrp_recovery_install/recovery.twrp.cpio.lzma
[100%] /data/local/tmp/mm_twrp_recovery_install/wp_mod.ko
iovyroot by zxz0O0
poc by idler1984

[+] Installing func ptr
[+] Patching address 0xc1234b68
[+] Start map/unmap thread
[+] Start write thread
[+] Spraying kernel heap
[+] Start read thread
[+] Done
got root lmao

"modulecrcpatch (by zxz0O0)
module_layout: patched to 0x2067C442
__aeabi_unwind_cpp_pr1: not found
kallsyms_lookup_name: not found
printk: match
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: match

modulecrcpatch (by zxz0O0)

module_layout: not found
__aeabi_unwind_cpp_pr1: not found
kallsyms_lookup_name: not found
printk: not found
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: not found

[U][B]...a whole lot more inbetween, but I am removing it so the post doesn't become long.[/B][/U]

modulecrcpatch (by zxz0O0)

module_layout: not found
__aeabi_unwind_cpp_pr1: not found
kallsyms_lookup_name: not found
printk: not found
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: not found

module_layout: not found
memcmp: not found
kallsyms_lookup_name: not found
__aeabi_unwind_cpp_pr0: not found
call_usermodehelper_exec: not found
call_usermodehelper_setfns: not found
call_usermodehelper_setup: not found
printk: not found
Installing of installbyeselinux.sh finished
Finished!"
[Xperia Z3 Compact General] dawenz824:
Hi, where ir Flash SU? ...
[Xperia Z3 Compact General] casouzaj:
Copy the SuperSU zip to anywhere you want on your smartphone, on either the internal storage or the SD card. Once you have run the install.bat file on your PC, or pressed the volume down button at the moment the led flashed in green color, along with a vibration, right after the first Sony Xperia screen, in a reboot operation, you got under TWRP. There, tap on Install, navigate to where you placed the SuperSU zip, tap over it and slide the bottom bar to the right to get the installation executed.

I recommend not to install the SR1 version of SuperSU. It doesn't fit right on our devices. I suggest the v2.78 one tagged as SYSTEMMODE.
[Xperia Z3 Compact General] dawenz824:
Help

Hi doc, i will try to generate mi own tft, because my phone is locked ... how i can get it.. I dont know waht i have to put in Branding and Version in FlashTools... :/
[Xperia Z3 Compact General] Peloche:
I have the same problem on 291 fw and 575 kernel. Please help me
[Xperia Z3 Compact General] RobyIndie:
Will this method keep the DRM keys intact, therefore allowing me to use the proprietary Sony camera tech?
[Xperia Z3 Compact General] casouzaj:
Yes!
[Xperia Z3 Compact General] RobyIndie:
Seriously? I thought that wasn't possible!

There's not even a chance of that happening? Can I back them up? If the answer is yes, how could I do that?

Does this method prevent me from updating, assuming Sony will release any more patches, that is.
[Xperia Z3 Compact General] casouzaj:
You don't have to worry about your DRM keys. They will not be touched, at all, by this method.

Well, once rooted, all OTA updates will fail to be installed. It's not a real problem, though. Flashtool is here to help us, and it's a very powerful tool.
[Xperia Z3 Compact General] russel5:
Yes, please guys learn2read what i wrote in first post:

[B][COLOR="Red"]Then you can install any supersu.zip in custom recovery[/COLOR][/B]
[Xperia Z3 Compact General] Macsek:
installing from linux

Hi folks,

I modified the windows-only method to run under linux, created install.sh (had to compress it to upload in xda, run gunzip install.sh.gz to extract).

[MENTION=4688377]russel5[/MENTION], can you please insert a link to this post in the 1st post, others can find it useful too.

"Thanks! :good:" button is for free ;)
[Xperia Z3 Compact General] casouzaj:
Take a look at the kernel build date, under Settings > About phone. If it's dated April 22, 2016, it's from the 575 firmware, and you're ready to run the rooting tool. Otherwise, if it's June 28, 2016, instead, try to repeat the 575 kernel flashing operation, but, this time, reject the FSC file usage (I.e. answer NO to that question).
[Xperia Z3 Compact General] ihko:
It's written

3.4.0-per-g43ea728

BuildUser@BuildHost#1

Fri Apr 22 17:27:56 2016

I try the next step.

Thanks ;)

---------- Post added at 10:59 PM ---------- Previous post was at 10:47 PM ----------

I think it worked

07/056/2016 22:56:50 - INFO - Starting phone detection

07/056/2016 22:56:54 - INFO - Device connected with USB debugging on

07/056/2016 22:56:55 - INFO - Connected device : Sony Xperia Z3 Compact

07/056/2016 22:56:55 - INFO - Installed version of busybox : BusyBox v1.24.2 (2016-09-06 23:58:53 YEKT) multi-call binary.

07/056/2016 22:56:55 - INFO - Android version : 6.0.1 / kernel version : 3.4.0-perf-g43ea728 / Build number : 23.5.A.1.291

07/056/2016 22:56:55 - INFO - Checking root access

07/057/2016 22:57:03 - INFO - Installing toolbox to device...

07/057/2016 22:57:03 - INFO - Pushing C:\Flashtool\custom\root\ftkit.tar to /data/local/tmp

07/057/2016 22:57:03 - INFO - Running installftkit as root thru sysrun

07/057/2016 22:57:04 - INFO - Root Access Allowed

07/057/2016 22:57:04 - INFO - Stopping ric service

07/057/2016 22:57:04 - INFO - ric service stopped successfully

:)

Do I have to run the flashtool to kernel 291 ? Or It's Ok?
[Xperia Z3 Compact General] M1chiel:
Yes, it seems like it worked! Now you need to flash the 291 kernel.
[Xperia Z3 Compact General] casouzaj:
Has your phone entered TWRP at the end of the process? If so, have you installed the SuperSU zip whilst still under the TWRP session? Yes, it's highly recommended to flash the 291 kernel back as the last operation, in order to avoid a persistent upgrade notification in your status bar.
[Xperia Z3 Compact General] ihko:
Yes there was a weird screen with strange tiles, I supposed it was TWRP (I don't know what it exactly is lol). Still, I checked other post in the thread and downloaded the latest version of SuperSu on my PC, copy/paste the Zip with WinExplorer to SD Card and installed it through the supposed TWRP. And it worked :good:

Now I have to flash the 291 kernel back.

Thank's again :)
[Xperia Z3 Compact General] MisterVolum:
if you ”Run as administrator” the install.bat but keep getting the error: adb server version (32) doesn't match this client (36) Killing.... be sure to firstly kill the process Xperia Companion (or something like this) from Task Manager. Then run again as administrator the install.bat and now it should work.

I struggled several hours trying to bypass this error, till I figured out I should try to kill this process.

ps.: i'm on Windows 8.1
[Xperia Z3 Compact General] akiraphung97:
. Please help me

Can any show me where to download file install.bat ? I'm newbie
[Xperia Z3 Compact General] M1chiel:
If you unpack the zip file recovery_for_MM575.zip on th OP (first message in the thread) you will find install.bat.
[Xperia Z3 Compact General] casouzaj:
You have to unpack the rooting tool zip to a folder. The install.bat file is inside it.
[Xperia Z3 Compact General] M1chiel:
This question is off topic and should be posted in th Q&A thread, but in short: I tried Slimm and debloated stock MM. I liked both, but for me Concept (without root) is the best.
[Xperia Z3 Compact General] SeattleMatt:
I had .291, how do I "flash" the stock kernel, everyone seems to think this a simple step but I can't find basic instructions on this. I have "flashtool" sony flashtool, etc.
[Xperia Z3 Compact General] M1chiel:
You have to download kernel575.zip to your PC, rename it into kernel575.sin, and flash it with Flashtool. If you google flashtool + tutorial you can find detailed instructions.
[Xperia Z3 Compact General] casouzaj:
This rooting tool only works with the kernel from the 23.5.A.0.575 firmware. So, you must use Androxyde's Flashtool to flash this kernel prior to running the install.bat file. If you downloaded the kernel from the OP, you just have to rename its extension from zip to ftf, and place it in C:\Users\your_username\.flashTool\firmwares. Then launch Flashtool, select Flashmode and that kernel (indexed by your model code), turn your phone off, click on Flash and, when an animated connection request window comes up, press and hold the volume down button whist plugging the USB cable in. Release the button when the connection request window goes away. At the end, disconnect your phone from your PC and turn it on.

When your phone is up and running, close Flashtool on your PC and run the install.bat file. If everything is fine, your phone will be rebooted and enter TWRP. There, you must install the SuperSU zip. You can install other zips too, if you want. Once installed, tap the back button at the bottom, and select Reboot > Power Off.

Now you must use Flashtool again, now to flash the 291 kernel back. Do exactly as you did when you flashed the 575 one. The only difference is that you must select the 291 one this time.
[Xperia Z3 Compact General] SeattleMatt:
Ok, the mistake I was making there is I was extracting the kernel575.zip file, I guess I just rename it.
[Xperia Z3 Compact General] SeattleMatt:
Unfortunately, the flash seemed to have failed and now the phone is stuck trying to boot, can't power off. Is this bricked?
[Xperia Z3 Compact General] casouzaj:
To power your phone off, hold both the power and volume up buttons, until it vibrates. Hope it works for you.
[Xperia Z3 Compact General] akiraphung97:
12/054/2016 08:54:37 - INFO - Connected device : Sony Xperia Z3 Compact

12/054/2016 08:54:37 - INFO - Installed version of busybox : N/A

12/054/2016 08:54:37 - INFO - Android version : 6.0.1 / kernel version : 3.4.0-perf-gc14c2d5 / Build number : 23.5.A.1.291

i don't know how to flash a kernel. you guys please help me, thank you a lot
[Xperia Z3 Compact General] akiraphung97:
my firmwave is 291 and i flash to 575. done. then i run install.bat to the last step but my 5833 don't reboot to recovery or have any action. please help me...
[Xperia Z3 Compact General] panzerox123:
Hi! This method never works on first try(atleast not for me) Please try a few more times! :o
[Xperia Z3 Compact General] Dark_KinG_BT:
I did everything but when I try to flash .291 says: Could not find 'META-INF/com/google/android/update-binary' in the zip file.

Error installing zip file 'external_sd/kernel291.zip

I don't know why that happens :/
[Xperia Z3 Compact General] casouzaj:
If you downloaded the kernel from this thread's OP, you have to rename its extension from zip to ftf, and use Flashtool, in Flashmode, to flash it.
[Xperia Z3 Compact General] Nekser1208:
Do you need to change the name of zip on ftf?
[Xperia Z3 Compact General] casouzaj:
Rename the extension, from zip to ftf. Windows uses to hide extensions. In this case, launch a command window, navigate to the location where the kernels are stored and enter 'ren kernel575.zip kernel575.ftf' (without the quotes) and hit [ENTER]. Repeat for kernel291.zip.
[Xperia Z3 Compact General] SeattleMatt:
Ok, I have flashed a few times and was able to get my phone working in various firmwares (none so far have fixed my rear facing camera, but that's another issue).

The question I have now is, how is it that all the ftf's I've seen so far are large files 1.5G or so, while these are only 14.47 MB, (kernel575.zip -14.47 MB) and they flash very quickly and don't seem to do anything different to the phone. As a result I am stuck on the step to attempt to get .575 on my z3c since I can't seem to get any .575 to fully load and show up.
[Xperia Z3 Compact General] M1chiel:
The kernel is only a very small part of the complete 1.5G roms that you are used to. Basically, it is the part that enables the software to communicate with the hardware. The kernel build date is under Settings > About phone. If it's April 22, 2016, you successfully flashed the 575 firmware. The 291 kernel is dated June 28, 2016.
[Xperia Z3 Compact General] casouzaj:
You must go to Settings > About phone and look at the kernel build date. If it's dated April 22, 2016, then it's from the 575 firmware. If it shows June 28, 2016, it's from the 291 ROM instead.
[Xperia Z3 Compact General] bradabrada:
Yes... I've done that... still .291 ... thanks for quick reply...

I have unlocked bootloader... may still this be the problem?

Edit: I've tried everything... UL/BL ... checked only one box when flashing kernel... when a popup appear respond with yes/no... it still appear to be .291 and the release date 28 june...
[Xperia Z3 Compact General] M1chiel:
Since you unlocked your bootloader anyway there is a more straightforward way to install twrp: http://xdaforums.com/z3-compact/general/twrp-z3-compact-unlocked-bootloader-t3476868/page1

Once you succeeded you can flash SuperSU in twrp.
[Xperia Z3 Compact General] bradabrada:
Nvm... it's working now:)
[Xperia Z3 Compact General] dkjr:
Got a second hand z3c, updated everything to .291 stock, then found out recovery did not work. Eventually I came found your thread, and got everything working. Thanks!

O and I flashed the old .575 kernel in flash mode using flash tool. Had to rename zip to ftf as was written in first post.
[Xperia Z3 Compact General] dansan691:
Hi, I'm from Brazil and I just bought a used D5833.

As usual, as soon as I bought the device, I did the procedure to unlock Bootloader without knowing that it was not necessary to get root and neither of the side effects of the unlock (about the quality of the camera and etc).

However the whole procedure worked well to install RECOVERY but I still could not get root.

I am using a MM 6.0.1 - .291 and TWRP 3.0.2-1 and the problem is always the same at the time of doing the FLASH in Supersu:

Boot image patcher

Finding boot image

--- boot image: / dev / block / mmcblk0p14

extracting ramdisk

Failure, aborting

I tried with the following versions of SUPERSU:

UPDATE-SuperSU-v2.65-20151226141550.zip

BETA-SuperSU-v2.68-20160228150503.zip

UPDATE-SuperSU-v2.76-20160630161323.zip

SR4-SuperSU-v2.78-SR4-20161115184928.zip

Older versions cause a bootloop

Keep looking but I can not do ROOT. I would even like to install the SliMM ROM but you need root first.

I can't find a useful supersu zip to flash.

someone has the same issue?
[Xperia Z3 Compact General] Syl890:
Hi i try flash kernel but i have this message FAILED (remote: Command not allowed)

my phone is on .291 LB
[Xperia Z3 Compact General] casouzaj:
You are, most probably, trying to flash the kernel in a locked bootloader phone using fastboot mode. You have to use flashmode, instead!
[Xperia Z3 Compact General] Syl890:
Yes but in flashmode don't see kernel, i put files in folder C:\....\.flashTool\firmwares, and in flashtool is empty
[Xperia Z3 Compact General] russel5:
[MENTION=6059713]dansan691[/MENTION] if you already unlock your bootloader just flash any custom boot.img and then any custom rom, what's the problem?
[Xperia Z3 Compact General] dansan691:
The problem is that in the requiriments of slimm they say that we need root access and recovery. So this is why I dont flashed yet
[Xperia Z3 Compact General] casouzaj:
You have to either move or copy the ftf file to C::\Users\your_username\.flashTool\firmwares. Flashtool will find it if you select flashmode.
[Xperia Z3 Compact General] Syl890:
thanks, casouzaj, i find my error, now flashmode don't work, i use zip files in to fisrt post

this is my flashmode txt
[Xperia Z3 Compact General] fluffi444:
Just received my replacemnt Z3C and did this rooting method.... For sure I needed to downgrade kernel.

What should I say...It works right of the box without any problems!

Faster and much more compact (in handling) that former KK method.

Thanks [MENTION=4688377]russel5[/MENTION] :good:
[Xperia Z3 Compact General] coach335:
Em, I didn't have root when I flashed SliMM rom and everything is working fine. Just did this root & recovery method, then flashed slimm rom and xposed in recovery. If you have UB you can flash the elite kernel because it has the DRM fix already backed in, and as other users report, it is working great with slimm. See the slimm rom thread for more info tho as I am on LB
[Xperia Z3 Compact General] laydog:
Its weird, after the install ran it booted into twrp and i successully rooted but i cant reboot back to twrp. its like its not there. the phone just boots as normal. even tried with a reboot app. any ideas? i even tried doing the process again and still happens.
[Xperia Z3 Compact General] casouzaj:
If, right after the first Sony Xperia screen, in any reboot operation, the led doesn't flash in green color, along with a vibration, when you should press the volume down button to get into TWRP, you really lost recovery. I suspect of the reboot options in GravityBox (to be confirmed). In this case, run install.bat again.
[Xperia Z3 Compact General] laydog:
it vibrates and flashes green but continues to just boot as normal.
[Xperia Z3 Compact General] casouzaj:
Have you read what I posted? At the moment you see the green light, press the volume down button. The led will be turned to pink and TWRP will come up.
[Xperia Z3 Compact General] laydog:
sorry this worked actually. different from my LG and samsung! my first sony. thanks so much
[Xperia Z3 Compact General] romcio47:
It's working, I finally can have fully stock ROM with root and recovery! No problems so far :) Thanks!

If anyone has "server" and "client" problems (not matching or something like this) and the .bat file does not want to proceed (it's killing daemon, showing millions of errors), the solution is to replace "original" ADB files from the attached file in the OP with the files f.e. from Flashtool's ADB folder or any other ADB-based programs.
[Xperia Z3 Compact General] TomChiverton:
Hi all.

I have a Z3C on 23.5.A.1.291 - can someone point at detailed steps how to get the .575 kernel on to it with FlashTool, without unlocking the boot loader ?

---------- Post added at 02:00 PM ---------- Previous post was at 01:19 PM ----------

Ah ha. You have to copy the renamed kernel files to the location shown in the dialogue after picking "flashmode" from FlashTool's lightning bolt menu. Using the browser to point at some other location where you put them will not work.
[Xperia Z3 Compact General] sandeepdarklord:
Will this support in D6633
[Xperia Z3 Compact General] casouzaj:
For Z3, look here: http://xdaforums.com/z3/general/recovery-root-mm-575-291-lb-t3435214
[Xperia Z3 Compact General] DHAmoKK:
Hi

I successfully got TWRP on my phone, but there was an error installing the SuperSU.zip (used SR5-SuperSU-v2.78-SR5-20161130091551.zip). I'm not sure, but I think it has something to do with the encrypted data partition. TWRP 3.0.2 is not able to decrypt it. However, there's a modified version here on XDA, [TWRP][Z3][UNOFFICIAL] twrp 3.0.2-3 for z3 [new BL only][2016-10-17], is there a way to implement this version into this root method?

Or is it possible to update the currently installed TWRP version with the new one while bootloader is locked? Other options would be wiping all data (factory reset) to remove encryption or unlock bootloader (which I don't want to do).
[Xperia Z3 Compact General] markurt30:
is avalaible a kingroot version for last firmware and android 6.0.1? version 5.0.1 of kingroot seems not running.
[Xperia Z3 Compact General] Guids:
Method worked for me. D5803 coming from .291

I also ran into the adb killing issue. I had to close Flashtool, factory reset and flash kernel again in order to make the batch script work.

The ARISE soundmod gave issues in the beginning, however, an uninstall and reinstall of the driver + reboot solved it.
[Xperia Z3 Compact General] 1xcalibur1:
This root\flashing technique thingy is freaking awesome!

However, the instructions given here are not too noob-friendly.

1) Renaming the zip files to ftf.

2) I had to press "no" on that "default" script that popped up while flashing.

3) SUPERSU can be found on the play store.

Cheers!
[Xperia Z3 Compact General] Spardantex:
Please someone can explain all the steps? :( Flashtool can't see the kernel files
[Xperia Z3 Compact General] casouzaj:
If your current A ROM is the 23.5.A 1.291 one, you must flash the kernel from the 23.5.A.0.575 ROM prior to running the rooting tool. If you downloaded the kernel from this thread's OP, just rename its extension from zip to ftf and place it in 'C:\Users\your_username\.flashTool\firmwares'. Then, launch Flashtool, select flashmode and that kernel, indexed by your phone model, and click on 'Flash'.
[Xperia Z3 Compact General] spookyneo:
Is there a way to update TWRP with a locked bootloader ? The file recovery_for_mm575.zip of this procedure installs 3.0.2-0-c45b2d59-dirty and keeps the bootloader locked (which is nice!). I would however like to update TWRP to 3.0.2-1-z3c.img.

How can I update TWRP with a locked bootloader ?
[Xperia Z3 Compact General] M1chiel:
Download the img file to your phone, boot in recovery and install it in twrp (twrp can install both zip and img files).
[Xperia Z3 Compact General] AbdennourB:
Ftf file not detected !!!!

Hey,

When I renamed the kernels to .ftf, and moved them to "C:\Users\user\.flashTool\firmwares" and opened the flashtool,I choosed flashmode but no kernel is detected :confused:

( I have latest version of the flashtool )
[Xperia Z3 Compact General] casouzaj:
You must go clicking on that '>' sign in the left, whenever you see one, from your phone model onwards.
[Xperia Z3 Compact General] AbdennourB:
Can you upload a picture explaining how??
[Xperia Z3 Compact General] Guilherme Cipriano:
Touch is not working

I have flashed my D5833 using the Kernel D5803 and the touchscreen where the status bar is stoped working... What do I have to do? Do I have to change my screen?

QUOTE=russel5;67752101]Hello my friends, i'm glad to present you utility for installing custom recovery & root to your phone, working on stock MM .575 LB

You don't need root on your phone to run this utility!

How-to:

* you need stock MM .575 or .291 firmware

* if you have .291 firmware, you need flash stock kernel.sin (575) via FlashTool and turn on your phone. After, when script done and you reboot in custom recovery, flash SuperSU, then turn off your phone and flash back kernel.sin (291)

* download zip and extract to your computer

* enable USB-debugging on your phone and plug phone to computer

* run install.bat as administrator

When all finished your phone reboot in custom recovery.

Then you can install any supersu.zip in custom recovery.

Now you have last TWRP, busybox and root :good:

Enjoy!

UPDATE_07.09.2016:

* added support D5833 and D6603

* added stock kernel for FlashTool (see attach). just change .zip to .ftf

* TWRP with new functions like adb backup and auto-reboot (check lastest commits)

* busybox with FULL Selinux support like setenforce, setsebool etc...

* added clean tmp files command

UPDATE_08.09.2016:

* fix error with daemon (adb) - please run this .bat as administrator

UPDATE_04.11.2016:

* add linux installer version HERE

Thanks:

[MENTION=3975929]zxz0O0[/MENTION] for iovyroot

[MENTION=2822871]Wolfbreak[/MENTION] for idea with recroot

[MENTION=4675598]shoey63[/MENTION] for show me HOW. Thanks again, bro

[MENTION=474832]Macsek[/MENTION] for linux installer[/QUOTE]