yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 Edge Questions and Answers] Cosmic Blue:
Follow developers instructions whch require you to flash boot loader and modem before rom.

INSTALLATION FOR MARSHMALLOW USER:

1.Download Rom, Bootloader, Modem and TWRP Recovery for your variant

2.Reboot in Download Mode and flash with Odin Twrp Recovery

3.Reboot in Recovery and Format Data (this remove all your data), plug usb cable and copy the Rom in External SDCARD then reboot in Download Mode

4.In Odin uncheck autoreboot and Flash Bootloader (BL) and Modem (CP)

5.Reboot in Recovery and flash the ROM from external SDCARD and Follow AROMA Installer menu selecting Full Wipe

6.Reboot and Enjoy King OF NOUGAT ROM
[Android Q&A, Help & Troubleshooting] 8128:
I'm looking for help in gaining root access to my phone. I have searched the forums and while this device already has it's own thread, it seems as though the info provided is relevant only to those with Mediatek processors (?) and mine has a Qualcomm Snapdragon chipset. I've tried pretty much every root application available (both for pc and .apk) and none have successfully rooted my device or even achieved temp root. I am open to installing custom recovery +SuperSu and have done so on previous devices, however I'm completely lost on this one as Fastboot and anything resembling a bootloader menu are apparently hidden.

adb reboot bootloader reboots the phone normally, shows Alcatel splash screen then home screen

fastboot hangs at <waiting for any device>

Powering up the device while holding Vol up/down boots into a screen with various options (factory data reset, apply update from ADB, etc) but no fastboot mode.

Is there a way for me to root this device? Why do all the root applications fail?
[Android Q&A, Help & Troubleshooting] mentalityx:
+2
[Sony Cross-Device General] GreyLeshy:
Team Win Recovery Project

for Sony Xperia Z5 (Sumire), Xperia Z5 Compact (Suzuran), Xperia Z3+ (Ivy)​

REQUIREMENT:

- Unlocked bootloader

FEATURES:

- MTP support

- USB OTG storage support

- Covers most partitions for nandroid backups

- ADB root

Not working:

- Decryption

Download: Dropbox

Installation via the bootloader (Platform-tools (adb & fastboot))

fastboot flash recovery recovery.img

Running TWRP:

- Turn your device off, wait 5 seconds.

- At the same time, press the Power button and Volume down until your device vibrates.

- Quickly release the Power button, but keep pressing Volume down.

- When you see the screen shown in the image below, release Volume down. You have now successfully entered recovery mode.

Last Updated: 19-03-2019: TWRP 3.2.3

DISCLAIMER:

Nobody bears responsibility for any damage caused to your device except you.

Source(new): kitakami

TWRP site
[Sony Cross-Device General] cioce:
Tested on Z5 compact and phone goes in boot loop with Sony logo, back to TWRP_3.0.2-0_Z5C_All-mounts-working_recovery.img
[Sony Cross-Device General] GreyLeshy:
To start, Turn off the phone, wait for 5 seconds, then hold down the power key and the volume down key as soon as the device starts on, release the keys and wait for the launch of the recovery, everything.

So you run a recovery?

You flash a recovery Suzuran?
[Sony Cross-Device General] shahidaffan:
Work Perfect on Z5 dsds (E6683)

It do boot when holding power button + V down button

Btw i doesn't show boot logo (Sony) instead notification color changes and directly boot to recovery and every function work perfect. :D

Screenshot 3.1.0 https://drive.google.com/file/d/0BwIF7WkNkU7HXzJPRW42RndJUTA/view?usp=drivesdk

But when boot normally and press Volume up after boot logo(Sony) notification color changes and boot to old recovery (3.0.2) :confused: btw i m on SlimX Rom

old recovery 3.0.2 https://drive.google.com/file/d/0BwIF7WkNkU7Hc0g5c3BmZDBaMU0/view?usp=drivesdk :D
[Sony Cross-Device General] GreyLeshy:
So it should be, you have recovery 3.0.2 built into kernel using rootkernel.
[Sony Cross-Device General] devilmaycry2020:
Can you integrated to rootkernel tool?
[Sony Cross-Device General] GreyLeshy:
About integration TWRP v3.1.0 ask in the subject rootkernel. I can't do this, there are a lot of dependencies.
[Sony Cross-Device General] Gewiz:
Thx, works fine on my Z5compact
[Sony Cross-Device General] sceryavuz:
[MENTION=8041676]samavar89[/MENTION]

It is for AOSP (from source) will this work for stock? You didn't mention this.

I loked into source, this is for E6653 and support 83. Will it work with E6603, E6633?
[Sony Cross-Device General] GreyLeshy:
Recovery works regardless of firmware. The firmware can be any starting from MM.

On sonyxperiadev no source for E6603, E6633 and I don't guarantee the work on these devices. To say exactly works recovery or not, need to test.
[Sony Cross-Device General] GreyLeshy:
delete
[Sony Cross-Device General] the_brad:
Maybe I am too stupid, but I can't get into recovery. I'm on Z5 Prem, E6853.

I press both buttons, power an vol. down, then I release the powerbutton after it vibrates once. I keep holding vol. down, notification LED lights in purple for about a second, it vibrates a second time, the screen backlight turns on, screen stays black. After a few more seconds, the backlight turns off.

What can I do?
[Sony Cross-Device General] Tilman:
The same happens to me too! I use E6883, for now I'm on TWRP 3.0.2! Hope someone can get this working.
[Sony Cross-Device General] GreyLeshy:
New and previous recovery You have won't start?

Most likely the kernel is not properly configured, I had similar on the Z5C.
[Sony Cross-Device General] the_brad:
No, none of them worked. I use stock kernel, patched with rootkernel. Should I try again, without integrating TWRP in kernel?
[Sony Cross-Device General] GreyLeshy:
It is not necessary, since rootkernel integrates TWRP into the built-in kernel.

In my recovery already built in the kernel.
[Sony Cross-Device General] the_brad:
Anyone here, who could give me a hint, where I can find a working TWRP 3.0.2 for Z5P? I would like to try this to make sure, it isn't my device that's faulty.
[Sony Cross-Device General] GreyLeshy:
the_brad, If you have a saved "TA" partition, then you can integrate my recovery with the built-in kernel using TA recovery. Integration will lose part of the functionality, the modules will not be copied and the decryption of the data will not work.

Start: after turning on the phone, press the volume increase button and as soon as the indicator lights up, immediately remove the finger from the button. At this point, the indicator will change color and start.
[Sony Cross-Device General] MysticEnforcer:
hi,

i tried your recovery on my z5 with lastest mm 32.2.A.5.11 & androplus kernel v42 &

it doesn't work.

after flashing i type fastboot reboot in cmd,

led turns blue (for tap2recovery), then orange (for volume button), then yellow (entering recovery) (this colors are from androplus twrp :confused:),

then led turns into purple/vibrate and boot again.

[MENTION=817586]the_brad[/MENTION],

guck mal hier rein, falls du es noch brauchst ;)

das twrp fürs normale z5 sollte beim premium auch ohne probleme funktionieren

https://kernel.andro.plus/kitakami_r2.html

ich hab diese version drauf twrp-3.0.2-0-E6653-20160504.img

die findest du, wenn du auf der seite von androplus auf xperia z5 klickst

[MENTION=5169444]AndroPlus[/MENTION],

can you help a bit
[Sony Cross-Device General] sceryavuz:
My old twrp boot-up. 3.1 not work for me. E6633
[Sony Cross-Device General] 4Strings:
Never mind. Got it working. I had to reflash stock Nougat (instead of Lollipop, which I downgraded to in order to backup my TA partition). Once I was back on 7.1.1, I fastboot flashed TWRP 3.2.1 and booted into recovery without issue. Installed LineageOS and everything is running as it should.
[Sony Cross-Device General] SysGhost:
(Answering anyway for others)

Xperia series doesn't have any recovery partition. Instead, the FOTAKernel partition is used. So the command is updated accordingly:

fastboot flash FOTAKernel recovery.img
[Sony Cross-Device General] Mondor1979:
Are you serious?! Try it on stock z5 rom and get your error message as there is no such partition on 2015 year device.
[Sony Cross-Device General] lindsche:
[MENTION=8041676]GreyLeshy[/MENTION]: i'm also wondering if there will be any decryption functionality in the future. do you have any plans to implement this and could i support you in any way? what are the main barriers for an implementation? (it would be maybe already great if you could direct my in the right direction on what would be a next step for an implementation!)

thanks for your greaet work on the recovery, i hope we'll be able to keep our z5's still alive for some more time :)
[Sony Cross-Device General] The Lepricon:
I just bought a Z5 Compact, running Android 5.1.1

I unlocked the bootloader and flashed TWRP recovery. But, I cannot boot into recovery. Followed the directions (Power button + Vol Down, after vibrate release Power button and keep holding Vol down) but it just boots normally into Android.

What am I doing wrong?
[Sony Cross-Device General] trax7:
Flash a custom kernel.
[Sony Cross-Device General] The Lepricon:
Thanks.

I actually flashed Android 7 using Emma and that fixed it.
[Sony Cross-Device General] Nazo:
I've had problems with multiple Z5Cs until I flashed to the latest with Emma. In particular the modem really really needs to be updated. The old (sadly now broken) one shipped with a low system version on it, but the new one came with 7.1.1 and I allowed it to do automatic updates and despite this I still had to manually flash to get any service at all. (It's all world-wide GSM standards, so I really don't understand what is going on with that.) I forgot what they were, but I had problems with a few other things on the old one before I did that (with this one I didn't even bother going to a third party ROM until thoroughly testing the hardware via stock, just in case.)

Anyway, thanks very much to the author for maintaining a TWRP for the Z5C. May I ask: why isn't this in the official TWRP system? I'm planning to hold onto this phone for quite a while if at all physically possible and it would be nice if it had autobuilds as everyone surely abandons it for at least the basic improvements and security updates (up until the point it can no longer autobuild due to major changes anyway.) I am coming from a Z3C (which super-ironically is the exact opposite -- no official LineageOS build, but official TWRP builds) and have seen firsthand what happens when there is no official support (though thankfully some nice people are doing autobuilds of unofficial ports. A few bugs creep in along the way though sadly.)

It may not be a big deal -- after all, it kind of looks like LineageOS has abandoned it and is down to autobuilds now anyway (so likely no v15 support) so I suspect the likelihood of actually requiring a newer TWRP than the current isn't all that high anyway, but I am at least curious. I'm mostly just hoping I can keep maintaining the most basic of security patches (though hopefully we won't be seeing another Qualcomm or Stagefright style issue -- fingers crossed!) so it likely won't matter a lot. I realize that as a general rule of thumb the smartphone market considers anything more than ~2 years to be horrendously old (for the record everything runs smooth and snappy on this thing still if you don't bog the OS down with tons of bloat!)
[Sony Cross-Device General] trisolaris:
Hi GreyLeshy,

I have seen your update notice on the page. Are there any special changes to the last version?

Thanks!
[Sony Cross-Device General] GreyLeshy:
No.

Updated build for Z3+/Z5.
[Sony Cross-Device General] ammaralidj:
Can i use this on my Z5 Compact docomo (SO-02H)???
[Sony Cross-Device General] dottnick:
Please, i'm desperate, could someone help me?

I have a Sony Xperia Z3+ (single sim) with the latest Stock Nougat 7.1.1 Rom (32.4.A.1.54), unlocked bootloader, i'm tryign to flash this recovery multiple times with multiple methods, nothing seems to work...

i've flashed the *.img with

fastboot flash recovery recovery.img

turned off then turned on with "pwr + vol+" pressed and nothing shows up,

then i've tried with

fastboot flash FOTAKernel recovery.img

turned off then turned on with "pwr + vol-" pressed and nothing shows up,

I've tried to flash the recovery, as i read inanother thread, on the boot partition and then i've obtained black screen, fortunately i was capable to boot in flashmode and restore to the stock rom...

Nothing seems to work, what i can do?
[Sony Cross-Device General] plusminus_:
Is your bootloader already unlocked?

It may be worth trying a different or older recovery, such as one of these:

https://xdaforums.com/t/twrp-3-2-3-unofficial-for-z3-z4.3876389/post-78555189

https://xdaforums.com/t/recovery-twrp-v3-1-1-1-with-full-encryption-support-2018-03-04.3564016/
[Sony Cross-Device General] Johncoool:
It seems that it is different on Z5. All worked normally on my Z1 compact.

Anyway, I installed the recovery but when I try to boot into recovery mode it just goes back to the O/S.

Can someone please list the steps that you used on Z5C or Z5 should be the same that worked for you?
[Sony Cross-Device General] Johncoool:
I tried some of the suggestions above but did not work for me. I used Emma to flash the device a few months ago because I have dead zone on the touch screen and wanted to see if it would solve it but it did not and it changed the O/S from 7 to Lollipop, I tried it again yesterday and it did the same thing.
[Sony Cross-Device General] Johncoool:
I found Android 7 ROM for my device and flashed the ROM VIA the Sony mobile flash tool and I have Nougat now but It still does not work when I flash the new recovery.

I tested with reset to factory and it loaded the Android recover and not TWRP. I also tried the FOTAKernel command. All show that they are working but it is not working.

So the flashing is failing somewhere.
[Sony Cross-Device General] Johncoool:
The Sony Flashtool has an option to flash the TWRP recovery and it worked.

It did not work from ADB but it did from the other Sony Flash tools.
[Sony Cross-Device General] mrrocketdog:
thanks for your updates/reporting @johncool. i am sure this will help out other users.:good:
[Sony Cross-Device General] Johncoool:
This is a full update about the progress. The goal was to install custom rom and to Root it and I managed to install Android 11 and root it with Magidsk.

The TWRP from this thread was not able to see my SD card. So I tried a few others until I found one that worked well.

There is one issue and it was that once I install the TWRP using the "Sony mobile flash tool by Androxyde" then the phone won't boot into the system anymore and have to install a custom ROM. Then After installing a Custom ROM I can't access the recovery anymore. So it is an either or situation.

This is good enough for my needs but I will try one more thing and that is to install a custom kernel to see if it will keep the TWRP recovery as well and I will update here.
[Sony Cross-Device General] Johncoool:
I found 7 custom kernels for this device but all of them gave the same result. The TWRP does not get deleted but the flashed firmware gets stuck on the boot logo of the ROM.

Will try other ROMs to see if it would be any different but U doubt it because it worked without the custom Kernel.
[Sony Cross-Device General] Johncoool:
I did get the phone to still have TWRP recovery even after flashing the ROM and without using a custom Kernel. There are several custom ROMs for this device. Some might work with it and some might not with this method. The rest will work but it will not keep the TWRP on the device.

In the below post you will find the steps and the links for the requirements using ADB platform.

These steps are for the Sony Xperia Z5 compact E5803.

This method will corrupt the system so you will need to have a custom ROM on the SD card for flashing or maybe you can do it with a zip stock ROM.

If a custom ROM does not work then in TWRP go to wipe and format data before trying the below suggestion.

To get the device to work with any custom ROM in the below post but without keeping the TWRP recovery. Then do the same below steps but skipping step number 6 and booting up phone normally. This needs to be done on stock ROM and recovery only.
[Sony Cross-Device General] Johncoool:
Not all issues can be solved. I have dead zones on my Xperia Z5c and I tried flashing it back to stock ROM and there was no use.

No fear as long as your are using a Sony Xperia. and the bootloader is unlocked.

Is the bootloader unlocked? If not. Are you able to reach the phone app?
[Sony Cross-Device General] Johncoool:
I think the only chance you have is Emma.

It might solve the issue for you.

https://developer.sony.com/develop/open-devices/get-started/flash-tool/download-flash-tool/

Video:

Let me know how it goes.
[Sony Cross-Device General] MegaSharkXDA:
Bootloader is unlocked.
[Sony Cross-Device General] MegaSharkXDA:
If I understood correctly, Emma still needs the phone to be able enter fastboot / flash modes (mine isn't).

Installed Emma and it doesn't recognize the phone when plugged in. Windows still detects a device in Device Manager, listed as "Other devices / QUSB_BULK”
[Sony Cross-Device General] MegaSharkXDA:
Oh, I'm using a Sony Xperia, bootloader is unlocked, and I'm fearing the worst, that's for sure.

Bootloader is unlocked.
[Sony Cross-Device General] Johncoool:
Did you install phone drivers before your problem started?

I think that the Emma program is the last option when phone is bricked.

I will connect my phone to double check the steps. It is how I solve my issues when I brick my phone but you must have drives installed. Some drivers need to be installed while driver signature is off, not sure if this applies to your issue as well.

I was able to unbrick my Z1 and Z5 with Emma. So don't give up hope just yet.
[Sony Cross-Device General] MegaSharkXDA:
Yes, and device was correctly recognized. But now it only shows up as QUSB_BULK

Theoretically EDL is the last option but I'm clueless how to flash a firmware in EDL
[Sony Cross-Device General] Johncoool:
I will P.M. you here for faster responses to get you issue resolved even quicker.
[Sony Cross-Device General] MegaSharkXDA:
Just an FYI to all of you out there, my phone never hasn't come back to life.

I HEAVILY DISCOURAGE even trying to attempt to install TWRP 3.5.2.
[Sony Cross-Device General] goRt:
Process that works for me is:

Power phone off and wait 5 secs

Power on and volume down, then release

Wait for purple light and vibrate, press volume down

Wait 25s and twrp 3.10 appears.

Please report back success or otherwise.
[Sony Cross-Device General] GreyLeshy:
Install recovery through fastboot.

Installation via the terminal:

su
dd if=/storage/emulated/0/fotakernel.img of=/dev/block/bootdevice/by-name/FOTAKernel

Recovery does not depend on the firmware and the installed kernel.

As You launch recovery? What happens at startup?
[Sony Cross-Device General] Tilman:
I tried your recovery for E6883, after the purple led, the backlight is lit up & the device vibrates wherever I touch, but I can't see anything, its all black, could you look into it? For now I'm on TWRP-3.0.2. I'm on Nougat btw.
[Sony Cross-Device General] GreyLeshy:
I previously wrote, the black screen is an incorrectly configured kernel in the recovery.

The old recovery folder with kernel from Sony. If recovery with kernel from Sony also doesn't work, then I need to investigate further.

Please lay out a working recovery you use.
[Sony Cross-Device General] Tilman:
Well I use stock kernel for now & I use TWRP 3.0.2 provided by AndroPlus for the Z5 & it works just fine.
[Sony Cross-Device General] GreyLeshy:
Posted beta to Z5, check. beta

Recovery will probably be launched the same way it was run on the recovery AndroPlus.
[Sony Cross-Device General] Tilman:
Unfortunately none of em worked.
[Sony Cross-Device General] sceryavuz:
I tried, no luck. Boot-up old recovery 3.0.2
[Sony Cross-Device General] the_brad:
Danke dir, das habe ich nochmal probiert, auch kein Erfolg. Ich komme derzeit auch mit einem "alten" 3.0.2er klar [emoji6]

For all others: tried his method, still no luck. Will stick with 3.0.2 for now.
[Sony Cross-Device General] sceryavuz:
It works now.

Very different start..

Volume Down + Power -> 2 seconds (vibrate) NOT RELEASE BUTTON

After 5-10 seconds -> led opened (pink) -> RELEASE now, then phone will restart into TWRP

[MENTION=8041676]samavar89[/MENTION] Thanks..
[Sony Cross-Device General] s.hossein:
What about SD card on twrp 3.1.0?can twrp read sdcard?
[Sony Cross-Device General] sceryavuz:
I have 64GB sdcard and 38GB is full. I did not try, wiping sd card possible :eek:

USB OTG works without any issues. :fingers-crossed:

Tried, sdcard not detected TWRP 3.1.0.
[Sony Cross-Device General] GreyLeshy:
Memory card and USB OTG work in recovery.
[Sony Cross-Device General] GreyLeshy:
Weird, what's the address to mount the memory card and what is your phone model? Please, make a screenshots.
[Sony Cross-Device General] s.hossein:
In dual sim variants (E6633/83) sdcard not detected by twrp.
[Sony Cross-Device General] GreyLeshy:
Please provide a screenshot of the ' where is mounted the memory card.

Recovery > Advanced > File Manager

The default address for a memory card: /dev/block/platform/soc.0/f98a4900.sdhci/mmc*
[Sony Cross-Device General] sceryavuz:
E6633
[Sony Cross-Device General] sceryavuz:
Other SS
[Sony Cross-Device General] GreyLeshy:
Screenshots built-in memory: f9824900.sdhci

The screenshot shows that the recovery does not see the memory card.

If recovery saw the mount point, it would have appeared at the address: /dev/block/platform/soc.0/***

Put the log from recovery, I forgot to mention it.
[Sony Cross-Device General] sceryavuz:
Here it is, thanks for your effort.
[Sony Cross-Device General] GreyLeshy:
I noticed that you have TWRP installed old, install new. In the new recovery installed fresh kernel.
[Sony Cross-Device General] sceryavuz:
Old, installed 3.1.0 z5 recovery.img?

Where is the newer build?
[Sony Cross-Device General] GreyLeshy:
You have recovery installed from folder OLD.

Install recovery from root folder Z5.
[Sony Cross-Device General] sceryavuz:
I installed from root folder not old.
[Sony Cross-Device General] kistigun:
Could you compile twrp 3.1.0 for Xperia X?
[Sony Cross-Device General] GreyLeshy:
Strange, the log indicates otherwise. While unpacking, I installed everything in order.

In this case recovery need to recompile to compile the kernel, it will take time.
[Sony Cross-Device General] GreyLeshy:
No, because I don't have this device. Recovery is easy to compile. Debugging without a device is complicated ...
[Sony Cross-Device General] ajdee:
Could you compile twrp 3.1.0

Could you compile twrp 3.1.0 for Xperia Z
[Sony Cross-Device General] torjohron:
z5c

not working, could you make a zip?
[Sony Cross-Device General] GreyLeshy:
Sorry, no, see post above.
[Sony Cross-Device General] GreyLeshy:
What is your model? I have an E5823, the recovery works fine.
[Sony Cross-Device General] tommy1616:
This twrp can't run in android 6.0.1?

My devices is E6853

But TWRP is black screen when I into it.
[Sony Cross-Device General] GreyLeshy:
Recovery works on any firmware from MM.

I'm sorry that You have a black screen. Black screen means that the kernel is not properly configured at compile time. In the OLD folder is recovery with a kernel from Sony, try it.

Random edit config kernel will not work, I need the device but I have no this device.
[Sony Cross-Device General] the_brad:
Checked both of the files currently on Dropbox for E6853, none of them works. Both seem to load everything fine but the screen stays black. When I tap anything, the device vibrates...

Is there anything, I can provide to help you (except my devices ;))?
[Sony Cross-Device General] GreyLeshy:
Now I am working on decryption (priority), then I will deal with the solution to the black screen. A temporary solution for You is to put recovery into the kernel using the restoration TA.
[Sony Cross-Device General] GreyLeshy:
Updated the main recovery, and also added a test recovery for Z5 and Z5P, check.