yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Android Development] Tux111:
There is a thing not completely clear for me. It's possible to hard brick the device if a do something wrong or there is always the possibility to flash stock ROM and save everything?
[Xperia Z3 Android Development] Dobsgw:
Probably the only way you'd hard brick your device with any "user" level software like ROMs and flashtool is if you managed to flash a corrupt or wrong TA partition onto the phone.

So take extra care when you mess around with that.

Otherwise as long as you don't do anything you don't understand you'll be alright. Usually if you can see LEDs on the phone doing stuff or can at least get a boot screen then its likely salvageable.
[Xperia Z3 Android Development] nailyk:
Yes there is a lot of reason to brick our devices. Into the Sony community hard/soft brick are not used at their right signification. To be clear:

wiping boot will cause a brick, you will still be able to access flashing tools: 'soft'brick

messing up with TA partition: 'hard' brick (thats not true, it is still a 'soft' brick as hardware is not damaged, but as there is no known way to get your device back this had been called 'hard'brick).

Your rom need to support FOTAKernel partition extract.

Also this recovery is NOT stock (or derived) rom compatible. Check 'old releases' into the OP to find a compatible one.

Exactly, all 'adb backup' file located on your computer will be corrupt. However this mean backup made from recovery:

The TeamWin team is introducing a new way to backup: usually you hit 'backup' button, it store some of the partition in TWRP folder in the selected storage, this new way make the same backup, but on your computer.
[Xperia Z3 Android Development] rickyrealafa:
im use stock Rom MM .291 xperia z3 D6653 ,, after flash your .img ,, my phone can boot to recovery,, and im backup my rom, after backup, my phone is bootloop. why ? sorry for bad english.
[Xperia Z3 Android Development] Dobsgw:
This recovery cannot be used with stock ROM as it uses /misc partition.

This is stated in the OP.

You will need to either reflash your ROM with flashtool / Emma or flash a Nougat ROM.
[Xperia Z3 Android Development] rickyrealafa:
Ya , and im use old Twrp ,, but my problem , im cannot install root ,, failure extract ramdisk ?
[Xperia Z3 Android Development] nailyk:
2017-10-16 *stock*

This recovery should be stock compatible (single sim only) (md5: 69fc80f11a497172d98de2a3eb04f818)
[Xperia Z3 Android Development] rickyrealafa:
wewewewewewewewewewe
[Xperia Z3 Android Development] maxi16:
One question:

Is it possible to boot with a app into recovery?

I'm asking because I tried some Apps in the Play store but I can only boot in the recovery through the volume and on/off hardware button.

The smartphone starts always directly my custom Rom if I try it with a App from the Play Store.

I'm using Carbon Rom 5.1.

And yes i searched the thread but I don't find a cleary answer.

Just many post regarding to FOTA support but I don't understand it really.

Or must I ask the developer of my Rom?
[Xperia Z3 Android Development] nailyk:
If 'adb reboot recovery' do not work, you can't.

This function is handled by rom maker. Recently we had an issue with it and this need to be fixed.

I advice you to warn you rom maintainer about the issue, then wait a bit for a fix.
[Xperia Z3 Android Development] maxi16:
With 'adb reboot recovery' you mean the way though the PC and with USB debugging enabled right?

Or could I test it with a terminal app through Play store, too?
[Xperia Z3 Android Development] maxi16:
Ok I tested the command.

Don't come in the recovery. The phone did a reboot after I send the command and trys to come into the recovery. No success.

A few seconds after that it makes a second reboot straight to the system. So I will ask the maintainer.
[Xperia Z3 Android Development] nailyk:
this seems to be the fix for that issue (on omnirom).

Please highlight me into your rom thread while posting it.
[Xperia Z3 Android Development] vikivegito:
[MENTION=6979267]nailyk[/MENTION] why twrp new versions are not available for d6633?
[Xperia Z3 Android Development] nailyk:
as we are working on unification, my sources cannot build single or dual independently. Releasing this will cause most breaks than fixes.

A bit more patience is needed :)
[Xperia Z3 Android Development] jrkb:
doesn't really work

I love this development, but unfortunately I cannot successfully boot into twrp.

I have a D6603, when I flash, it gives no errors

$ fastboot flash recovery twrp_leo_2017-10-02.img
sending 'recovery' (13624 KB)...
OKAY [ 0.431s]
writing 'recovery'...
OKAY [ 0.901s]
finished. total time: 1.332s

but then it just boots into normal rom, whatever I try

I remembered that once (with another phone) I could directly boot into twrp from fastboot like that:

$ fastboot boot twrp_leo_2017-10-02.img
downloading 'boot.img'...
OKAY [ 0.429s]
booting...
OKAY [ 0.056s]

but now when I do this, the screen is black (with backlight) and nothing goes.

I just updated my build with the latest available via Emma for me (23.1.A.1.28).

What am I doing wrong?

I know there should be a newer build (.291), but Emma doesn't show it. Could that be the issue?

I also got FlashTool, but I don't couldn't find proper .291 ftf files (I guess you shouldn't trust files which end in *.img.exe ;) )
[Xperia Z3 Android Development] maxi16:
Did you try the on/off and vol- hardware button?

Because Nailyk mentioned that the function boot to recovery through fastboot/App is function that the rom maintainer handled.

I using also this recovery and Carbon Rom 5.1 and the only way to get in the recovery in my case are the hardware button.

I think the stock Rom doesn't support the fastboot function.
[Xperia Z3 Android Development] jrkb:
thx for your reply.

yes, I tried all variations:

(1)

- flash recovery

- turn off phone

- push power

- push vol- repeatedly

-> boots into stock rom

(2)

- flash recovery

- turn off phone

- push power

- push vol+ repeatedly

-> always boots into stock rom

(1)

- flash recovery

- turn off phone

- push power

- push vol- and vol+ repeatedly

-> always boots into stock rom

you may be right, that it doesn't work with fastboot, because when i try

(sudo) fastboot reboot recovery

it only shows me the manpage of fastboot.... not sure where to go on here
[Xperia Z3 Android Development] brianpee:
Try power off, hold volume down, and then press power button.
[Xperia Z3 Android Development] maxi16:
I hold always both buttons after I turn off. For me I came to the recovery, too.

If is vibrate twice it should be go in the recovery. By me the light changes to purple when the recovery started.
[Xperia Z3 Android Development] nailyk:
No need to flash on each attempts ;)

On emma you need to setup something to display all the available rom. See the 'boot pain' guide.

Only using this way (flashing >.200 with emma) you will get the new bootloader.

With the new bootloader, you can boot straight to recovery: shut down (without USB), then hold vol- & power *at the same time*.

If you cannot have the new bootloader (some device did not receive marshmalow, thanks to the mobile operator, you still can use the "old" way:

1. Take the rom you wanna flash, extract the boot.img,
2. take twrp,
3. flash boot boot.img <- mandatory with old bootloader.
4. flash FOTAKernel twrp.img
5. fastboot reboot
6. hit [B]vol-[/B] as soon as light come up.

This 2nd way is not recommended because, for any reason of corrupted boot partition (mod flashing for example), you won't be able to boot into recovery anymore.

P.S. (we choose to disable vol+ long time ago, at the beginning of lineage 14.1, so vol+ while led is up will not work anymore, but still can produce vibrate on some devices).

P.S.2: you will never be able to boot into FOTAKernel recovery with stock rom without replacing the boot.img.
[Xperia Z3 Android Development] jrkb:
guess i was a bit paranoid ;)

thx for your elaborate answer!

It appears I have this bootloader:

LA3.0_L_15.4

Also, my device seems to not have received Marshmallow, so it must have been branded before I bought it.

I followed the bootpain guide, but still 23.1.A.1.28 is the newest I can select.

I'm flashed OmniRom 8.0 following your instructions.

first boot.img, then twrp

(btw, the md5sum is 3df6806c9fcee4b356d7def1b601930d for omni-8.0.0-20171101-z3-nailyk.zip, I hope - it's missing in your guide ;) )

My notification light is unfortunately broken by a Media Markt "repair" guy, so i'm not sure I press vol- at the right time...

Now it only boots until the sony logo shows up and that's it.

It's not surprising that my rom doesn't boot, but recovery would be nice... did I miss something?

can I just flash omnirom with fastboot as well like

fastboot update omni.zip

?
[Xperia Z3 Android Development] nailyk:
No you cant. Rom need to be installed into TWRP, specially omnirom because of the variant script support.

Forget to say one thing into previous post (no idea how to translate this).

With the 'old' boot way (with BL 15.4), while led popup you need to push multiples times on the vol- button, not keep pressed.

As your device do not have light anymore please do:

1. Fash recovery,

2. Flash boot from omni.zip,

3. fastboot reboot

4. As soon as sony logo come keep pushing/releasing volume buttons.

5. Device should vibrate then enter recovery.

P.S. as you do not have the new bootloader, use fastboot flash FOTAKernel twrp.img. The recovery<->FOTAKernel should not exist on your device.
[Xperia Z3 Android Development] jrkb:
awesome!!! I got into twrp, and was able to flash omni + gapps! yesssss

and it booted without issues.

you made my day,

thank you!!!
[Xperia Z3 Android Development] hertsjoatmon:
unlocked the bootloaded then flash this. now stuck in a bootloop :(
[Xperia Z3 Android Development] Dobsgw:
Did you upgrade the bootloader?

If not then you need to also flash a kernel that supports FOTA boot to recovery.

Try Nailyks Omni ROM
[Xperia Z3 Android Development] gsausalito:
Hi:

Can't enter into recovery mode using this recovery (2017-10-02) on a 6603 variant.

I flashed 2017-09-28 (works fine), also flashed 2017-07-27 (works fine too) so there is no hardware button problem.

I can't figure out what's going on.

On version 2017-09-28 (twrp 3.1.1-3) i turn off the phone, push vol- button and, without

releasing it, push power button (phone vibrates) until pink light shows

(phone vibrates again), then enters recovery.

On version 2017-07-27 i do the same and although there is no second vibration, i keep

pressing vol- and power buttons and the phone enters recovery.

On version 2017-10-02 i do the same but there is no second vibration; if i release

buttons, CarbonRom boots, if i keep pressing buttons (no release) CarbonRom boots.

So i do not know what i am doing wrong.

Anyone whith similar issue?

Thanks for your time.
[Xperia Z3 Android Development] Dobsgw:
If I'm right in the latest versions of Carbon ROM you have to boot to recovery from power off on the new bootloader.

Strangest thing is that you are able to get the functionality back by reverting to older TWRP versions.

Maybe try it one more time?

Start with an older version flashed with fastboot, if that works then update it with fastboot and try to boot to TWRP again.

Would be interesting to know if it works normally with Omni ROM as it has been for me. If you don't have time or don't want to then don't worry the main aim is getting it to work with your ROM
[Xperia Z3 Android Development] tinynja98:
Why was it updated on the single but not on the dual sim z3? Or is the updated "single" recovery going to work on my dual z3?
[Xperia Z3 Android Development] gsausalito:
Hi

Tried again, as you advised with the same bad results, last recovery (2017-10-02) does not work in my 6603 phone nor my wife's 6603.

Tried Linage 14.1 and Cyanogenmod 5.1.1 flashed in my phone and Resurrection Remix v5.8.3 in my wif'es phone.

It does not work, at least i think it doesn't work (because i can't enter recovery), using the same combo buttons i use at 2017-09-28 recovery version.

I do not know what to do so i give up.

Thanks for your time.
[Xperia Z3 Android Development] vikivegito:
[MENTION=6979267]nailyk[/MENTION] I can't find my bootloader version using this command

it gives me a blank output :crying:
[Xperia Z3 Android Development] nailyk:
gimme the result of

adb shell cat /proc/cmdline

should be in it.
[Xperia Z3 Android Development] vikivegito:
Thnkx [MENTION=6979267]nailyk[/MENTION] I founded LA3.0_52-2
[Xperia Z3 Android Development] nailyk:
Great you are on the right one!

Happy flashing!
[Xperia Z3 Android Development] vikivegito:
But I tried your new twrp versions it only shows black screen and I am using d6633 and also in omnirom 8.0 key combo not working for twrp only in powermenu works
[Xperia Z3 Android Development] nailyk:
Did you changed anything on rom kernel?

Is your panel an original one?

Do you have adb access while booting with keycombo & balckscreen? If you please

adb shell dmesg > dmesg

adb pull /tmp/recovery.log .

then send me both files.
[Xperia Z3 Android Development] vikivegito:
I didn't changed anything in kernel,but my panel is not original.And yes I have adb access during that blackscreen.But keycombo it doesnt boot into twrp it boots to os.I will upload those files in few minutes
[Xperia Z3 Android Development] therealjcool:
Hey nailyk,

hoping you can help me here. I just spent 5 hours trying to root my Z3, but no luck. I've bricked it several times but thankfully got it revived each time with the Sony Mobile Flasher App (EMMA works as well but seems to only have older images).

Anyway, here goes: You correctly state that TWRP breaks the stock rom. I noticed :P Is there any way I can make this work using the latest stock rom?? Or alternatively, can you recommend some other recovery bootloader that will let me root this f*cking device so I can get rid of all the bloatware, move WhatsApp to SD and so on.

Or, if I have to run some form of custom rom, which is close to stock / recommended?

Thanks in advance!
[Xperia Z3 Android Development] maxi16:
Hey Nailyk any idea when you release the new twrp version (3.2.0)?
[Xperia Z3 Android Development] Technoolli:
Where can I find the download of the twrp 3.1.2-3 for z3 version, I currently ahbe version 3.1.1-3 installed, have taken the link from here but I see no 3.1.2-3?
[Xperia Z3 Android Development] Daniel_Lechu:
Hello,

Is there any plan to update to latest version?. Looks like it has better compatibility with Oreo.

Thanks!!
[Xperia Z3 Android Development] nailyk:
The actual version works fine for O (am using it).

Not able to provide a newer version for now because all the changes in TWRP make it too big for our partition.

If you have any problem with actual version please report (with log) and will attempt to solve.
[Xperia Z3 Android Development] phoenix_1024:
Hello

I have the Resurrection Remix V5.8.5 (Unofficial release) on my Sony D6633

I'm trying to install twrp 3.1.2-3 via fastboot

So, I have used these commands:

fastboot flash recovery twrp_leo.img (I renamed the image file)

fastboot flash FOTAKernel twrp_leo.img

I still cannot enter to TWRP during boot

Also, I saw that I need to flash boot.img. Is it safe?

UPD: I have fixed this problem by myself

Xperia Z3 Dual: TWRP 3.1.1 - 2017/08/25 from [ROM][Z3/DUAL] LineageOS 14.1 [Updated 11/21][UN-OFFICIAL] by xkeita
[Xperia Z3 Android Development] mak8004:
hi my friend!!!

how did you fix the problem?

i did this"fastboot flash FOTAKernel twrp_leo.img "

and when i reboot it to recover twrp it stucks to logo twrp.

do you have any idea?
[Xperia Z3 Android Development] phoenix_1024:
Hi mak8004,

I had downloaded and installed the twrp from xkeita thread.

Twrp was installed via fastboot
[Xperia Z3 Android Development] mak8004:
with the same command?

fastboot flash FOTAKernel ......

---------- Post added at 12:57 AM ---------- Previous post was at 12:42 AM ----------

you were right!!!i finally made it!!!

thanks!!!!!!!!!!!
[Xperia Z3 Android Development] phoenix_1024:
I have tried both commands "FOTAKernel" and "recovery".
[Xperia Z3 Android Development] cmonty14:
Z3 fails to boot into Recovery

I have installed another custom ROM on my device, but now it fails to boot into Recovery.

I can only boot into fastboot.

Then I tried to install "twrp_leo_2017-10-02.img" in fastboot mode:

fastboot flash recovery twrp_leo_2017-10-02.img
target didn't report max-download-size
sending 'recovery' (13624 KB)...
OKAY [ 0.737s]
writing 'recovery'...
OKAY [ 0.901s]
finished. total time: 1.638s

fastboot flash recovery twrp_leo_2017-10-02.img
target didn't report max-download-size
sending 'recovery' (13624 KB)...
OKAY [ 0.706s]
writing 'recovery'...
OKAY [ 0.903s]
finished. total time: 1.609s

No success.

How can I fix this?
[Xperia Z3 Android Development] Grmblprmf:
Is this (https://releases.nailyk.fr/twrp/twrp_z3_2017-11-21.img) an more up to date version than promoted on the first post?
[Xperia Z3 Android Development] nailyk:
2018-03-28 release

Fix Oreo encryption.

Will not boot unless you use the new bootloader ! Dunno what am talking about? Read OP!

Flash as usual:

fastboot flash FOTAKernel twrp.img
[Xperia Z3 Android Development] radoskur:
I cannot install Gapps with this twrp and omni-8.1.0-20180320-z3c-nailyk.zip
[Xperia Z3 Android Development] saedkebbeh:
My bootloader version is

s1_boot_msm8974ac_la3.0_m_3

Is this upgraded?!:confused:
[Xperia Z3 Android Development] nailyk:
The kernel stock doesn't support the 'extract_elf_ramdisk' method. So I suppose you can do that by upgrading your bootloader, but I'm not sure. Otherwise you can use another kernel which support 'extract_elf_ramdisk'.

Edit: Sorry, if it works with volume rockers your kernel already include 'extract_elf_ramdisk'.
[Xperia Z3 Android Development] shoey63:
Actually, in this case, I'm using stock. 264 boot and system (which includes new bootloader), testing your twrp recovery on UB. It works fine using the buttons, just reboot recovery from TWRP doesn't work. Same deal when compiled from Omnirom sources. Thanks anyway,:good:

Edit: It won't fix the issue ,but you may want to compile using https://github.com/omnirom/android_bootable_recovery/tree/android-6.0 sources. Heaps of fixes, and new material design ;)
[Xperia Z3 Android Development] optimumpro:
Your data is encrypted with default password only when you do it within Settings/Security. When you use adb, you bypass default_password, as well as password length restriction and a minimum battery level.

Wiping encryption in TWRP: you should be able to completely wipe encryption if you press cancel instead of entering your boot password, then wipe system, then wipe data and everything else. Making every data wipe destroying encryption is horrible, there is no reason for this, because the only need to have TWRP decrypt your data partition is to be able to change roms without losing encryption. Otherwise, why do you need encryption in TWRP?
[Xperia Z3 Android Development] nailyk:
Sorry I have same issue since I upgrade my bootloader and forgot it. :rolleyes: I think the boot process had change and maybe I need to look further for the new command kernel command line? (I cannot find documentation on this new bootloader)

I'm glad it was useful for you to and you be able to recompile it! I build from cm-12.1 tree because I also work on z3 camera (I found a github with all the stuff and try to make it work but it is really hard for me). Maybe I can make another virtual machine with cm-13 tree. What is you build tree? Is it full or did you use a 'compact' manifest to build only twrp?

Great! I really need to do this!

Except when you lost password :D

I can make backups on my external sd and I'm able to use the cm_updater. Without encryption upgrading is a little harder. I also backup my internal sdcard, sometimes, with tar command. Also I use a lot my phone as a camera, so be able to switch between cm and stock will be a great functionality. A real dual boot with external sd will be awesome!
[Xperia Z3 Android Development] shoey63:
Just change android-5.1 to android-6.0 at the end of omnirom/android/bootable/recovery in your local manifest, delete bootable/recovery, repo sync and rebuild. [MENTION=6979267]nailyk[/MENTION]
[Xperia Z3 Android Development] optimumpro:
If you lose your password, you can still wipe everything by pressing cancel on password prompt and then wipe...
[Xperia Z3 Android Development] nailyk:
After switching to twrp android-6.0 sources, build failed in some device/qcom/common/*.h files, encryption functions. Seems this is not a big trouble (number of arguments and function not declared, maybe just a bad include).
[Xperia Z3 Android Development] shoey63:
And now twrp-3.0.0-0 has been released, but no love for z3, just z3c.

I did my own build of z3 twrp 3.0 from Omni sources. Here is the ramdisk for you to include in your build. View attachment 3636043
[Xperia Z3 Android Development] Black_Eyes:
Can you share please?
[Xperia Z3 Android Development] shoey63:
Have a look at the op from here http://xdaforums.com/z3/development/kernel-ub-t3231710/post63448435#post63448435
[Xperia Z3 Android Development] SdtBarbarossa:
Z3 doesnt get love because thereis no maintainer! are you willing to do it?
[Xperia Z3 Android Development] shoey63:
Not officially. I'll just share my builds when I feel they are useful to other users.
[Xperia Z3 Android Development] nailyk:
Thanks for your information!

Hi deal with a lot of compilation problem (boringssl, f2fs not ported to omni kernel etc...) but finally I switch to an omni 6.0 tree and the twrp 3.0.0-0 release is here. I expect it will work for you too!

I test few thinks: decryption, f2fs, backup, restore. Should be fine :)
[Xperia Z3 Android Development] nailyk:
[MENTION=5075064]optimumpro[/MENTION] are you interested if I try to make a recovery for z1 & z1c from my new omni 6.0 tree?
[Xperia Z3 Android Development] optimumpro:
That would be great, but there is no M for Xperia Z1 and it may never come. And TWRP for LP 5.1.1 does the job...
[Xperia Z3 Android Development] nailyk:
ro.product.device problem

For now device ro.product.device is 'leo' so flashing CM failed :( (and any other zip wich doesn't include 'leo' in device name)

Working on a new release where ro.product.device is 'z3' again.
[Xperia Z3 Android Development] nailyk:
Done and tested. Flashing CM works again. Sorry for inconvenience.
[Xperia Z3 Android Development] nailyk:
twrp 3-0 test honami

Hi,

I build a test recovery for honami (with some configuration changes). Can you tell me if it work before I push my commits please?

Thanks in advance.
[Xperia Z3 Android Development] optimumpro:
As I mentioned before, my setup for vold/cryptfs et all is different from that in Android: I have different iteration numbers as well as 256 bit cipher, instead of 128. So, your recovery can't do anything on my Z1. You'll be better off to post it on Z1 thread and you'll find plenty of people willing to test.