yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Original Android Development] LeParkour012:
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)
[Xperia Z3 Original Android Development] ondrejvaroscak:
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.
[Xperia Z3 Original Android Development] ondrejvaroscak:
Hi, I would paraphrase the Apollo 13 - "It is not important what it is intended for, but what it actually can do" :)
[Xperia Z3 Original Android Development] LeParkour012:
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.
[Xperia Z3 Original Android Development] ondrejvaroscak:
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.
[Xperia Z3 Original Android Development] LeParkour012:
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
[Xperia Z3 Original Android Development] ondrejvaroscak:
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.
[Xperia Z3 Original Android Development] LeParkour012:
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.
[Xperia Z3 Original Android Development] ondrejvaroscak:
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.
[Desire 816 Q&A, Help & Troubleshooting] bdinesh1293:
Helllo ppl

i've been using desire 816 since last year without tweaking with software maintaining it totally stock.

Recently my phone's power button got stuck and phone started to restart itself again and again. I've removed back panel and adjusted the power button back to normal and even though the restart problem persists.

i tried to factory reset the phone's software many times but it is being left with stock software and stock setting(even the last minimized apps are being shown).

What should i do to make my phone work as normal :confused::confused::confused:
[Desire 816 Q&A, Help & Troubleshooting] dr.hassansoft:
Same probleme

i have same probleme
[Xperia Z3 Compact 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 Z3 Compact Original Android Development] snaky90:
Does the noise reduction of the camera is supported ?
[Xperia Z3 Compact Original Android Development] jerpelea:
For now there is no camera

br

J
[Xperia Z3 Compact Original Android Development] sfrique:
Hmm, not having a camera is really bad =/

I mean, the Sony's Android™ Concept has a working camera right?

I guess we will have to wait until there is a workign camera!

There is any road map for camera release?

It would really help custom ROMs and etc!

Thanks
[Xperia Z3 Compact Original Android Development] m0d:
It would be great to have some news regarding the project, as mentioned above.

Or, maybe a clear outline on what Sony is willing to deliver and what not.

As open device project has been active for a year now for this device at least.

And even though aosp source is fairly stable, there is no camera nor a workaround until a proper fix takes place.

It would be nice if Sony can show they are committed with the project,

As now it seems like they are not very committed and are relying mainly on volunteers to extend functionality: http://developer.sonymobile.com/2015/02/25/could-you-be-our-next-hero-open-source-developer/

Not having camera available is disheartening, since one of the attractions of choosing Sony is the camera. All the way back to Sony walkman phone and X10mini pro - Sony had a good camera.

And one of the reasons for choosing a z3-compact was the announcement of the Sony open developer project, but it had been almost a year without camera.

The worst thing is that Sony camera sensors are being used on devices not made by Sony showing better results, (Motorola , Samsung, even iPhone use them)
[Xperia Z3 Compact Original Android Development] someone755:
The article you linked is an initiative to get people excited about development and help out. Sony's open source team (and many other volunteers who do not mind contributing, because that's the essence of open source) are working on fixes and workarounds, but on the outside, the usual "Soon™" sign is visible, as it always is with developers (check, for example, the AOSPA team).

As for the camera, many people find it lackluster even on stock ROMs. Camera performance, however, has nothing to do with what your expectations should be (not what they are, because that's clearly a wholly different thing) regarding the AOSP project Sony has going on -- the goal of the initiative is to provide a working AOSP base similar to that of Nexus devices (though in more than one way, the Sony team responsible for this has far exceeded that goal). This does not mean that things will just work (quite the contrary, really). When you bought the device, the Open Developer project should not have been a reason to be excited about the end result of the developers' efforts, but rather a sign of encouragement that you should contribute, and are indeed welcome to do so.

tl;dr: this project, like the rest of XDA, isn't about the goal, but about the journey. (except for maybe the new bootloaders but that's another thing)
[Xperia Z3 Compact Original Android Development] m0d:
I believe, too, that the intiative by Sony is great and a good path to follow. I also understand that the volunteers do not mind, as you say.

I just wanted some clarification on Sony's commitment. If for example, Sony would provide a working camera base for developers to improve/enhance or do they expect the volunteers to use what is already provided to figure things out.

I believe that if the camera works, however basic implementation, more developers would be helping in creating something better and enhancing it.

Whereas now, developers are waiting for Sony to provide something which they might not be planning to provide, hence some clarification.

Regarding the camera, I am a little disappointed, that is all. As Sony used to have great cameras on their devices; however, recently other Manufacturers use Sony sensors with better results than Sony themselves (Stock included).
[Xperia Z3 Compact Original Android Development] FcukBloat:
as a matter of fact, there are no custom roms right now with good enough camera, which means without the well known (contrary) fish eye bug, that can be used if you need a basic working camera. this is stopping most of the z3c users (like me) that like aosp feel to switch to custom. so imho either sony is not helping that much with camera code, or we don't have a single very good dev capable of providing a camera fix, don't know. either way, this is very very sad.

I've always used custom roms in my previous phones, with bugs here and there of course, but never had so big bugs preventing me using custom roms like in sony phones i had (sudden reboots affecting my old xperia T that took ages to be fixed, this camera bug now in z3c). this is "funny" considering sony is known to be dev friendly. so again i think we are just unlucky with development going on for this phone probably (like i was when i used the T)

so right now people who hate all the bloat coming in stock FW and need good enough camera must stay with stock, and find already debloated solutions (like mine for example).

on this argument, really hope sony concept rom will arrive to z3c too soon at least...

not blaming anyone of course, as I'm the first one who can't help with development unfortunately.. :( it is just sad that many other ****ty phones like many Samsung ones for example, much worse than sony's, have tons of good development going on.. but well we know most of the user base are just sheeps thinking the only existent phones to be bought are samsung or iphones, which means less user base for Sony and other more deserving manufacturers....
[Xperia Z3 Compact Original Android Development] filou76:
Not knowing anything about sony's product politics to me it seems quite a strategy that sony is pursueing. something like "we give almost everything to the freaks what they need in order to do some developement (on which we, sony, can benefit too). BUT almost means NOT everything ...". So there is no real alternative to using sony's "company rom"... if this is the case then all the developer friendly blabla is just fraud! they release aosp kernel and they do have all necessary software parts for camera sensor, of course ... so come on sony!
[Xperia Z3 Compact 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 Z3 Compact Original Android Development] davidteri91:
https://plus.google.com/112116692753844849623/posts/GsD7K8kDpnm
[Xperia Z3 Compact Original Android Development] snaky90:
Good news ! Thanks [MENTION=4764217]davidteri91[/MENTION] !
[Xperia Z3 Compact Original Android Development] jerpelea:
http://developer.sonymobile.com/201...-camera-available-for-experienced-developers/

enjoy

J
[Xperia Z3 Compact Original Android Development] attn1:
Enjoy what? By Sony's own addmission, a half-assed framework that will render sub-par photos and cause crashes?

Look, no one is asking for code for special processing algorithms or hacks for DRM keys. Hobbyist developers need a functional AOSP code base so they can go from there. This isn't it.

Sony has given little more than lip-service to the AOSP program, and this is a typical example. IMO, come back with something useful, or don't come back at all. So far, the entire program has been a steaming load of crap.
[Xperia Z3 Compact Original Android Development] attn1:
No, I don't, per terms and conditions, because I live in a place Sony chooses not to have a market in.

More half-assed Sony hype.
[Xperia Z3 Compact Original Android Development] Burakki:
Sony has released an open-source camera to AOSP rom

http://developer.sonymobile.com/201...-camera-available-for-experienced-developers/
[Xperia Z3 Compact Original Android Development] Myself5:
You act like Sony owes you anything lol. Sony is having the best developer support, and yet you cry like a little girl. Did you ever consider that A company is not able to release software due to licenses?

Is there any other vendor providing ANY help with AOSP? No! Is there any other vendor giving free phones to developers for working on AOSP sources? No! Yet, other provides do not grant you the warranty you deserve for a broken HW button because your Software currupted it.. Yeah sure.

Stop crying. You're a freaking RD, one should expect you to KNOW how to act.
[Xperia Z3 Compact Original Android Development] kholk:
Actually, the camera have been released like it is because it's meant as a preview for developers, like you can read on the official blog post.

Download and see what you can find in there, the compare it with Sony stock ROMs. If you are an experienced developer, you will understand how much work was needed to get that.

Preview for developers actually means "showing you the actual progress to get help, instead of working alone and releasing when perfect and complete".

C'mon, don't flame. It's not necessary.

Peace!

-- kholk
[Xperia Z3 Compact Original Android Development] Entropy512:
Yeah. I really don't know how he doesn't understand what "developer preview means". Some of the Android dev previews were pretty crappy too - is he going to flame Google for that too?

This is the first time, in history, that any OEM has released a camera HAL specifically designed for AOSP-based projects (other than Nexus devices, of course). It's the first time in history an official representative of an OEM has solicited constructive feedback from the community on improving a closed-source component. Yeah, I know everyone would love for these blobs to be open source, but the reality is - Even after they stumbled with the 808/810, Qualcomm has the entire mobile industry by the balls by virtue of having the only viable chipsets out there for most devices, and if they want mm-camera to be closed source, mm-camera will be closed source and right now there's not much anyone can do about it. It's sad to say that Qualcomm is the most open-source friendly SoC manufacturer out there... Which isn't saying much. (If you want to know why David's video color corruption fix was not immediately integrated into the AOSP project - blame Qualcomm. The blobs he used to fix the issue are under a redistribution license that prevents Alin from distributing them. Technically David can't legally give out those blobs to anyone, they're for personal use, but Qualcomm rarely goes after individuals.)

To everyone complaining - rather than *****ing, try to come up with specific feedback that can improve the next release.

I'm going to be trying soon to see if RAW support is working - if it isn't, that IS planned. If you're able to capture DNG images with your device, then get cracking on profiling the optical system!

http://lensfun.sourceforge.net/calibration/ - Some information on distortion profiling of a lens. Also, if you use hugin and take multiple photos properly arranged for a panorama, hugin will also perform photometric (vignetting) profiling too. A proper vignetting/distortion profile for each sensor will be a major step forward - short-term it means you can correct photos to look good using lensfun and a RAW converter, long-term the profiles will hopefully be integratable into the camera HAL. (what would be REALLY awesome is if Alin can figure out a way to implement a lensfun profile loader)

Get a colorchecker - I have http://www.amazon.com/gp/product/B005IUBU2O arriving tomorrow for example. It will allow you to determine your camera's color calibration matrix (referred to simply as "color matrix" in ufraw). I'll try to provide some proper tutorials on this once I've done it on my Z3.
[Mi 3 Android Development] Sachinist:
Screenshots
[Mi 3 Android Development] Sachinist:
Reserved

Fix for no sim bug]

thanks to [MENTION=5880909]rooque[/MENTION]
[Mi 3 Android Development] aniket.lamba:
First one! Good job on your first ROM! :)
[Mi 3 Android Development] Sachinist:
thanks for helping me :D
[Mi 3 Android Development] aniket.lamba:
Anytime buddy! ;)
[Mi 3 Android Development] Mr Rainman:
Is ambient display working? If then does it work like in Omni (partial) or fully like in official cm test build? Any imfaous bugs like SOT?
[Mi 3 Android Development] Sachinist:
use ac display app

bugs i dont know yet. i have just now compiled & uploaded it
[Mi 3 Android Development] Armin_van_buuren:
Thanks for new rom.

Downloading and flash now!!!
[Mi 3 Android Development] SlyUK:
Looks exciting, definitely keep tabs on this :) All the best with it.
[Mi 3 Android Development] manohar.desale@gmail.com:
Looks exciting! downloding!
[Mi 3 Android Development] anshude1:
Looks great... But my standard question... Will this rom work with stock partition? :)
[Mi 3 Android Development] Sachinist:
Yes
[Mi 3 Android Development] angel.martinezsanchez.92:
No play store?
[Mi 3 Android Development] SwastikAcharya:
You should properly read OP.

How To Install

* Download the ROM and GApps

* Reboot to recovery

* Wipe data/factory reset

* Flash the ROM and then GApps

* Reboot your phone

* Enjoy

So answer is you have to flash gapps...
[Mi 3 Android Development] angel.martinezsanchez.92:
You mean restarting the phone twice
[Mi 3 Android Development] Mr Rainman:
Gapps-Google apps (play store, services and other useful stuff)
[Mi 3 Android Development] angel.martinezsanchez.92:
Yes
[Mi 3 Android Development] Mr Rainman:
"Yes" as if you confirmed basic knowledge or as if you installed Gapps? If you did and still no play store, then it was probably a faulty package or you didn't notice error log of package being too large. If that's the case, try smaller package (recommend minimal xor slim mini) or do the trick of install rom>take backup>install repartition zip>restore previously taken backup>install a huge load of Gapps and other add-ons if you wish to do so (leaves about 700mb of system free before gapps).
[Mi 3 Android Development] Armin_van_buuren:
I flashed several gapps error and lack of space in the system.

I extended partition and tried from a weighing just over 100mb to other 54 mb.
[Mi 3 Android Development] ImPrath:
ROM lags, active display didn't work for me and yeah jai Maharashtra :D
[Mi 3 Android Development] marko94:
Dev great work here.. Flashed now , yeah gapps error is there, but to avoid it do this : clean flash rom, make backup , wipe all except sd card, reboot to recovery, restore backup, flash gapps and voila..all works fine..First boot is really quick.. Only bug for now is " no sim " and no home buton.. rom is smooth, so much options .. Awesome work [MENTION=5601831]Sachinist[/MENTION] and good luck in future with compiling roms :)
[Mi 3 Android Development] anshude1:
Rom is stable and quick. Lot of customization options... Will report later on the battery life. As Marko said, no sim error and home button issue is there... Home button issue resolved by on screen nav keys. Faced no issue of gapps - use pico gapps.

Gps does not work. Else all is perfect.
[Mi 3 Android Development] Sachinist:
[MENTION=4765089]marko94[/MENTION] [MENTION=5709651]anshude1[/MENTION] Sorry forgot to mention the fix for home button.

After flashing home button doesn't work. Dont worry

*Go to system/usr/keylayout and open 'generic. Kl' with ES Note Editor.

Search line key 102 and delete whatever is in front of it

And type HOME in front of it and reboot.
[Mi 3 Android Development] anshude1:
Getting can't connect to camera error now... Camera does not work with what's app.. After rebooting the camera error is gone. Will report further. Got sod during call - phone got switched off , I then disabled ambient display and no more sod in next call. Will inform if it recurs.
[Mi 3 Android Development] Sachinist:
camera works for me try restarting.
[Mi 3 Android Development] palgaurav00196:
i also got "can't connect to camera error" but haven't got SOD ...

PS. I'm using ColorOs camera.

Edit:Got an in-call SOD today...
[Mi 3 Android Development] anshude1:
Sod

Got sod again today... This time with ambient display off... Posting logcat but I don't know if it would help...
[Mi 3 Android Development] Sachinist:
Wait for new build today. Hopefully sod will be fixed

Edit: waiting for others to confirm sod
[Mi 3 Android Development] anshude1:
Request you to release the new build... Hope gps is fixed in it...

Got sod multiple times today...
[Mi 3 Android Development] nokiaer:
MI3CDMA nosigal
[Mi 3 Android Development] Sachinist:
turn on flight mode and reboot
[Mi 3 Android Development] elia222:
It's for wdcma only
[Mi 3 Android Development] angel.martinezsanchez.92:
It has button to close applications?

Gracias.
[Mi 3 Android Development] Sachinist:
opps dint read his post properly. thanks
[Mi 3 Android Development] Armin_van_buuren:
Any update sir?
[Mi 3 Android Development] Sachinist:
in two or three days new build will be up. :)
[Mi 3 Android Development] Sachinist:
No sim bug issue fixed

Check 3rd post
[Mi 3 Android Development] rajib4:
[MENTION=5601831]Sachinist[/MENTION] Thanks a ton for sharing it bro :thumbup:

and about [MENTION=5880909]rooque[/MENTION] he gave us the compass fix and now this No SIM bug fix. He is a genius :thumbup:

I have applied it on AICP ROM and to check whether it is working or not restarted my phone 5/6 times and didn't face No SIM issue not even once. It's gone for good... :D
[Mi 3 Android Development] 24likan:
thanks a lot bro
[Mi 3 Android Development] palgaurav00196:
sorry for eta...but...will there be an update for this rom in near future..?

waiting for a long time for update...
[Xperia Z3 Tablet Compact Original Android Developm] 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 Z3 Tablet Compact Original Android Developm] anatole78:
Hi,

Glad to see you on these forums :)

I have been trying to build an AOSP image of the Android M Preview to flash on my z3 tablet compact for a while now and I always get stuck at the exact same time.

My building environment is set up on an Ubuntu VM (14.04 LTS) and when using the make command, I get an error message saying that "/usr/lib/python2.7/subprocess.py" can't be found.

Of course the file is in its place so that's a bit baffling...

Is this problem known to you and is there any solution for it ? :/

Thank you in advance for your reply !
[Xperia Z3 Tablet Compact Original Android Developm] jerpelea:
there is something wrong with your env please start over following the guide

i am also using ubuntu 14.04LTS and i can confirm that is fine

br

J

PS.

we will update soon M build guide for m-preview-2