yashsingh1/xdaforums huggingface dataset:
[Xperia Z4/Z3+ Original Android Development] jerpelea:
Sony Mobile is committed to supporting the open developer community, and one way to show this is by publishing parts of our code as well as selected tools developed by our internal developers.

For some of the Xperia™ devices, we provide Android™ Open Source Project (AOSP) device configurations on GitHub. This means that the software will be open for you as a developer to use and contribute to. This is a way for us to support the open Android community, and it is also a tool for us to facilitate and verify contributions to AOSP.

If you want to build AOSP for your unlocked Xperia device, you find all the resources you need in the sections below.

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

Unified 3.10 kernel sources

https://github.com/sonyxperiadev/kernel

Project git

https://github.com/sonyxperiadev/
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
jerpelea,

This is for android-5.1.1_r12

Do you know how to fix the issue of when you type

fastboot flash system system.img

that it just hangs on "sending". I left it for over an hour and it never seemed to finish sending.

Otherwise everything seemed to build properly.

edit: was able to get it on the system properly but am getting errors when booting:

(attached full logcat)

which is resulting in a bootloop

Thanks,

Chris
[Xperia Z4/Z3+ Original Android Development] jerpelea:
sorry for forgetting this info

i have updated the build guide

to flash system you have to use

fastboot -S 256M flash system system.img

br

J
[Xperia Z4/Z3+ Original Android Development] DHGE:
no touchscreen on karin_windy

jerpelea,

the sparse option is also needed for karin_windy.

It boots but the touchscreen does not work at all. Powering OFF/ON does not help.

OK, I did:

repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.1_r1[COLOR="Red"]3[/COLOR]

I'll try again with android-5.1.1_r12
[Xperia Z4/Z3+ Original Android Development] jerpelea:
ok

i will look into it

br

J
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
I was able to get it to boot (it seems the thermal manager was stopping it, I set it in front of a fan to get it to).

But now it says baseband version Unknown and it also appears to be unable to turn on wi-fi as well.

(See attached image)
[Xperia Z4/Z3+ Original Android Development] DHGE:
22 the right choice?

hi jerpelea,

second try (following your HowTo verbatim) same result - no touchscreen only the keys do work.

I am building for my xperia Z4 Tablet Wifi (SGP712).

I chose option 22. I could think of option 2.

Anything wrong with my choice?

You're building on Linux

Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_hammerhead-userdebug
8. aosp_mako-userdebug
9. aosp_grouper-userdebug
10. aosp_flo-userdebug
11. full_fugu-userdebug
12. aosp_fugu-userdebug
13. aosp_tilapia-userdebug
14. aosp_deb-userdebug
15. aosp_manta-userdebug
16. mini_emulator_mips-userdebug
17. mini_emulator_x86-userdebug
18. mini_emulator_x86_64-userdebug
19. mini_emulator_arm64-userdebug
20. m_e_arm-userdebug
21. aosp_sgp771-userdebug
[COLOR="Red"] 22. aosp_sgp712_windy-userdebug[/COLOR]
23. aosp_e6553-userdebug
24. aosp_shamu-userdebug
25. aosp_flounder-userdebug

Which would you like? [aosp_arm-eng]

edit:

I think the choice is right.

there is no /system/lib64/touchfilter directory or tfsw.so

I can adb shell with root rights.
[Xperia Z4/Z3+ Original Android Development] jerpelea:
your choice is fine (22)

i am debugging it as we speak

br

J
[Xperia Z4/Z3+ Original Android Development] jerpelea:
This is normal for an initial release

We have not added yet kernel wireless driver or GSM

Br

J
[Xperia Z4/Z3+ Original Android Development] jerpelea:
Hi

There is no need to add touch filter in AOSP

I have published new zip (v11) that fixes touch on our website and added patches to buildguide to enable audio on Z3+/4 devices

Br

J
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
Do you know when the kernel wireless driver or GSM will be released?
[Xperia Z4/Z3+ Original Android Development] jerpelea:
I have just updated kernel driver to support 4356/58 wifi, now all that is needed is to use it

Feel free to join dev

Br

J
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
So that means working Wifi but no GSM? or does it include GSM as well?

Also what do you mean by join dev? (If it's a website/forum please add a link :D )

Also latest build still seems to have wifi not working properly

Thanks,

Chris
[Xperia Z4/Z3+ Original Android Development] Applek2121:
How to turn on the LED at the bottom of Sony Phone and Change the colour accordingly?

Sorry guys for disturbing. I was looking for a way to control the LED right at the bottom of the Sony phone which I don't see in Samsung or Motorola. I want it to change colour according to my image gallery. Like: when the background is mostly white, then the LED will change to white and so on. Anyone deal with it before?
[Xperia Z4/Z3+ Original Android Development] DHGE:
LED mods

I would start looking in the xperia cross devices forum.
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
I was able to mount the /modem partition and pull out all the modem.b## files and add them to the Android.mk but am still getting baseband not found. Anyone have any other ideas? (From what I could tell of Z3 (leo) that is how people got the baseband working in aosp)
[Xperia Z4/Z3+ Original Android Development] jerpelea:
on kitakami devices there is no reason to touch those partitions

firmware is loaded from those partitions when is enabled

br

J
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
How do we get them enabled and baseband working?
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
Would updating the defconfig be of any use or are we waiting for the actual libs from sony?

i.e.

Would adding:

CONFIG_MSM_MODEM_SUBSYSTEM_RESTART_MONITOR=y

and

CONFIG_MSM_PIL_SSR_GENERIC=y

be of any use?
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
Was the driver for the Z3+ also included or just the z4 tablet?

The comment seems to imply it is just for the Z4 tablet?

2015-08-19: AOSP Lollipop binaries for Android 5.1 updated with improved support for Xperia Z4 Tablet WiFi, Xperia Z3 Tablet Compact WiFi and Xperia Z2 Tablet WiFi. In addition, the AOSP Lollipop 5.1 build guide is updated with added audio patches for Xperia Z3+, Xperia Z4 Tablet, and Xperia Z4 Tablet WiFi.
[Xperia Z4/Z3+ Original Android Development] jerpelea:
yes

they both use same platform (kitakami)
[Xperia Z4/Z3+ Original Android Development] jerpelea:
Now you have the opportunity to win Sony devices every 2 months

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

Happy cooking
[Xperia Z4/Z3+ Original Android Development] DHGE:
we need the sources (kernel) for 28.0.A.8.251

[MENTION=359497]jerpelea[/MENTION]

Please!

for my SGP712
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
I still get driver errors in adb logcat when initializing wpa_supplicant.

Should wifi be working in the latest builds or is there still something more required?
[Xperia Z4/Z3+ Original Android Development] Devries:
Need for the source for 28.0.A.8.251 too..:p
[Xperia Z4/Z3+ Original Android Development] AndroPlus:
He will release it soon

I hope they will upload sources for flagship phones without user request...

http://talk.sonymobile.com/t5/Kernel/Kernel-source-code-for-28-0-A-8-251/m-p/1034727#M113
[Xperia Z4/Z3+ Original Android Development] DHGE:
For the .31 they released it days before the ROM was vailable.

This is a sequence more to my tasting ;)
[Xperia Z4/Z3+ Original Android Development] jerpelea:
working on it
[Xperia Z4/Z3+ Original Android Development] dl12345:
Any news on the availability of baseband firmware for Z3+ for the AOSP build? It's kinda useless with only wifi working and no ability to use the phone itself to make calls....

On a separate note, see my comment here: http://xdaforums.com/showthread.php?t=3208682
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Seriously, what is Sony even doing? If they do not publish 5.1 themselves, they could at least give us working baseband so the community can do this...
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
Does the latest update include anything for the Z3+/Z4?
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Sony also released AOSP marshmallow sources for many devices. Anything for us?
[Xperia Z4/Z3+ Original Android Development] schoolsux:
Really hope we can see a functional AOSP rom soon... Sadly I have to admit it feels like Z3+ is a device with weak community interest, stuck in between Z3 and Z5. I hope I'm wrong though!! :) Would also love to see Sony's Concept Android Marshmallow on the Z3+.
[Xperia Z4/Z3+ Original Android Development] dl12345:
It's not only weak community interest. Sony seems to have forgotten it too...
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Does this http://developer.sonymobile.com/201...-binaries-added-to-sonys-open-device-program/

not contain anything of interest? Still no working baseband?
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
That is what we're waiting for [MENTION=359497]jerpelea[/MENTION] to comment on. It seems that it doesn't contain the baseband drivers though
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
But shouldn't the baseband driver be the same as the one on Z5? Since it is the same chip... Then the one from the Z5 could be used once that is published,if it's the only thing missing
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
Is the z5 one released? I thought the z5 was also missing the baseband drivers
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
I don't know actually, sorry to have caused misunderstanding. Just thought that even if Sony doesn't release one for Z3+ it will release one for Z5 eventually...
[Xperia Z4/Z3+ Original Android Development] werbemehl:
Hi,

did the last release work incl. GSM , or is it inkomplete like the last release?

Greets
[Xperia Z4/Z3+ Original Android Development] jerpelea:
GSM is not working yet on kitakami

i am working on it and i ope that soon you can have baseband

br

jerpelea
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Very disappointing so far... Neither official 6.0 nor working baseband on AOSP...
[Xperia Z4/Z3+ Original Android Development] Voje:
I completely agree. Seems like Sony has forgotten this phone, or at least put in low on the priority list.. Disappointing first impression, seeing as this is my first Sony device.

Not sure I'll go with them again after being an xda user for some years now.

Heard good things about Sony, but this is not impressive..

Sent fra min E6553 via Tapatalk
[Xperia Z4/Z3+ Original Android Development] jerpelea:
http://developer.sonymobile.com/201...-camera-available-for-experienced-developers/

enjoy

J
[Xperia Z4/Z3+ Original Android Development] jerpelea:
please be patient we are working on it

br

J
[Xperia Z4/Z3+ Original Android Development] Voje:
I hope so:)

Was not my intention to talk **** about the developers actually working on this device, just to be clear:)

Thanks for posting that camera module!

Sent fra min E6553 via Tapatalk
[Xperia Z4/Z3+ 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 Z4/Z3+ Original Android Development] jerpelea:
kitakami has just received the needed patches for modem toghether with v14 zip

happy cooking

J
[Xperia Z4/Z3+ Original Android Development] Pedro80:
Does this mean we can have fully functional AOSP? This was the missing piece right?
[Xperia Z4/Z3+ Original Android Development] pikeylfc:
I believe so
[Xperia Z4/Z3+ Original Android Development] LMcR92:
So. Are there any dedicated developers going to work on 5.1. Or 6.0 rom

I would be greatly thanfull for this. One more note does all those files give a company like cyanogenmod the tools needed?
[Xperia Z4/Z3+ Original Android Development] pikeylfc:
I'm not sure tbh
[Xperia Z4/Z3+ Original Android Development] LMcR92:
I'm just shocked and this high end device with its little niggles Sony isnt letting devs play and optimised this ''semi messed '' up phone I love it but at the hands of experts it would shine.
[Xperia Z4/Z3+ 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 Z4/Z3+ Original Android Development] iurylima:
jerpelea,

I can't find specific details in any place... Is only the z3+ single sim (6553) supported on the open device program, or all the files also apply for the dual version (6533)?
[Xperia Z4/Z3+ Original Android Development] jerpelea:
except telephony both devices use same files

br

J
[Xperia Z4/Z3+ Original Android Development] iurylima:
I understand... So I can flash those files to the dual-sim? They include both telephony solutions?
[Xperia Z4/Z3+ Original Android Development] ChrisJ951:
EDIT: Did a Make clobber and rebuilt and it booted this time. I guess something was left over from earlier builds.

The Telephony module seems to work properly with calls/texts going through. A few issues that still exist are

(1) I cannot load the camera still, it says "Unfortunately, Camera has stopped." I can get a logcat if needed

(2) The speakerpiece does not work during calls. Speakerphone has to be used to place any calls
[Xperia Z4/Z3+ Original Android Development] pikeylfc:
Good news I guess. Seems we are getting there slowly but surely. I also would like to say thank you
[Xperia Z4/Z3+ Original Android Development] chronicfathead:
Am I right in thinking that the only thing holding back development, is that there is a lack of interest from recognised developers?

I can see there are AOSP build instructions for LP and MM listed on Sony's website:

http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/

Once you get AOSP running, other roms are sure to follow, by porting from similar devices. I'm almost tempted, just to see if I can get it to work, not that I'm a dev, but it looks achievable. Just wouldn't know where to start if I had to fix things.
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
May be the people at freexperia can help you if you face problems
[Xperia Z4/Z3+ Original Android Development] lukeaddison:
Okay, first time for everything I guess but as there seem to be no developers for this device, I'm going to make a build of AOSP 6.0 and have a play around with it. I'm guessing there are still many things that don't work properly.

If anyone else is doing the same right now, it'd be great to talk.
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Great to hear someone's trying it. If you are successful and try to port cm13, I would be happy to test your build.
[Xperia Z4/Z3+ Original Android Development] lukeaddison:
It may take me some time - I've lots to learn!
[Xperia Z4/Z3+ Original Android Development] da900:
Hi, did anyone try AOSP Lollipop build from FreeXperia (AOSP_L_MR1_160113_ivy.zip)? Is it functional?
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Apparently no one did. Why don't you try it and tell us about it :)
[Xperia Z4/Z3+ Original Android Development] lukeaddison:
Just tried it. Not good. It's 5.1.1, no Google stuff (no Play Store or anything) and it's got loads of graphic glitches. Not useable at all.
[Xperia Z4/Z3+ Original Android Development] diemadedrei:
Thanks for trying, yet since it's AOSP of course there's no google stuff. Graphic glitches are not good though. Did you try baseband, 3G or wifi?
[Xperia Z4/Z3+ Original Android Development] lukeaddison:
Didn't try wifi but baseband is all okay etc. Was connected to 4G / LTE and was showing wifi networks so I think that probably works.
[Xperia Z4/Z3+ 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 Z4/Z3+ Original Android Development] da900:
OpenDevice project released updated binaries.

"2016-01-28: AOSP Lollipop binaries for Android 5.1 updated with stability improvements for the camera, updates for Adreno, ril and second ril as well as sensor fixes. For devices based on the Qualcomm MSM8994 platform, there are also additional updates to sensors, including GPS, and basic implementation of the front-facing camera." (link: http://developer.sonymobile.com/knowledge-base/open-source/open-devices/latest-updates/)

Hope it will fix fix these graphic glitches. :p Waiting for the new AOSP build from FXP. :o
[Xperia Z4/Z3+ Original Android Development] jerpelea:
Hi all

Blobs v17 are public

Happy easter

J

​
[Xperia Z4/Z3+ Original Android Development] LMcR92:
We can't be far now :eek:
[Xperia Z4/Z3+ Original Android Development] jerpelea:
http://developer.sonymobile.com/knowledge-base/open-source/open-devices/

2016-04-22: AOSP Marshmallow binaries for Android 6.0 and AOSP Lollipop binaries for Android 5.1 updated with improved connectivity, stability and camera functionality. We’ve also added the second camera actuators for Xperia Z3 and Xperia Z4 tablet. In addition, we’ve added the camera actuator for the Xperia Z5 family for Android 6.0.
[Xperia Z4/Z3+ Original Android Development] a-st:
Hi jerpelea,

I've managed to compile AOSP with latest binaries for my Xperia Z3+ Dual (E6533) but I still have graphical glitches and no dual SIM support. Any hints so far?

EDIT: Please find recovery and ROM here: http://d-h.st/users/a-st/?fld_id=49625#files | Gapps can be used from here: http://opengapps.org (I did choose arm64/6.0/nano)

Flash recovery (Link: http://d-h.st/r94k)

Boot to recovery

Flash ROM (Link: http://d-h.st/7ZlB)

Flash Gapps (Link: http://opengapps.org (I did choose arm64/6.0/nano))

Reboot

Best regards,

a-st
[Xperia Z4/Z3+ Original Android Development] KOALAaufPILLEN:
If it working without graphic glitches I would love to be a tester :)
[Xperia Z4/Z3+ Original Android Development] LMcR92:
Dust bails rolling past.............
[Xperia Z4/Z3+ Original Android Development] jerpelea:
Hi all,

We have updated the build guide to support the latest features and security updates

http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/

Enjoy

J
[Xperia Z4/Z3+ Original Android Development] lukeaddison:
I'll test again soon. Any idea of the graphics issues would be resolved on the Z3+ [MENTION=359497]jerpelea[/MENTION] ?
[Xperia Z4/Z3+ Original Android Development] LMcR92:
Someone/ Sony please just let this phone be "free" and give us exactly what developers need to make a fully bug free rom. It's been such a forgotten device since launch. To me this was a beta test for your z5 which was announced days after I bought this.
[Xperia Z4/Z3+ Original Android Development] jerpelea:
Hi,

We have updated the project page to reflect the latest progress

http://developer.sonymobile.com/open-devices/

Enjoy

J
[Xperia Z4/Z3+ Original Android Development] :
The funfact is that Sony has no interesst in bringing a smooth and bug free "Open Source" for z3+/z5 Family all bugs are the same in all kitakami devices and this is for nearly ONE YEAR now. If you want to have a device with working AOSP, DONT BUY SONY Devices!!! I bought it because of the advertising from Sony "We support Open Sources..." "We Support Developers which dont work for Sony" and so on. And, nothing. It´s just a fake made for getting users to buy their phones. Yes they open up sources, but you cant work with this. So it´s better to have no source and make your own as getting a tottaly buggy Software from Sony. Every other Manufactor i ever owned a device from, non of them provided open sources, but every of those devices had a bugfree AOSP Rom. = first and last Sony device.
[Xperia Z4/Z3+ Original Android Development] Phantasm4489:
I decided to have a go at building android 7.1 for E6553 variant following sony's build instructions. I managed to get a decent build working and since no builds of 7.1 have been posted anywhere i thought i'd post a link here:

AOSP 7.1 build for E6553

There are two folders here:

AOSP7.1 - which is a build of AOSP with only the changes necessary to get it building.

AOSPx7.1 - some small additional changes on top to enable the camera button and an advanced reboot menu

Both folders contain two zips - one is flashable from TWRP and the other containing fastboot flashable img files.

I made some small hacks to the camera code to fix the rotated image problem and the corrupt preview in certain resolutions.

These builds should be pretty stable - i have been running 7.1 for some time now without any major problems. Google camera crashes when you go into the settings so I'd recommend something like OpenCamera instead.

All changes are available here:

My github

Known issues:

Fm radio not working

Google camera crashes
[Xperia Z4/Z3+ Original Android Development] LMcR92:
Awesome :highfive: will try it out some point soon.

Not pushing on anything but could this be worked into CM 14.1 at a later date?
[Xperia Z4/Z3+ Original Android Development] MickySlimShady:
Thank you friend for not forgetting the Z3 + .... I am downloading the rom to install it today .... I will report any faults .. thanks.
[Xperia Z4/Z3+ Original Android Development] Thomas231:
First off, thank you so much for a working AOSP 7.1. After installing it (and installing Open GApps Mini 2 times since the first time didn't work for some reason) I noticed that in the settings dialog the switches for switching stuff on and off are not displayed properly (as in some kind of switch is displayed, only the background is displayed). Not a huge issue since the actual logic behind the switches seems to work, just was wondering if anyone else noticed this or has this minor issue.

Edit: looks like this is a partial system wide issue, Play Store (and the other Google apps I tested so far) seem fine, everything else has this issue.
[Xperia Z4/Z3+ Original Android Development] Phantasm4489:
Yep now that you mention it I have the same issue.
[Xperia Z4/Z3+ Original Android Development] Voje:
This is awesome! Maybe this is the time for unlocking my device? Will you keep tinkering with it?

Sent fra min E6553 via Tapatalk
[Xperia Z4/Z3+ Original Android Development] Phantasm4489:
yes i will continue to work on this but i am not an expert on any of this by any means, so i can't make any promises as to how well i will be able to resolve any issues. I will continue to post new builds for each aosp monthly release provided that i am able to build them sucessfully
[Xperia Z4/Z3+ Original Android Development] Kungencortes:
anyway you could compile a cm 13 rom? Thanks
[Xperia Z4/Z3+ Original Android Development] MickySlimShady:
For the moment everything works very well thanks friend.
[Xperia Z4/Z3+ Original Android Development] LMcR92:
I'm not running this yet but soon will, anyone know about this mod http://xdaforums.com/crossdevice-dev/sony/aosp-cyberian-camera-1-0-t3504461/page3

http://xdaforums.com/crossdevice-dev/sony/aosp-sony-battery-adviser-t3504815/page1
[Xperia Z4/Z3+ Original Android Development] caqo71:
wondering if there will be any AOSP ROM for Xperia XZ.
[Xperia Z4/Z3+ Original Android Development] bustr85:
Any chance that you could do it for the 6533 as well please?