[TOOL] PRFCreator - easily create pre-rooted firmwares - Sony Cross-Device General

Introducing my new tool called PRFCreator. With this tool, anyone can easily create a pre-rooted firmware.
What is a pre-rooted firmware
A pre-rooted firmware is a firmware, which already includes root. This is for example important if you want to update the firmware to a version, where there is no public root exploit. To flash a pre-rooted firmware, you need a recovery menu. An unlocked bootloader is not required.
How does the tool work
The tool should be self-explanatory. SuperSU zip can be downloaded from here. [NUT]'s dualrecovery (*.flashable.zip) can be downloaded from here. Recovery is optional and if your device is not supported by dualrecovery, you can use any recovery (just has to be a flashable zip).
Depending on the firmware size and your computer speed, generating a pre-rooted firmware can take up to 7 minutes. The pre-rooted firmware will be created in the directory of the executable and called flashable-prerooted.zip.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The order for the extra files is
Extra flashable
In the order you added it initially in the GUI
APKs
TWRP is recommended for flashing!
Note: If you do not include the kernel in the pre-rooted firmware, it's recommended to flash it afterwards with flashtool (check "system" under Exclude).
Note2: I am not responsible for any damage done to your device or if you end in a bootloop.
Credits
Androxyde - some helpful information about sin files from his flashtool
[NUT] - used his flashable scripts as base
E:V:A - sgdisk utility compiled for arm
dotnetzip developers (note I'm using a slightly modifed version with a bugfix)
Requirements
Microsoft .NET 4.0
Source code
https://github.com/dosomder/PRFCreator
Changelog
v1.3
Fix a signing bug when PRFCreator was in a folder which included a space (thanks Calystos)
Allow multi select for Extra Zip / APK
Update sinflash to v0.42 (fix sha256 bug (thanks RoberM) and large zip file handling (thanks Fragmentation))
v1.2
Fix a signing bug (thanks RyTekk)
Fix bug when flashing multiple apps
Update lz4 lib and 7zip binaries (thanks tetsuo55) and dotnetzip library
Update sinflash binary to v0.4 (supports now also non-msm devices, thanks eoinkennedy for report)
.
v1.1
Allow users to add APKs
Improved sinflash to allow compression
Fix smaller bugs and improve speed
.
v1.0
New method using sinflash (sin files are flashed on the phone directly instead of extracting on the computer)
New busybox
.
v0.9
Compatible with mono
New settings file to change temp folder and choose another destination for the pre rooted firmware
Work towards new sin format introduced with Z3+
.
v0.8
Add the ability to include additional flashable zip files
Display information when clicking on version number
.
v0.7
Add zip signing option
Small fixes in code
.
v0.6 - Nuked (wrong binary uploaded)
Prefer to use gpt uuid instead of partition names
Add different modem sin names
Clean code
.
v0.5
Fixed bug with missing dualrecovery
Added check if SuperSU and recovery are flashable
Added ability to flash modem
Support for sin v2
.
v0.4
Make dualrecovery zip optional
Fix exception if file does not exist in sin
.
v0.3
Initial release

I have a question!
What should I check under 'Include' ?
Kernel: Personally I recommend to check kernel. For some firmwares it's important otherwise the phone won't boot.
FOTAKernel: This kernel is used for OTA Updates. I recommend to include it.
Modem: This is the baseband / modem. Some updates can give you slightly better battery life and signal.
LTALabel: This is a partition with regulatory informations. It should not really change the performance of your device. I recommend to include it.
Click to expand...
Click to collapse
.
Do I need to include a recovery?
No, recovery is optional. If you do not wish to include recovery you should add this flashable zip under Extra Files to be able to mount system as rw: https://github.com/dosomder/SonyRICDefeat/blob/master/RICDefeat.zip
Note: If your bootloader is unlocked, this is not needed as RIC will be disabled anyway.
Click to expand...
Click to collapse
.
Can I edit system.ext4 inside flashable zip?
Yes, you can edit it on a linux machine. You don't have to change anything else in the flashable zip. See here for more info: http://forum.xda-developers.com/showpost.php?p=55547862&postcount=246
Click to expand...
Click to collapse
.
What is zip signing?
For a proper flashable zip, zip signing is used. It generates a hashtable of all the files in the flashable zip to verify its integrity. Note that zip signing might double the process time of generating a flashable zip.
Click to expand...
Click to collapse
.
Does it wipe my user data?
No.
Click to expand...
Click to collapse
.
What is extra zip?
With this feature, you can include additional flashable zip files. An example is to include Xposed directly (you can find the flashable zip in the Xposed apk).
Click to expand...
Click to collapse

Good news... Will try later...

This is awesome tool...
Still couldn't find free time to test it but if it's working and I'm sure it is...
This is more then welcome...
Tnx mate...
Sent from my D6503 using Tapatalk

Will try this on the next FW release, thanks! :good:

Thanks for the tool. Looks great. I'll try it.

Hi,
Thank you.. Looks really good! What do the Kernel, FOTAKernel and LTALabel checkboxes do? Also, will this work with the latest .133 ftf?
Regards,
Alan

nalab1 said:
Hi,
Thank you.. Looks really good! What do the Kernel, FOTAKernel and LTALabel checkboxes do? Also, will this work with the latest .133 ftf?
Regards,
Alan
Click to expand...
Click to collapse
It will include those in the flashable zip. FOTAKernel and LTALabel are not really important but I thought why not include this feature. Kernel is more important and I recommend to always use the kernel from the firmware you're using.
It should work with all the current ftfs (the tool is built for sin version 3).

zxz0O0 said:
It will include those in the flashable zip. FOTAKernel and LTALabel are not really important but I thought why not include this feature. Kernel is more important and I recommend to always use the kernel from the firmware you're using.
It should work with all the current ftfs (the tool is built for sin version 3).
Click to expand...
Click to collapse
Thanks for the reply... What is sin version 3? Also, what are your recommended settings? Tick all boxes or just the Kernel box? What devices/ROMs has it been tested on? Sorry for all of the questions! :laugh:

i just used the xperifirm tool to get the latest z2 .323 update, then used flashtool to create .tft, then your prfcreator tool to make the flashable zip. everything worked perfectly fine (many thanks to the dev's for all this nice and easy to use tools btw), this .zip rom should now be flashable from twrp (i got a locked and unlockable BL) no matter what i have installed on the phone right?
Thanks for your help, i'm new to sony devices and my z2 is only 20 days old, i'm trying hard not to brick it

Wow! Is this magic?
Xperia™ Z (C6602) with Tapatalk!

There was a dev who would create pre-rooted images you could flash on Galaxy S3 phones... that was something very cool!
So, I should be able to flash the zip this creates and have a "pre-rooted" phone image...
I'd half thought you were creating a root-injected FTF file... but this is actually pretty cool as well... (saves the pain that I normally go through to root the image after flashing it... thankful I have an unlocked boot loader...)

nalab1 said:
Thanks for the reply... What is sin version 3? Also, what are your recommended settings? Tick all boxes or just the Kernel box? What devices/ROMs has it been tested on? Sorry for all of the questions! :laugh:
Click to expand...
Click to collapse
The first byte of a sin file (contents of ftf file, the ftf is just a zip) is the version. Currently Sony uses version 3. Well if I would create a pre-rooted zip for myself I would tick all the boxes. I have tested the tool a handful of times on my Z1C.
ptmaniac said:
i just used the xperifirm tool to get the latest z2 .323 update, then used flashtool to create .tft, then your prfcreator tool to make the flashable zip. everything worked perfectly fine (many thanks to the dev's for all this nice and easy to use tools btw), this .zip rom should now be flashable from twrp (i got a locked and unlockable BL) no matter what i have installed on the phone right?
Thanks for your help, i'm new to sony devices and my z2 is only 20 days old, i'm trying hard not to brick it
Click to expand...
Click to collapse
Good to hear. And yes, that is correct. I still recommend to take a backup in TWRP before flashing it (just to be on the safe side).
scifan said:
There was a dev who would create pre-rooted images you could flash on Galaxy S3 phones... that was something very cool!
So, I should be able to flash the zip this creates and have a "pre-rooted" phone image...
I'd half thought you were creating a root-injected FTF file... but this is actually pretty cool as well... (saves the pain that I normally go through to root the image after flashing it... thankful I have an unlocked boot loader...)
Click to expand...
Click to collapse
It's actually not possible to create modified FTF as Sony uses RSA2048 signatures. And yeah, the tool is mainly aimed for those on locked bootloader

NICE! I was just waiting for a root method for my Xperia M2 with KitKat.. The only problem is that there's no Dual-Recovery for it... Would be possible to try the T2U Dual-recovery on my M2?

Very clever, thanks!

Make for samsung please...

linuxct said:
NICE! I was just waiting for a root method for my Xperia M2 with KitKat.. The only problem is that there's no Dual-Recovery for it... Would be possible to try the T2U Dual-recovery on my M2?
Click to expand...
Click to collapse
+1

after finish, app create zip and 2yn file. is it safe to delete 2yn file?

najar360 said:
after finish, app create zip and 2yn file. is it safe to delete 2yn file?
Click to expand...
Click to collapse
What is the filename of the second file? Are you sure it's created by PRFCreator?

Hi @zxz0O0
Thanks for your reply! This is definitely for locked bootloaders - correct?
Regards,
Alan

Related

Lastest Z1C 4.4.4 firmware (14.4.A.0.157) deodexed

Hy guys, I've deodexed the latest 14.4.A.0.157 firmware and made a flashable zip for the new 4.4.4 Firmware (using kamome tool).
based on 14.4.A.0.157 Generic uploaded by @Jozinek (download)
note : This is not a whole rom, only a deodex mod to use with stock 4.4.4 Firmware
Why I made it ?
I would try Z3 app but I needed deodexed firmware, so I decided to deodex it
What you need ?
- 4.4.4 firmware 14.4.A.0.157 (link above)
- root access (sony patched kernel so you may follow this to get root and dont forget to thanks @Jamal_RS)
- a recovery installed
- flashable deodex zip from :
* Google Drive (uploading), sorry I have some troubles to upload on my drive...
* Dropbox
* htcfanboys thanks to @sinosuke
* androidfilehost thanks to @sinosuke
for .108 version :
What you need ?
- 4.4.4 firmware .108 (second edition) from august 28 (download)
- root access
- a recovery installed
- flashable deodex zip from Google Drive - Dropbox
Instructions :
- Copy flashable zip to you SD CARD
- Enter Recovery
do not format /system or anything else otherwise you'll need to flash stock rom
- Flash deodexed 4.4.X YYY Z1C.zip file
- Reboot
- Enjoy deodexed firmware and feel free to install mods
Thanks dude... i need this... for same reason... try a new app from Z3...
Thanks boro
hey guys,
i just installed this, but now i am getting an OTA update (a small one) but i dont know how to install it as it tells me verification failed.
how can i install that OTA? or can I ask you for a favor on incorperating it into your zip please
solidd_swa said:
hey guys,
i just installed this, but now i am getting an OTA update (a small one) but i dont know how to install it as it tells me verification failed.
how can i install that OTA? or can I ask you for a favor on incorperating it into your zip please
Click to expand...
Click to collapse
Lock your bootloader again and it will works
Thanks --- solved my problem after accidentally flashing a deodex systemui, by the way do we have to zipalign after this? got any TUT how to do it or a script to zipalign every boot. Thanks!
themes never change...only the wallpaper....
waxiboy said:
themes never change...only the wallpaper....
Click to expand...
Click to collapse
For me themes are working fine
What's the different of first and second edition on .108?
Will this unlock bootloader!??
TheEndHK said:
What's the different of first and second edition on .108?
Click to expand...
Click to collapse
This second edition brings mainly security enhancement fixes :
-Android 4.4.4 including the latest enhancements and security updates from Google
-Updated and improved camera experience
-Improvements when using Google voice, Contacts, Music streaming and Google+
-The latest versions of our Sony apps for you to enjoy
-All of our latest bug fixes, optimisations & improvements
zike47222 said:
Will this unlock bootloader!??
Click to expand...
Click to collapse
No this will not unlock your bootloader
Hello Tonio78r i have a question, where I can download the firmware you mention? You never mention where to download :silly:
Mrchidongas said:
Hello Tonio78r i have a question, where I can download the firmware you mention? You never mention where to download :silly:
Click to expand...
Click to collapse
Indeed I forgot, here you go
added to OP
Thanks man
i have the stock version on my z1c, i want flash that mod in this thread -->http://forum.xda-developers.com/showthread.php?t=2730097 it's necessary an deodexed rom,so i think that i can install your version but..when there will be other Ota upgrade o other stock version, what i have to do? i have to wait that somebody will do an new deodexed version on last stock firmware?
thanks a lot
Axospirit said:
i have the stock version on my z1c, i want flash that mod in this thread -->http://forum.xda-developers.com/showthread.php?t=2730097 it's necessary an deodexed rom,so i think that i can install your version but..when there will be other Ota upgrade o other stock version, what i have to do? i have to wait that somebody will do an new deodexed version on last stock firmware?
thanks a lot
Click to expand...
Click to collapse
If you want your mods to work well (most of the time) it needs a deodexed rom, so you will need to wait until somebody make it. Be sure I'll make it as soon I can .
BTW this is just a mod so you will need to update your stock rom before flashing deodex mod
Hope I will help you
Tonio78r said:
If you want your mods to work well (most of the time) it needs a deodexed rom, so you will need to wait until somebody make it. Be sure I'll make it as soon I can .
BTW this is just a mod so you will need to update your stock rom before flashing deodex mod
Hope I will help you
Click to expand...
Click to collapse
Thanks for your response!
Which recovery have you used? I have tried the dualrecovery, but after flashing the zip it goes into bootloop.
baseman said:
Which recovery have you used? I have tried the dualrecovery, but after flashing the zip it goes into bootloop.
Click to expand...
Click to collapse
I used TWRP (included in dual recovery). Are you sure you've used the latest .108 firmware ?
You may try to download and flash latest sony 108 from here
BTW I'll make deodex for firmware 14.4.A.0.157 very soon, but I'll not be able to test it because my Z1C is in repair...
Tonio78r said:
I used TWRP (included in dual recovery). Are you sure you've used the latest .108 firmware ?
You may try to download and flash latest sony 108 from here
BTW I'll make deodex for firmware 14.4.A.0.157 very soon, but I'll not be able to test it because my Z1C is in repair...
Click to expand...
Click to collapse
Thank you very much! I'm waiting
Sent from my D5503

[ONLINE-Stable] OTA Server LP | CM, AICP, SOKP, FlexOS, RESSURECTION, TEAM-UB

Supported builds:
AICP by k2wl for i9192
CM12.1 by F4K for i9190, i9192, i9195
CM12 by F4K for i9190, i9195
CM12 by k2wl for i9192
RESURRECTION by lsdty for i9190, i9192, i9195
SOKP by lsdty for i9190, i9192, i9195
FlexOS by lsdty for i9190, i9192, i9195
Team-UB by tioguda for i9190, i9192
Blisspop by tioguda for i9190, i9192, i9195
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you enjoy nightly builds but find all the steps necessary to flash a burden like me, you would be glad that I have achieved OTA updates for UNOFFICIAL builds. I have put together an OTA script that checks every hour for latest build and passes that download link as JSON response to CM Updater OTA app in settings. Example response:
Code:
{"id":null,"result":[{"incremental":null,"api_level":"23","url":"https:\\...\cm-12.1-20150603-UNOFFICIAL serranodsxx.zip","timestamp":"1433289600","mdsum":"23dcbc0c2ba6474f64566adde9d1f6d5","changes":null,"channel":"nightly","filename":"cm-12.1-20150603-UNOFFICIAL-serranodsxx.zip"}],"error":null}
The server :
Supports basketbuild and androidfilehost hosted builds.
Is a free host, with 87% uptime.
Does not host builds
Does not build deltas
Builds flashable zip for every ota supported
You must have TWRP recovery for ota's to work. If you don't have it, you can get it from HERE.
If you don't want TWRP on your device, you can manual flash updates from sdcard0/cmupdater with CWM or Philz.
​
Flash OTA zip for your device and build from http://ota.heliohost.org/zips/, you don't need to flash the zip again after an ota update as it is included in addon.d so it is restored after flash.
*files with _launcher add Updater to appdrawer (useful for non CM builds that don't have Updates in settings>About)
*files with _settings are CM stock
Server changelog:
new script. Once every 2 hours, generates response and zip for 10 builds in less than 30 seconds.
removed ota limit.
changed host.
set androidfilehost.com link limit to 5. [1/5 used]
added androidfilehost.com support.
changed build limit from 2 to 30. [7/30 used]
more optimization.
initial release.
If you want to host your own server [only one build supported], you can find the lite script for basketbuild and androidfilehost in attachments. Just add at first line $raw_url="your build's folder url" . I've added all functions in one file to be easy to set up. Just upload index.php to a folder in your host and set the link to that folder with the options bellow.
There are two ways to route OTA app to your server.
Open CMupdater.apk with hexeditor, search for https://download.cyanogenmod.org/api and replace it with the link to your server(Use Paste-Replace not Paste-Insert), then add that apk to OTA_template.zip from attachments in system/priv-app/CMUpdater.
​
Add cm.updater.uri= 'your server link' on your own build.prop file.
Thank you:
CyanogenMod for their work on OTA app.
k2wl for integrating my server link in your source.
All devs for keeping our devices updated.
julianxhokaxhiu for the insight on how the CMUpdater works.
Internet for php knowledge.
If you like my work, please consider donating.
Cheers !
To do:
Will update zip with addon.d to backup CMUpdater.apk at ota flash so that there will be no need to flash updater again. DONE!
If you want more features, post.
For security and performance concern, I decided not to add control panel for users to freely add builds to server. Just ask and if possible I will add the requested build to server.
Info:
This method can be used by any device or android version. Current zip builder makes zip only for lollipop, but if requested, I can add support for KitKat as well.
BioGenX said:
To do:
Will update zip with addon.d to backup CMUpdater.apk at ota flash so that there will be no need to flash updater again.
Click to expand...
Click to collapse
+1
big day has come for unofficial duos variant!!!
thanks !!!
Can I use the K2WL for the AICP 9.0 builds?
BioGenX said:
To do:
Will update zip with addon.d to backup CMUpdater.apk at ota flash so that there will be no need to flash updater again.
Click to expand...
Click to collapse
will you try to add basketbuild links to OTA script???
that way we can add aicp /cm to this script
Hey @BioGenX Thanks for your effort. I have few queries.
I am on F4K latest 12.1 CM for DUOS(9192) version with F4K kernel and I have flashed your OTA ZIP and now updates menu on setting options work, though no updates are shown as there is no update now.
What is the script for for? Is it of any interest of normal use or only for Devs?
Secondly on updates being available will the entire ROM get downloaded or it will only be an incremental update.
Lastly for CWM recovery users, since you have told that only TWRP us supported, please tell is where the update zip will be stored so that we may manually flash it through C also.
Lastly thanks again.
Pangadaywalker said:
Can I use the K2WL for the AICP 9.0 builds?
Click to expand...
Click to collapse
!This acts as official but is not official. The builds are downloaded from basketbuild.
This will work only if builds are uploaded to basketbuild.com.
The way the script works:
1. You give it basketbuild link ('https://basketbuild.com/devs/k2wl/cm12.1_i9192')
2. Searches .html for latest build ('https://basketbuild.com/filedl/devs?dev=k2wl&dl=k2wl/cm12.1_i9192/cm-12.1-20150601-UNOFFICIAL-serranodsdd.zip')
3. Provides direct download link (''https://basketbuild.com/dl/devs?dev=k2wl&dl=k2wl/cm12.1_i9192/cm-12.1-20150601-UNOFFICIAL-serranodsdd.zip) (replaces 'filedl' in link with 'dl')
3. Searches MD5 from .html
4. Passes MD5
5. Converts date from filename to unix time to get build time (This is what tells the OTA app if it's a new update)
To get any build you like you just change first link in script.
If you upload AICP to basketbuild I can add a script for it as well and make apk for it
parthabhatta said:
Hey @BioGenX Thanks for your effort. I have few queries.
I am on F4K latest 12.1 CM for DUOS(9192) version with F4K kernel and I have flashed your OTA ZIP and now updates menu on setting options work, though no updates are shown as there is no update now.
What is the script for for? Is it of any interest of normal use or only for Devs?
Secondly on updates being available will the entire ROM get downloaded or it will only be an incremental update.
Lastly for CWM recovery users, since you have told that only TWRP us supported, please tell is where the update zip will be stored so that we may manually flash it through C also.
Lastly thanks again.
Click to expand...
Click to collapse
The server script can be used for personal use. First time I used it was on my OPENWRT router. After 2-3 week test I decided to share as it is stable.
The OTA app download entire rom. For incremental it's more complicated and and you need builds on server.
For this you need to implement a REST server. Can find more details here: http://forum.xda-developers.com/showthread.php?t=2636334
The files downloaded by CMUpdated are stored in Internal Storage/cmupdater/
Pangadaywalker said:
Can I use the K2WL for the AICP 9.0 builds?
Click to expand...
Click to collapse
This script only works with basketbuild.com. But if K2WL uploads AICP on basketbuild in the future, i can make a script for it too.
Also please don't ask to implement it for Androidfilehost.com as it doesn't provide MD5. Without MD5 you can't flash OTA.
In development:
Mod update app to flash latest f4k kernel for f4k build when flashing ota.
BioGenX said:
In development:
Mod update app to flash latest f4k kernel for f4k build when flashing ota.
Click to expand...
Click to collapse
Just installed TWRP and your 1.1 mod.
Using i9195 (s4 mini LTE).
If I'll manually check for updates, Will it show the update that is specifically to my rom (F4k cm12.1) ?
Although my rom is based on latest june 3rd 2015, I see there's an update cm-12.1-20150603-unofficial , And I don't know if I should flash it because it's same date of rom i'm currently using....
fish72 said:
Just installed TWRP and your 1.1 mod.
Using i9195 (s4 mini LTE).
If I'll manually check for updates, Will it show the update that is specifically to my rom (F4k cm12.1) ?
Although my rom is based on latest june 3rd 2015, I see there's an update cm-12.1-20150603-unofficial , And I don't know if I should flash it because it's same date of rom i'm currently using....
Click to expand...
Click to collapse
Did you flash v1.1_OTA_CM12.1_F4k_serranotexx.zip ?
It shows that you have connection with the server. If there is a check mark next to the available update you can't/ don't need to download/flash as you already have the latest version. If you have something like a rectangle with an arrow, I think you flashed the zip for DUOS version.
BioGenX said:
Did you flash v1.1_OTA_CM12.1_F4k_serranotexx.zip ?
It shows that you have connection with the server. If there is a check mark next to the available update you can't/ don't need to download/flash as you already have the latest version. If you have something like a rectangle with an arrow, I think you flashed the zip for DUOS version.
Click to expand...
Click to collapse
oops....I prob. did Thank you for the explanantion.
I think I'll need to go back to an earlier rom, Since I see some functionality problems are still in Cm12.1 (Suddenly back and options front led key does not respond.....Happend to me before on cm 12/12.1 roms......
If devs would add their name in ro.cm.version in build.prop (ex. from: 12.1-20150603-UNOFFICIAL-serranodsxx to 12.1-20150603-UNOFFICIAL-serranodsxx-BioGenX) there will only be one zip needed for all devices and builds as the server would identify your device and build when you request a check for updates.
fish72 said:
oops....I prob. did Thank you for the explanantion.
I think I'll need to go back to an earlier rom, Since I see some functionality problems are still in Cm12.1 (Suddenly back and options front led key does not respond.....Happend to me before on cm 12/12.1 roms......
Click to expand...
Click to collapse
I had this problem a wile back. The way I clean install is by cleaning /system, /cache, /data and internal storage. This did fix it for me. Also if you flash an older version and use OTA to update, please post if it worked for you as maybe all the users that used this already have the latest version and I only checked it for DUOS, but there is no reason for it not to work. all i did was change the link to server and add basketbuild links for your device in to the server
I freshly installed about 20 times different roms for the past 2 weeks and even clean installed as you did,But it didn't solve it (I did most installed because of some shut down battery issues i have - But it's prob. the battery itself....)
It's ok, I'll use 10.2 for a while until cm12.1 will get some of the bugs gone.
Thank you very much Bio-G for the help you provided
fish72 said:
I freshly installed about 20 times different roms for the past 2 weeks and even clean installed as you did,But it didn't solve it (I did most installed because of some shut down battery issues i have - But it's prob. the battery itself....)
It's ok, I'll use 10.2 for a while until cm12.1 will get some of the bugs gone.
Thank you very much Bio-G for the help you provided
Click to expand...
Click to collapse
Can you try to disable led illuminate in buttons in settings app ? I see this is a fix for S6 might also work for you. I also have button led illumintion disabled
BioGenX said:
Can you try to disable led illuminate in buttons in settings app ? I see this is a fix for S6 might also work for you. I also have button led illumintion disabled
Click to expand...
Click to collapse
Thank you very much for the tip. I will make a note to myself about it next time I'll install cm12.1
OTA for androidfilehost.com
Good news!
I did some research on androidfilehost.com. It seems they provide an api for direct download and they do generate MD5.
At the time of my post the site is offline, but once it's online I can begin work on my script to support androidfilehost.com as well.
Will update until today/tomorrow OTA's all the UNOFFICIAL lollipop builds for our device if all goes well.
Cheers !
Server may be buggy/offline for today as I am working to optimize the code even more and try to implement androidfilehost.ro in the script
Cheers!

[ROM][Android N][Ported From Z3][Developer Preview 2]Android N ROM For Xperia Z2.

Hey guys! Guess what? I'm currently busy on porting the Android N Developer Preview 2 ROM from the Xperia Z3 to Z2! Hope this turns out stable!
Here is the Download link to the ROM below:
Mediafire: http://www.mediafire.com/folder/hp8fnbbxkbb4f/Android N Xperia Z2
IMPORTANT NOTICE!!!
For anyone or everyone saying that I'm, or that this OP is a troll, please stop. This is a WIP, and the ROM did indeed work (when I still had my PC.) I did follow a ROM port guide the first time when it was successful, but now I don't know which one it is. I have contacted some ROM porters for help so I guess that I should wait for an answer to let them help me port it. And for this ROM, it's NOT for stable use yet. This is just for people wanting to test and see if it works at all. If you have your PC at the moment then please and try to fix it yourself. (I'll add you to credits.) Anyway, sorry about the inconvenience, but please don't call me a troll becuase I'm not! �� Cheers.
BUT BEFORE DOWNLOAD, READ THE STEPS BELOW. I'M NOT RESPONSIBLE FOR ANY DEVICE BRICKS ETC. THIS ROM IS FOR UNLOCKED BOOTLOADER PHONES ONLY HAVING MODEL NUMBER OF D6503.
Better safe then sorry. Create a ROM backup of your device in TWRP before installing the ROM in Recovery! Download ZipMe from the Play Store to backup some of your important data!
1: Download all of the files that you want to flash from the link given above and place them in the Root of your sdcard.
3: Download the updater-script FOR ROM FIX file and rename the file to updater-script.
4: Extract the ROM and replace the updater-script from the one you downloaded earlier with the one in the ROM (META-INF/google/com/android folder I think.). REZIP the ROM.
5: Reboot into recovery. Click on Wipe then "Adcanced Wipe." Wipe Dalvik Cache, Cach, System, Data, and Internal Storage.
6: Go back after finished. Flash the Android N ROM, then the Optional files. (Root, Media Apps, & And Smoother Boot Animation, backed up data etc.)
7: Flash the custom Kernel. (Link: http://forum.xda-developers.com/xperia-z2/development/kernel-advanced-stock-kernel-t3347413)
8: Reboot and Enjoy!!!
If anything isn't working or your stuck in a bootloop, try and flash the bootloop fix file from here: https://mega.nz/#!AJcwERiQ!FUmk6eS5aoVsFSZ1f4WZIELIt7sckPCj11n0AIdCNzU
If your still stuck in a bootloop, then the ROM may not be compatible with your device. Use Flashtool to flash back to Lollipop/Marshmallow and wait for a ROM that's compatible with your Phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THANKS!!!
BTW this ROM is different from the one i installed. i have managed and tried to fix some issues like the camera, but if anything isn't working then just please report it. Thanks.!
Below Are Some Problems That You May Encounter.
-The Multi-Window is EXTREMELY laggy.
-Some apps don't work such as the Beta Program App Settings. (But then again, it's expected from a port. XD)
-Recovery (TWRP) may no longer work. You can try and install a Kernel and Recovery your self, but be sure to make a Backup before risking your phone into a Bootloop.
-My Bootloader is unlocked, so I HIGHLY recommend only flashing this ROM if you have a Unlocked Bootloader. If not, wait for a Locked Bootloader version!
-No more Sony Media Apps (Walkman Music, Album, Video etc.) after flashing ROM, so flash the Sony Media Apps zip after ROM to restore the Media Apps.
-The Boot Animation is EXTREMLY slow and laggy, (5-8fps) so please flash the Smoother Boot Animation zip after ROM flashed to ensure a smoother, 30fps Boot Animation.
I haven't encountered any other problems as of now, but I will update the list if I find a bug! And once I receive a problem or bug, I will try to patch it and upload it as a Flashable zip file to fix the bug. A Screenshot of Home Screen from Z2 Android N ROM is attached below...
Once the link is given and doesn't work on your device, just tell me the problem that it's going through, give me your device details, (LB or UB device, Model number, IMEI etc.) and I'll double check the ROM and will try to make supported for your device!
As you can see in the screenshot attachment down below, i have changed some of my icons (like the app icons and status bar icons) back to stock Xperia. I wasn't a BIG fan of all of the AOSP icons.
Upcoming ROM Information.
Contributers
Brandon Nel
Thiagomesa
pollonamid
hiredantispammer
ROM OS Version: N
ROM Kernel: Z2 Marshmallow 6.0.1 Kernel
ROM Firmware Required: At least 23.5.A.0.486
Based On: Android N DP2
Version Information
Status: BETA
Current Stable Version: N/A
Current Beta Version: 2016/04/27
Stable ROM Release Date: May 3 2016
waiting you.:good:
carlito-lt26i said:
waiting you.:good:
Click to expand...
Click to collapse
Guess what? i'm already busy zipping all the files together ready for upload. The upload link will be available around 3 May 2016 since i can't upload now due to TERRIBLE Upload speed. next week will have access to much faster upload speeds and I will upload the download link then. Thanks for comment!
Will it work on LB also?
Brandon Nel said:
Guess what? i'm already busy zipping all the files together ready for upload. The upload link will be available around 3 May 2016 since i can't upload now due to TERRIBLE Upload speed. next week will have access to much faster upload speeds and I will upload the download link then. Thanks for comment!
Click to expand...
Click to collapse
Bro, once you got the zip ready and uploaded, I can help uploading it to other sites like mega or drive as well. Just hit me up or allow me. My internet is fast AF. The work you're doing here is outstanding.
vikash1994b said:
Will it work on LB also?
Click to expand...
Click to collapse
No sorry. You can try but do a backup first! Link is coming 3 may 2016.
hiredantispammer said:
Bro, once you got the zip ready and uploaded, I can help uploading it to other sites like megaupload or drive as well. Just hit me up or allow me. My internet is fast AF. The work you're doing here is outstanding.
Click to expand...
Click to collapse
thanks but I have no clue on how to share a file to upload without uploading it to begin with. I will be happy to share it but i don't know how it works. Please help! :0
Brandon Nel said:
No sorry. You can try but do a backup first! Link is coming 3 may 2016.
Click to expand...
Click to collapse
Hmm well thnkx for ur work
Btw hw is the rom and bugs?
vikash1994b said:
Hmm well thnkx for ur work
Btw hw is the rom and bugs?
Click to expand...
Click to collapse
The ROM is working pretty good so far. It isn't 100% fast and stable but it works pretty well. For the bugs, the camera is most of the time unresponsive (Probably because I forgot to change the camera settings and stuff before installing it.) The camera also sometimes force closes. As for the Multi-Window, it's almost totally unusable but I think this is because of the CPU and not the ROM. And some apps also don't work at all, such as the Beta Program App Settings, The Notification bar glitching too small etc. Hopefully i will fix these bugs before final upload! Fingers crossed. X0
Brandon Nel said:
thanks but I have no clue on how to share a file to upload without uploading it to begin with. I will be happy to share it but i don't know how it works. Please help! :0
Click to expand...
Click to collapse
Yeah, you'll have to at least upload it to Google Drive or Mega first.
hiredantispammer said:
Yeah, you'll have to at least upload it to Google Drive or Mega first.
Click to expand...
Click to collapse
Sorry then. I'll upload it on 2 or 3 May. Just be patient!
hiredantispammer said:
Yeah, you'll have to at least upload it to Google Drive or Mega first.
Click to expand...
Click to collapse
When I upload it to Dropbox or Drive first, then I will share the link for you to mirror to other sites such as Mega.
wow. great work!
Wow i don't receive the marshmallow update via OTA and you are working in android N.
that's very nice Thanks for all your dedication to have update the Xperia Z2. :good:
zierra05 said:
Wow i don't receive the marshmallow update via OTA and you are working in android N.
that's very nice Thanks for all your dedication to have update the Xperia Z2. :good:
Click to expand...
Click to collapse
Download the FTF via Xperifirm. MM's version number ends in .570.
Then flash using Flashtool. You can choose to wipe or not to wipe data if you're coming from stock lollipop. Just uncheck 'wipe data'. If you follow the steps properly, you should have a smooth upgrade to MM!
Also - could you release a version without the edited status bar icons etc?
Multiwindow maybe working when edit buildprop debug to userdebug ?
This is crazy, only few weeks after the official mm ROM we be gettin Android N. I'm hella shocked right now. We own it to my bruh Brandon
---------- Post added at 11:50 AM ---------- Previous post was at 11:46 AM ----------
http://forum.xda-developers.com/showthread.php?t=2772879
Ur ROM might work wit this recovery
good job!!!
Hi. First thank you for doing this.
You could provide us some information what you did with the N Z3 build to make it work on Z2 so we can reproduce it. I guess you used the Z3 system image and replaced the kernel with a Z2 one. What else was needed to make it work?
Thank you very much.

[FIRMWARE/MODEM][ALL-IN-ONE ZIP] OnePlus One

view it in a browser
XDA Labs ×
Tapatalk ×
Chrome mobile site ✓
Desktop ✓​
This is an All-in-one zip thread with all the modem/firmware(s) for our beloved OnePlus One.
First off, I'd like to thank @zephiK and @mr.shme. But it looks like they both have moved on to different devices. This is an up-to-date thread with all the firmwares and modems, and is constantly being updated.
Here is All-in-one zip : Click here
[UPDATED] New zip here (probably inaccessible, see below)
--
2021 Update
It seems that Google broke some stuff with the link, see below:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've been getting a lot of emails recently requesting access to the firmware zip file and it boggles my mind that you guys are still trying to make something out of the original OnePlus One. That is awesome!
This is the updated link for the firmwares
--
HASHES (of entire .zip file)
CRC32: 6bbfc70d
MD5: 61c5626a96bd88dd0d6c9fed845e9b22
SHA1: 40aecd139592ab882f3da03e798725b267b6765b
SHA256: d081f00b30d60a0fa038b5d8420c5f0d38b2bc453091aec37bb8dd730235b944
SHA384: 60fc621e01da2b8e7e5b501b57b3476bd41253d70f4eb5775cddf2b547a132432f9360d29827be989c720473648b5b2a
SHA512: b28eaa74f012e968e45153d7112176278448574f74cbff62aea5846b1b72699fbac9439eb2735813d49cf5dd34f0cd881332a5f1ec3979ac1d509abc562dbebb
What all is included?
CM11 era/ ColorOS
XNPH44S (11/07/14)
XNPH33R (08/20/14)
XNPH30O (08/10/14)
XNPH25R(07/02/14) + XNPH22R (06/05/14) [same modem]
CyanogenMod 11 Snapshot M11(10/07/14): Same radio as ColorOS 09/18/14
CyanogenMod 11 Snapshot M9 (08/05/14): Same radio as XNPH30O
CyanogenMod 11 Snapshot M8 (07/09/14)
ColorOS 09/18/14: This is the same radio as the ones provided in the latest CM11 Nightlies
To get an idea of what modems are identical and what are not
For these older modems, It should also be noted that in Settings -> About Phone, all the versions are listed as MPSS.DI.2.0.1.c7-00020-M8974AAAAANPZM-1.
>But, there are indeed many differences in the binary files, they just never changed the baseband version.
You can look for the baseband version yourself by searching the following string:
4d 50 53 53 2e 44 49 2e 32 2e 30 2e 31 2e 63 37 2d 30 30 30 32 30 2d 4d 38 39 37 34 41 41 41 41 41 4e 50 5a 4d 2d 31
You will even see that the baseband version is in different lines in each binary.
So even though we don't have changelogs for it, there were definitely changes to the files.
Post CM11 era
Latest CM14.1/ CM13- c6-00241
OxygenOS
1.0 (04/04/15)
2.1.4
HydrogenOS
v1.0- 00004, 00011, 00013
v2.0- 006
Custom firmware by @mr.shme
Recommended firmware by @danieldmm (TugaPowerFirmwareCM13_v4)
Recommended firmware by @jgcaap (OnePlusFirmware-01022016)
Custom firmware by @idprophecy (firmware_fixed: firmware_0_1_c1_11_00006_bacon.zip)
--​
Basically, I created this thread for those people who want to test all the firmwares present for our device and pick the one they find the most suitable for them. Because, as a user, I had to download all of them from androidfilehost and wait 8s for each download. I know it's not the most difficult task in the world, but still, it would be much easier if all of them were present in one zip. So here it is!
The zip is uploaded to Google Drive
INSTRUCTIONS
Open/extract the .zip that you just downloaded [Warning: Don't flash the whole zip file]
You'll see a list of firmwares
Flash any of the firmware in the recovery (I highly recommend @Kutep0v's TWRP 3.1.0-xx)
Voila!
OR​
You can flash the firmware via Fastboot
You just unpack the zip to your fastboot folder (you need to put the device in Fastboot mode obviously) and run these commands:
Code:
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot flash oppostanvbk static_nvbk.bin
For some radio(s) from CM11 era, extract the .bin file out of the .zip file and flash it by typing,
Code:
fastboot flash modem <name-of-modem>.bin
Repeat the above process till you've found the perfect firmware for your device.
Some basic information/ FAQ
What is a Firmware? What is Modem?
- Firmware is the whole package of proprietary partitions of your device, modem itself is a NON-HLOS file responsible for your device's communications over Wi-Fi, Mobile Networks and other such stuff.
So what is the difference between firmware and ROM then?
- Firmware is the responsible partition for IMEIs, the modemst partitions hold your IMEI, persist holds your Mac addresses etc.
ROM is only a combination of system.img and boot.img (kernel)
What to restore if I loose my IMEI?
- Both the modemst partitions (IMP: considering you took a backup of them before)
What is the default firmware? (default= firmware which comes with the latest CM/ LineageOS 14.1 weeklies)
- c6-00241
Which firmware am I using?
- Recommended firmware by @idprophecy works the best for me (firmware_fixed: firmware_0_1_c1_11_00006_bacon.zip)
What is "firmware_fixed.zip"?
- "firmware_fixed.zip" is just the combination of the latest h2os firmware with the previous one (since the newest doesn't have a few parts). Basically, it's just named that way.
Background
Radios are independent of Android version (just don't flash Oxygen Firmwares on any CM11/ 11S ROM, it'll most probably brick your device. Be cautious), use the radio that provides you the best signal. It varies from user to user, there is no best radio/ modem. Why? Different carriers, different locations, and more. There are so many factors that play into cellular signal so just because a particular radio is the best for someone doesn't mean its the best for you.
Interesting fact, Find7 modem works on our OnePlus One, recovery flashable zip here (Not including it in All-in-one zip since it's not for our device, officially)
Check out @Vonnegut's experiences here on modems.
Help out each other, it's a good deed!
Any suggestions? Feel free to reply in this thread.
Thank-you for reading. I would be glad if people find this helpful.
--​
References
@mr.shme's thread here
@zephiK's thread here
@saurabhrck's thread here (OxygenOS 1.0 firmware)
thanks @Bobbi lim (OxygenOS 2.1.4 firmware)
Thanks to everyone who has contributed to this. I'm sorry if I missed you out. Be sure to PM me, and I'll add your name and mention your thread here.
Enjoy guys/ girls!
Hi, missing the 0.1.c1.11-00006 modem. Thats the one I am using with Nougat.
TorchaOne said:
Hi, missing the 0.1.c1.11-00006 modem. Thats the one I am using with Nougat.
Click to expand...
Click to collapse
Mind sharing the .zip (if you have it) so that I could add it in the OP? My goal is to collect as many as there are, thank-you for the feedback!
Which are you using and why?
7u5h4r said:
Mind sharing the .zip (if you have it) so that I could add it in the OP? My goal is to collect as many as there are, thank-you for the feedback!
Click to expand...
Click to collapse
I got it from http://forum.xda-developers.com/showpost.php?p=68406175&postcount=18726
Yes, its Frankenstein build but still
Tried all firmware. The echo on other side who calls me is not gone. Any suggestions. On n rom latest build. Which firmware are u guys using in android n by updating
exadeci said:
Which are you using and why?
Click to expand...
Click to collapse
I've been using 'bacon_firmware_update_2016_1-25_.4.0.1.c7-00011'. It works the best for me, better signal and less radio drain. Although this may/ or may not work well for you. I suggest you to try all of them and stick with the one you're most satisfied with.
Cheers
altruistic666 said:
Tried all firmware. The echo on other side who calls me is not gone. Any suggestions. On n rom latest build. Which firmware are u guys using in android n by updating
Click to expand...
Click to collapse
I'm also using the N AOSP ROM by @updateing and I didn't face any of that issue as of yours with any of the firmware. The stock one works best for me. Maybe try a clean flash?
Sorry for the late replies, folks
Have a great day!
7u5h4r said:
I've been using 'bacon_firmware_update_2016_1-25_.4.0.1.c7-00011'. It works the best for me, better signal and less radio drain. Although this may/ or may not work well for you. I suggest you to try all of them and stick with the one you're most satisfied with.
Cheers
I'm also using the N AOSP ROM by @updateing and I didn't face any of that issue as of yours with any of the firmware. The stock one works best for me. Maybe try a clean flash?
Sorry for the late replies, folks
Have a great day!
Click to expand...
Click to collapse
That problem stayed. Moved to tuga now. All fine.
Sent from my A0001 using XDA-Developers mobile app
For those people who have tried this, and it's been helpful, please reply and let others know. Also let me know of any problems you're facing
Thanks
If we already flash 4.0.1.c1 and want to change to other firmware... Do we need to wipe cache? Or we just flash to other directly... Thanks
Sent from my A0001 using Tapatalk
sujonjul said:
If we already flash 4.0.1.c1 and want to change to other firmware... Do we need to wipe cache? Or we just flash to other directly... Thanks
Click to expand...
Click to collapse
Doesn't really matter. You can just flash it and then wipe Dalvik/ Cache and it'll be fine.
anyone have a recommendation for Telus/Koodo in Canada?
BakaB said:
anyone have a recommendation for Telus/Koodo in Canada?
Click to expand...
Click to collapse
Try using MrSHME
[UPDATED] new all-in-one zip
*Added 3 more firmwares
Link - Gdrive : https://drive.google.com/file/d/0Bzedbk3OVKq1bWF0NzZxRm16TzQ/view?usp=drivesdk
Which is the best radio modem for CM 13 roms?
suvam69 said:
Which is the best radio modem for CM 13 roms?
Click to expand...
Click to collapse
Try c7-00011 first, then c6. These will do.
Tiny request: Can you mark or tell us which ones are recommended by whom? (ref.: http://forum.xda-developers.com/showpost.php?p=70262086&postcount=291)
a good modem for cm14?
Vorshim92 said:
a good modem for cm14?
Click to expand...
Click to collapse
I got good results between signal and battery life with 0.1.c1.11.00004
Lisko said:
I got good results between signal and battery life with 0.1.c1.11.00004
Click to expand...
Click to collapse
Agree, it's the best for me too. Works perfectly with Nougat too.

[HACK+MOD] Sony Xperia XZ Premium TWRP + KERNEL + ROOT + DRM fix/restore

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A MESSAGE TO SONY:
Dear Sony,
It was never my intention to publish a hack for your devices. But... It also was never my intention to buy a device for which I have no control. I find it impertinent to forbid the customer to root a purchased smartphone. I would not have made the effort, if at least the standard functions of the camera could have used. I paid ~750 euros and got a non-functioning camera because I want to have full control of my device. If at least the Camera2 API would have been opened, in order to be able to use other camera apps with full resolution, a hack would not have been necessary. But even with that you are fooling your customers. The only reason I have spent so much time and nerves is that I wanted to have a functioning debloated device with root.
Okay, let's go...
First we need some good music: HERE
##### WARNING: ########
Please note that the modification can result in a loss of warranty. I accept no responsibility for any damage that may occur and do not guarantee the functionality of the modifications. I have created this modification for myself and I just want to make it available to other users. If you have no idea of these things, please keep your fingers away. This hack may - in case of incorrect application - destroy your phone. Please keep to the instructions and report errors right here in the thread.
##### INFO: ###########
I' m providing a complete guide here, explaining how to unlock and root the Sony Xperia XZ Premium. In addition, I offer my hack for the DRM problem. You can root your device and still use the full functionality of the camera. Please note: DON'T flash the fix of other devices/versions to your phone! There are patched system files in my fix, which are only for the related phone/version! I will create different patches for other devices and firmware versions in the future!
Sony has worked on the newer devices on the security functions and made it more difficult to crack the DRM protection. Hidden checks were implemented to make cracking more difficult. The old DRMfix by Tobias Waldvogel no longer works with newer devices. I therefore spent a lot of time (a few weeks) and cracked the protection. Since this was my first time with Sony and I had previously no experience with it, it was a very hard job for me. But okay... finally I did it. And here are my 5 cents...
##### INSTRUCTIONS: #####
Before you start: PLEASE CHECK THE RIGHT VERSION OF YOUR FIRMWARE!!!
Settings -> About the phone -> Model & Build number
Don't flash anything that doesn't match your build!
+++++++++ UPDATE +++++++++++++++++++++++++++
I created a tool "XperiFIX" which can do the magic for you.
See it in action...
If you nevertheless want to do it manually on Nougat, the old instructions and downloads are here: https://forum.xda-developers.com/showpost.php?p=74426201&postcount=285
1. Unlock your bootloader
Visit: https://developer.sonymobile.com/unlockbootloader/ Choose "Xperia XZ" from the list of the devices (only if your device isn't listed) and follow the instructions to unlock your bootloader. Please note, that as soon as you unlock your device, your unique device keys are lost (forever!) and there is NO way back anymore!
2. Use XperiFIX to get what you want
1. Download, install and start "XperiFIX" (as administrator!)
2. Hold down the VolumeUP(+) key only and plug the USB cable to PC and mobile phone until the LED is blue.
3. Read the warning and check the checkbox
4. Click "Fix my device!" button in XperiFIX
5. Now the tool will do it's magic! Please be patient, it can take a few minutes!
Note: If TWRP ask you if the system partition should be mounted read-only, then swipe to the right to allow modifications!
6. If all is done, the device should restart.
7. Check your security status, configuration and camera.
8. Donate me a pizza or some toys for my little son, hehe...
Congratulations!
You now have an unlocked, rooted XZ Premium with my DRMpatch and can use your camera and other functions again without ugly green pictures! Wohoooo... Easy going, huh?
Let's be quiet for a moment and imagine the faces of the developers, who wanted to prevent a DRMfix with the new firmware versions and complex encapsulated security functions:
Cheers!
//sToRm (Heiko Frenzel)
##### FAQ: ################
Can this patch bring back the device key?
No! It simulates the key and a locked device without root. If you unlock and root your device, the unique device key is gone forever! There is not turning back!
Can I use another kernel with this patch?
Yes, but only with Xperifix 2.0 and above. It will patch the ramdisk of the kernel automaticly.
Can I use the patch for other devices or versions?
No! Please don't try this! In my patch I had to fix a system file which is different between the devices and versions. If you flash the wrong version, it could brick your phone! I will create other versions of my patch for other devices, too. So be patient!
TWRP freezes and nothing happens, what should I do?
Please check if you have the correct driver for your device, installed on your PC.
I already rooted my device. Can I use XperiFIX, too?
Yes. If you used Magisk before, you can use XperiFIX without problems. Because XperiFIX will flash a new kernel which isn't pre-rooted. After that XperiFIX will flash Magisk, which will recognize your last Magisk installation. It will patch the new kernel ramdisk and all is fine. Your Magisk old settings will be there, too. If you want to use SuperSU, you can't use XperiFIX, because it's not implemented yet and I personally won't install and test it cause Magisk is running perfect on Nougat and Oreo, too!
I used XperiFIX but it gives me an error and now my device is in a bootloop!
That's not good dude. Please report what exactly you did, with all informations about your device. I will check it. To get a working device again, you can flash the firmware with Newflasher 10+.
My device doesn't respond, nothing works, it stucks in a bootloop, I can't power off?!
Just hold the VolumeUP(+) key together with the Power key. Wait until the device vibrates 3 times (!). Now it's completely off. Then you can try to go in Fastboot mode again to flash or use XperiFIX.
I have a problem, what can I do?
If your question can't be answered here in the FAQ, please post your report. Be sure to give all needed informations. Which device, which firmware version, what you exactly did, ... Without details, nobody can help you!
What does the fox say?
Hatee-hatee-hatee-ho! ^^
##### DOWNLOADS: ##########
XperiFIX_Installer MOD edit, links removed.
Official website: https://www.xperifix.com
Supported devices:
Sony Xperia XZ Premium (Single/Dual)
- Firmware @47.1.A.12.75
- Firmware @47.1.A.12.34
- Firmware @47.1.A.8.49
Sony Xperia XZ1 (experimental)
- Firmware @47.1.A.12.75
- Firmware @47.1.A.12.34
- Firmware @47.1.A.8.49
Sony Xperia XZ1 Compact (experimental)
- Firmware @47.1.A.12.75
- Firmware @47.1.A.12.34
- Firmware @47.1.A.8.49
Old version:
If you are using older firmware versions on your XZ Premium, you can download the last old version (v1.4) from the website (look at the history on the download site).
##### SUPPORT / DONATION: #####
If I could help you with my work, I would be glad if you give me a small thank you. You can DONATE HERE. This would also support further development for newer versions and other devices. Big thanks!
THANKS:
@munjeni
@zxz0O0
@the_brad
@serajr
... and all other users of the "brainstorm thread" for their infos and ideas!
CREDITS:
Included in XperiFIX:
Old DRM restore by @tobias.waldvogel
Magisk by @topjohnwu
TWRP by @Myself5
AndroidLib by @regaw_leinad
YES!
---------- Post added at 10:22 PM ---------- Previous post was at 10:06 PM ----------
Works just like you promised !
Priceless!!!
Congratulations sToRm//!!!
Thank you for your hard work, but it's only for G8141?
oneheart said:
Thank you for your hard work, but it's only for G8141?
Click to expand...
Click to collapse
Other versions will follow. I have a G8141 and the relevant files for this device. But I will download the other versions and release these versions also.
@sToRm//
Waiting a kernel and patch for my sony xperia xz1 dual
I will donate when patch is done
Thank you STORM for your time and work
Pls include my country lebanon in the donation country
Will be sources of the patch and kernel available so we can try to port to nonstock ROMs?
Thanks for all you hard work @sToRm//
@sToRm// For me SafetyNet didn't pass. I don't really care though but I wonder why.
Might be xposed's fault.
FartyParty said:
@sToRm// For me SafetyNet didn't pass. I don't really care though but I wonder why.
Might be xposed's fault.
Click to expand...
Click to collapse
Yes, it's because of Xposed.
@ ALL
G8142 (dual sim) added.
Please test ist and give feedback. I only have a G8141 here.
sToRm// said:
Yes, it's because of Xposed. .
Click to expand...
Click to collapse
Wouldn't it work if I used xposed magisk module then?
Nvm it says in the thread it doesn't pass.
Alright, no big deal for me.
So awesome! Thank you so much.
karrouma said:
@sToRm//
Waiting a kernel and patch for my sony xperia xz1 dual
I will donate when patch is done
Thank you STORM for your time and work
Pls include my country lebanon in the donation country
Click to expand...
Click to collapse
I need the right version of your kernel. Then I can download the FW and check it.
Lebanon? How can I do that? I have no idea... hahaha...
Freaking great work! Congrats on achieving this finally!
Some thoughts on your instructions: TWRP is officially supported for G8141, why not just use that?
If your patch contains patches system files wouldn't it make sense to create a simple magisk module, to keep it systemless?
thaks a lot 4 your work, how about oreo? here the kernel version is 4.4.78, will it work with your patch? Vielen Dank im Voraus )
ponytojas said:
Will be sources of the patch and kernel available so we can try to port to nonstock ROMs?
Thanks for all you hard work @sToRm//
Click to expand...
Click to collapse
If I have some free time, I will write a guide for this. It's a little bit tricky, because you have to understand the reversed code. But I try to create a universal patch.
Hello, just wanted to ask if ist just the stock firmware but with root or an acctual Rom, also: does this version have the Camera2Api and support its super-slow mo? Sorry if i missed something. Great Job by the way
sToRm// said:
If I have some free time, I will write a guide for this. It's a little bit tricky, because you have to understand the reversed code. But I try to create a universal patch.
Click to expand...
Click to collapse
That would be extremely awesome.
Really appreciate all your work, once I get next month salary, you will get enough for a pizza and a beer
stalkopat said:
Hello, just wanted to ask if ist just the stock firmware but with root or an acctual Rom, also: does this version have the Camera2Api and support its super-slow mo? Sorry if i missed something. Great Job by the way
Click to expand...
Click to collapse
It's just a modified kernel and a patch for a system file. The ROM is stock, the kernel is 99,9% stock. It has no effect to Camera2Api.
Hopefully modders like you will convince Sony and other OEMs to get their heads out of their arses and stop wasting time and money (both ours and theirs) with stupid $hit like these.
can you mod this kernel–G8142_45.0.A.7.90,Created byAndroPlus,Thank you! download link
http://pan.baidu.com/s/1qYmLcO8 or https://drive.google.com/file/d/0B0j3VJ1Xp5N8Z0pxaW9ZZ0taaFE/view

Categories

Resources