[Flashable Zips][Tools] Stock Components as Flashable ZIPs and other goodies - Xperia SP General

Introduction & Notes
Hello, I have created flashable zips containing the stock things for use with our Xperia SP. I used @MrSteve555's antique tutorial on how to package an ftf file into flashable zips.
I also made other might be useful zips that have each of their own purposes for those who wants it. Those zips are listed in the Addons Zip post.
As usual, I am not responsible for any damages caused on your SP. Flashing these are completely your choice and did I even forced you to do so? If you need help, just reply in the thread. :angel: As much as this might scare you, don't worry, it should work fine on your device
All zips are taken from FTFs that are not carrier-locked (thus the name Customised). Since the C5306 is a quite rare variant, the only version I can find that is not carrier-locked is the .205.
Steps
What you should do is choose the respective components that you want to flash to your phone. This will ultimately replaces the old one. Say for example, if you want to have the stock fotakernel, all you need to do is to flash the "fotakernel" zip. This will override any previous modifications that you have made on that partition such as custom recoveries.
Done.
Notes & Warnings
Warning!​
The files are exclusive for its Xperia SP model. Do not attempt to take the risk in flashing other version for your Xperia SP model.
The stock kernel is not to be flashed if you are running a custom ROM! (yes, you can still safely flash FOTAKernel and RIL components without any harm)
Note!​
Flashing the zips via Cyanogen Recovery is now possible. The zips are signed.
Requirements
Knows how to flash ZIPs via recovery
Knows what to flash
Acknowledged the disclaimer above
Components
These are the partitions that I have extracted:
boot
fotakernel
elabel *
modemst1 *
modemst2 *
fsg *
I didn't include the "system.img" of the stock ROM. If you intent to use Stock ROM, please consider FlashTool method instead.
* I have combined these 4 components in a single zip as they serve the same purpose: RIL (network)
Purpose of each zip files
c530x-stock-fota.zip - This will replace your current fotakernel partition with the stock one. Any custom recoveries that you have flashed using Rashr will ultimately gone.
c530x-stock-kernel.zip - This will replace your current boot partition and the kernel with the stock one. Any custom kernel that you hace flashed will be replaced.
c530x-stock-ril.zip - This will flash the stock RIL components.
Choose your Xperia SP model
This will bring you to the respective posts that contains respective files for your respective model of your Xperia SP.
C5303
C5302
C5306
Alternative install method for terminal enthusiasts
You can extract the zip and "dd" the img to the respective directories in /dev. This section is for terminal enthusiasts so I assume that you guys know where is this located and also knows what the hell is "dd". I suggest for the "dd" to use read block of 4096 for faster flashing process.
Example terminal command:
Code:
dd if='Kernel.elf' of='/dev/block/platform/msm_sdcc.1/by-name/Kernel' bs=4096
Here is the list for reference:
Kernel.elf ----> /dev/block/platform/msm_sdcc.1/by-name/Kernel
FOTAKernel.elf ----> /dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
LTALabel.ext4 ----> /dev/block/platform/msm_sdcc.1/by-name/LTALabel
modemst1.img ----> /dev/block/platform/msm_sdcc.1/by-name/modemst1
modemst2.img ----> /dev/block/platform/msm_sdcc.1/by-name/modemst2
fsg.img ----> /dev/block/platform/msm_sdcc.1/by-name/fsg
Click to expand...
Click to collapse
One small request from me
If this in some ways helped you, consider thanking this main post Your thank can hugely motivates me in contributing more!

C5303
This section is for the the C5303 model only
NOTES
Please read the main post if you haven't read them!
For this model, I have used Customised Singapore 12.1.A.1.207 / R2B CDA 1272-4881
Whole Folder [Google Drive]
FOTAKernel c5303-stock-fota [Download]
Kernel c5303-stock-kernel [Download]
elabel, modemst1, modemst2, fsg combined c5303-stock-ril [Download]

C5302
This section is for the the C5302 model only
NOTES
Please read the main post if you haven't read them!
For this model, I have used Customised Singapore 12.1.A.1.207 / R2B CDA 1272-3116
Whole Folder [Google Drive]
FOTAKernel c5302-stock-fota [Download]
Kernel c5302-stock-kernel [Download]
elabel, modemst1, modemst2, fsg combined c5302-stock-ril [Download]

C5306
This section is for the the C5306 model only
Please read the main post if you haven't read them!
NOTES
Please read the main post if you haven't read them!
For this model, I have used Customised US 12.1.A.1.205 / R3B CDA 1272-4529
Whole Folder [Google Drive]
FOTAKernel c5306-stock-fota [Download]
Kernel c5306-stock-kernel [Download]
elabel, modemst1, modemst2, fsg combined c5306-stock-ril [Download]

Addons Zip
Unrelated flashable zips that might be useful
Folder for Downloads​
AdAway Generated Hosts [4.1+] *
[ Download ] Replaces the standard hosts file in /system/etc/hosts with the one generated by AdAway. Could ease your life and save yourself a reboot if you flash this after flashing an update to your ROM. This zip file will get updated when there is a new hosts file update by AdAway. You can check by looking at the text file's name from within the zip file).
ViPER4Android [5.0+] *
[ Download ] This will flash ViPER4Android as a system app. It doesn't end there, it will also push an supolicy that enables you to use V4A with an Enforcing SELinux, it will install the drivers automatically for you, it will remove AudioFX, and all of these will persist on a ROM update (aka dirty flash)! Thanks to the help of @Tomoms, @Arvind7352, @shavendum, @Zenith and @akashsaini7 . Without their help this wouldn't probably happen at all
Android N Emojis [5.0+] *
[ Download ] This will flash the Android N emoji support to your current Andorid version. Note, you can only display the new unicode 9 emojis on the device (no more squares), to actually write them, you will need a keyboard that can already write the new emojis (which most still aren't). Should be compatible with Lollipop and newer, and not for KitKat and below. Tested on Marshmallow.
Remove AudioFX [5.0+] *
[ Download ] Removes AudioFX from your CM-based custom ROM to make way for your preferred sound mod. No more hassle to freeze AudioFX using TiB (or any other freezing tool)
Persisting Walkman [5.0 - 5.1] *
[ Download ] This will flash a file into addon.d folder to make sure that your Walkman and sound effects stays on the ROM when you dirty flash an update. This flashable zip however only compatible with [port][LP] Xperia Sound enhancement by @ankurjn364. Note that this port is only for Lollipop ROMs.
Xperia SP Boot Animation [4.1+] *
[ Download ] Get yourself the original Xperia SP Boot Animation!
Xperia Z5 Boot Animation [4.1+] *
[ Download ] Get yourself an Xperia Z5 Boot Animation! Thanks to @xkeita for porting the Xperia Z5 Boot Animation, especially for creating it for the 720p screen! Please leave a thank to xkeita on the original thread: Xperia Z5 bootanimation for Xperias!
Xperia X Boot Animation [4.1+] *
[ Download ] Get yourself an Xperia X Boot Animation! Thanks to @chitshiv for porting the Xperia X Boot Animation, especially for creating it for the 720p screen! Please leave a thank to chitshiv on the original thread: [MOD] Xperia X Series Bootanimation
* Note
The addons with the star means that the zips will push a backup script into the addon.d folder. This means the files flashed onto the system will survive a dirty flash, granting your modifications to the system persisting.
This will not work if you wiped your /system partition. If you did that, you will need to flash the zips again.
If you dislike this, you can simply delete the scripts that starts with "ts-" located in "/system/addon.d/".

Cool! I added a link to this thread in Tangerine's 1st post. It might be useful for those seeking for a stock FOTAKernel

Tomoms said:
Cool! I added a link to this thread in Tangerine's 1st post. It might be useful for those seeking for a stock FOTAKernel
Click to expand...
Click to collapse
Thank you so much for that! :highfive: :victory:

Update!
All models' respective files are now available

Update!
Now all zips can be flashed on CyanogenRecovery! Thank you so much for @Tomoms in helping me to sign the zips

Update!
All stock components updated with a new supposedly "output design"
Nothing is changed in the original files, it is just that I have changed the log output of the flashable zips so it looks pleasing to the eyes. Also I am now able to make use of the TWRP progress bar thanks to my brain for finally understanding the "set_progress()" Edify syntax
Two new zips added in the Addons zip section
adaway.zip
stock-rom-bootanimation.zip
[ Head on directly to the #5 post ]

Update!
New file name prefix for the Addon zips
Some zips now have the "ts-" prefix in their names
Two new zips added in the Addon zips section
Persisting Walkman
Persisting Xperia Keyboard
[ Head on directly to the #5 post ]
Backup scripts for persistence on ROM update!
AdAway Generated Hosts
Remove AudioFX
Persisting Walkman
Persisting Xperia Keyboard
These flashable zips now have a backup script included with them. This will make the modification on your system stays when you dirty flash a ROM update. Really useful if you prefer having a shorter time on flashing a new update for your current ROM

Update!
New zip added in the Addon zips section!
Xperia Z5 Boot Animation
[ Head on directly to the #5 post ]
New console output design
Well, when you flash a zip, there will be output texts on the screen. I changed the design a bit lol
No more pause
ZIPs will flash instantaneously as "sleep()" functions has been removed in all ZIP's updater-script. This is not really a new change, as I have silently removed it weeks ago. But I think it would be good to write it here
Updated hosts file for AdAway Generated Hosts
Also for those who uses this zip, I always update this zip whenever there is an update from the AdAway app.

Announcement
Currently the files are unaccessible due to CubeServer went off from the face of the Internet. I will upload to another cloud storage soon after collecting all the FTFs and extract them all.

Still can't download, can you solve please?

VladHD said:
Still can't download, can you solve please?
Click to expand...
Click to collapse
I am currently dealing with this. Expect them files available soon. I will edit this post when it is done
EDIT: Now all are updated

Update!
New Xperia Keyboard!
Also included is the Xperia X boot animation.
Updated all mirrors, now on Google Drive
I am very sorry for being very late in updating those mirrors. A few days or so before CubeServer went down, I also did something very irreversible on my HDD, thus making me lost all of the files. Since I only have a local backup of those stock components, this render me unable to mirror it instantly. And about those other remaining lost time, I think everyone can guess that lel. Anyway enjoy, for those who needs them

I'm using CM13 ROM, does these stocks give better performance?
Can anyone explain the benefits of using them? especially ' stock RIL components ' I don't know what is this.

parkavenu said:
I'm using CM13 ROM, does these stocks give better performance?
Can anyone explain the benefits of using them? especially ' stock RIL components ' I don't know what is this.
Click to expand...
Click to collapse
Hmm i should update the OP soon to explain more about using the zips while being on a custom ROM.
This thread is made to cater all my other personal flashable zips that I share, while also focusing on stock components as a main objective of the thread. These so called "stock components" are only for stock ROM with the exception of the RIL components.
Now to answer to your question
The FOTA is useful if you have a some sort of "ritual" and prefer stock FOTA partition when you want to wipe your TWRP recovery. Adrian provided a FOTA eraser that fundametally write zeros to the FOTA partition. That's the difference between this stock FOTA and Adrian's FOTA cleaner. This does not improve or make your experience on CM worse.
The stock Kernel is strictly for stock ROMs. Flashing on another ROM that doesn't depend on stock ROM will make the ROM unbootable. This makes your experience on CM worse.
The RIL components will flash the network-related things to your system. This might be useful for someone who requires baseband (elabel) without needing to use the FlashTool. This may improve your network experience, as it really did for me.

Related

[ROM] (Almost) Stock Debloated 10.1.1.A.1.307 CWM ZIP LB v8

This is the ROM i use myself, but I post it here in case other people also want a clean (almost) stock ROM with root and recovery. It works for me, but I provide no guarantee that it will work for you. That said, these ZIP files and procedures have been tested by myself and a few others and seem to work quite well.
FLASH THIS AT YOUR OWN RISK.
Requirements:
Sony Xperia Z.
Only tested on LB, but should also work on UB.
Ability to flash ZIP files via recovery.
Features:
Based on Xperia Z_10.1.1.A.1.307_Unbranded BE.ftf (file uploaded by Psicao).
Removed bloat and other apps you can download from Google Play.
Installed CWM recovery 6.0.2.8 for locked bootloaders v4.
Odexed and zipaligned.
No reboots when mounting system r/w.
Pre-rooted with Koush's Superuser App.
Busybox v1.20.2 installed.
Call recording.
18 Toggles.
36 dpi softkeys.
Changelog:
v8
Added 18 Toggles.
Switched to 36 dpi softkeys.
v7
Added WeatherWidget back due to popular demand.
More robust and less intrusive way to ensure that mounting system r/w doesn't cause a reboot.
v6
Based on 10.1.1.A.1.307
Removed 18 Toggles since it is not compatible with 1.307 yet.
Delete the ric daemon early in the boot process.
v5
Added 18 Toggles.
Applied a few WiFi tweaks to get a (hopefully) more stable WiFi connection.
v4
Removed duplicate notification sound 'vega' (bug in original ROM).
Increased volume a bit.
v3
Created all symlinks found in the original FTF file.
Changed all file and directory permissions to match those in the original FTF file.
Added a more robust script to stop ric.
v2
Fixed reboot issue when mounting system r/w.
Added Notes and NoteWidget back.
Reodexed and zipaligned.
v1
Initial release.
Installation:
Enter recovery.
Flash C6603_10.1.1.A.1.307_DEBLOAT.zip.
Clear user data OPTIONAL STEP - SEE BELOW.
Reboot.
Reboot again once NFC firmware has been upgraded (only needed if upgrading from 1.434 or earlier).
Note regarding unlocked bootloaders: This ROM is designed for LB. If using this on UB flash the following ZIP after installation to remove the CWM recovery for LB: C6603_10.1.1.A.1.307_UBPATCH.zip
Clear data?
If NFC is not working and you're upgrading from a 1.434 ROM, I recommend that you clear your userdata by flashing C6603_10.1.1.A.1.307_ClearData.zip.
You do NOT need to clear user data if you are already running a ROM based on 1.253 or 1.307 and everything is working fine.
MD5 hashes:
2f8fe013da90987447a04c0e5f405998 (C6603_10.1.1.A.1.253_DEBLOAT.zip)
3bba6ffb3cd9bdf7535c5e4b722223d5 (C6603_10.1.1.A.1.253_ClearData.zip)
b889d474290d9b924acbf011277d58e3 (C6603_10.1.1.A.1.307_UBPATCH.zip)
Upgrade kernel and baseband:
Once the ROM is working you might want to flash kernel and baseband from the original FTF via Flashtool in order to get the full 1.307 experience.
Preventing reboots when mounting /system read-write
This ROM uses my own little utility called RICHunter to prevent reboots when mounting /system read-write. If you want to use it yourself in your own ROM you can download it here:
0c766dc58cc909693f5d669264d78f4a (richunter.zip)
Included in the ZIP file is a README.txt that explains how to use it, but you can also read it here:
RICHunter by Carceri @ XDA
1. What is this?
On the Xperia Z Sony have added a small program called ric which
monitors mount options on filesystems and reboots the system if
they deviate from their default values. This causes the system
to reboot e.g. when the /system partition is mounted read-write.
In short, this programs stops this daemon and replaces it with a
dummy version that doesn't do anything, thereby disabling ric.
2. How do I use it?
Just put the file richunter somewhere on your system, for example
/system/bin/richunter, make it executable (chmod 755) and run it
as the root user. This needs to be done every time the system is
restarted.
This can be achieved by putting the following lines in a file
called /system/etc/install-recovery.sh:
#!/system/bin/sh
exec /system/bin/richunter
Another way is to make a wrapper to /system/bin/ctrlaltdel and
call richunter from there:
#!/system/bin/sh
exec /system/bin/richunter
exec /system/bin/toolbox ctrlaltdel "${1}" "${2}" "${3}" "${4}"
Choose either one, or a 3rd solution to automatically run it.
Remember to make the files executable.
3. How does it work?
On the latest kernel, the ric daemon is restarted whenever it
is killed. Therefore the following steps are taken by this
program to stop it without giving it time to reboot the system:
1) The programs runs as a daemon waiting for up to 60 seconds
for ric to start.
2) It detects which CPU ric was last scheduled on, and forces
ric to always run on that CPU in the future.
3) It forces itself to run on the same CPU as ric and sets its
scheduling priority to real-time. This prevents anything
in that CPU from running, including ric.
4) It mounts the rootfs read-write and replaces ric with a
dummy version that just sleeps forever. Finally it kills
the ric process and remounts rootfs read-only.
5) The daemon now exits. When ric is restarted the dummy
version is started instead.
4. What about unlocked bootloaders and custom kernels?
On custom kernels ric has either been removed or not installed
at all. Therefore this is only needed on locked bootloaders.
5. Can I use it in my own ROM?
Sure. Use it as you want.
6. How do I compile it?
You need to have the Android NDK installed. Then set the
correct paths in the included Makefile and run:
1) make prep
2) make
That's it. When you want to recompile you can skip step 1).
7. What license is this released under?
It is UNLICENSED software. See http://unlicense.org/
Hi, i have not tested this exact zip, but the rom i am using now is based on a previous version you posted in another thread.
There is a little issue with your "debloating", you removed "Notes" app, so when you go to "small apps" drawer and choose notes or voice recording, an error pops out, so you have to remove the icons and forget about stock notes or voice recording as they are apps not available on the market to download separately.
As i said, this happens on the first zip you uploaded, i don't know if this was already solved on newer versions.
If NFC is not working, there is still hope to keep user data intact, just delete /data/usf on your phone, take usf folder from your userdata.tar, and put it in your phone in the same place where the older was with same permissions. This step could also be added to the main flash script, no user data is lost and i think all NFC related problems would be gone
Thanks for sharing your work.
RoberM said:
There is a little issue with your "debloating", you removed "Notes" app, so when you go to "small apps" drawer and choose notes or voice recording, an error pops out, so you have to remove the icons and forget about stock notes or voice recording as they are apps not available on the market to download separately.
Click to expand...
Click to collapse
I have added the Notes app back in this zip.
RoberM said:
If NFC is not working, there is still hope to keep user data intact, just delete /data/usf on your phone, take usf folder from your userdata.tar, and put it in your phone in the same place where the older was with same permissions.
Click to expand...
Click to collapse
That was actually the first thing I tried and it didn't work for me. It might work for some and if someone is interested I'll be happy to provide a zip file that just restores this directory and keeps everything else under /data intact.
How do you enable call recording btw? Thanks.
Sent from my C6603
The link is down!! :crying:
mandarjoshiin said:
The link is down!! :crying:
Click to expand...
Click to collapse
Link is back up. I were just in the process if uploading v2
vibranze said:
How do you enable call recording btw? Thanks.
Click to expand...
Click to collapse
Press the menu button during a call.
Carceri said:
This is the ROM i use myself, but I posted this in case other people also want a clean (almost) stock ROM with root and recovery. It works for me, but I provide no guarantee that it will work for you, so FLASH THIS AT YOUR OWN RISK.
Requirements:
- Sony Xperia Z with locked bootloader.
- Ability to flash ZIP files via recovery.
Features:
Based on the first version of the ZIP posted by wawyed on this thread.
...which was based on C6603_Unbranded_10.1.1.A.1.253.ftf (original file uploaded by prakka).
Removed bloat and other apps you can download from Google Play.
Installed CWM recovery 6.0.2.8 for locked bootloaders v4.
Odexed and zipaligned
Pre-rooted with Koush's Superuser App.
Busybox v1.20.2 installed.
Enabled call recording.
Changelog:
v2
Fixed reboot issue when mounting system r/w.
Added Notes and NoteWidget back.
Reodexed and zipaligned.
v1
Initial release.
Installation:
Enter recovery.
Flash C6603_10.1.1.A.1.253_DEBLOAT.zip.
Clear user data OPTIONAL STEP - SEE BELOW.
Reboot.
Say not to "Disable recovery flash" if asked.
Possibly reboot a second time once NFC firmware has been upgraded.
I had problems with NFC not working if I didn't clear user data the first time I upgraded from a version < 1.253. In order to clear user data follow this step:
Flash C6603_10.1.1.A.1.253_ClearData.zip.
These ZIP files and procedures have been tested by myself and a few others and seem to work. However, some people have also experienced issues, but since I don't know their exact setup it is impossible for me to pinpoint the source of these errors. FLASH THIS AT YOUR OWN RISK.
Upgrade kernel and baseband:
Once the ROM is working you might want to flash kernel, fotakernel and baseband from the original FTF via Flashtool in order to get the full 1.253 experience.
Click to expand...
Click to collapse
hello I used your guide and everything works to perfection thanks:laugh:, I invite other people to use this guide to those who want to update your phone with the root installed.:good:
ps. sorry if I use a translator.
ciao ho usato la tua guida e funziona tutto alla perfezzione grazie, invito altri utenti ad usare questa guida per chi vuole aggiornare il telefono con il root installato.
Great, this is the first one deodexed and zipaligned, i am sure a lot of people will be interested.
EDIT: Ok, i didn't read well, it says Re-Odexed
Sorry, i'm a little confused, is this rom odexed or deodexed?
Sent from my C6603 using Tapatalk 2
secondkai said:
Sorry, i'm a little confused, is this rom odexed or deodexed?
Click to expand...
Click to collapse
In changes for version 2 reodexed is written. Attentively read an original post.
Carceri said:
Press the menu button during a call.
Click to expand...
Click to collapse
Thanks, but what I meant was how to incorporate call recording into the ROM, is it something that can be done easily, e.g. editing build.prop, etc or any other method?
Cheers.
Update: I got the answer. Thanks.
picasa album sync is missing in google accounts and album view, is this due to bloat removal ?
jimsey said:
picasa album sync is missing in google accounts and album view, is this due to bloat removal ?
Click to expand...
Click to collapse
I don't think so. Is that feature available on a normal Xperia Z stock ROM?
I think that the original Gallery app installs the required sync adapter. Also if you have Google+ installed it is replaced by Photo Sync.
hello Carceri would like to upgrade to v4 there some procedure to be performed?
fabbiotto said:
hello Carceri would like to upgrade to v4 there some procedure to be performed?
Click to expand...
Click to collapse
If you have installed this ROM before you just need to flash the new ZIP file to get the latest version.
Carceri said:
If you have installed this ROM before you just need to flash the new ZIP file to get the latest version.
Click to expand...
Click to collapse
s now the v2 if I install the v4 just that I do not clear user data to not lose my data?
fabbiotto said:
s now the v2 if I install the v4 just that I do not clear user data to not lose my data?
Click to expand...
Click to collapse
Just flash the new ROM. No need to clear data.
Carceri said:
Just flash the new ROM. No need to clear data.
Click to expand...
Click to collapse
thank you very much:good:
hello v4 does not work well with the DoCoMo Status Bar and the Task Switcher sony disappears, you can take a look please?
by the time I come back to v2

TWRP v2.8.6.0 with f2fs support

TWRP for Z1c amami & Z1 Honami
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!​
Download:
TWRP_v2.8.6.0_amami-f2fs_from_cm12.1_150423.img 11.6 MB - https://mega.co.nz/#!3gRwGZiK!sXMsMx1GGwUVkTCCsr8ntZekCE-o-hB4DDp6wlhVQqA
TWRP_v2.8.6.0_honami-f2fs_from_cm12.1_150423.img 11.6 MB - https://mega.co.nz/#!qkp0jDRR!cqRQ-8CkfFmR6SJyGMCtWr2Rn89FTRl3dUNxluUWDxs
What is this?
This is a repacked TWRP from Z2 sirius, where I have:
- Replaced "default.prop" and "res"-folder to one from [NUT] dual recovery for Z1/Z1C
- Added f2fs support by adding mkfs.f2fs from CM nightly dated the day I cooked the recovery.
- Shrinked images in twres/images folder. It wouldn't boot otherwise.
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 for Z1, this is just repacked using Android Image Kitchen.
Bugs in this recovery will most probably be bugs that all TWRP builds share.
Recepy
Just repacking the Z2 recovery won't make it boot on Z1/Z1c. 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:
Code:
- 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), [NUT]s lates flashable build for Z1c, Z1, and Android Image Kitchen
- Unpack TWRP for Z2 with Android Image Kitchen
- Take default.prop and "res"-folder from [NUT]s latest build, for your respective phone (z1/z1c), and copy this to the place you unpacked the Z2 recovery (inside ramdisk folder)
- Change images in "twres/images" with these (they are compressed. Unless you use them the img won't boot: https://mega.co.nz/#!e9g1TRCI!vmGsPqVdqSnpcW6G8PC_saLLyyfqTL-1FhjQmggVvxA)
- Repack with "Android Image Kitchen".
Add F2FS support:
- DL lates CM nightly
- Unpack boot.img from it, using Android Image Kitchen.
- Use 7zip to open sbin\ramdisk-recovery.cpio. Get the "mkfs.f2fs" from sbin folder.
- Add this to your project: Copy mkfs.f2fs to ramdisk\sbin
- Repack your recovery with "Android Image Kitchen".
If you want to manually edit default.prop:
Z1 Info: http://www.gsmarena.com/sony_xperia_z1-5596.php - Honami, C6902, DPI: 480
Z1c Info: http://www.gsmarena.com/sony_xperia_z1_compact-5753.php - Amami, D5503, DPI: 342
Z2 Info: http://www.gsmarena.com/sony_xperia_z2-6144.php - Sirius, D6503, DPI: 424
Guides:
Migrate to f2fs: http://forum.xda-developers.com/showthread.php?t=3004755
How to use f2fs on Sony Devices: http://forum.xda-developers.com/showthread.php?t=3056740
It's said that CM12 supports f2fs now. I haven't tested myself yet, so can't confirm.
it works great for me.nice work
Perfect exacly what i am looking for...
Flashed it and works nice, hope to see also updates in future.
Thank you :good:
How to enter in recovery?
nArdow said:
How to enter in recovery?
Click to expand...
Click to collapse
On sony logo at boot, press volume up. Led will turn from indigo/violet to orange.

TWRP v2.8.7.0 (fota) with F2FS for: Z1, Z1c, Z2, Z3, Z3c, TabZ3c(LTE&WIFI)

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://forum.xda-developers.com/t/3960699/
Z1 (honami), by daviid99: https://forum.xda-developers.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://forum.xda-developers.com/showthread.php?t=3004755
How to use f2fs on Sony Devices: http://forum.xda-developers.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:
Code:
- 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://forum.xda-developers.com/showthread.php?t=3234877 | http://teamw.in/devices/sonyxperiaz1.html
Z1 (Amami) : Compiled TWRP with f2fs by hawkeyexp - http://forum.xda-developers.com/showthread.php?t=3173411
Z2 (Sirius): Official TWRP - http://forum.xda-developers.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
Do it Compiling by yourself and all will works like a charm.
You guys so funy use only ONE repacked images for all other devices which have different resolutions and different kernel base
UPDATE: Packed a individual recovery for each device, with /res folder and default.prop taken from [NUT]s XZDualRecovery. Installing amami CM with sirius recovery gets aborted..
Does this work with the Z3 tablet (scorpion-windy)?
Thanks
belrik said:
Does this work with the Z3 tablet (scorpion-windy)?
Thanks
Click to expand...
Click to collapse
It would probably boot, but installs of ROMs and similar would be aborted because device id on flashable zips would not match device id of recovery.
If you modify build.prop to fit your device, I bet it would work
EDIT: Made a img for tablet z3c. I believe both 4g and WIFI-version can use the same recovery (CM uses same device ID in their build.prop)
EDIT: Separate recovery.img is up for scorpion and scorpion_windy.
o-l-a-v said:
It would probably boot, but installs of ROMs and similar would be aborted because device id on flashable zips would not match device id of recovery.
If you modify build.prop to fit your device, I bet it would work
EDIT: Made a img for tablet z3c. I believe both 4g and WIFI-version can use the same recovery (CM uses same device ID in their build.prop)
EDIT: Separate recovery.img is up for scorpion and scorpion_windy.
Click to expand...
Click to collapse
could you build a second one for tabz3c with "scorpion_windy" device ID? the scorpion one does not flash cm12.1 on my SGP611.
2 Bugs I found:
-Inability to shut off the screen. Even happens when device displays the power (full screen picture of battery). This bug doesn't affect [NUT]'s recovery.
-TWRP crashes whenever you try booting to recovery via charging cable without the system attempting to boot to Android (in other words, turning on the phone with the power cable rather than the power button). The only way out is to hard reset.
Using Xperia Z1 (honami)
kentexcitebot said:
2 Bugs I found:
-Inability to shut off the screen. Even happens when device displays the power (full screen picture of battery). This bug doesn't affect [NUT]'s recovery.
-TWRP crashes whenever you try booting to recovery via charging cable without the system attempting to boot to Android (in other words, turning on the phone with the power cable rather than the power button). The only way out is to hard reset.
Using Xperia Z1 (honami)
Click to expand...
Click to collapse
Yep. Asked in the Z2 TWRP thread, Z2 owners don't have these bugs. Might be because we use z2 related stuff (kernel base) for other phones. If I learn to compile in future this should be fixed afaik. But as far as i know, there is nothing I can do (in regards of repack with other stuff) to fix these bugs.
o-l-a-v said:
Yep. Asked in the Z2 TWRP thread, Z2 owners don't have these bugs. Might be because we use z2 related stuff (kernel base) for other phones. If I learn to compile in future this should be fixed afaik. But as far as i know, there is nothing I can do (in regards of repack with other stuff) to fix these bugs.
Click to expand...
Click to collapse
I lack knowledge with TWRP+Recoveries+Pretty much a lot of things, but couldn't you repack NUT's recovery and try porting it to Lollipop? Maybe exclude Philz's version if it conflicts...?
Hi,
is it possible, to make also a Version for the Xperia ZL?
thanks for the scorpion_windy build! :good:
unlock with material theme has some troubles. i need to get the right line on the screen for wipe to work and also then it takes several tries.
TWRP 2.8.6.1 supposedly brings support for encryption (on bacon at least) [1]. Has anyone played with that on a sony device yet? Maybe created a first package to test?
[1] https://github.com/TeamWin/Team-Win-Recovery-Project/issues/333#issuecomment-105152622
can make a version for zr/zl/z? thx!
hi anyone : )
nostupidthing said:
can make a version for zr/zl/z? thx!
Click to expand...
Click to collapse
http://forum.xda-developers.com/xperia-z/orig-development/recovery-teamwin-recovery-project-t2982889
Z already has TWRP with f2fs and stuff.
If you need it for zr or zl simply repack it with res/ and default.prop from the correct phone. Guide in 1st post.
Hi, does it work for scorpion_windy with lollipop? Thx.
v2.8.7.0 is up! I'm on stock ROM now, so please check if it works
http://forum.xda-developers.com/showthread.php?t=3098573
2.8.7.0 on sony z1 (honami) with cm-12.1 is botting, gui is ok, but internal storage and sdcard not present.
hawkeyexp said:
2.8.7.0 on sony z1 (honami) with cm-12.1 is botting, gui is ok, but internal storage and sdcard not present.
Click to expand...
Click to collapse
same on amami.
EDIT: fixed in yesterday build with z1c res and default prop! :good:
rzlatic said:
same on amami.
EDIT: fixed in yesterday build with z1c res and default prop! :good:
Click to expand...
Click to collapse
still not working on honami...

[P][G8141/G8142][.306] M-ROM P v1

I DID NOT CREATE THIS ROM OR THE RECOVERIES OR FLASH TOOLS LINKED, I ONLY MODIFIED THE SYSTEM UI AND SETTINGS AND BUILD PROP ZIPS BELOW.
I am not responsible for any damage (if any) to your device, data, life, job or anything else you'd care to think of.
ANY QUESTIONS, PLEASE ASK IN THE THREAD AS EVERYONE BENEFITS, PM'S WILL MOSTLY BE IGNORED.
IF YOU DON'T HAVE AN UNLOCKED BOOTLOADER YOU MUST FIRST UNLOCK IT.
Download all files you want/need to your PC/External SD before starting...just saying.
[/CENTER]
​Step One
​
Flash stock firmware for your device that the rom is based off. Readily available from Xperifirm (attached to flashtool - Bonus!), or XDA. Flash via Flashtool or Newflasher. Again, there's plenty of guides on using flashtool and newflasher, i'm not covering that here.
​
Step Two
​
Once flashing has completed, turn the device on and allow it to fully boot. Complete the setup process, and log in to your google account. Move the ROM file you already (hopefully) downloaded to internal storage (IMPORTANT STEP: I had symlink errors flashing the ROM from the External SD Card). I normally disable auto-updates in the Play Store/Whats New apps and then let it rest for 5 minutes.​
Step Three​
Turn your device off, boot into FASTBOOT MODE, and flash TWRP (fastboot flash recovery TWRP/ATWRP.img). If you don't know how to fastboot, see above re: XDA/Google. Unplug your device, wait 10 seconds, then boot into recovery (Hold power and volume down together, release both at at the vibration). Tick the checkbox then swipe right, and the first thing you SHOULD do is go to settings and turn the damn vibration off. :laugh:
​Step Four​
DON'T WIPE ANYTHING!!! You are installing on top of an already clean installation, its pointless. Press Install, select the XPERIA_PIE_XZP_1.0.zip file you downloaded earlier, and swipe right to install that sucker. Don't freak out when it takes 5 to 8 minutes for the recovery screen to change, its doing its thing, trust me. Once you get the all clear and the button down the bottom says reboot, that's pretty much all that's left to do.​
Step Five​
Once the phone reboots, let it settle again for a while, and deny all the requests the Chinese apps throw at you. After a few minutes, go into the root explorer app, allow root permissions when it requests it, then go to system/priv-app and delete any app starting with TG. Unless you really like Chinese bloat, in that case, proceed to set up your phone as usual.
The ROM is pretty basic at the moment but given time and based off the Oreo series, more System UI mods will become available with later versions.​
CREDITS: @machao44 @uditrawat @Myself5 @Androxyde @munjeni @Ticklefish @Pandemic
@fOmey[/SIZE]
DOWNLOAD LINKS​
M-ROM P v1: BASED ON 306 FIRMWARE https://drive.google.com/file/d/1eOWzREBPehv8QoCFYQfPdF4yqKH2NdB1/view
M-ROM P v1.1: BASED ON .33 FIRMWARE
https://mega.nz/#F!MNYGhKhR!OtCS6j-YBXaxcDI1sa7FlQ
Thanks to @sam.foro for uploading.
M-ROM P v1.2: BASED ON .41 FIRMWARE
https://drive.google.com/open?id=1ZX...ixVN09Ry_vVhDf
Thanks to @Yanun
https://drive.google.com/file/d/14K-...ew?usp=sharing
Thanks to @karrouma
M-ROM P v1.3: BASED ON .41 FIRMWARE
https://drive.google.com/open?id=10l...uGinaYCEzy-vt_
Thanks to @Yanun
TWRP: https://dl.twrp.me/maple/
Aroma TWRP: https://mega.nz/#!TdxmiaLb!FYBet5eRYHGqiLT0niRH9F90Ts_QeRdfkOfPWOAgQCM
Flashtool: www.flashtool.net/
Newflasher: https://forum.xda-developers.com/cr...gress-newflasher-xperia-command-line-t3619426
M-Rom P v1.6 - BASED ON 10.28 FIRMWARE - Thanks to @karrouma for uploading and sharing
https://drive.google.com/file/d/1pNsIaGR2_r74INyH8p053bQStiruPEWd/view?usp=sharing
M-Rom v1.6 - English Translated
https://mega.nz/#!6ExSGYQZ!HD0YM_Sypeu5h-6K4vhKT9NkiQn_63PZG0ZPwf_kRmY
M-ROM 1.6 aroma add-on.
M-ROM v1.6 aroma add-on - contains .25 animation mod, font picker and fonts, xperia 10 boot animation, double tap to wake kernel selection (g8141/g8142), and magisk 18.1/19.0 selection.
Enjoy.
https://mega.nz/#!nZpihCqK!TvB0_-w0cdTWFBKylPUk5Da3YdLAJCc_vk5d8XNDySc
Beetle84 said:
ADD-ONS​
And now we have a few add-ons. You don't really need any of these, but its XDA and if you've come this far you obviously like flashing stuff so here we go...
The Modified Animation Values zip has one extra setting added in developer options, to the animation duration settings. .25 duration has been added (extra fast). Theres no real point to this other than making things seem quicker, but this zip has the added bonus of having the XZ3 Settings.apk included. (Stock XZ3 settings.zip also supplied) FLASH IN RECOVERY
Modified Settings: https://mega.nz/#!qF4gBazC!R4hoXd_1fEOCxwrrttpXRR0CBCO9A3L8QZq3y3A-NEY
Stock Settings: https://mega.nz/#!HQwSSCAC!T3rPbcPLCCVVcMVCZGk3cDKp6DreHtjVYxEcRer3ORQ
The Rounded Recents zip has a modified SystemUI.apk that has (surprisingly) rounded recents modified into the apk. I have also pushed all the right side status bar icons across a little and shortened the space between the data icon and the battery (stock SystemUI.apk zip supplied). FLASH IN RECOVERY
Modified System UI: https://mega.nz/#!iQ4URIzJ!ssb0Wn7rXfqdU9ll3PWGp6Ba7Qx7rfnzH_QxHocEOV4
Stock System UI: https://mega.nz/#!qEpQwIYT!6QDuEWPHiWT111ah2X39z2UzcXvpmEqO2KlAnNpnA_E
The G8141 build prop zip has a build prop modified to say G8141 for those picky (like me) and don't like seeing G8142 in about phone. If you have a G8142, ignore this whole bit about build.prop. Unzip the file and move the file with a root explorer to /system and apply R-W-R-R permissions and reboot.
G8141 Build.prop: https://mega.nz/#!WBwklSCZ!3AfXbN6JmsE0eihgx8Rn7O7deEnbz2KW048WLUm4Grc
MAKE A BACKUP FIRST MAKE A BACKUP FIRST MAKE A BACKUP FIRST
Last but not least, is the Deodex patch (COMING SOON - UPLOADING) for this ROM. Expect lengthy boot time first go, and then longer than usual every time after that. If you flash this zip, your keyboard will be removed, unless you have a keyboard already installed from the Play Store. YOU WILL HAVE NO KEYBOARD AFTER FLASHING THIS ZIP UNLESS YOU ALREADY HAVE ONE INSTALLED FROM THE PLAY STORE! YOU HAVE BEEN WARNED! TWICE!!!
Deodex Patch:
Enjoy
Click to expand...
Click to collapse
Thank you my friend
Great job
Nice
Thanks for this
Nice bro
Keep it up ^^
Added Patched Services.jar Magisk Module to Post 3.
I wonder if the uploaded file is not damaged.
I downloaded twice, filesize reached 1.52 GB at 100%. But the zip file fails to open. Can not be extracted as well
Therefore I did not try it in TWRP.
hasaan6545 said:
I wonder if the uploaded file is not damaged.
I downloaded twice, filesize reached 1.52 GB at 100%. But the zip file fails to open. Can not be extracted as well
Therefore I did not try it in TWRP.
Click to expand...
Click to collapse
Its not a new upload so I wonder what is happening. It is the same link available from the Oreo M-ROM thread, just copied and pasted.
Are you downloading from your device or from a PC?
Removed
link opened fine. and the file is fine opened normally . no problem
Beetle84 said:
ADD-ONS​
And now we have a few add-ons. You don't really need any of these, but its XDA and if you've come this far you obviously like flashing stuff so here we go...
The Modified Animation Values zip has one extra setting added in developer options, to the animation duration settings. .25 duration has been added (extra fast). Theres no real point to this other than making things seem quicker, but this zip has the added bonus of having the XZ3 Settings.apk included. (Stock XZ3 settings.zip also supplied) FLASH IN RECOVERY
Modified Settings: https://mega.nz/#!qF4gBazC!R4hoXd_1fEOCxwrrttpXRR0CBCO9A3L8QZq3y3A-NEY
Stock Settings: https://mega.nz/#!HQwSSCAC!T3rPbcPLCCVVcMVCZGk3cDKp6DreHtjVYxEcRer3ORQ
The Rounded Recents zip has a modified SystemUI.apk that has (surprisingly) rounded recents modified into the apk. I have also pushed all the right side status bar icons across a little and shortened the space between the data icon and the battery (stock SystemUI.apk zip supplied). FLASH IN RECOVERY
Modified System UI: https://mega.nz/#!iQ4URIzJ!ssb0Wn7rXfqdU9ll3PWGp6Ba7Qx7rfnzH_QxHocEOV4
Stock System UI: https://mega.nz/#!qEpQwIYT!6QDuEWPHiWT111ah2X39z2UzcXvpmEqO2KlAnNpnA_E
The G8141 build prop zip has a build prop modified to say G8141 for those picky (like me) and don't like seeing G8142 in about phone. If you have a G8142, ignore this whole bit about build.prop. Unzip the file and move the file with a root explorer to /system and apply R-W-R-R permissions and reboot.
G8141 Build.prop: https://mega.nz/#!WBwklSCZ!3AfXbN6JmsE0eihgx8Rn7O7deEnbz2KW048WLUm4Grc
MAKE A BACKUP FIRST MAKE A BACKUP FIRST MAKE A BACKUP FIRST
Last but not least, is the Deodex patch for this ROM. Expect lengthy boot time first go, and then longer than usual every time after that. If you flash this zip, your keyboard will be removed, unless you have a keyboard already installed from the Play Store. YOU WILL HAVE NO KEYBOARD AFTER FLASHING THIS ZIP UNLESS YOU ALREADY HAVE ONE INSTALLED FROM THE PLAY STORE! YOU HAVE BEEN WARNED! TWICE!!!
Deodex Patch: https://mega.nz/#!mdhmnKwS!POI9MLzZRH9g4isgy0XCZLIhYmu6pUAnZwlXcgaM2xM
And a Patched Services.jar Magisk Module. Flash in Magisk and reboot.
306 Patched Services.jar.zip: https://mega.nz/#!LYpyHQyD!Ka21OVx-yWIM1WUb-WQLoLoJEGOZItz7V_BQMz6fbsk
Enjoy
Click to expand...
Click to collapse
can you explain the step how to deodex the pie ??
rizky_zulfikar said:
can you explain the step how to deodex the pie ?
Click to expand...
Click to collapse
All is explained here brother
https://forum.xda-developers.com/android/general/toad-source-android-deodexer-t3848307?nocache=1
Beetle84 said:
All is explained here brother
https://forum.xda-developers.com/android/general/toad-source-android-deodexer-t3848307?nocache=1
Click to expand...
Click to collapse
i've tried that tool, but my priv-app and framework fail to deodex there still odex and vdex file, only my app ?
Hey just downloading, what rom is this or based on what rom, deodexed xperia rom or custom rom, which kind, sory missed this, thank you
stipi69 said:
Hey just downloading, what rom is this or based on what rom, deodexed xperia rom or custom rom, which kind, sory missed this, thank you
Click to expand...
Click to collapse
Its a slightly modified stock rom, based on .306 dual sim Pie firmware. The rom is odexed.
I have it flashed root working, looks nice, refreshing and snappy, i guess xzp does not have hardware side sensors but you can still tap on edge of screen and bring side menu out , nice!!!
I love new camera look, huge icons in pull down menu.... not so much, haha , it is a matter of gettin use to it i guess
Great work, thanks
If you cannot flash 47.2.A.0.306 via flashtool and get same error as i did below download and copy next file:
downloaded "47.2.fsc" file to: username/.flashtool/device/G81XX, delete 47.1.fsc
https://drive.google.com/file/d/1hZR...w?usp=drivesdk (not my work in this link, credits to xda user xrenoix)
Hi, i get error in flashtool, somoene else same error?
28/048/2018 13:48:07 - INFO - Start Flashing
28/048/2018 13:48:07 - INFO - Parsing boot delivery
28/048/2018 13:48:07 - INFO - Found a boot delivery
28/048/2018 13:48:07 - ERROR - No flash script found. Flash script is mandatory
28/048/2018 13:48:08 - INFO - Sending Sync
28/048/2018 13:48:09 - INFO - Sync status : OKAY
28/048/2018 13:48:09 - INFO - Sending powerdown
28/048/2018 13:48:09 - INFO - powerdown status : OKAY
28/048/2018 13:48:11 - INFO - Device disconnected
old .270 rom flashes with no problem
XZ3/XZ2 systemui.apk Sony Loops Clock/ Ambient/ Night Mode port to XZ3 All functions
You need several attempts. I know the description is not simple. Try! All functions currently work Only not double tap to wake
Thanx for http://bbs.gfan.com/android-9527088-1-1.html
https://forum.xda-developers.com/xp...enz-pie-v1-0-0-26-11-18-t3871854/post78281536
OneHand/Night Mode and XZ2 premium systemUI in zip XZ3 systemUIS has rounded corners It looks weird Better XZ2
Indashio said:
XZ3/XZ2 systemui.apk Sony Loops Clock/ Ambient/ Night Mode port to XZ3 All functions
You need several attempts. I know the description is not simple. Try! All functions currently work Only not double tap to wake
Thanx for http://bbs.gfan.com/android-9527088-1-1.html
https://forum.xda-developers.com/xp...enz-pie-v1-0-0-26-11-18-t3871854/post78281536
OneHand/Night Mode and XZ2 premium systemUI in zip XZ3 systemUIS has rounded corners It looks weird Better XZ2
Click to expand...
Click to collapse
Does it work for XZ1?
Thanks
unless we get gravitybox (from xposed) features, like in Resurrection Remix, i'm not moving to Pie.

[TOOL] Convert sin to flashable.zip

Disclaimer:
Our tool was made for testing and educational purposes, ME is not responsible for what you do on/with your device using our tool, you must agree that you using our tool on your own risk, I am not responsible if you brick your device or anything else!
What is this for:
This tool converts xperia sin file and directly create flashable.zip for use to flash your android device with recovery.
Changelog:
- version 1. (missing selinux label generator)
- version 2. (implemented selinux label generator tool. Missing static busybox)
- version 3.
- version 4. some small corections, added missing update-binary
- version 5. some improvements, new sin unpack tool
How to use:
Extract sin2zip.rar archive & simple run CONVERT.bat & chose system.sin image , tool will produce flashable.zip
What you need to check or probably modify in generated flashable.zip:
1. busybox I have used is 32bit, it will work on 64bit too (not busybox.exe !!), I not recommend to change busybox, but before you go for busybox replace make sure it is STATIC busybox and have working (chcon and chown) with -h parameter!
2. check updater-script e.g. first 3 lines and last 2 lines!
3. this -> https://forum.xda-developers.com/showpost.php?p=80593639&postcount=7
Source code:
modified ext4_read tool is in attachment. Original ext4_read is here, many thanks to author! I have notified Igor, hope we see selabels listing integration in 7z without need for hackish ext4_read
sony dump tool -> https://github.com/munjeni/anyxperia_dumper
munjeni said:
This tool converts xperia sin file and directly create flashable.zip for using with recovery. 75 percent is done. 25 percent of the things is missing, selinux related things. I need help for implement selinux to the 7z to list selinux labels from ext4! Here is work in proogress
Click to expand...
Click to collapse
Maybe @SuperR. of SuperR's Kitchen fame HERE could give you some pointers on this. :fingers-crossed:
Maybe you could work together to integrate some of your great Sony specific tools into the Kitchen
That kitchen do not have anything related to our tool. I have done some progress in extracting selabels from ext4 by searcing with inode number \0/
Right now tool is able to extract selabels by inode number pointing
So you are on the drawing board again! Cool... :highfive:
About what you wrote in the j4nn's thread (1. to make fota unpack tool), count on me if you need help, ok!
If I'm not mistaken, I sent you a ota update_package file from my x performance some time ago, but if I am, here it goes again.
Cheers.
serajr said:
So you are on the drawing board again! Cool... :highfive:
About what you wrote in the j4nn's thread (1. to make fota unpack tool), count on me if you need help, ok!
If I'm not mistaken, I sent you a ota update_package file from my x performance some time ago, but if I am, here it goes again.
Cheers.
Click to expand...
Click to collapse
Thanks! I will look into ota package till after I finish our tool
Almost done! New version v2 is out! Made small tool to read ext4 image and print selabels to updater-script, it look like this:
if regular file or folder:
Code:
run_program("/tmp/busybox", "chcon", "u:object_r:location_exec:s0", "/system/bin/xtwifi-inet-agent");
if symlink:
Code:
run_program("/tmp/busybox", "chcon", "-h", "u:object_r:vendor_file:s0", "/system/bin/xxd");
Tool is curently 95 percent done, not realy ready for flashig produced flashable.zip , need to implement 5 percent of the things. You can try but plese do not try to flash with recovery it will not work corectly!
Version 3 done! Before you flash flashable.zip please check updater-script first 3 lines and last 2 lines! Do in mind our tool didn't include the rest of firmware like kernel, vendor...etc, tool only convert one sin file to flashable.zip, if you need the rest of firmware run CONVERT.bat and chose another sin file, do merges in zip by hand and do merges-modification in updater-script by hand too. Not recommended for newbies! I can't tell you if produced flashable.zip is working I'm not tried to flash flashable.zip, but I think it going work. Important thing is initial tool is done and somebody need to test. Let me know Enjoy!
Version 4 done. Enjoy!
@serajr here is some info https://forum.xda-developers.com/showpost.php?p=80599561&postcount=1330 , your file is the same format as j4nn
Version 5 done.

Categories

Resources