Better root-kernel and patch drmfix to boot.img (build by yourself) - Sony Xperia XZs Guides, News, & Discussion

THIS IS JUST SHARE HOW I SUCCESS BRING BACK MY SONY APPS WORK LIKE A CHARM, DRM REALY FIXED
I realize that since Oreo, when I flash drmfix.zip shared in this forum I dont realy get drm fixed, just get camera working, not for other apps like X-Reality, Super-vivid and Sony Services (for loging in Xperia Longe) and mybe other related with sony feature.
After some research, evidently Oreo move some files from boot.img to system partition, this files in important for patching so that drm fix work. I followed tutorial in Xperia Z5 thread and get an idea for try to aplicated for XZs and its work like a charm.
I don't own anything for this tool so you can just go to this thread and follow every single instruction in there.
What I get after followed that method :
- dm-verity (disabled) > now I can do debloat system apps
- Sony RIC (disabled) > as above function
- force-encrypt (disabled) > /data fully decrypted, no red message anymore in TWRP
- DRM Loader Patched to boot.img > Flashing drmfix.zip now will bring back Sony Apps Feature (X-Reality, Vivid Mode, Xperia Account Services)
Credit goes for him : serajr
But if you are helped by this information then don't hesitate to click thanks button...
THIS METHOD SHOULD WORK ON LATEST OFFICIAL STOCK ROM [ G823X_41.3.A.2.234 ], AND MAYBE WORK ON NEXT UPDATE
Last thing.... DO WITH YOUR OWN RISK

Screen mirroring not working on xperia xzs

XtremE16 said:
Screen mirroring not working on xperia xzs
Click to expand...
Click to collapse
Never do mirroring cause I dont have devices to cast my XZs, so I have no idea abut that.

Related

[INFO] Latest Flashtool 0.9.11.0 for ALL XPERIA (Windows)

Windows Edition - v0.9.11.0 - MD5 : A0F880F3CF420A31D86026F49A2013D7
Updated on 12/06/2013 ©2011 by Androxyde
More information at http://androxyde.github.com/
Flashtool Release Notes:
* 0.9.11
This version is a big split with every previous ones.
And not fully featured as previous can be.
I changed the UI framework from Swing to SWT because of a better integration with Mac UI.
Here is what is missing from previous releases :
- No multilingual UI
- No recovery installer
- No kernel installer (for 2010 devices)
- No ROM cleaner.
- Cannot Add/Edit/Remove devices.
No TA hex editor (in pro mode)
Version fully compatible with all 2013 devices (Z/ZL/Tablet Z etc etc)
Unified Bootloader unlock feature with the new BLU icon. No more unlock plugin.
As for flashing, BLU is available even without any connected device, even with
unrecognized devices.
Updated SuperSU package. Added servicemnu root hack
(works with Z/ZL for all FW up to .434)
Known working for Xperia T/V too
Added TA partition backup/restore. Using this feature, you can backup TA before unlock.
Restore TA will relock the devicee and get DRM back as well as BE2
(full complete relock). You cannot count on this feature if ever your device is
already unlocked. Missuse of this feature can brick the device
Introduction to Flashtool:
Flashtool is a flashing software that can be used to :
1. Flash original Images (Android 1.6, 2.1, 2.3 Images)
2. Root your phone
3. Install Recovery, Busybox, custom kernels
4. Clean your Rom (remove /system/apps apps of your choice)
(Be careful, unless you really know what you do, do not modify the default list.
This can make your phone stuck at the SE Logo)
5. Clear dalvik cache
6. Optimize (install of JIT v2)
(Disabled in 0.4, will readd it as a plugin for 2.1 phones only)
7. Customize (installs apps found in the custom/apps folder of the flashtool)
8. Clean uninstalled (remove any references to system apps removed in the
Clean (root needed) step)
9. Edit any text file on the device
10. Rebrand your device
Download Link
MOD EDIT: Not authorized mirror links.
MD
HIT THANKS BUTTON IF IT HELPED
This is not yours, and you are unable to support it. Moving this to General.
I'm pretty sure the devs of flashtool don't want it mirrored.
Sent from my Xperia Tablet Z using xda developers app
Thread Closed
As this is an info post to somebody elses work, the following actions have been taken.
1. Mirror download link removed.
2. Thread is closed as there is no need to post replies.
MD

[Xposed][Xperia&AOSP]Advanced Power Menu (New: Anti-theft protection)

This module is discontinued. Try Advanced Power Menu+
For general comments and support, please post in the thread in the Android Apps and Games section.
This thread will then be intended for Xperia-specific discussions only.
{
"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"
}
ADVANCED POWER MENUXposed Mod​
Advanced Power Menu is an Xposed Mod which adds advanced reboot options (reboot, soft reboot and reboot to recovery) and screenshot option to your power menu. It works on both AOSP and Xperia devices. For rebooting into recovery, a special implementation for Xperia devices is used, but it will also work on AOSP devices.
Features
[NEW] Anti-theft helper - Stop anyone from turning off your phone /enabling airplane mode when the device is locked. In this way no one can stop Android Device Manager from locating your phone by turning off the phone or disabling mobile data (removable battery not taken into account)
A dedicate first-level option for rebooting
Fully working reboot to recovery(no reboot wrapper required)*, bootloader and soft reboot
Screenshot function
Quick dial - call a predefined number directly from the power menu
Toggle mobile data from your power menu
High quality mdpi-xxhdpi icons
GUI for different configurations
Multi-language support
Thanks to Xposed framework,
Easy Installation. No flashing required.
Works both for odexed and deodexed ROMs
Quite future proof (should work for Android 4.3 if there is no big framework change from Sony)#
Should work for a lot of devices
* - For rebooting into recovery, a special implementation for Xperia devices is used, but it will also work on AOSP devices.
# - Unfortunately, there IS framework change from Sony, mainly caused by the new theming engine. Therefore the regular Xposed Installer doesn't work on Xperia 4.3 ROMs. You can download the special version here (released by rovo89, mirrored because I've forgotten the original link):http://forum.xda-developers.com/attachment.php?attachmentid=2454695&d=1387049158
Screenshots
See the app in action
You can add items into the power menu like this:
Or remove items like this:
The reboot sub-menu:
Anti-theft helper: this is what a bad guy will see if he tries to turn off your phone while the device is locked:
Settings - great level of customization:
Prerequisites
All Xperia Phones with rooted stock 4.0+ ROM / Nexus devices / AOSP#/ a number of other devices(see confirmed working devices below) (Please do test and tell me)
Xposed framework installed
#AOSP: not including CM, PAC, etc. This may mess things up and there's no point in doing so
Warning: This will definitely NOT work for Samsung TouchWiz stock ROMs or anything based on them!
The effect of this on TouchWiz ROMs will be that your phone will reboot immediately whenever you press the power button
(Google Play Edition will be ok, I think)
Note: for Android 4.4 you need the latest version of Xposed Installer (2.4 Beta 1 or later)
A user has reported that sound options disappear when using this mod on HTC One. I currently have no idea why this happens, and I'm too busy to figure it out at this moment. Sorry.
Installation
You will need xposed framework and for this mod to work! See prerequisites above.
After you meet the prerequisites,
Download and install the apk in the next post
Go to Xposed Installer > Modules and enable "Advanced Power Menu"
Reboot and you are done! (Sometimes you might need to reboot more than once for all functions to work)
Disclaimer
I'm not responsible for any damage caused by this mod! Use this at your own risk.
User agreement
Once you use this software, you agree to the Copyright and Disclaimer statement.
Special Thanks
See file on github
Appeal
If this app helps you please press the Thanks button.
Note
The Change Network State and Internet permission is needed for toggling mobile data.
NOTICE
My app, as well as some other xposed modules, was placed on Google Play without my consent.
This Google Play entry (https://play.google.com/store/apps/d...ncedrebootmenu) was made without my knowledge and agreement, and I am by no means affiliated with the said developer on that entry.
Authentic releases, whether current or future, is only available on Xposed Modules Repository unless I make another notice.
Download
From now on, Advanced Power Menu is hosted on Xposed Module Repository. You may go to there to download, or directly download from Xposed Installer App.
Old versions on xda:
v3.0
v2.1r
v2.1b
v2.0r
v2.0b
v1.1r
v1.1b
v1.0 apk
Which version should I download?
Release(r): Disabled most of the logs. Use this if you have no problems with the app
Beta(b): With full verbose logging. Use this if you encounter problems. Logs can be found at /data/xposed/debug.log
What can you do if the app doesn't work / if issue happens?
Step 1: Try fixing it yourself
1. Make sure that you have read the prerequisites and installation guide thoroughly/
2. Reboot your phone TWICE (TWO TIMES)
For every single xposed mod, a reboot after installation is necessary. But that might not be enough as users have reported that the app doesn't work after a single reboot, but things get right when they reboot again. So rebooting TWICE is recommended
3. Disable all other Xposed Mod
Xposed framework do take care of mods that hook the same method, but sometimes conflicts can still happen. Try disabling all mods except mine in the Xposed Installer. Then reboot and see if things get right.
4. Clear app data/reinstalling my app
The settings may get messed up when my app updates, so try reinstalling and see if it helps.
5. Use an older version of my app
Try this and see if it helps. If so that means a new update breaks something old and please tell me about that!
If all the above doesn't work, you can then send me an issue report.
Step 2: Tell me and see if I can fix it
(Please don't do this before doing step 1)
Please send me an issue report including
1) a description of the issue
2) screenshots (if it helps explain the situation)
3) The device, ROM, Android OS version, and the app version
4) debug.log (Please enable verbose logging in my app first, then do something like long-pressing the power button)(you may obtain the log in xposed installer 2.4)
5) Anything else you think it's important
through one of the following means:
1) xda forum thread/PM (preferred)
2) e-mail (NOTE: please begin your subject with [APM] so I can better sort my emails. Thanks)
Please note that I can't solve the problem with insufficient information. I will also IGNORE any email with NO BODY TEXT (I use gmail)
Keep in mind that even with all the information I still may not be able to fix your problem because I do not own your device and I'm only a novice android developer. Sorry.
FAQ
Q: The mod doesn't work!
A: Other xposed mods might interfere with this mod. Disable them, reboot and try again.
Q: Rebooting into recovery doesn't work!
A: Flashing the DoomLorD's reboot wrapper MAY help. However, as the wrapper is intended to be optional, there might be something wrong. So it'd be nice if you could send me some logs
Q: There's something wrong with the mod...
A: Just disable the mod in Xposed Installer and reboot. Then everything should be fine again (Should this happens please tell me and send me the debug.log and debug.log.old files. This helps me to fix the issue)]
Q: I have a bootloop! What should I do now?
You can follow the following methods (quoted from xposed framework main thread) to disable the xposed framework
In case you get into a boot loop:
You can flash the attached Xposed-Disabler-CWM.zip by Tungstwenty. It will be copied to your (external) SD card when you install Xposed as well. The only thing it does is copying /system/bin/app_process.orig back to /system/bin/app_process, which you can also do yourself (e.g. with adb shell in recovery mode).
You could also create a file /data/xposed/disabled, which causes Xposed to be bypassed as well.
Click to expand...
Click to collapse
Usage Warning
DO NOT press Vol-Down + Power while a screenshot taken by Advanced Power Menu is being saved! This will result in constant force-stop of System UI and you will need to reboot the phone to solve this!
Usage Tip
You can long-press the reboot option on the power menu if you wanna do a normal reboot. Then you can skip the reboot mode dialogue.
Changelog
From now on, all changelogs are on Xposed Module Repository.
Old changelogs:
v3.0
App name is changed to "Advanced Power Menu"
Updated app icon
GUI for configuring different options
options to hide/show reboot option and screenshot option
disable reboot confirmation dialogs
option to write full logs (effectively merging beta and release versions)
many small, under-the-hood changes.
v2.1
Add support for 4.0+ devices
Fixed Simplified Chinese/Traditional Chinese Translations
Changed implementation for rebooting so su permissions are no longer needed
Upstream changes from GravityBox
v2.0
New implementation for rebooting into recovery. Reboot wrapper is no longer needed.
Added screenshot function!
v1.1
Added more than 10 languages (some of them are from GravityBox)
Fixed soft-reboot function
Added drawable resources for xhdpi, hdpi and mdpi
Improved logging system
v1.0
initial release
Source and Permission of Use
Advanced Power Menu is on github.
Please ask for my permission before redistributing or creating derivative works of the app. However, as governed by GitHub's Terms of Service, forking the project on GitHub is permitted. Feel free to fork the project, add your own code, and send me pull requests on GitHub.
Multi-language Support
This app is translated into more than 10 languages.
But if you like to add a new language/ providing better translations you can download the strings.xml and do the modification. I would be grateful for you work!
Note: You don't need to send me the xml file if you'd like to add/change one or two strings only. Just drop me a post/message.
Suggestions/Feature Requests
Your suggestions can help me to improve the app. Feel free to post here.
Confirmed Working Devices/Firmwares
Nexus Devices
Galaxy Nexus 4.3
Nexus 4
Nexus 10
Nexus 5 4.4
Nexus 7 4.4
Sony Xperia Devices
Xperia Z C6603/C6602 .244/.67 odexed
Xperia ZL .244 odexed
Xperia SP .245
Xperia ZQ
Xperia Z Ultra .475
Xperia ZR 4.2.2
Xperia Tablet Z
Xperia S
Xperia U (stock ICS & AOSP)
Xperia UL
Xperia J
Xperia P stock JB
HTC devices
HTC One X 4.2.2 stock Rom with Sense 5
HTC Rezound with Vanir (AOSP Jelly Bean 4.3)
Other Devices
Moto X 4.4
LG Optimus G Pro stock 4.1.2 rooted rom
Samsung Galaxy SII Chameleon ROM v3.0.3 (NOTE: NO SAMSUNG STOCK)
Samsung Galaxy S3 w/ CM11
Micromax CANVAS HD A110
Lenovo p780
Don't be afraid if your device/firmware is not listed on the list. Xposed means high compatibility and ease to revert.
A user has reported that sound options disappear when using this mod on HTC One. I currently have no idea why this happens, and I'm too busy to figure it out at this moment. Sorry.
reserved
---Now you may post---
The apk dont work, it is broken
It works just fine. Installs and works as stated by the OP.
Work good here . Stock Fw .244 Odex.
Thank you so much. :thumbup:
Sent from my C6602 using xda premium
Thanks for this! :good:
Much nicer than the ugly hack I had on my devices, since I find the resources part always a big deterrent
I would just suggest that you remove the logging code to prevent clutter on the debug.log file, since it appears to be working fine.
To me the following message: There was a problem parsing the package.
Damn, I want this application. :crying:
Note: Xblast tools work fine in me phone.
Worked on Xperia ZL 244 ODEX :good:
Edit :
Reboot >>>> Reboot
Soft Reboot >>>> Reboot
Recovery >>>> Reboot
Works great!
Here's Japanese translation:
http://d-h.st/nlp
kennethso168 said:
ADVANCED REBOOT MENUXposed Mod
targeted towards the Sony Xperia Z​
Many of us are waiting for a perfect reboot menu. We don't want one that hides your original power off option with the reboot options in a sub-menu. We don't want one that are specifically for deodexed ROMs. We don't want one that works only partially (very often reboot to recovery doesn't work for Xperia Z, as there is no dedicate reboot partition). We don't want one that doesn't work with a firmware update. We just want a simple reboot menu to get things easier...
Now, wait NO MORE as I proudly present you my work of ADVANCED REBOOT MENU Xposed Mod.
Features
A dedicate first-level option for rebooting
Fully working reboot to recovery and soft reboot
High quality xxhdpi icons
Thanks to Xposed framework,
Easy Installation. No flashing required. (except reboot wrapper)
Works both for odexed and deodexed ROMs
Quite future proof (should work for Android 4.3 if there is no big framework change from Sony)
Should work for a number of similar devices (not tested)
Screenshots
Prerequisites
A rooted Sony Xperia Z with stock odexed or deodexed ROM / All Xperia Phones with rooted stock ROM(Please do test and tell me)
DooMLoRD's Reboot Wrapper "for xperia devices" installed(for rebooting into recovery)
Xposed framework installed
Installation
You will need xposed framework and reboot wrapper(only for rebooting into recovery) for this mod to work! See prerequisites above.
After you meet the prerequisites,
Download and install the apk below
Go to Xposed Installer and enable "Advanced Reboot Menu"
Reboot and you are done!
If you use the reboot to recovery or soft reboot function for the first time you may need to grant superuser permission.
Download
v1.0 apk
Disclaimer
I'm not responsible for any damage caused by this mod! Use this at your own risk.
Special Thanks
@C3C076 for the source of GravityBox
@rovo89 for making xposed framework
@DooMLoRD for making the reboot wrapper
Appeal
If this app helps you please press the Thanks button.
If you find this app useful please consider making a donation.
Please ask for my permission before redistribution/mirroring
Click to expand...
Click to collapse
Soft reboot is not working
Using romAur v8.0 with advanced power menu chosen during installation
Sent from my C6603 using xda premium
Tungstwenty said:
Thanks for this! :good:
Much nicer than the ugly hack I had on my devices, since I find the resources part always a big deterrent
I would just suggest that you remove the logging code to prevent clutter on the debug.log file, since it appears to be working fine.
Click to expand...
Click to collapse
Thank you. But it seems that it's still not the right time to remove the logging code (still some people are having issues)
EDIT: From now on I'll make two versions, one(release) with all logs removed except for some really serious errors, and one(beta) with logging code retained
Ninoh-FOX said:
To me the following message: There was a problem parsing the package.
Damn, I want this application. :crying:
Note: Xblast tools work fine in me phone.
Click to expand...
Click to collapse
The apk you downloaded may be broken. You can download the apk attached in this post and install again. See if this works.
Soheil_rf said:
Worked on Xperia ZL 244 ODEX :good:
Edit :
Reboot >>>> Reboot
Soft Reboot >>>> Reboot
Recovery >>>> Reboot
Click to expand...
Click to collapse
Soft Reboot: see below
Recovery: Did you flashed DooMLoRD's reboot wrapper? Rebooting into recovery doesn't work without that.
You can test whether you've installed the reboot wrapper by entering the following commands in the terminal emulator:
Code:
$ su
# reboot recovery
If this boots straight into recovery, you've reboot wrapper installed.
RyokoN said:
Works great!
Here's Japanese translation:
http://d-h.st/nlp
Click to expand...
Click to collapse
Thanks so much for your translation! Will add it to the next version.
slimshouki said:
Soft reboot is not working
Using romAur v8.0 with advanced power menu chosen during installation
Sent from my C6603 using xda premium
Click to expand...
Click to collapse
Problems regarding soft reboot:
When I first tested my application the soft reboot is somehow ~15 seconds shorter than normal reboot. But when I test now the soft reboot is ~10 seconds longer than the normal reboot. This shows that the two reboot modes are actually the same and the differences are just some periodic fluctuations. Soft reboot doesn't work. Sorry for that.
However, I have still not found any mod/app that can implement a 'soft reboot' that is drastically shorter than normal reboot. I think due to the unique framework structure, it may not be possible to implement a meaningful 'soft reboot' on Xperia Z. If you can find any mod/app that can do this, do tell me about that. Thanks.
Anyway I'll remove the soft reboot option in the next version.
kennethso168 said:
Thank you. But it seems that it's still not the right time to remove the logging code (still some people are having issues)
The apk you downloaded may be broken. You can download the apk attached in this post and install again. See if this works.
Soft Reboot: see below
Recovery: Did you flashed DooMLoRD's reboot wrapper? Rebooting into recovery doesn't work without that.
You can test whether you've installed the reboot wrapper by entering the following commands in the terminal emulator:
Code:
$ su
# reboot recovery
If this boots straight into recovery, you've reboot wrapper installed.
Thanks so much for your translation! Will add it to the next version.
Problems regarding soft reboot:
When I first tested my application the soft reboot is somehow ~15 seconds shorter than normal reboot. But when I test now the soft reboot is ~10 seconds longer than the normal reboot. This shows that the two reboot modes are actually the same and the differences are just some periodic fluctuations. Soft reboot doesn't work. Sorry for that.
However, I have still not found any mod/app that can implement a 'soft reboot' that is drastically shorter than normal reboot. I think due to the unique framework structure, it may not be possible to implement a meaningful 'soft reboot' on Xperia Z. If you can find any mod/app that can do this, do tell me about that. Thanks.
Anyway I'll remove the soft reboot option in the next version.
Click to expand...
Click to collapse
Soft reboot in xposed framework itself works flawlessly
Sent from my C6603 using xda premium
kennethso168 said:
However, I have still not found any mod/app that can implement a 'soft reboot' that is drastically shorter than normal reboot. I think due to the unique framework structure, it may not be possible to implement a meaningful 'soft reboot' on Xperia Z. If you can find any mod/app that can do this, do tell me about that. Thanks.
Anyway I'll remove the soft reboot option in the next version.
Click to expand...
Click to collapse
slimshouki said:
Soft reboot in xposed framework itself works flawlessly
Click to expand...
Click to collapse
Same thing here - XposedInstaller's soft reboot is much faster than the regular reboot.
How about trying the same technique in the next update to see how it goes for users? https://github.com/rovo89/XposedInstaller/blob/master/assets/soft_reboot.sh
Tungstwenty said:
Same thing here - XposedInstaller's soft reboot is much faster than the regular reboot.
How about trying the same technique in the next update to see how it goes for users? https://github.com/rovo89/XposedInstaller/blob/master/assets/soft_reboot.sh
Click to expand...
Click to collapse
Tested and that's true. Thanks for the tip. Will try to integrate this technique in the next version
Version 1.1 released!
Changelog:
Added more than 10 languages (some of them are from GravityBox)
Fixed soft-reboot function
Added drawable resources for xhdpi, hdpi and mdpi
Improved logging system
Download:
See attached.
Which version should I download?
Release(r): Disabled most of the logs. Use this if you have no problems with the app
Beta(b): With full verbose logging. Use this if you encounter problems. Logs can be found at /data/xposed/debug.log
Someonw using dual recovery and enable to get this work by rebooting to recovery?
sent from my lovely XperiA Z
lyndonguti said:
Someonw using dual recovery and enable to get this work by rebooting to recovery?
sent from my lovely XperiA Z
Click to expand...
Click to collapse
I'm using dual recovery...
It works with reboot wrapper(see OP) installed.
Sent from my C6603 using xda app-developers app
kennethso168 said:
Version 1.1 released!
Changelog:
Added more than 10 languages (some of them are from GravityBox)
Fixed soft-reboot function
Added drawable resources for xhdpi, hdpi and mdpi
Improved logging system
Download:
See attached.
Which version should I download?
Release(r): Disabled most of the logs. Use this if you have no problems with the app
Beta(b): With full verbose logging. Use this if you encounter problems. Logs can be found at /data/xposed/debug.log
Click to expand...
Click to collapse
Works perfectly all options
Just have one request
To disable confirmation prompt from any option even power off
It will be much easier
Sent from my C6603 using xda premium
Updated Japanese translation:
Code:
<string name="take_screenshot">スクリーンショット</string>

Rooting guide for latest Xperia Z1 stock ROM and usefull mods + Camera mods guide!

This guide is intended to make it easy for those wanting to root and/or uppgrade camera software and have usefull information that is simple to understand and follow instead of the scattered information throughout the forum threads. A compilation of 2 of my guides all in one place!
My mobilehpone information: Xperia Z1 (C6903), Stock Sony 14.6.A.1.236 NC (Nordic Combined).
--------------------------------------------------------------------------------------
1) Install Terminal Emulator to be prepared. This one below in the link is one of the best and free.
https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
--------------------------------------------------------------------------------------
*Disable anti-virus as you are dealing with a hacker tool that uses exploits to give you root access without unlocking bootloader*
--------------------------------------------------------------------------------------
2) Now follow this root guide and download both files linked in the guide. SuperSu replacement folder "mrw" is unpacked into your mobilephones internal memory.
http://forum.xda-developers.com/xperia-z1/general/root-xperia-z1-lollipop-5-1-1-build-14-t3246373
* Once you installed Kingroot v4.5.2 start it and just press follow the simple instructions. Rooting took less than a minute for me, data traffic was minimal (I run Adguard to monitor and filter).
3) Now directly turn off mobile data and Wi-Fi. Next run Terminal Emulator and follow the guides instructions to replace root manager with SuperSu.
4) When done go to your mobile phones "Settings" -> "Apps" and if you want uninstall "Purify" tweak manager app from "King Team". NOTE: That unless you launch an intalled app for the first time on your mobile then it will never be able to launch by itself. This is an Android feature.
5) Reboot your phone and enable Wi-Fi and mobile data. Download root Checker to verify that you are rooted.
https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck&hl=en
--------------------------------------------------------------------------------------
* To install NUTs compatible dual recovery follow this guide.
http://forum.xda-developers.com/showthread.php?t=2647487
* His manual.
http://nut.xperia-files.com/html/xzdualrecovery-manual.html
* Link to NUTs download page. Download "Z1-lockeddualrecoveryX.X.XX-RELEASE.combined.zip".
http://nut.xperia-files.com/path/XZDualRecovery
* Now put your phone in "USB Debugging Mode" mode via your phones "Settings" -> "Developer Settings". If you dont have developer settings category the follow this guide below to enable it, it's simple and easy. http://www.greenbot.com/article/245...-options-on-your-android-phone-or-tablet.html
* Now connect to your computer and run the downloaded and extracted recovery installation program from NUT (install.bat). NOTE: Dont run it as an administrator as it wont be able to install the recovery. Just run it normally.
* It will restart the phone when done and take you to the TWR recovery interface. Just reboot to "System" and you are done. You will also have a new app called "NDR Utils" where you directly can boot into recovery and much more.
Done!
--------------------------------------------------------------------------------------
TA backup (DRM keys) then follow this guide.
http://forum.xda-developers.com/showthread.php?t=2292598
--------------------------------------------------------------------------------------
If you plan on installing Exposed then first download both files linked in this guide to be able to disable Exposed via the recovery if your phone bootloops after flashing Xposed. Put both files on your phones memory and just incase on the external SD Card if you have one installed.
http://forum.xda-developers.com/xposed/xposed-framework-disabler-incase-t3100669
Xposed flash file and management app in this guide. Follow instructions.
http://forum.xda-developers.com/showthread.php?t=3034811
Thats it!
Camera mods
1) Prepare by putting all relevant zip files in your mobile phones memory. Then close down all apps and then clear data for "Camera extension", "Camera Common", "Camera" and "Cameras" apps.
2) Next boot into your bootloader (I use CWM) to flash the zips. First you flash the "4k/Timeshift" zip then "Camera 2.0 with support for 20MP Superior Auto" (see new Camera 2.0 link below) and lastly "Z5 Camera Lib" mod designed for the Z1. Wipe dalvik and cache and then boot back into system. That's it!
--------------------------------------------------------------------------------------
4k/Timeshift mod (first download link).
http://forum.xda-developers.com/showpost.php?p=63794286&postcount=264
--------------------------------------------------------------------------------------
Z5 camera libs mod (second download link "Full Z5 Premium Camera Files, libs and Res Port For Z3-Z2-Z1-ZU").
http://forum.xda-developers.com/cro...-xperia-z5-premium-camera-libs-files-t3260819
--------------------------------------------------------------------------------------
Camera 2.0 with Superior Auto 20MP support. http://forum.xda-developers.com/showpost.php?p=63864599&postcount=43
EDIT: There is a new Camera 2.0 mod which is better than the above mentioned as it is does the same but also allows for more! It adds scene selection at any resolution, 2 more focus mode settings, allows you to set upto ISO 3200 in full resolution and jpeg quality increased from 97% to 100%. Follow instructions in the thread. I just renamed the apk to correct name SemcCameraUI, put it in phones storage then cleared "Camera" and "Cameras" data via the settings -> Apps -> All menu and then booted into recovery to copy the camera app to "system/priv-app/SemcCameraUI" folder and set the camera app permission settings to 644. Then re-booted the phone. I did not need to disable signature verification. Also you need to have the Z5 Camera Libs installed for it to work.
Link to improved Camera 2.0: http://forum.xda-developers.com/cro...z1-z4-z5-camera-1-0-unlocked-20-23mp-t3335412
--------------------------------------------------------------------------------------
That's it. When launching Camera 2.0 change the resolutions randomly then back to what you want to have it at so that it flushes data and loads libraries. Enjoy! .
Continue to use original Camera 1.0 from Xperia Z1 as it gives much better image quality, exposure to shutterspeed balance and colors as opposed to Camera 2.0 which really aint made for Z1-Z3 range line.

Systemless SuperSU for stock roms

Hello all,
as you may know installing systemless SuperSU for Z2 Tablet stock roms was not possible until now due to the ELF format of the boot image. As a workaround one was required to install SuperSU in system mode, but support for this installation type seems to fade away...
In order to have convenient solution to enable systemless installation for elf boot image files, @adriandC created a tool called boot_bridge that works around the limitations caused by the ELF format. Up to now, only Xperia SP and similar device have been supported.
But, due to the recent efforts to support ELF images in libbootimg (backend library used by MultiRom) and which are found in Z2 and similar devices, the boot_bridge tool should now support the Z2 Tablet as well (boot_bridge also uses the libbootimg library). This is a result of a collaborative effort of AdrainDC and me wherby the main portion of the work on the boot_bridge was done by AdrainDC (I focussed on the Z2 ELF support, where AdrainDC fixed may changes such that the Xperia SP support is no broken )
You can find the tools here:
boot_bridge
Regards,
Diewi
P.S: I am posting this here to raise awareness of this useful tool, since this update may be easily missed in the cross-device dev section).
P.P.S: I did not test the boot_bridge tool with the Z2 Tablet itself, but with a Z2. Since I have run tests of the libbootimg library changes with multirom, the support in boot_bridge will scale to the Z2 Tablet. (same platform & same ELF boot image format)
Would this allow you to install Magisk?
Sent from my SGP512 using XDA Premium HD app

Xperia Qualcomm Modes

I'm having some trouble with the modem (and LTE compatability) on my XZ1 Compact, and I was wondering if anyone has experience with the different kinds of boot modes and/or Qualcomm transfers.
There's some Qualcomm software (QPST) that supposed to let you write to the modem partition. There are some instructions here
Modify Sony XZ, XZs, XZ Premium, XZ1 and XZ2 LTE-A band combos - MT-TECH.FI
On this instruction we will modify on Sony smartphone band combo profiles with Qualcomm software. Sony smartphones have software limitation and we will unlock this. We have tables of supported CA combos per group: Sony XZ(s) Sony XZ Premium Sony XZ1 & XZ1 Compact Sony XZ2 & XZ2 Compact We will...
mt-tech.fi
and here
Getting VoLTE and VoWiFi on unlisted carriers by flashing mbn file
I live in Canada and I have a BC72 (Asian version). I am struggling to get VoLTE and VoWiFi working. I know that mbn file is the key to getting IMS support and sony seems to block some carrier mbn files (only mbn in sales areas are available). So...
forum.xda-developers.com
That I was trying to follow along with, but doing the setopt doesn't seem to change the mode of my phone/usb connections, and so I can't update the drivers or connect the QPST software to read or write the filres.
There's also supposedly an EDL mode that Qualcomm phones can get into, which should also connect to the software
What is EDL Mode and How to Boot your Qualcomm Android Device into it
Android phones and tablets equipped with Qualcomm chipset contain a special boot mode which could be used force-flash firmware files for the purpose of unbricking or restoring the stock ROM.
www.thecustomdroid.com
but those instructions don't work either - adb reboot edl just reboots the phone back into the rom, and fastboot oem edl tells me that's not a supported function.
Does anyone have experience getting either of these to work and/or updating the modem software?
I can't follow these steps:
XZ1 Compact - MetroPCS VoLTE + Latest Pie + Fingerprint + Wi-Fi Calling Step by Step Guide
Overview: This guide provides step-by-step instructions for flashing any existing Sony stock rom Android 8 or 9 to the latest Sony stock ROM Android 9 Build v47.2.A.11.228 for use on the MetroPCS network. The finalized flash is a hybrid of Sony...
forum.xda-developers.com
since I don't seem to have this overlay functionality baked into my rom.
I recognize that part of this might be something to do with my ROM - which I believe is AOSP based instead of stock based - but even in the worst cast scenario it seems like I should be able to override whichever default mbn file the phone is deciding to use (perhaps set from a partition flash?) with whichever one I'd like it to use, instead. I just can't figure out how to determine what my phone is currently picking, or how to correct it.
Any tips or suggestions would be greatly appreciated. Thanks!
I'm having some trouble with the modem (and LTE compatability) on my XZ1 Compact, and was trying to experiment with adjusting the files manually.
Does anyone have experience with the different kinds of boot modes and/or Qualcomm transfer?
I've tried on both an XZ1c and a Z5c, both of which result in similar behaviors.
Extra context:
There's some Qualcomm software (QPST) that supposed to let you write to the modem partition. There are some instructions here
Modify Sony XZ, XZs, XZ Premium, XZ1 and XZ2 LTE-A band combos - MT-TECH.FI
On this instruction we will modify on Sony smartphone band combo profiles with Qualcomm software. Sony smartphones have software limitation and we will unlock this. We have tables of supported CA combos per group: Sony XZ(s) Sony XZ Premium Sony XZ1 & XZ1 Compact Sony XZ2 & XZ2 Compact We will...
mt-tech.fi
and here
Getting VoLTE and VoWiFi on unlisted carriers by flashing mbn file
I live in Canada and I have a BC72 (Asian version). I am struggling to get VoLTE and VoWiFi working. I know that mbn file is the key to getting IMS support and sony seems to block some carrier mbn files (only mbn in sales areas are available). So...
forum.xda-developers.com
That I was trying to follow along with, but doing the setopt doesn't seem to change the mode of my phone/usb connections, and so I can't update the drivers or connect the QPST software to read or write the filres.
There's also supposedly an EDL mode that Qualcomm phones can get into, which should also connect to the software
What is EDL Mode and How to Boot your Qualcomm Android Device into it
Android phones and tablets equipped with Qualcomm chipset contain a special boot mode which could be used force-flash firmware files for the purpose of unbricking or restoring the stock ROM.
www.thecustomdroid.com
but those instructions don't work either - adb reboot edl just reboots the phone back into the rom, and fastboot oem edl tells me that's not a supported function.
Does anyone have experience getting either of these to work and/or updating the modem software?
I figured I'd try asking in the cross-device forum since most of the Sony phones use a Qualcomm modem, so it seems like it should be applicable to more than just one model.
Any tips or suggestions would be greatly appreciated. If I get it working, I'll happily follow up with a guide for others.
Unfortunately, SONY seems to have banned edl from the factory. Unless your phone is an engineering sample.
laojiefang said:
Unfortunately, SONY seems to have banned edl from the factory. Unless your phone is an engineering sample.
Click to expand...
Click to collapse
NO, My xperia xz2 detect as edl mode
{
"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"
}
cuynu said:
NO, My xperia xz2 detect as edl mode
View attachment 5774603
Click to expand...
Click to collapse
Can you use the public version of elf files to read your phone partition? Like this?
laojiefang said:
Can you use the public version of elf files to read your phone partition? Like this?View attachment 5774611
Click to expand...
Click to collapse
No, qfil say timeout error
cuynu said:
No, qfil say timeout error
Click to expand...
Click to collapse
First of all, according to your screenshot, you don't seem to have the edl driver installed. Second, your xz2 is a retail phone, which cannot use edl mode for all operations.
Sorry for the delay; it's been a weird week.
laojiefang said:
Unfortunately, SONY seems to have banned edl from the factory. Unless your phone is an engineering sample.
Click to expand...
Click to collapse
Interesting, thanks for this info! It at least explains why I was unable to get into it, despite the Qualcomm modem.
Do you have any experience with the "setprop persist.usb.eng 1" setting, and what it's doing?
As far as I can tell that's sometimes doing triggering a similar mode for folks, with some ROMs, but I don't understand it enough to grok why it's not doing the same for my device, and if it's even possible to get it working or if I need to switch to a completely different ROM.
It seems like the modem configuration should be independent of the ROM, but I have a sneaky suspicion that backing up, switching/re-configuring, then restoring my current one won't end up with it working any better.
laojiefang said:
a retail phone, which cannot use edl mode for all operations.
Click to expand...
Click to collapse
Do you know anything about which operations are or aren't possible? The Xperia 1 III post suggests that some of them are possible - at least to download and upload files, which is hopefully enough here to tweak my settings so I'd have better LTE/VoIP compatibility.
Thanks again for your insight!
tonsofquestions said:
Sorry for the delay; it's been a weird week.
Interesting, thanks for this info! It at least explains why I was unable to get into it, despite the Qualcomm modem.
Do you have any experience with the "setprop persist.usb.eng 1" setting, and what it's doing?
As far as I can tell that's sometimes doing triggering a similar mode for folks, with some ROMs, but I don't understand it enough to grok why it's not doing the same for my device, and if it's even possible to get it working or if I need to switch to a completely different ROM.
It seems like the modem configuration should be independent of the ROM, but I have a sneaky suspicion that backing up, switching/re-configuring, then restoring my current one won't end up with it working any better.
Do you know anything about which operations are or aren't possible? The Xperia 1 III post suggests that some of them are possible - at least to download and upload files, which is hopefully enough here to tweak my settings so I'd have better LTE/VoIP compatibility.
Thanks again for your insight!
Click to expand...
Click to collapse
Do you mean that you can use certain ROMs to trigger edl mode? (I'm sorry that I'm Chinese, and I can't understand your words with machine translation.)
I don't know if it's the same as EDL mode, but it seems like certain ROMs (likely stock at least) can get into some kind of Qualcomm mode by following the instructions outlined here:
Modify Sony XZ, XZs, XZ Premium, XZ1 and XZ2 LTE-A band combos - MT-TECH.FI
On this instruction we will modify on Sony smartphone band combo profiles with Qualcomm software. Sony smartphones have software limitation and we will unlock this. We have tables of supported CA combos per group: Sony XZ(s) Sony XZ Premium Sony XZ1 & XZ1 Compact Sony XZ2 & XZ2 Compact We will...
mt-tech.fi
Otherwise, the instructions probably wouldn't exist.
I just can't get it to work on _my_ ROM.
Happy to try and rephrase if you can point out what wasn't clear in the translation!
tonsofquestions said:
I don't know if it's the same as EDL mode, but it seems like certain ROMs (likely stock at least) can get into some kind of Qualcomm mode by following the instructions outlined here:
Modify Sony XZ, XZs, XZ Premium, XZ1 and XZ2 LTE-A band combos - MT-TECH.FI
On this instruction we will modify on Sony smartphone band combo profiles with Qualcomm software. Sony smartphones have software limitation and we will unlock this. We have tables of supported CA combos per group: Sony XZ(s) Sony XZ Premium Sony XZ1 & XZ1 Compact Sony XZ2 & XZ2 Compact We will...
mt-tech.fi
Otherwise, the instructions probably wouldn't exist.
I just can't get it to work on _my_ ROM.
Happy to try and rephrase if you can point out what wasn't clear in the translation!
Click to expand...
Click to collapse
Oh I see, this mode is not edl mode, it is Qualcomm diag port, it is used to modify the xml configuration file of the phone to remove some software level band restrictions. For example, in mainland China where I live, LG mobile phones cannot use 5G. By this method, you can use 5G in mainland China by brushing the xml file of the Chinese version of LG mobile phones
OK, that makes sense.
In my research to be able to do this, I saw mentions of both the diag and edl modes, but nothing highlighted the distinctions, so I thought they were different names for the same thing.
So if edl mode is disabled by Sony for these devices, perhaps the correct question to ask is "how can I enable this diag mode/port", if this command is not available? Is it part of the ROM, or available in some other way?
For that matter, if it's a software level-band restriction, is that software itself in the ROM or the modem files? Do changes persist across ROMs?
For example, if you fix the 5G settings in one setup, then switch to a different OS build/version, will you still be able to use 5G, or would you have to reconfigure again?
tonsofquestions said:
OK, that makes sense.
In my research to be able to do this, I saw mentions of both the diag and edl modes, but nothing highlighted the distinctions, so I thought they were different names for the same thing.
So if edl mode is disabled by Sony for these devices, perhaps the correct question to ask is "how can I enable this diag mode/port", if this command is not available? Is it part of the ROM, or available in some other way?
For that matter, if it's a software level-band restriction, is that software itself in the ROM or the modem files? Do changes persist across ROMs?
For example, if you fix the 5G settings in one setup, then switch to a different OS build/version, will you still be able to use 5G, or would you have to reconfigure again?
Click to expand...
Click to collapse
edl mode is disabled at the factory. diag port is not disabled. I have never seen a phone with diag mode disabled.
LG mobile phones need to be re-cracked after changing the SIM card in mainland China, because the carrier_policy.xml file will change with the change of the SIM card, but after the cracking is completed when the SIM card is inserted, the third-party ROM such as MIUI does not need to be re-cracked. However, after replacing the SIM card, it cannot be cracked through the diag port again, unless the original firmware is flashed back. Sony I'm not sure if that's the case.
If you want to enable diag on a phone that is disabled by default, you must root the phone and then open it using adb shell command in the Android debug bridge (like the link you sent me).
tonsofquestions said:
Sorry for the delay; it's been a weird week.
Interesting, thanks for this info! It at least explains why I was unable to get into it, despite the Qualcomm modem.
Do you have any experience with the "setprop persist.usb.eng 1" setting, and what it's doing?
As far as I can tell that's sometimes doing triggering a similar mode for folks, with some ROMs, but I don't understand it enough to grok why it's not doing the same for my device, and if it's even possible to get it working or if I need to switch to a completely different ROM.
It seems like the modem configuration should be independent of the ROM, but I have a sneaky suspicion that backing up, switching/re-configuring, then restoring my current one won't end up with it working any better.
Do you know anything about which operations are or aren't possible? The Xperia 1 III post suggests that some of them are possible - at least to download and upload files, which is hopefully enough here to tweak my settings so I'd have better LTE/VoIP compatibility.
Thanks again for your insight!
Click to expand...
Click to collapse
here is my post with info about persist.usb.eng:
[DEVONLY] LineageOS 16
This is the development thread for Lineage 16. Everyone who knows C, Java and strace is welcome to participate. Please send git formatted patches! Device Trees https://github.com/cryptomilk/android_kernel_sony_msm8998...
forum.xda-developers.com
[DEVONLY] LineageOS 16
This is the development thread for Lineage 16. Everyone who knows C, Java and strace is welcome to participate. Please send git formatted patches! Device Trees https://github.com/cryptomilk/android_kernel_sony_msm8998...
forum.xda-developers.com
and this one in particular:
[DEVONLY] LineageOS 16
This is the development thread for Lineage 16. Everyone who knows C, Java and strace is welcome to participate. Please send git formatted patches! Device Trees https://github.com/cryptomilk/android_kernel_sony_msm8998...
forum.xda-developers.com
concerning EDL mode (as discussed a different thing to diag mode) - you can boot into EDL with retail xz1c using a kernel patch which re-adds support for 'adb reboot edl', but it is not useful, because it needs sony signed EDL image that is loaded via usb (I happen to have it, but all interesting commands are protected by sony authentication, so it is not useful anyway)
laojiefang said:
LG mobile phones need to be re-cracked after changing the SIM card in mainland China, because the carrier_policy.xml file will change with the change of the SIM card, but after the cracking is completed when the SIM card is inserted, the third-party ROM such as MIUI does not need to be re-cracked. However, after replacing the SIM card, it cannot be cracked through the diag port again, unless the original firmware is flashed back. Sony I'm not sure if that's the case.
If you want to enable diag on a phone that is disabled by default, you must root the phone and then open it using adb shell command in the Android debug bridge (like the link you sent me).
Click to expand...
Click to collapse
Yes, the phone is rooted (thus the custom ROM, though I guess you could unlock and not root, but that just seems silly).
Thanks for the context on changing the SIM card, perhaps that's my underlying issue, and I'll just have to bite the bullet and go back to the original firmware.
j4nn said:
here is my post with info about persist.usb.eng:
[DEVONLY] LineageOS 16
This is the development thread for Lineage 16. Everyone who knows C, Java and strace is welcome to participate. Please send git formatted patches! Device Trees https://github.com/cryptomilk/android_kernel_sony_msm8998...
forum.xda-developers.com
[DEVONLY] LineageOS 16
This is the development thread for Lineage 16. Everyone who knows C, Java and strace is welcome to participate. Please send git formatted patches! Device Trees https://github.com/cryptomilk/android_kernel_sony_msm8998...
forum.xda-developers.com
and this one in particular:
[DEVONLY] LineageOS 16
This is the development thread for Lineage 16. Everyone who knows C, Java and strace is welcome to participate. Please send git formatted patches! Device Trees https://github.com/cryptomilk/android_kernel_sony_msm8998...
forum.xda-developers.com
concerning EDL mode (as discussed a different thing to diag mode) - you can boot into EDL with retail xz1c using a kernel patch which re-adds support for 'adb reboot edl', but it is not useful, because it needs sony signed EDL image that is loaded via usb (I happen to have it, but all interesting commands are protected by sony authentication, so it is not useful anyway)
Click to expand...
Click to collapse
Ah, this is super interesting info, thank you j4nn! I am on Oreo, so maybe it's just as easy as setting a few of the extra props. I'll read through the read more later this evening.
Very neat about being able to custom-patch in the EDL reboot, and it makes sense that it wouldn't support random unsigned flashes, even if the phone is bootloader unlocked.
Do you have any additional experience with unlocking additional bands from the diag mode? I'm not sure what you were experimenting with at the time - if it was for your root exploit or something else.
no, I do not have any experience unlocking additional bands, I do not know any other stuff about that diag apart from what has been posted there
but I find following thread very interesting and I guess it might be related to what you want too:
XZ1 Compact - MetroPCS VoLTE + Latest Pie + Fingerprint + Wi-Fi Calling Step by Step Guide
Overview: This guide provides step-by-step instructions for flashing any existing Sony stock rom Android 8 or 9 to the latest Sony stock ROM Android 9 Build v47.2.A.11.228 for use on the MetroPCS network. The finalized flash is a hybrid of Sony...
forum.xda-developers.com
Yup, I'm well familiar with that thread. I helped eparr with the guide a little, and gave him the older stock image that he couldn't find online anymore.
We also had a separate conversation about a similar problem I was/we were having (relevant to this discussion) here: https://forum.xda-developers.com/t/carriers-for-xperia-xz1-compact-in-us.4477627/ where we talked about his guide, custom flashing, the Sony CustomizationSelector app, modem overlays, and a few other things.
I think because I'm running an AOSP-based (rather than stock-based) ROM, some of these options aren't available to me, which is why I was trying to investigate EDL and diag modes to connect with and adjust the modem configurations directly.
I should probably explore some alternative ROMs but since this phone is also my daily driver, there's a high cost/interrupt to wiping, reinstalling, and repeatedly experimenting, so I've been reluctant to do anything too extreme until the holidays.
Did you test LOS? I believe they have implemented very special stuff for modem and customizations handling there...
I have not yet. I'm currently running an Oreo AEX build. But LOS is one of the ones on my list to experiment with when I get a chance to upgrade.
I think this is the stuff integrated in LOS:
GitHub - whatawurst/OpenCustomizationSelector
Contribute to whatawurst/OpenCustomizationSelector development by creating an account on GitHub.
github.com

Categories

Resources