yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Original Android Development] orrorin:
Sony is doing far more for the developer / ROM community of its devices than any other OEM. The S6 and M9 won't have a good AOSP build for a while, probably ever.

Keep it up Sony.
[Xperia Z5 Original Android Development] Azdian:
I unlocked the bootloader, what are the features I'm missing right now?
[Xperia Z5 Original Android Development] gamer649:
That is my main question too, before I commit to getting the Z5.
[Xperia Z5 Original Android Development] Uclydde:
I'd unlock the bootloader on my Z5 in a heartbeat, but considering I'd lose the camera and screen enhancements, I simply can't. People talk about how great Sony is to the developers, but considering that we lose device functionality (PERMANENTLY) for unlocking the bootloader, I simply disagree.
[Xperia Z5 Original Android Development] Snaqejack:
If you make a backup of the ta partition you could always restore it and therefore restore functionality.

Skickat från min E6653 via Tapatalk
[Xperia Z5 Original Android Development] gamer649:
To make a backup of the TA you need root (last time i checked). To get root on this device currently you need to unlock the bootloader, wiping the TA partition (last time I checked).
[Xperia Z5 Original Android Development] Uclydde:
Precisely, and it could be months before we get a root exploit, or worse, never.
[Xperia Z5 Original Android Development] gamer649:
Well by the looks of Android M we won't get locked bootloader root on it due to kernel level enforcements. But I could be wrong and somebody could figure it out and work around it.
[Xperia Z5 Original Android Development] Uclydde:
Well considering the Z5 ships on Lollipop, all we need is a root exploit for 5.1.1, but 5.1.1 has been out for awhile, and we haven't gotten any news...
[Xperia Z5 Original Android Development] king_david43:
Is your picture quality the same as before you unlocked the bootloader or has it gotten worse?
[Xperia Z5 Original Android Development] Azdian:
No not really, looks like the X-Reality isn't working anymor.
[Xperia Z5 Original Android Development] cliffr39:
Take a look here about the DRM and Bootloader. Looks like I won't mess with mine when it arrives. Pretty silly that DRM is tied into so much.

http://xdaforums.com/z3-compact/general/loss-drm-keys-t2890936
[Xperia Z5 Original Android Development] Mika83AC:
Damn, is that real? Sony, wtf ... :eek:
[Xperia Z5 Original Android Development] Azdian:
I can confirm that the image enhancement ( X-Reality - Super-vivid ) ain't working anymore.

I believe re-locking the phone not gonna help restore the missing features, am I right?
[Xperia Z5 Original Android Development] Diatomix98:
Sorry to tell you but DRM key has to be restored in order to have the features back....
[Xperia Z5 Original Android Development] Azdian:
And there is now way to restore the DRM keys, right?

Would custom roms have these missing features? my 1st Sony phone, and I'm really hating the experience.
[Xperia Z5 Original Android Development] Diatomix98:
Not if you did not do a backup of them which seems to be not an easy task on recent Sony smartphones from what I heard. Sorry but these features are not available on custom roms...
[Xperia Z5 Original Android Development] Joeisgood99:
I don’t own a Z5C yet so I wouldn’t know but cant you flash stock firmware back to the device using the "New Flash Tool For Unlocked Xperia Devices?

http://developer.sonymobile.com/201...ocked-xperia-smartphones-video-beta-download/

...says you can go from custom rom back to stock ( bootloader remains unlocked )... Hope that includes the various Keys that get obliterated.
[Xperia Z5 Original Android Development] Azdian:
The Z5 isn't in the supported devices list, and I don't think i'll be ever able to restore my forever-gone DRM keys.
[Xperia Z5 Original Android Development] xXFlippyXx:
Your drm keys are unique. Once you open your bootloader your ta-partition will be gone (where your drm keys are). You can't get it back by flashing stock Roms because that partition is not a part of the roms

You can backup the ta but you'll need root.

About those drm features :

On the Z1 there was some dude made the drm stuff work without your proper ta-partition. I wouldn't say that getting the functions back is impossible. It's just impossible to get back your ta when it's gone. If the functions (bioniz, x-reality...) your main concern then there is a good chance you'll get them back eventually
[Xperia Z5 Original Android Development] Azdian:
Hope someone could get us the drm functions back with custom roms, all I want now is to rrot the phone to start using it as my daily driver.
[Xperia Z5 Original Android Development] JonesWTF:
I haven't unlocked my bootloader yet. Could anyone point me to a complete list of things I would lose if I did, please?
[Xperia Z5 Original Android Development] augie7107:
Informational and useful thread:

http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
[Xperia Z5 Original Android Development] bill340:
So can we expect such a solution for Z5 also?
[Xperia Z5 Original Android Development] orrorin:
You guys should start a new thread for bootloader / DRM talk.

Otherwise, has anyone taken a stab at building a recovery?
[Xperia Z5 Original Android Development] MickieH:
Just out of curiosity, why would you rush and unlock the bootloader on a newly released device when there is nothing available, really, to flash, nor even a root exploit?

I really don't want to sound harsh here, but if you already know about bootloader unlocking, and custom roms, then you really should have read more before doing it. Permanent loss of functionality is not good.

In my experience, there is no functionality as good as the stock rom, and I'm talking about the Sony Camera and image processing algorithms here, not other rom features, which are often very good, but overall, the rom is ruined by the crappy camera.

I backed up the TA for my Z1 and Z3, but only unlocked the Z1 to try CM on it. It's now had it's TA restored (so DRM working fine).

I'm kinda hoping that with the AOSP binaries released, that future roms could possibly have much better cameras. If that bears true, then I would definitely consider unlocking my bootloader . . . but only once there is a way to backup the TA partition first.
[Xperia Z5 Original Android Development] orrorin:
Just stop talking about DRM keys and bootloading. This horse has been beaten to death in every Xperia Z forum.

Is there any possibility that we can just talk about building Android? I'm syncing the repo now, I'll let you guys know when I have a working build.
[Xperia Z5 Original Android Development] diemadedrei:
Is there a working baseband driver?
[Xperia Z5 Original Android Development] MickieH:
Yeah, DRM keys and unlocking bootloaders has nothing to do with Android development, right? :rolleyes:

Stop telling people what they can and can't talk about, it's not even your thread.
[Xperia Z5 Original Android Development] gamer649:
Yeah they are related to the development but I do agree with them. This thread has gone extremely off topic now, it should be a discussion of the open source binaries and builds. DRM keys and bootloader unlocking should really be in general discussion.
[Xperia Z5 Original Android Development] SetiroN:
Is everything working on AOSP builds? I don't care about proprietary enhancements, but do the baseband/gps/wifi/sensors/camera work?
[Xperia Z5 Original Android Development] ondrejvaroscak:
Wrong, the Verified Boot feature is available since KitKat, but Sony first used it in Beta testing of 5.1.1 based so-called Concept firmware. It is unrootable without custom kernel, because system and recovery partitions are protected on bit level using hash verification. Seemingly Z5 uses Verified Boot in stock firmware.
[Xperia Z5 Original Android Development] Kevincorella:
I'n not an expert on this subjects, but I read that Z5 have the Stagefright (bug), could that bug be used to backupTA or make an exploit or some??
[Xperia Z5 Original Android Development] nilezon:
Probably not. The current Stagefright exploit(s) will not give you root access.
[Xperia Z5 Original Android Development] ondrejvaroscak:
Doesn't matter, even if you manage to get root rights without rebooting, backup your TA whatever and then revert the root, you will not be able to boot up and will have to re-flash the software.
[Xperia Z5 Original Android Development] nilezon:
If I can backup TA, I can then unlock bootloader, flash custom kernel with verity&ric disabled, restore TA and use DRM locked features - at least in theory.
[Xperia Z5 Original Android Development] ondrejvaroscak:
No, because flashing TA back relocks bootloader requiring you to re-flash back stock firmware. You can not boot custom kernel with locked bootloader even if you flashed it before with unlocked.
[Xperia Z5 Original Android Development] Falenone:
So basically we have no way of rooting and unlocking the bootloader without losing features? If so, damn I'm going to sell my z5 and buy something else
[Xperia Z5 Original Android Development] ondrejvaroscak:
So far...bingo. Situation may change as Sony is more supporting open source now, but honestly I wouldn't expect miracles. You can get functional camera on non-stock firmware, but without BionZ ...
[Xperia Z5 Original Android Development] Falenone:
Hopefully someone finds a way. I really like the device but not using it without root
[Xperia Z5 Original Android Development] ondrejvaroscak:
Maybe, just got this into my attention :

http://xdaforums.com/showpost.php?p=63197935&postcount=2
[Xperia Z5 Original Android Development] Sebi673:
I know, right? I wanted to buy the Z5 by Christmas but without a friendly root method I might as well buy an iPhone (***hissing violently***). I'm used with my Xperia Z and the root wonders it does on LB (xposed, various fw-res tweaks, etc), but it's old and I need an upgrade and an usable one.

Although these guys don't have support for newer 64 xperias, it's a good workaround for DRM http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672

We know drm workarounds are possible and hopefully we'll see a working one for 64 bits xzs
[Xperia Z5 Original Android Development] jerpelea:
http://developer.sonymobile.com/201...-camera-available-for-experienced-developers/

enjoy

J
[Xperia Z5 Original Android Development] :
I'm trying to compile AOSP 6.0 for Sumire and get this error:

hardware/qcom/gps/loc_api/libloc_api_50001/loc.cpp:49:24: fatal error: pm-service.h: No such file or directory
#include <pm-service.h>

Previously I had this (might still be unresolved):

hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:159:24: error: 'MDP_Y_CBCR_H2V2_UBWC' was not declared in this scope return MDP_Y_CBCR_H2V2_UBWC;
[Xperia Z5 Original Android Development] jerpelea:
guide was updated with cherry-picks

br

J
[Xperia Z5 Original Android Development] :
Thanks. It got a bit further but still running into issues.

hardware/qcom/gps/loc_api/libloc_api_50001/loc.cpp:142:21: error: 'MAX_NAME_LEN' was not declared in this scope
char modem_name[MAX_NAME_LEN];
^
hardware/qcom/gps/loc_api/libloc_api_50001/loc.cpp:144:23: error: 'MAX_PATH_LEN' was not declared in this scope
char powerup_node[MAX_PATH_LEN];
^
hardware/qcom/gps/loc_api/libloc_api_50001/loc.cpp:148:5: error: 'MdmType' does not name a type
MdmType mdm_type;
^
hardware/qcom/gps/loc_api/libloc_api_50001/loc.cpp:153:59: error: use of enum 'pm_event' without previous declaration
static void loc_pm_event_notifier(void *client_data, enum pm_event event);
[Xperia Z5 Original Android Development] sxtester:
Given the many posts w.r.t. losing DRM keys (and so the features depending on them) when unlocking the BL, may I make a suggestion for future devices:

Think no one expects Sony to give away their intellectual property for free and no one would expect all these unique features to work with anything but the stock ROM by Sony (unless, of course, by own development/effort). But, why do we have to lose all these features just because the BL is open?! Root access obviously is very much required for any serious development and all we're asking for is these features to work with stock ROM, no matter whether BL open or closed. Hence, wouldn't it be possible for Sony to put these DRM keys on a dedicated piece of HW (e.g. DRM chip) instead of on the TA partition? I know, this may add a (very) few $ to the price, but believe that's acceptable (and doesn't make much difference anyhow).

I personally once came to Sony devices (with the Xperia U) because of the huge developer community and all the great/fancy stuff possible. But now, seriously, I wouldn't actually buy any newer model but the Z3 or Z3 Compact because these are the latest rootable without losing any functionality. As a matter of fact, I wanted to get myself a Z5 (to replace my Z3C) but -given the non-rootable status- I simply won't. BTW, unlocking the BL of the Xperia U did not remove any and all functionality...
[Xperia Z5 Original Android Development] origpumu:
I upgraded from xperia s to z5 and I'm so sad about the drm thing. I can't belive that limitation and I do miss the aosp so much... :(

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Original Android Development] TheCraig:
Just wait like I am.. I am disappointed since backing up DRM was so easy on my Z1 (I still have it backed up on my Google Drive) knowing I could just always go back to 100% stock with TA keys and Locked BL intact - hopefully Chainfire's workaround and maybe a soon to be discovered exploit will allow us to pull our TA partition so we can just unlock and Yolo.
[Xperia Z5 Original Android Development] jerpelea:
Hi all

We have published a new snapshot, zip v14, with camera update (improved quality and stability)

http://developer.sonymobile.com/knowledge-base/open-source/open-devices/

Enjoy

J
[Xperia Z5 Original Android Development] orrorin:
Does this mean that AOSP can now be built with a functioning camera on the Z5?
[Xperia Z5 Original Android Development] jerpelea:
yes we have added early support for imx300

br

J
[Xperia Z5 Original Android Development] jerpelea:
kitakami has just received the needed patches for modem toghether with v14 zip

happy cooking

J
[Xperia Z5 Original Android Development] orrorin:
HECK YES!
[Xperia Z5 Original Android Development] johnavengers:
Is there a kind guy who could share his AOSP build ? :)
[Xperia Z5 Original Android Development] stiffmeister75:
i've made a build this afternoon, but it woon't boot.

the bootanimation is flickering, then the vibra is coming 2 times and the phone is off.

again and again.

i checked out 5.1.1 r29.

maybe somebody can give me a tip, which version will boot...

br

stiff
[Xperia Z5 Original Android Development] jerpelea:
there was a kernel patch missing for this device

now it boots fine

br

J
[Xperia Z5 Original Android Development] Kalashnikitty:
when do you plan to fix the android 6 build?
[Xperia Z5 Original Android Development] orrorin:
Does anyone know if the latest FXP builds incorporate update14 binaries?
[Xperia Z5 Original Android Development] jerpelea:
Hi all

I have some more exciting news

http://developer.sonymobile.com/kno...s/how-to-access-uart-ports-on-xperia-devices/

PS.if devices are not listed here they dont have the connector !

Br

J
[Xperia Z5 Original Android Development] stiffmeister75:
Hello,

i cooked a new Rom on the 9th December and it booted :)

But the camera doesn't work :( the message is: Camera cannot start

br

stiff
[Xperia Z5 Original Android Development] dandv:
Hey [MENTION=359497]jerpelea[/MENTION],

I'm a fellow developer and understand the need for protecting IP. I also understand the need for rooting.

Can you guys come up with a solution to preserve your DRM and Sony-specific functionality, and also enable people to root Sony's ROMs?

I paid $600 for this device because of its great low-light camera performance, but now if I want to root it, I have to lose that low-light performance. What's the point in buying this Android phone then?
[Xperia Z5 Original Android Development] paulle:
I don't understand this too. I have (had) all my xperias rooted, but always with a loss of some (camera)functionality. It's like a punishment for rooting.
[Xperia Z5 Original Android Development] ondrejvaroscak:
Nope, you can have for example Z3 KitKat and Lollipop rooted with locked bootloader without loosing any functionality at all.
[Xperia Z5 Original Android Development] Uclydde:
Does anyone have a working build of the aosp 6.0 rom? I tried to build it from source but I got an error saying 'make failed to build some targets'.
[Xperia Z5 Original Android Development] Kalashnikitty:
No, android 6 built is still broken und no one cares.
[Xperia Z5 Original Android Development] Uclydde:
I guess you can call me "no one" then :p
[Xperia Z5 Original Android Development] alex009988:
Guys why do you worry about losing drm keys? I have tablet z4 and I found no difference after unlocking bootloader, everything works as before, however I was really worrying about it as you before that. I dont see anything what might be lost. What we really gonna do is to concentrate on getting good aosp or cyanogenmod roms. If you so bother about drm keys which allegedly have supe-magic abilities than I guess you should have chosen IOS instead of open Android, where apple "thought out" everything for you and actively fighting with jailbreak.
[Xperia Z5 Original Android Development] logo_32:
I have compiled and successfully booted into aosp marshmallow as well as lollipop two days ago.

However here's what's interesting, since there isn't a specific way to install a custom recovery for the marshmallow, there is no way to install gapps! Also, mobile networks as well as sd card doesn't work! Only WiFi works. As for the lollipop, after using the dirty root method, I could install gapps. Also mobile networks work, but the sd card functionality is still missing. And camera fails to work in both the aosp builds.

To summarise what doesn't work:

AOSP_L_kitakami_sumire:

Not working - sd card, camera.

AOSP_M_kitakami_sumire:

Not working - mobile network, sd card, camera, gapps.

P.S.: I can upload the image file links if anybody is interested in flashing it! But I still see no point in doing so unless you're interested in testing out a few apps that you're designing specific to this device.

Cheers.
[Xperia Z5 Original Android Development] koziakauzu:
Loosing drm means loosing the camera noise processing and other nice stuff. You should check how the photos turns without the drm. Lot of people chose this phone for its camera, please make 2sec research before assuming or telling people what they should do.

That being said, the drm issue has been solved in another thread (functionalities back at least)

Sent from my E6653
[Xperia Z5 Original Android Development] ondrejvaroscak:
It seems, that there is different processing used on and Z4 and Z3. If you unlock Z3, the pictures taken in low light are f*cking noisy. And one of reasons I bought my phone was because of it's camera (however stupid it may sound). So loosing DRM keys on CERTAIN phones definitely breaks low-light noise removal.

---------- Post added at 21:34 ---------- Previous post was at 21:32 ----------

Not quite, as this "fake" drm is dependent on version of Android you may use with that. So far I know that last "working" go around on Z3 was on 5.0 Lollipop, not on 5.1.
[Xperia Z5 Original Android Development] alex009988:
I don't know how much it affect on other Sony devices, but i see no difference for my camera of my tablet z4. And everybody should choose: always seat with stock rom and rejoice in having untouched drm keys or to use cyanogenmod for example which is excellent firmware where we can add alternative way of post processing, or another rom where drm keys are useless. Even now, a way of restoring lost functionality is found http://xdaforums.com/xperia-z5/development/sony-credentials-restore-unlocking-t3296383 , but maybe a solution won't be ever found on how to root your device with locked bootloader, one day you'll want a better device, but your old friend(device) haven't tested yet what it means to have root advantages for you, but it will be time one day when your device will be thrown away to the rubbish heap with untouched drm keys.

So, The choice is yours ;)
[Xperia Z5 Original Android Development] TheEndHK:
http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672

Are you sure the Z3 drm restoration patch not working on 5.1.1?
[Xperia Z5 Original Android Development] ondrejvaroscak:
Well, it was not. Not sure if it changed, not tested as I am back to locked bootloader.
[Xperia Z5 Original Android Development] jerpelea:
We have published new binaries

http://developer.sonymobile.com/downloads/tool/software-binaries-for-aosp-lollipop-android-5-1/

Br

J
[Xperia Z5 Original Android Development] androidware:
Are there any hint of mm update?

GT-I9300 cihazımdan Tapatalk kullanılarak gönderildi
[Xperia Z5 Original Android Development] thesebastian:
Has someone tried the new binaries?
[Xperia Z5 Original Android Development] zacharias.maladroit:
Isn't this supposed to end up providing an working AOSP ?

I've specifically bought the Z5 to have the option to have an easily to produce AOSP (or CM) and great features:

until now I get:

mediocre to bad battery life (standby is ridiculous - draining 0.7-2%+ per hour with mobile deactivated !), no fully working AOSP - lost guarantee for no real gain (bootloader due to restrictive policy)

I really hope that this improves with the release of MM at the beginning of March - otherwise this was my first and last Sony (smartphone) :mad:
[Xperia Z5 Original Android Development] ondrejvaroscak:
I understand your disappointment but:

- should not you check status of development of CM/AOSP for the device BEFORE you bought it or unlock bootloader?

- AOSP / CM development is purely volunteer based. There is support provided by Sony, but there is nowhere written in either contract, that your device will ever run anything else but stock firmware

- it is lovely to see the people who are totally pissed and blaming anybody else, without ANY contribution of any kind

- if this was your last SONY smartphone, no big loss for community. No offence.
[Xperia Z5 Original Android Development] chronicfathead:
True, but Sony gives the impression that you download the files they are making available, run a few commands and out pops aosp.

This is obviously not the case.

We are happy that they are sort of open, but wish they would try harder and not be so closed!

There's being open, and then there's being open but you permanently lose functionality if you try anything with your device. This is my first Sony, and it will end up being my last unless Sony open up more.
[Xperia Z5 Original Android Development] ondrejvaroscak:
My sweet Jesus and holy cow....

There are others, who are not open at all :) But anyway, the impression is really wrong. The site that publishes AOSP code and examples is not called Sony Developer just for fun. It is intended for developer. It means NOT people, who think they can tune and compile AOSP from source as soon as they learn how to flash custom ROM in Flashtool.
[Xperia Z5 Original Android Development] chronicfathead:
Maybe it's changing with all new versions of Lollipop and MM, but Sony appear to have made things very difficult. Loving my stock experience at the minute, but I would love root access without having to lose features on my very expensive phone, that and less smeary photos.

I want Sony to do well, as I'm loving the hardware.