[Sony Cross-Device General] o-l-a-v:
TWRP v2.8.6.0 (fota) with F2FS for: Z1, Z1c, Z2, Z3, Z3c, TabZ3c(LTE&WIFI)

Thanks to funiewski who inspired me/ teached me how to repack Z2 twrp to work with z1 and z1c.

This ain't my work! I've just been cooking with projects made by others. Thank TeamWin, [NUT], creator of Android Image Kitchen, and others :)

Use at your own risk!​

Seems like fota TWRP for sirius (Z2) will boot on all these phones: Z1, Z1c, Z2 (offcourse), Z3, Z3c and TabletZ3c (both LTE and WIFI version)!

When repacked with res/ and default.prop from NUTs dual recovery, we got TWRP for each specific device.

Download folder:

Edit 25. september 2021: Please consider using newer recoveries than these old ones.

Officially supported Sony devices: https://twrp.me/Devices/Sony/

Includes Z1 (honami), Z2 (sirius), Z3 Compact (z3c), Z3 Tablet Compact Wi-Fi (scorpion_windy)

Unofficial

Z1 Compact (amami), by 115ek: https://xdaforums.com/t/3960699/

Z1 (honami), by daviid99: https://xdaforums.com/t/4316409/

If you are still interested in my old frankenstein builds:

MEGA.co.nz

https://mega.co.nz/#F!fh5hhL5L!xso7GESQ9AR556_nswFfTw

Google Drive

https://drive.google.com/drive/fold...ourcekey=0-0_o2xNplFlKcnt4IaxrUdg&usp=sharing

What is this?

This is a repacked TWRP from Z2 sirius, where I have:

- Added f2fs support by adding mkfs.f2fs and fsck.f2fs from blastagators TWRP.

- Shrinked images in twres/images folder. It wouldn't boot on my Z1c otherwise.

- Switched res folder and default.prop from respective ones from [NUT]s XZDualRecovery

More info? See recepy down below

Works for?

ONLY: Unlocked bootloader, AOSP based ROMs with support for booting a recovery from the FOTA partition.

Stock ROM, locked or unlocked bootloader: See [NUT]s project: http://nut.xperia-files.com/

How to install?

There are many ways in doing so. Fastboot: "fastboot flash recovery nameofrecovery.img" is the easiest IMO :)

Bugs?

Me and others have tested it, only bug atm seems to be:

- Can't adjust screen brightness in TWRP

Report if you find anything :)

Can you fix bugs?

Most probably not. If you find bugs regarding layout, images and stuff like that: Maybe.

This is not compiled, this is just repacked using Android Image Kitchen.

Bugs in this recovery will most probably be bugs that all TWRP builds share.

f2fs does not work!!

Yes it does. The recovery will format any partition to f2fs for you. But you need a compitable kernel to use it. Don't ask me for compitable kernels, google it.

Migrate to f2fs: http://xdaforums.com/showthread.php?t=3004755

How to use f2fs on Sony Devices: http://xdaforums.com/showthread.php?t=3056740

Recepy

Just repacking the Z2 recovery with f2fs-files will make a un-bootable IMG. I believe this is due to some limitations regarding size or something.

In order to get the file size down I made a new, simple "curtain.jpg". Plain black with the text "TWRP". Kind of clean and simplistic when I think about it ;) And I found out that these PNGs can be compressed without getting grapchical glitches:

- file.png
- folder.png
- keyboard (all)
- medium-button.png
- menu-button.png
- slideout.png
- slider-touch.png
- slider.png
- unlock.png

How I did it:

- DL TWRP for Z2 (sirius), Android Image Kitchen, [NUT]s XZDualRecovery flashable for your device, and blastagators TWRP for LG G2

- Unpack blastergator TWRP with Android Image Kitchen. (drag'n'drop .IMG on to the "unpack.bat")

- In ramdisk/sbin "steal" these two files: mkfs.f2fs and fsck.f2fs. Store them some place safe.

- Cleanup Android Image Kitchen folder. (cleanup.bat)

- Open XZDualRecovery with 7zip. Go to system/bin. Open the twrp file. "Steal" the res/ folder and the default.prop file. Store it somewhere safe.

- Unpack TWRP for Z2 with Android Image Kitchen

- Change images in ramdisk/twres/images with these (they are compressed. Unless you use them the img won't boot: https://mega.co.nz/#!e9g1TRCI!vmGsPqVdqSnpcW6G8PC_saLLyyfqTL-1FhjQmggVvxA)

- Add mkfs.f2fs and fsck.f2fs to ramdisk/sbin.

- Replace res folder and default.prop with the ones from XZDualRecovery

- Repack with "Android Image Kitchen". (Double click on "repack.bat")

Links:

Z1 (Honami): Official TWRP - http://xdaforums.com/showthread.php?t=3234877 | http://teamw.in/devices/sonyxperiaz1.html

Z1 (Amami) : Compiled TWRP with f2fs by hawkeyexp - http://xdaforums.com/showthread.php?t=3173411

Z2 (Sirius): Official TWRP - http://xdaforums.com/showthread.php?t=2772879 | http://teamw.in/devices/sonyxperiaz2.html

Z3c: Official TWRP - http://teamw.in/devices/sonyxperiaz3compact.html

Z3 Tablet (Scorpion_Windy): Official TWRP: http://teamw.in/devices/sonyxperiaz3tabetcompact.html