Custom Rom Development - Sony Xperia XZ3 Questions & Answers

Hi guys. I'm due an upgrade soon and have never had a sony phone before and was thinking of getting the xz3. What's the custom rom development like on Sony? Are they easy enough to root and mod? My current phone is HTC 10 and looking for something different. Any advise appreciated :good:

Generally my experience is that custom rom development for Sony flagships is quite active and varied. However, the phone has only been out for barely a month and there is no TWRP or DRM fix for the phone yet.
However, it does run Android Pie, so whenever a (stable/working) TWRP is released you should be able to flash any Project Treble ROMs.

mufunyo said:
Generally my experience is that custom rom development for Sony flagships is quite active and varied. However, the phone has only been out for barely a month and there is no TWRP or DRM fix for the phone yet.
However, it does run Android Pie, so whenever a (stable/working) TWRP is released you should be able to flash any Project Treble ROMs.
Click to expand...
Click to collapse
Thanks for the info. I was reading about drm today and how it can stop camera and bravia from working. Seems like a minefield. Do you have to unlock bootloader before rooting Sony devices? Is it done through adb or is there a tool or app for rooting?

Harrygsr said:
Thanks for the info. I was reading about drm today and how it can stop camera and bravia from working. Seems like a minefield. Do you have to unlock bootloader before rooting Sony devices? Is it done through adb or is there a tool or app for rooting?
Click to expand...
Click to collapse
Yes, rooting implies modifying the boot partition, for which you need to unlock your boot loader. Unlocking your boot loader destroys the TA partition which contains your DRM keys. Once unlocked you can flash a custom recovery (like TWRP) through ADB, and then you can install Magisk using the ZIP flash functionality of your custom recovery.

Can anyone check if you can enable OEM unlock in developer option?
SOMC disabled OEM unlocking in Pie update for XZ2 and it may affect XZ3.
XZ2 has Oreo rom and downgrade is possible, but XZ3 is shipped with Pie, so...
https://github.com/sonyxperiadev/bug_tracker/issues/211#issuecomment-431021544

oem unlock greyed out...at least on both hk dual sim firmware and us single sim firmware
AndroPlus said:
Can anyone check if you can enable OEM unlock in developer option?
SOMC disabled OEM unlocking in Pie update for XZ2 and it may affect XZ3.
XZ2 has Oreo rom and downgrade is possible, but XZ3 is shipped with Pie, so...
https://github.com/sonyxperiadev/bug_tracker/issues/211#issuecomment-431021544
Click to expand...
Click to collapse

clyde112 said:
oem unlock greyed out...at least on both hk dual sim firmware and us single sim firmware
Click to expand...
Click to collapse
Same with my german h8416 (t-mobile ger)

I have find this today: https://talk.sonymobile.com/t5/Andr...unlocking-option-greyed-out/td-p/1348087#gref
the next release date is arround 15 december, i think.

15 december too long from now, should fix this asap. No excuse not to fix this when Sony lists XZ3 as open device....
note:the reference you gave does not list 15 december, assuming this is your guess?
sq_dev said:
I have find this today: https://talk.sonymobile.com/t5/Andr...unlocking-option-greyed-out/td-p/1348087#gref
the next release date is arround 15 december, i think.
Click to expand...
Click to collapse

Guys if you want eXistenZ rom on your device, try to raise some founds to get me your device and I'll be able to develop for XZ3 [emoji6]
Here link of my XZ2 rom, as you will see this is best Pie rom available and fully functional.
https://forum.xda-developers.com/xperia-xz2/development/rom-existenz-pie-v1-0-0-26-11-18-t3871854
Envoyé de mon H8266 en utilisant Tapatalk

Related

Need people with unlocked bootloader for future development

As we all know the development of our device isin't going great because of the Huawei decision to stop bootloader unlocking but we have a developer who is ready to work on our device And he already successfully ported the twrp for our device which is available in the development section but future development is halted because of the lack of the required files which can only be obtained from the devices with a root access which is only possible with unlocked bootloader .So anyone who has an unlocked bootloader and want to contribute in the future development of Honor play, please! ping me or drop down a comment or a reply below.
Thank you.
nitindabas said:
As we all know the development of our device isin't going great because of the Huawei decision to stop bootloader unlocking but we have a developer who is ready to work on our device And he already successfully ported the twrp for our device which is available in the development section but future development is halted because of the lack of the required files which can only be obtained from the devices with a root access which is only possible with unlocked bootloader .So anyone who has an unlocked bootloader and want to contribute in the future development of Honor play, please! ping me or drop down a comment or a reply below.
Thank you.
Click to expand...
Click to collapse
please check in develop menu,that "enable oem unlock" switch active or inactive... if inactive, you and other people can't open bootloader...
spityu85hun said:
please check in develop menu,that "enable oem unlock" switch active or inactive... if inactive, you and other people can't open bootloader...
Click to expand...
Click to collapse
Actually we need people with unlocked bootloader and yeah it's available for me and i think only Chinese varient of the phone can't be unlocked. Cuz Indian varient still have this option even after updating to emui 9.
nitindabas said:
Actually we need people with unlocked bootloader and yeah it's available for me and i think only Chinese varient of the phone can't be unlocked. Cuz Indian varient still have this option even after updating to emui 9.
Click to expand...
Click to collapse
The option disappeared for me too. I checked after updating to .157 build
I'm 156 and it is blocked.
Are people who have the button OEM unlocked already via Oreo?
UK device COR29
Also FunkyHuawei not giving out codes anymore so no point?!
Code:
Huawei / Honor Bootloader Unlock Code
Sorry, bootloader code processing is currently not available. Check back on this page for future availability.
spityu85hun said:
please check in develop menu,that "enable oem unlock" switch active or inactive... if inactive, you and other people can't open bootloader...
Click to expand...
Click to collapse
Will it still need Unlock Code even if we can enable that enable oem unlock option?
SBVKrishna said:
Will it still need Unlock Code even if we can enable that enable oem unlock option?
Click to expand...
Click to collapse
yes,but if the switch is inactive it cannot be enabled... see attached picture, inactive the "enable oem unlock" switch on my phone... if you can't turn it on, you can't enable opening,if there is any code, then... if this switch is active, then approving bootloader opening/unlocking... but have unlock code, but switch is inactive, cannot open bootloader with code...
Honor should change name to ''Traitor''.
?
Weird beside all of Honor-XDA partnership ?? disappointing..
why and why?
badaas said:
Honor should change name to ''Traitor''.
?
Click to expand...
Click to collapse
@badaas what is the reason for this?
asser19 said:
Weird beside all of Honor-XDA partnership ?? disappointing..
Click to expand...
Click to collapse
@asser19 why is it not possible to open it now? if you want to modify your system, buy a phone that is less secure, huawei/honor is now a safer mobile phone that can not be opened and can not be rooted, this is not a problem
spityu85hun said:
why and why?
@badaas what is the reason for this?
@asser19 why is it not possible to open it now? if you want to modify your system, buy a phone that is less secure, huawei/honor is now a safer mobile phone that can not be opened and can not be rooted, this is not a problem
Click to expand...
Click to collapse
Whether or not you want to modify should be your choice because you've bought the device so it's yours.
tech_infinity said:
Whether or not you want to modify should be your choice because you've bought the device so it's yours.
Click to expand...
Click to collapse
yes, legitimate, but modification can cause damage to motherboard, which would be replaced by a warranty, thus causing damage to the manufacturer, not due to improper use, therefore, to prevent this, the manufacturer may block system modification
I bought phone with OEM unlock option.
Widevine L1.
Now phone is locked.
Widevine L3.
Lame.
I'm on 9.0. 0.157 and still have the oem option unlocked
banaban said:
I'm on 9.0. 0.157 and still have the oem option unlocked
Click to expand...
Click to collapse
Do you have Google pay installed (I have).
Maybe that blocks OEM for me.
badaas said:
Do you have Google pay installed (I have).
Maybe that blocks OEM for me.
Click to expand...
Click to collapse
No I use the app from my own bank to pay with nfc, but I don't think Google pay can block oem it would be really strange
For all those guys who has upgraded to pie And oem unlock is not available, i suggest you to downgrade to oreo via hisuite(yes the option is available now in hisuite) and then enable oem unlock cuz it's available in oreo and then upgrade to pie again.
nitindabas said:
For all those guys who has upgraded to pie And oem unlock is not available, i suggest you to downgrade to oreo via hisuite(yes the option is available now in hisuite) and then enable oem unlock cuz it's available in oreo and then upgrade to pie again.
Click to expand...
Click to collapse
no more avaiable for me after upgrading to january update
spityu85hun said:
no more avaiable for me after upgrading to january update
Click to expand...
Click to collapse
Yes , try downgrading via hisuite and check if it's available or not .
nitindabas said:
Yes , try downgrading via hisuite and check if it's available or not .
Click to expand...
Click to collapse
i try, not anymore show hisuite to downgrade previous version... i update to first public release pie, hisuite show downgrading, i install january update, downgrade function disappeared
no problem for me with pie...
only one, honor not enabled volte in my country(hungary),but several Hungarian users have already indicated that they will turn on volte... we have two mobile service providers from three with volte service

will we ever get a Nokia 8 custom ROM?

The official bootloader unlock method has been out for a while. Its almost 2 years since the phone has been released. I was hoping by now maybe some developer would have picked this phone up and put it to use. Is there a reason why nobody has bothered to start development on this phone and build a custom ROM? I think this phone has great potential given its specs and price. It would be nice to so further customizations beyond those allowed by rooting the phone.
I could do it too if I had any amount of knowledge about Android development, but sadly im a noobie.
What are your thoights?
It's not possible I guess. And Nokia has locked down. Unlocking bootloader. I have Nokia official app and it says Device not support.
arun45 said:
It's not possible I guess. And Nokia has locked down. Unlocking bootloader. I have Nokia official app and it says Device not support.
Click to expand...
Click to collapse
No, Nokia hasnt locked it down. The bootloader unlock method only works up to the November Oreo security update. Just downgrade to Oreo November security update then unlock the bootloader, and then upgrade back to Pie.
See this thread for instructions https://forum.xda-developers.com/nokia-8/development/unofficial-official-nokia-8-bootloader-t3898418
Thanks bro. I have downgraded to Oreo. I got key. Now I can't unlock bootloader just bcos of fastboot driver problem in my pc. Shall I update to pie ? And unlock bootloader in pie.,.
Pls guide
arun45 said:
Thanks bro. I have downgraded to Oreo. I got key. Now I can't unlock bootloader just bcos of fastboot driver problem in my pc. Shall I update to pie ? And unlock bootloader in pie.,.
Pls guide
Click to expand...
Click to collapse
I would suggest using another pc and unlock the bootloader.

Backup drm keys on Pie

Can it be done?
math_green20 said:
Can it be done?
Click to expand...
Click to collapse
Nope.
Neither on Oreo nor on Pie.
now that the zero day exploit is known. would it be possible to downgrade to oreo and do the root method?
there is already a pixel 2 video going around being rooted with locked bootloader. the dev said he will release the method/app soon. watch below.
https://mobile.twitter.com/Digital_Cold/status/1182045384505466885?s=19
or does our kernel on oreo not have the vulnerability?
@j4nn already nailed it, but it seems that unfortunately backing up TA prior to unlock device bl is not the trick anymore.
That's right, it seems yoshino phones (xzp/xz1/xz1c) have been the last where we could restore drm keys via TA backup from a temp-rooted locked state, to get all drm functions working again (if kernel hiding bootloader unlock has been used with it).
Unfortunately with XZ2, restore of locked TA backup and even with running kernel hiding BL unlock does not restore drm functionality.
I am afraid the same behaviour would be with any newer sony phone.
i see, wel crap.. ?.
thanks anyway for answering guys. i might consider unlocking bootloader soon then, i need that dose of AOSP + Root on my sony
BADA 187 said:
i see, wel crap.. .
thanks anyway for answering guys. i might consider unlocking bootloader soon then, i need that dose of AOSP + Root on my sony
Click to expand...
Click to collapse
If you can wait I would recommend unlocking on Q.
P did vanish less drm stuff from TA than O.
Maybe Q does the same.
It doesn't matter for the SODP based custom roms here, just for the stock rom usage.
MartinX3 said:
If you can wait I would recommend unlocking on Q.
P did vanish less drm stuff from TA than O.
Maybe Q does the same.
It doesn't matter for the SODP based custom roms here, just for the stock rom usage.
Click to expand...
Click to collapse
thanks, i will wait then indeed. got other devices to play with for now

Help regarding knowing my device in current state

I bought a used xz2 and I just found out that it was running stock aosp pie build with no of Sony's apps. I restarted it and I got a boot message that my device can't be checked for software corruption, please lock boatloader. After boot up, I checked oem unlocking in developer setting and it wasn't there at all.
What I need to know is :
Is the boatloader unlocked?
Are DRM keys lost?
What firmware I'm on ? Is it the Google's beta pie ( which the owner told me) or is it custom firmware?
Thanks
ASMstudent said:
I bought a used xz2 and I just found out that it was running stock aosp pie build with no of Sony's apps. I restarted it and I got a boot message that my device can't be checked for software corruption, please lock boatloader. After boot up, I checked oem unlocking in developer setting and it wasn't there at all.
What I need to know is :
Is the boatloader unlocked?
Are DRM keys lost?
What firmware I'm on ? Is it the Google's beta pie ( which the owner told me) or is it custom firmware?
Thanks
Click to expand...
Click to collapse
Connect with the Sony companion firmware in the download mode
Green LED
MartinX3 said:
Connect with the Sony companion firmware in the download mode
Green LED
Click to expand...
Click to collapse
It'll be a week until I get home and I'll check it as soon as I get there.
Sent from my Xperia XZ2 Dual (AOSP) using Tapatalk
MartinX3 said:
Connect with the Sony companion firmware in the download mode
Green LED
Click to expand...
Click to collapse
I flashed latest stock firmware and on boot up it asked for the previous pin/google account. I tried the one I had on the aosp rom but it wasn't right. I tried to contact the seller but he isn't replying. I tried booting up twrp and it did work ( I believe that this means that the boatloader is unlocked). now, I believe that I can no longer use the device unless I flash a custom rom ?
or is there a way to bypass the FRP ?
ASMstudent said:
I flashed latest stock firmware and on boot up it asked for the previous pin/google account. I tried the one I had on the aosp rom but it wasn't right. I tried to contact the seller but he isn't replying. I tried booting up twrp and it did work ( I believe that this means that the boatloader is unlocked). now, I believe that I can no longer use the device unless I flash a custom rom ?
or is there a way to bypass the FRP ?
Click to expand...
Click to collapse
Unfortunately the previous stock rom user needs to unlock it.

[Solved] XZ2 (H8216) can't unlock bootloader ?

Hi guys,
I nedd your help.
I just bought a Sony Xperia XZ2 (H8216) for my mother, I want to install LineageOs18.
My first problem : it's on android 9, for install LineageOs18 he required has intall Sony oem rom, if i have correctly understand, but second problem , I can't update to officiel rom because this phone not detect update (servers are down ?).
Third problem : I try going through an AOSP version, the famous Bootloader unlock is required, problem in the service menu I have "Bootloader unlock allowed: NO".
Is there a solution ? or will this phone never be able to be updated whether it is AOSP or custom rom?
Thanks you for help and have read
Update 2021-11-28:
I installed a pc with Windows 10 all clean and deactivate windows defender, it detects the software qUnlock S1 Unlock Tool virus, it will also avoid having deleted files, for example the backups generated by qUnlock.
Install with:
https://developer.android.com/studio/releases/platform-tools
https://developer.android.com/studio/run/win-usb
this is what I did:
switch Bootloader unlock allowed no to yes: https://forum.xda-developers.com/t/...ed-no-to-yes-is-now-finally-possible.4044091/
I buy credit here: https://networkunlocking.com/shop/sony-xperia-cable-unlock-0-counter-supported/ in description product you have link to download qUnlock S1 Unlock Tool the latest version
Install the Sony drivers present in the qUnlock folder
Launch qUnlock enter your username obtained after the purchase of credit made a check credits, if error you must wait for your account to be set up, when your account is operational, click SIM Unlock and follow the qUnlock instructions (switch the phone to flash mod)
When the process is finished check if Bootloader unlock allowed is passed to yes and if in your qUnlock folder you have a backup folder with a folder of your IMEI with the backup files of your phone, it may be that your phone network no longer works, execute the Sony procedure to unlock the bootloader: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader
Restart your phone you have the information that your bootloader is unlocked, if you still do not have a network go back to qUnlock and click on WriteBackup (switch the phone to flash mod). You will need to find your network and keep your bootloader unlocked.
I then install the newer version of the oem rom (for me, the 52.1.A.0.618) with FlashTool from Sony: https://developer.sony.com/develop/open-devices/get-started/flash-tool
Finally, install LineageOs 18.1 by following the instructions here:https://wiki.lineageos.org/devices/akari/install
StephRiff said:
Hi guys,
I nedd your help.
I just bought a Sony Xperia XZ2 (H8216) for my mother, I want to install LineageOs18.
My first problem : it's on android 9, for install LineageOs18 he required has intall Sony oem rom, if i have correctly understand, but second problem , I can't update to officiel rom because this phone not detect update (serveurs are down ?).
Third problem : I try going through an AOSP version, the famous Bootloader unlock is required, problem in the service menu I have "Bootloader unlock allowed: NO".
Is there a solution ? or will this phone never be able to be updated whether it is AOSP or custom rom?
Thanks you for help and have read
Click to expand...
Click to collapse
First, let identify which one your device is.
Try to turn on NFC, if it's doesn't want to turned on, then it's Probably Japan/Carrier specific version with Global Firmware.
hibikase said:
First, let identify which one your device is.
Try to turn on NFC, if it's doesn't want to turned on, then it's Probably Japan/Carrier specific version with Global Firmware.
Click to expand...
Click to collapse
I tried to activate the NFC it seems to work, I take screenshots.
But in fact in the NFC options there is "Osaifu-Keitai" which is the mobile wallet in Japan.
I am looking for the build installer, it is indeed a "Japanese" version (52.0.D.5.298) https://xpericheck.com/702SO
Thanks for help me
So next step if you wanted to be unlocked yes anyway, read this thread.
[CLOSED] Bootloader Unlock Allowed "No" to "Yes" is now finally possible.
Bootloader Unlock Allowed No to Yes is now finally possible Discovered by MrCooper95 QUICK STORY OF HOW IT HAPPENED For years, members of Xperia users thought that if you had a SIM locked Xperia phone, you would never able to unlock the...
forum.xda-developers.com
Thanks i will test this as soon as i can
I go back to you when i did
hibikase said:
So next step if you wanted to be unlocked yes anyway, read this thread.
[CLOSED] Bootloader Unlock Allowed "No" to "Yes" is now finally possible.
Bootloader Unlock Allowed No to Yes is now finally possible Discovered by MrCooper95 QUICK STORY OF HOW IT HAPPENED For years, members of Xperia users thought that if you had a SIM locked Xperia phone, you would never able to unlock the...
forum.xda-developers.com
Click to expand...
Click to collapse
Hi,
I just did it, it works the bootloader unlock is go to yes but i no longer have a mobile network, the sim card is detecting and pin is required, but no network.
If you think switching to another rom will work, the next steps are:
- install an AOSP version (android 10 or 11? for installing lineageOs 18.1) by doing the sony procedure to unlock bootloader
- install TWRP
- install lineageOs
You confirm to me that this is the correct procedure?
And question I have to save the DRM keys
Thanks for your time and help
StephRiff said:
Hi,
I just did it, it works the bootloader unlock is go to yes but i no longer have a mobile network, the sim card is detecting and pin is required, but no network.
If you think switching to another rom will work, the next steps are:
- install an AOSP version (android 10 or 11? for installing lineageOs 18.1) by doing the sony procedure to unlock bootloader
- install TWRP
- install lineageOs
You confirm to me that this is the correct procedure?
And question I have to save the DRM keys
Thanks for your time and help
Click to expand...
Click to collapse
Are you using AU device?
If yes, after unlocking bootloader, restore backup using that software.
hibikase said:
Are you using AU device?
If yes, after unlocking bootloader, restore backup using that software.
Click to expand...
Click to collapse
I don't understand,
the Sony XZ2 I think it's a phone that comes from Japan, I don't have the history
My sim card for testing is European, and the phone will be used in Europe.
StephRiff said:
I don't understand,
the Sony XZ2 I think it's a phone that comes from Japan, I don't have the history
My sim card for testing is European, and the phone will be used in Europe.
Click to expand...
Click to collapse
When you unlocking with qunlocktools, it's backup ta partition (if I'm not wrong), find where it's saved.
Then, open qunlocktools and choose restore
hibikase said:
When you unlocking with qunlocktools, it's backup ta partition (if I'm not wrong), find where it's saved.
Then, open qunlocktools and choose restore
Click to expand...
Click to collapse
Yes I have backup
So I do the sony procedure to unlock the bootloader, and after I restore the qUnlockTool backup?
I would keep the bootloader unlocked, and the network will work again?
Sorry for maybe silly questions
Thank you
StephRiff said:
Yes I have backup
So I do the sony procedure to unlock the bootloader, and after I restore the qUnlockTool backup?
I would keep the bootloader unlocked, and the network will work again?
Sorry for maybe silly questions
Thank you
Click to expand...
Click to collapse
Yes. Try it
hibikase said:
Yes. Try it
Click to expand...
Click to collapse
Hey it works!
Bootloader unlocked and network back, thank you fantastic!
Now I install an AOSP rom, android 10 or 11, knowing that for the installation of lineageOs it is advisable to go through a Sony rom under android 10?
StephRiff said:
Hey it works!
Bootloader unlocked and network back, thank you fantastic!
Now I install an AOSP rom, android 10 or 11, knowing that for the installation of lineageOs it is advisable to go through a Sony rom under android 10?
Click to expand...
Click to collapse
LineageOS 11 sjll thread need to be on stock rom first,
And SODP thread you need Oem binary from Sony website.
hibikase said:
LineageOS 11 sjll thread need to be on stock rom first,
And SODP thread you need Oem binary from Sony website.
Click to expand...
Click to collapse
You confirm me I flash this binary with FlashTool?
Software binaries for AOSP Android 11.0 – Kernel 4.14 – Tama (latest) - Sony Developer World
developer.sony.com
I have this on FlashTool
read every thread instruction.. and ask there if you found some problem :3
hibikase said:
read every thread instruction.. and ask there if you found some problem :3
Click to expand...
Click to collapse
Hi I have successfully installed LineageOs 18.1, thanks again
Just a problem to the fingerprint, I will put a message in the LineageOS 18.1 thread
I updated my first post, I wrote down what I did
Update :
Fingerprint works after deactivating development options

Categories

Resources