• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[Sony] Xperia Open Devices Project

jerpelea

Senior Recognized Developer
Nov 7, 2006
7,455
40,144
0
Lund
sites.google.com
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/
 

ondrejvaroscak

Elite Member
Jan 21, 2015
1,517
1,160
0
Aachen
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/
Will Open Devices recovery work with unlocked bootloader and Stock ROM? Or is it intended for Custom ROMs only? I ask because Stock ROMs are using recovery partition for FOTA and the only Stock that brings new partitioning scheme - the new Concept UI ROM - uses nasty security measures against changing either recovery or system partition...

Sent from my D6603 using Tapatalk
 

shoey63

Recognized Contributor
Jun 5, 2012
4,003
3,982
113
Somewhere in Oz...
Will Open Devices recovery work with unlocked bootloader and Stock ROM? Or is it intended for Custom ROMs only? I ask because Stock ROMs are using recovery partition for FOTA and the only Stock that brings new partitioning scheme - the new Concept UI ROM - uses nasty security measures against changing either recovery or system partition...

Sent from my D6603 using Tapatalk
I think this link would indicate that it is meant for UB at this stage.
However I am building the AOSP android M preview, and will report back with my findings.
 
  • Like
Reactions: ondrejvaroscak

shoey63

Recognized Contributor
Jun 5, 2012
4,003
3,982
113
Somewhere in Oz...
I meant combination UB+Stock. That UB alone is required is clear

Sent from my D6603 using Tapatalk
The link says to first install generic software on your device, so yes when released, UB+Stock will work.
But obviously, it will be different to the android concept scenario which (by my reckoning), is just a test by Sony on how to prevent people from rooting their phones on locked bootloader under the guise of providing a minimalistic Sony AOSP like experience. It is my opinion that they will implement it in their future devices.
Edit: I misread you post. Quite clear you were talking about UB :p
 
Last edited:
  • Like
Reactions: ondrejvaroscak

ondrejvaroscak

Elite Member
Jan 21, 2015
1,517
1,160
0
Aachen
The link says to first install generic software on your device, so yes when released, UB+Stock will work.
But obviously, it will be different to the android concept scenario which (by my reckoning), is just a test by Sony on how to prevent people from rooting their phones on locked bootloader under the guise of providing a minimalistic Sony AOSP like experience. It is my opinion that they will implement it in their future devices.
Edit: I misread you post. Quite clear you were talking about UB [emoji14]
Anyway, if Sony would mean it seriously with security restrictions in Concept, then we have to go on at least with custom kernels. As soon as Z3 will be in Open devices, majority of problems like fish-eye camera problem may disappear. I think unified kernel sources for 3.10 are already online.

Sent from my D6603 using Tapatalk
 

jerpelea

Senior Recognized Developer
Nov 7, 2006
7,455
40,144
0
Lund
sites.google.com
Will Open Devices recovery work with unlocked bootloader and Stock ROM? Or is it intended for Custom ROMs only? I ask because Stock ROMs are using recovery partition for FOTA and the only Stock that brings new partitioning scheme - the new Concept UI ROM - uses nasty security measures against changing either recovery or system partition...

Sent from my D6603 using Tapatalk
recovery is intened for unlocked bootlaoder and custom roms only
br
J
 
  • Like
Reactions: ondrejvaroscak

jerpelea

Senior Recognized Developer
Nov 7, 2006
7,455
40,144
0
Lund
sites.google.com
I think this link would indicate that it is meant for UB at this stage.
However I am building the AOSP android M preview, and will report back with my findings.
i will update build guide for m-preview1 and publish new zip soon
the old blobs from m-preview are incompatible with new m-preview1!

br
J
 
L

LeParkour012

Guest
I'm interested in building an AOSP (5.1.1) firmware for myself. However I lack the knowledge to do so. So bear with me as I ask a few stupid questions while I'm trying to learn something new.

First of all, if I were to follow the instructions on the link on the OP, does that mean that I'm able to build a perfectly working AOSP (5.1.1) firmware?

Secondly, I'm assuming that I need Ubuntu or Linux?

Thirdly, I don't quite understand how does one flash the firmware once it's built. I mean does it provide a kernel with a recovery or do I have to use the unified kernel?

Lastly, is root possible? (Not important)

Sent from my D6653 using Tapatalk
 

ondrejvaroscak

Elite Member
Jan 21, 2015
1,517
1,160
0
Aachen
I'm interested in building an AOSP (5.1.1) firmware for myself. However I lack the knowledge to do so. So bear with me as I ask a few stupid questions while I'm trying to learn something new.

First of all, if I were to follow the instructions on the link on the OP, does that mean that I'm able to build a perfectly working AOSP (5.1.1) firmware?

Secondly, I'm assuming that I need Ubuntu or Linux?

Thirdly, I don't quite understand how does one flash the firmware once it's built. I mean does it provide a kernel with a recovery or do I have to use the unified kernel?

Lastly, is root possible? (Not important)

Sent from my D6653 using Tapatalk
For the second question.. You need any environment that supports git and compiling. The instructions are given for Ubuntu and I would stick with that. Ubuntu or compatible Debian based distro.

You get kernel, system and data images at the end. Those you flash in fastboot mode. See instructions. So far it doesn't provide recovery, but recovery may already be available for supported Open Devices. Once you flash recovery, it's kept in separate partition so you can boot it regardless of kernel.

As for rooting, you can do it with recovery or you can include su in your aosp system.

Sent from my D6603 using Tapatalk
 
L

LeParkour012

Guest
For the second question.. You need any environment that supports git and compiling. The instructions are given for Ubuntu and I would stick with that. Ubuntu or compatible Debian based distro.

You get kernel, system and data images at the end. Those you flash in fastboot mode. See instructions. So far it doesn't provide recovery, but recovery may already be available for supported Open Devices. Once you flash recovery, it's kept in separate partition so you can boot it regardless of kernel.

As for rooting, you can do it with recovery or you can include su in your aosp system.

Sent from my D6603 using Tapatalk
I tried following the instructions to setup Ubuntu. Used VMWare since for some reason I can't install it on a different partition on my Hard Drive (it gets stuck at login and black screen and loops). I get errors. I give up. Maybe I can use my other PC for Ubuntu.
 

ondrejvaroscak

Elite Member
Jan 21, 2015
1,517
1,160
0
Aachen
I tried following the instructions to setup Ubuntu. Used VMWare since for some reason I can't install it on a different partition on my Hard Drive (it gets stuck at login and black screen and loops). I get errors. I give up. Maybe I can use my other PC for Ubuntu.
Nobody can help you or provide you with any guidance if you write just "I get errors" ... Compiling AOSP is not for newbies, it expects you to have profound knowledge of Linux kernel based systems, working with source code, compiling and cross-compiling and not least Linux administration. There is no such thing like a spoon feeding / cook book for compiling own system.
 
L

LeParkour012

Guest
Nobody can help you or provide you with any guidance if you write just "I get errors" ... Compiling AOSP is not for newbies, it expects you to have profound knowledge of Linux kernel based systems, working with source code, compiling and cross-compiling and not least Linux administration. There is no such thing like a spoon feeding / cook book for compiling own system.
I think you misunderstood me here. I'm not asking for help. That's why I wasn't specific on the errors. I wanted to try on my other PC later on. To be honest I have no idea why I replied to you but I guess that's my mistake. Sorry

Sent from my D6653 using Tapatalk
 

ondrejvaroscak

Elite Member
Jan 21, 2015
1,517
1,160
0
Aachen
I think you misunderstood me here. I'm not asking for help. That's why I wasn't specific on the errors. I wanted to try on my other PC later on. To be honest I have no idea why I replied to you but I guess that's my mistake. Sorry

Sent from my D6653 using Tapatalk
OK, I was bit referring to your first post, it seemed you expect step-by-step instructions to get "perfectly working" AOSP. Such thing doesn't exist.

When setting up building environment, be sure to provide generous space, not less than 200 GB.
 
L

LeParkour012

Guest
OK, I was bit referring to your first post, it seemed you expect step-by-step instructions to get "perfectly working" AOSP. Such thing doesn't exist.

When setting up building environment, be sure to provide generous space, not less than 200 GB.
Ah I thought Sony released a fully functioning AOSP firmware. My bad.

200gb? That's huge. I guess using my other PC for Ubuntu is a good choice.

Sent from my D6653 using Tapatalk
 

ondrejvaroscak

Elite Member
Jan 21, 2015
1,517
1,160
0
Aachen
Ah I thought Sony released a fully functioning AOSP firmware. My bad.

200gb? That's huge. I guess using my other PC for Ubuntu is a good choice.

Sent from my D6653 using Tapatalk
Sony releases support files for building AOSP, and yes, if you build from Sony sources, you will get pure Sony AOSP. However, the main intention of AOSP is customization, it is not intended as general purpose daiy use system.