yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] darix96:
16/043/2018 15:43:52 - INFO - Selected kernel (boot.img or kernel.sin): C:\Users\dario\Desktop\Nuova cartella (2)\kernel.sin

16/043/2018 15:43:52 - INFO - Flashing selected kernel

16/043/2018 15:43:52 - INFO - target didn't report max-download-size

16/043/2018 15:43:52 - INFO - sending 'boot' (11328 KB)...

16/043/2018 15:43:52 - INFO - OKAY [ 0.360s]

16/043/2018 15:43:52 - INFO - writing 'boot'...

16/043/2018 15:43:52 - INFO - FAILED (remote: Command not allowed)

16/043/2018 15:43:52 - INFO - finished. total time: 0.363s

16/043/2018 15:43:52 - INFO - FASTBOOT Output:

target didn't report max-download-size

sending 'boot' (11328 KB)...

OKAY [ 0.360s]

writing 'boot'...

FAILED (remote: Command not allowed)

finished. total time: 0.363s

---------- Post added at 03:45 PM ---------- Previous post was at 03:44 PM ----------

16/043/2018 15:43:52 - INFO - Selected kernel (boot.img or kernel.sin): C:\Users\dario\Desktop\Nuova cartella (2)\kernel.sin

16/043/2018 15:43:52 - INFO - Flashing selected kernel

16/043/2018 15:43:52 - INFO - target didn't report max-download-size

16/043/2018 15:43:52 - INFO - sending 'boot' (11328 KB)...

16/043/2018 15:43:52 - INFO - OKAY [ 0.360s]

16/043/2018 15:43:52 - INFO - writing 'boot'...

16/043/2018 15:43:52 - INFO - FAILED (remote: Command not allowed)

16/043/2018 15:43:52 - INFO - finished. total time: 0.363s

16/043/2018 15:43:52 - INFO - FASTBOOT Output:

target didn't report max-download-size

sending 'boot' (11328 KB)...

OKAY [ 0.360s]

writing 'boot'...

FAILED (remote: Command not allowed)

finished. total time: 0.363s
[Xperia Z3 Compact General] casouzaj:
As your bootloader is locked, you must select flashmode, not fastboot mode.
[Xperia Z3 Compact General] maeru_aska:
any one can help, i can't root my Z3C D5833 MM whit this file

mush be D5803
[Xperia Z3 Compact General] casouzaj:
A kernel from the D5803 can be flashed into the D5833 (and vice versa). What, exactly, is not working for you?
[Xperia Z3 Compact General] sugarbrie:
This method worked for me installing TWRP 3.1.0 and also the later "update-recover-zip" to TWRP 3.1.1 worked as well. Carbon Oreo needs TWRP 3.2.3. I cannot get TWRP to update using any of the usual methods. Has anyone created an "update-recovery-zip" like the one above with the newest TWRP?
[Xperia Z3 Compact General] casouzaj:
If you plan to install CarbonROM, it means your bootloader is unlocked. Grab the TWRP image you wish, turn your phone off, hold its volume up button whilst connecting it to your computer, start a command window and enter:

fastboot flash FOTAKernel recovery.img

To access this recovery, starring with your phone turned off, hold both the power and the volume down buttons. When your phone vibrates, release the power button: when the screen lights up, release the volume down button.
[Xperia Z3 Compact General] sugarbrie:
Yes ........ while I did use this method which works for locked bootloaders; my particular bootloader is unlocked. So this particular recovery is in the FOTAkernal?

I previously had tried using the TWRP app; using the existing 3.1.1.0 TWRP's flash and ZIP install, and nothing worked. 3.1.10 remained on the phone.

Where should the new recovery reside for fastboot? On the computer's root C:\ ??? Thanks !!
[Xperia Z3 Compact General] casouzaj:
In order to make it easier for the fastboot command, place it in the same folder where fastboot resides (e.g in my case, minimal adb & fastboot). Otherwise you'd have to enter the path to its location.
[Xperia Z3 Compact General] sugarbrie:
Did not work. Got this message..

FAILED (remote: 'command not allowed')

Phone was identified by fastboot devices command

It did say "sending" then "OK" then "writing" before the error message.

I tried another TWRP Z3C recovery posted by Christian Oder of Carbon Rom. Same error. So not the recovery file.
[Xperia Z3 Compact General] casouzaj:
If the file you are sending to the phone has its size smaller than the partition you are selecting (in this case, FOTAKernel (attention: it's case sensitive)), I think this error message is issued when the phone's bootloader is locked.
[Xperia Z3 Compact General] sugarbrie:
It is unlocked. I did it myself a while back using the official Sony developer method. Phone's status under *#*#7378423#*#* service menu confirms it. I have used fastboot in the past. I tried the administrator command prompt as well.

If you go back to page 1, russel5 wrote a routine "update recovery.zip" that worked with my phone updating TWRP 3.1.0-0 to 3.1.1-0. Can that be recreated changing the TWRP file to the current one?

Is russel5 's zip routine sending TWRP to FOTAKernal or somewhere else? The commands are there in the zip, but I do not understand them.
[Xperia Z3 Compact General] casouzaj:
No, this tool is primarily thought out for locked bootloader. Everything goes to the system partition. Attention to the letters in the partition to fastboot the recovery.img file to: it's FOTAKernel.

EDIT: I have PM'ed you!
[Xperia Z3 Compact General] maeru_aska:
any can install Magisk in Z3 Compact Docomo D5833 MM 6.1 Boot loader is lock ?
[Xperia Z3 Compact General] casouzaj:
I'm running CarbonROM 6.1 for a long time, but, as far as I remember, whist still running the stock Marshmallow ROM, the Magisk version from then worked for me. I suppose the current version would work as well, provided that your bootloader is unlocked.
[Xperia Z3 Compact General] Akazaki Kun:
Sorry, this is a bit off the topic,But I want to unlock the bootloader, for example if we want to unlock the bootloader, do we have to downgrade to the kitkat version, like in this post https://xdaforums.com/z3-compact/general/one-bootloader-unlock-flash-firmware-t2905047/page1

I already did it in Kitkat, but the bootloader still says "no" in *#*#7378423#*#*, how do I fix it?please help... :(
[Xperia Z3 Compact General] casouzaj:
If ''Bootloader unlock allowed' shows 'No' in services menu, I'm afraid you won't be able to unlock your phone's bootloader. It's been locked by the operator.
[Xperia Z3 Compact General] maeru_aska:
any know install magisk in Z3 Compact Docomo MM 6.1 Lock Bootloader ?
[Xperia Z3 Compact General] sugarbrie:
Thanks for prior advice. Can get it to flash using the phone and the emulator app.
[Xperia Z3 Compact General] casouzaj:
Is this a question? If so, if your bootloader is unlocked, you could, indeed, install TWRP from a terminal emulator app, through a dd command. Launch it and enter:

su

Then, if needed, through one or more cd commands, navigate to the location of the recovery.img file, and enter:

dd if=recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

If successful, TWRP should have been installed.
[Xperia Z3 Compact General] sugarbrie:
Flashes successfully, but .....

Flashes successfully using phone emulator; TWRP ZIP install; TWRP flash install; TWRP app install; and fastboot install; BUT .... on reboot it is still on TWRP 3.1.1.0 and not the 3.2.3.0 being installed.

The Z3C originally had a Locked bootloader and installed TWRP using the .575 method on page one. Now has unlocked bootloader and .291

So is TWRP somewhere else (?) on the phone and not FOTAKernel? Is there a fix or another place 3.2.3.0 can be flashed; or another way to boot to FOTAKernal to get new recovery? Thanks.
[Xperia Z3 Compact General] casouzaj:
TWRP installed in FOTAKernel can only be accessed by, starting with the phone turned off, holding both the power and the volume down buttons, then releasing the power button when the phone vibrates, then the volume downr button when the screen lights up.
[Xperia Z3 Compact General] sugarbrie:
Figured It Out. Have Two Versions on TWRP on My Z3C

To access this recovery, starring with your phone turned off, hold both the power and the volume down buttons. When your phone vibrates, release the power button: when the screen lights up, release the volume down button.[/QUOTE]

MANY THANKS for your help. I figured it out. I actually have two versions of TWRP available.

If I "volume down with power button; release power when vibrates; release volume on Sony logo"; I get TWRP 3.2.3-0

If I "press power; then when vibrates release power; then Sony logo with Green light, press volume down; green light turns pink"; then it boots to TWRP 3.1.1-0

As a note to others: I was NOT able to install TWRP 3.2.3-0 to FOTAKernel by Fastboot. I received "failed" errors. I was able to successfully flash TWRP 3.2.3-0 to FOTAKernel using the phone itself with the Terminal Emulator app.
[Xperia Z3 Compact General] liffeous:
ErroR! - The bundle does not match the connected device

Hi new to Rooting! =) Super excited~ I am in dire need of help >> Have half a dozen of Z3 Compacts to flash so that we can work on a project to remotely control and do servicing on our app through the Z3 compacts we got.

I have a locked bootloader with 5833 - 291. I tried using 575 to flashmode but i got the following erro:

25/028/2018 00:28:27 - ERROR - The bundle does not match the connected device

this is my loading message:

25/028/2018 00:28:02 - INFO - Selected Bundle for Sony Xperia Z3 Compact(D5803). FW release : 23.5.A.0.575_R3D. Customization : stock kernel

25/028/2018 00:28:02 - INFO - Preparing files for flashing

25/028/2018 00:28:02 - INFO - Please connect your device into flashmode.

25/028/2018 00:28:26 - INFO - Using Gordon gate drivers version 3.1.0.0

25/028/2018 00:28:26 - INFO - Opening device for R/W

25/028/2018 00:28:26 - INFO - Device ready for R/W.

25/028/2018 00:28:26 - INFO - Reading device information

25/028/2018 00:28:26 - INFO - Phone ready for flashmode operations.

25/028/2018 00:28:26 - INFO - Opening TA partition 2

25/028/2018 00:28:27 - INFO - Current device : D5833 - YT910Z8B7V - 1288-5506_R3D - 1285-6521_23.5.A.1.291 - APAC-LTE_23.5.A.1.291

25/028/2018 00:28:27 - INFO - Closing TA partition

25/028/2018 00:28:27 - ERROR - The bundle does not match the connected device

25/028/2018 00:28:27 - INFO - Ending flash session
[Xperia Z3 Compact General] casouzaj:
This rooting method is installed in the system partition, for what Safetynet tests wouldn't pass. Even if you're not planning to take bolder paths, like installing CarbonROM or LineageOS, I think that unlocking the bootloader and rooting through Magisk would be a better way. You see, I'm running CarbonROM 6.1 (Android 8.1.0) for a long time now. Through Magisk and some additions to its hiding list, all my banking and corporate apps (including MS Intune Portal), Google Pay, etc, work just fine.

If you decide to unlock your bootloader, backup your TA partition (look here: https://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236) beforehand, in order to keep a copy of your DRM keys safely. If you keep the stock Marshmallow ROM, it's even possible to patch its boot image to include your TA backup.
[Xperia Z3 Compact General] sugarbrie:
Z3C Rooting for Newbees

There is a very highly detailed set of instructions on how to use the method posted on this thread. It walks you through the conversion to .575 from .291 kernel and back. I could never get a locked bootloader Z3C phone to work until I followed it.

It worked for me perfectly the first time I tried it.

See: https://xdaforums.com/z3-compact/general/guide-newbshow-to-291-mm-z3clocked-t3536395

.
[Xperia Z3 Compact General] sugarbrie:
TWRP in FOTAKernel But Not Rooted

So we flashed TWRP to the FOTAKernel per your instructions to another phone and did not get the errors the other phone had. But while it boots to TWRP recovery by pressing volume/down and power, the copy of TWRP is not rooted. What did we miss?
[Xperia Z3 Compact General] casouzaj:
TWRP has nothing to do with root. Under TWRP, install a root solution zip file (I use Magisk).
[Xperia Z3 Compact General] sugarbrie:
We know. I left out we tried to ZIP install SuperSu the first time we booted into TWRP after the flash install. The Zip install would not install. Does SuperSu have to be pre-rooted to work ?

Is Magisk just a ZIP install with TWRP?
[Xperia Z3 Compact General] casouzaj:
SuperSU is obsolete. Use Magisk, instead!
[Xperia Z3 Compact General] sugarbrie:
Thanks, we'll try it. We found the Majisk apk app that downloads the latest version.

Last question... Why does russel5 have the unlocked bootloader Z3C flash as "fastboot flash recovery name_of_recovery.img" and yours is to FOTAKernel. Difference?
[Xperia Z3 Compact General] casouzaj:
Two different partitions. You could install two versions of TWRP, one in the recovery partition, another one in the FOTAKernel one, if you wish. That's all!
[Xperia Z3 Compact General] sugarbrie:
Pretty Cool... How would one boot to the second TWRP, if yours is the volume down/power button?? Thanks!!
[Xperia Z3 Compact General] casouzaj:
To enter the TWRP flashed into the recovery partition, hold the power button to turn it on. Right after the first Sony Xperia screen, the led will light up for a couple of seconds. Within that time frame, press the volume button. Besides, the recovery partition responds to software solutions, like apps, adb, etc.
[Xperia Z3 Compact General] liffeous:
Error on the installation of drivers!!

Hey guys!

I tried to download and was excited to get all the stuff Magisk etc ready ... then it failed again. I simply can't flash it to 575 which seems to be the critical path.

This is the error which i got -

1) Sony Net (05/05/14) failed to install

2) Google Inc (WinUSB) failed to install

Is that why my flashboot keeps failing??

JJ
[Xperia Z3 Compact General] casouzaj:
If you're planning to install Magisk, your bootloader should be unlocked. Why bother with this old solution? Use a fastboot command to flash a TWRP recovery image to your FOTAKernel partition, enter TWRP and install Magisk. You should have root access right away
[Xperia Z3 Compact General] liffeous:
I have been trying hard to research on this. Magisk requires unlocked bootloader but my 5833 is Bootloader that cannot be unlocked (as indicated). So I was trying to access 575 to allow me to install custom recovery. No?

JJ
[Xperia Z3 Compact General] sugarbrie:
This Threads 575 method

Follow this guide exactly. It clearly walks you step by step through the 575 flash method on the first page here. You will see that the Kernel files need to be renamed after downloading. Some other things unclear on this thread are explained better.

https://xdaforums.com/z3-compact/general/guide-newbshow-to-291-mm-z3clocked-t3536395
[Xperia Z3 Compact General] maverick6664:
yeah, it's possible and I have also tried it, only to find magisk was too far advanced for xperia z3c stock firmware. It gave me error messages and failed to root. :mad: We'd better stick to SuperSU.
[Xperia Z3 Compact General] mobin989:
If your phone does not enter recovery after running the install.bat and will normally rise up, check out the following:

1) Disable your antivirus before extracting the Recovery.zip (to avoid deleting the ivoryroot and not seeing the following errors)

chmod: /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh: Not a
directory
chmod: /data/local/tmp/mm_twrp_recovery_install/iovyroot: Not a directory

2) Connect your phone to the computer with MTP (check out the phone that is not connect with PC in a charging only state, in this case the "not found" errors is observed)

3) Open the install.bat as normal (do not run it as run as administrator, in this case you will see an errors like the following error repeatedly)

cannot stat 'boot_twrp_recovery.sh': No such file or directory
cannot stat 'busybox': No such file or directory
cannot stat 'byeselinux.ko': No such file or directory
[Xperia Z3 Compact General] xhardyx:
Hi, I have succesfully rooted my Z3C thanks to this post. I really appreciate it...

Btw, i have a Z4C (Xperia A4).. Which is almost similar to Z3C (Even their spareparts are identical) which i really want to root.

I can cross flash Z3C Japan ROM into it, but can't seem to flash global Z3C ROM into my Z4C.. And this stock kernels are only for Z3C Global ROMs..

Can Anyone teach me how to make stock kernel for my Z4C?

Or any other method is fine, I Just want TWRP in my Z4C (With android 6.0)

I am willing to donate a fair amount to any developers.... Though i cant offer much..

Note: I can sucessfully root my Z4C if i downgraded it to Android 5.0.. Problem is, i need android 6.0
[Xperia Z3 Compact General] JessieBrig:
Is it possible to flash the latest TWRP-3.3.1 using the recovery_for_mm575.zip method?
[Xperia Z3 Compact General] temporary2010:
If you've got TWRP or CWM recovery installed, you can see if creating a pre-rooted Android 6.0 will work: https://xdaforums.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904
[Xperia Z3 Compact General] AmeiN:
Hi, just want to share to those got problem to flash kernel .575 for Z3C D5833. To solve this, uninstall lastest flashtool and install flashtool version 0.9.18.6 instead. https://www.gsmofficial.com/sony-xperia-flash-tool-0-9-18-6/
[Xperia Z3 Compact General] amarmak:
Thanks my Z3 compact is rooted. I want to install xposed, anyone here with any luck installing that. Which version to install and where can i download it.
[Xperia Z3 Compact General] Jayzufu:
Ah okay, thanks for the info.

I want to get rid of all these sony specific blaotware "AR camera Effects" and stuff, but i want to use the google apps.

So you would recommend the SLiMM rom for me or can i just debloat my actual stock rom?

Thanks for your advice
[Xperia Z3 Compact General] Dadovvv:
Is there any way to enable script to work on other device running same .575 firmware? I think its something to do with iovyroot to skip error "device not supported"

What do u think [MENTION=4688377]russel5[/MENTION] can u clear out, is there any way or not?

Tnx
[Xperia Z3 Compact General] M1chiel:
It depends on your own preferences. SLiMM has some more advanced features (like soft charging and battery saving options), and is based on the newest (beta) stock version. It still has some Sony stuff like the small apps, but you can remove those with the debloat script if you wish (or manually with System App Remover). SLiMM's developer Wajk is really on top of it it and issues regular updates. If you prefer 'simple and stupid' you'd go for a prerooted stock rom (LP or MM). Why not try them both? You can easily revert if you make a back-up in twrp.

To make your choice a little bit more complicated: if you want an almost AOSP-like experience you can also try Sony's Concept rom. It receives regular updates and has a vivid and helpful community on Google+. However if you want root on the Concept rom you must unlock the bootloader. Currently I use Concept with a locked bootloader, so no root access :(. But there is hardly any bloat on it and I simply disabled some of apps I never use, like Google Kiosk and Hangouts. It runs very smoothly (with SLiMM I had some issues with Exchange synchronizations and battery consumption by Google Play Services).
[Xperia Z3 Compact General] mrrflagg:
[MENTION=7614634]Jayzufu[/MENTION] Plus 1 for concept rom. With root+xposed+force doze app it's a great running system. As said though you do need to unlock bootloader. That's the only downside.

[MENTION=4688377]russel5[/MENTION] On topic though, will this be made compatible with the Z3 66xx devices?
[Xperia Z3 Compact General] russel5:
Nope, if device not support then nothing to do with this. And if you want do something with iovyroot you can help developers add new device on github
[Xperia Z3 Compact General] OGSwank:
Are camera features still disabled if you root with this fw?
[Xperia Z3 Compact General] Ministry87:
I tried it yesterday.

I flashed Stock .575 via Flashtool (had some Branded .575 before).

I had to run the Script twice then (one to start the service, one to start flashing after the service is active?).

It worked like a charm! Rebootet into recovery, there I just flashed SuperSu.

Thanks a lot!
[Xperia Z3 Compact General] HearseRider:
No, the OP responded to my question regarding the same (one page 8) and they confirmed that this won't affect the DRM/TA Keys, so camera too won't be affected.

---------- Post added at 11:49 AM ---------- Previous post was at 11:48 AM ----------

Hey, I tried using your .bat file and it gave me the error Device Not Supported. Why is that? If other D5833 users can do it why can't I? Can you please suggest some other way for me to get root?

My only reason to root is to remove all the Sony bloatware from the phone. No other reason. Would really appreciate your advice as I'm very new to rooting.
[Xperia Z3 Compact General] Ministry87:
As russel5 mentioned right in the beginning: D5833 is not supported in any way.

You need to flash some standard D5803 using Flashtool and afterwards you can root using russel5s script.

To use Flashtool, maybe that helps (old, but the procedure is still right):

http://xdaforums.com/showthread.php?t=928343

Maybe another hint: to install flashtool properly, you need to Start Windows 8 and Windows 10 in some mode, where its not checking driver signatures. The video is in Spanish, but you can just follow the pictures:

https://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwi93tvOq5HOAhXkDsAKHY1SCpIQtwIIJjAB&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYAdWKNdwP68&usg=AFQjCNEt6cgn56py5Myk8-3ALi59haPS0Q&sig2=EjHdg9jyHYMR-8q4fsjdrg

Standard .575 D5803 you will find here:

http://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706
[Xperia Z3 Compact General] HearseRider:
Hey, thanks for your reply. I assumed that it rooting wouldn't work directly on MM for D5833, so I just followed the instructions provided on that other thread (http://xdaforums.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343) and downgraded to KitKat firstly, then rooted, and then backed up my TA DRM stuff.

Now just playing around on KitKat for some time, so happy that I could delete all the crap apps from Sony especially the bloody ad infested bogged down the only internal storage accessing app FILE COMMANDER!! I so hated that Sony wouldn't even allow us to use other 3rd party file explorers fully (at least on KK & Lollipop, MM they seemed to have resolved it).

Will upgrade to some latest ROM on some later date now. Installed AdAway & Titanium Backup (through which I uninstalled the bloat and the dastardly File Commander) and looking around for other interesting Root apps. :) First time I rooted a device! :D

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

Hey, thanks for your reply. I assumed that it rooting wouldn't work directly on MM for D5833, so I just followed the instructions provided on that other thread (http://xdaforums.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343) and downgraded to KitKat firstly, then rooted, and then backed up my TA DRM stuff.

Now just playing around on KitKat for some time, so happy that I could delete all the crap apps from Sony especially the bloody ad infested bogged down the only internal storage accessing app FILE COMMANDER!! I so hated that Sony wouldn't even allow us to use other 3rd party file explorers fully (at least on KK & Lollipop, MM they seemed to have resolved it).

Will upgrade to some latest ROM on some later date now. Installed AdAway & Titanium Backup (through which I uninstalled the bloat and the dastardly File Commander) and looking around for other interesting Root apps. :) First time I rooted a device! :D
[Xperia Z3 Compact General] Eule1408:
Ok, error is solved. It was a problem with incorrect installation of adb drivers. After new installation it worked without problems.
[Xperia Z3 Compact General] _Agility_:
Windows XP

This sounds awesome!

I am on Windows XP, will the script work?

My current build is 23.4.A.1.200 and sony offers an update to 23.4.A.1.264 on my display together with the warning, that I cannot go back after this update, where do I get the .575?

my rooted Z1c will not boot any more due to battery failure, so now I am stuck with an unrooted new Z3c

Tahnk you far your help