yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] spida_singh:
[MENTION=3138030]m0d[/MENTION], have you managed to get a booting build, now get the following..

/tmp/cctC6kX5.s: Assembler messages:
/tmp/cctC6kX5.s:3910: Error: unknown pseudo-op: `.bytei0x5'
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_GraphicBuffer.o] Error 1
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (21:12 (mm:ss)) ####

Ill keep looking around, getting some other weird compile errors

Cheers
[Xperia Z3 Compact General] m0d:
Try first to

make clean​

and

repo sync -f​

Also, make sure to download the latest software binaries.

And replace them at vendor/sony

For z3 compact you will need aries and shinano vendor binaries to compile.

Then,

build again

. build/envsetup.sh && lunch aosp_d5803-userdebug && time make

or

. build/envsetup.sh && lunch aosp_d5803-userdebug && time make -j30

I have no problems compiling the builds.

I even followed his directions of compiling kernel and replacing the following files from kernel build:

bcmdhd.ko

kernel

msm8974pro-ac-shinano_aries.dtb

Following the guide you should be able to compile fine. I have never seen the error you got.

As far as a

That is another story, I have not heard one user that got a build that worked well. So far there have only been reports of

issues; i.e. problems with modems, wifi, camera.

So, I have been hesitant in unlocking my phone.

Because, there is still no custom ROM for our device, I have been trying to compile but getting a lot of errors, CM compiles but apparently has a reboot problem, nor AOSP that has been reportedly working.

Apparently jerpelea tests all his guides and on the hardware itself.

So if a sony developer with his experience has not provided a build that works, do you really expect anyone to test or more like experiment if there is nothing working to fall back to?

freexperia build has issues it seems:

Back to your question regarding compile errors, try the commands above to force the resync and build again.

Next make sure you have correct local manifest, mine is below.

I have been able to compile with no issues.

If you are still getting errors try from the very beginning:

repo init -b android-5.0.2_r1 && repo sync

You can also run this command to sync the AOSP sources from scratch:

repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.2_r1 && repo sync

The local manifest I use:

<remove-project name="platform/hardware/qcom/media" />
<remove-project name="platform/hardware/invensense" />
<remove-project name="platform/hardware/akm" />
<project path="device/sony/aries" name="device-sony-aries" groups="device" remote="sony" revision="master" />
<project path="device/sony/shinano" name="device-sony-shinano" groups="device" remote="sony" revision="master" />
<project path="vendor/sony/system/thermanager" name="thermanager" groups="device" remote="sony" revision="master" />
<project path="vendor/sony/system/mkqcdtbootimg" name="mkqcdtbootimg" groups="device" remote="sony" revision="master" />
[Xperia Z3 Compact General] zvdroid:
I was able to build it out of the box pretty easily.

The only problem was the huge size of the repo :/ I'll start a thread and upload the resulting images for who wants to test.

---------- Post added at 09:25 PM ---------- Previous post was at 09:18 PM ----------

apparently I'm a new member so I can't create threads ...

anyway for those interested I compiled lollipop for the D5803. This is Android 5.0.2.

Boot:

System:

User data:

I'm new to XDA and just got a z3c. If someone has some more info about the DRM keys/partition or could tell me specifically how/where the check occurs in the photo app I'd be happy to have a look and see what we can do.
[Xperia Z3 Compact General] jsscx:
There have been daily aosp lollipop builds from FXP.Now there's no way to backup DRM keys,whose loss would result many issues(lowlight's performance of camera,XR,etc)Though I unlocked my z3c.And for now cm12 works more perfectly than aosp,at least it has baseband,though signal always drops after few seconds.Maybe u could try to focus on this problem.
[Xperia Z3 Compact General] zvdroid:
I don't mind looking into it.

I stumbled accross a post that claims to solve the DRM issue but I'm not really convinced. Did you by any chance tried that method:

1.Flash ftf file "23.0.1.A.5.77" by Flashtool.

2.Relock bootloader by Flashtool.

3.Flash ftf file "23.0.1.A.5.77" by Flashtool AGAIN.

4.Unlock bootloader by Flashtool.

5.Flash boot.img "AndroPlusKernel v12" by Fastboot.

6.Install DRM restore zip by TWRP.

7.reboot.
[Xperia Z3 Compact General] jsscx:
No i won't try,though I could nearly be sure it works as many z3c users have reported.I don't really mind these issues actually.

I wonder if we uses this method,then once we reflash some rom,we have to do the same.That's another reason.

What I'm concerned is when we could get really working aosp build:D
[Xperia Z3 Compact General] jerpelea:
http://developer.sonymobile.com/kno...ld-aosp-lollipop-for-unlocked-xperia-devices/

- updated L build guide published

- new blob zip

- wifi is built into kernel

- media is built from source now

- NFC built from source

- audio built from source

enjoy

J
[Xperia Z3 Compact General] m0d:
I noticed that kernel is now included in local manifest, but in aosp_d5803.mk it still uses prebuilt kernel

TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL):kernel

Do we have to compile kernel separately?

Are you planning to have kernel compilation at the same time (in one go as in custom roms) in the future?
[Xperia Z3 Compact General] lewis_flt:
possible solution...

Looks like a merge conflict. So, I took a look at: hardware/libhardware/include/hardware/nfc.h

nano hardware/libhardware/include/hardware/nfc.h

There's a merge there with two definitions:

<<<<<<< HEAD
#define NFC_NCI_BCM2079X_HARDWARE_MODULE_ID "nfc_nci.bcm2079x"
=======
#define NFC_NCI_NXP_PN54X_HARDWARE_MODULE_ID "nfc_nci.pn54x"
>>>>>>> c6980da... Add Nfc HAL module ID for NXP NCI PN54x chips

I kept both definitions - as they define different variables - and removed the artefacts, so now there are just these 2 lines:

#define NFC_NCI_BCM2079X_HARDWARE_MODULE_ID "nfc_nci.bcm2079x"
#define NFC_NCI_NXP_PN54X_HARDWARE_MODULE_ID "nfc_nci.pn54x"

I'm rebuilding now to see what happens...

make -j 2

(yeah yeah, I know, a massively underpowered VM... Wish me luck!)

Good news! It didn't break there... Now just waiting forever for the remainder of the build...
[Xperia Z3 Compact General] m0d:
I believe that fixes the compile error.

Thank you

Will try again later with another repo sync just to make sure.

EDIT: Tried syncing again.

When I get to: Add necessary patches from the AOSP upstream branch

cd ../../hardware/libhardware/

git fetch https://android.googlesource.com/platform/hardware/libhardware refs/changes/21/103221/1 && git cherry-pick FETCH_HEAD​

I get,

git fetch https://android.googlesource.com/platform/hardware/libhardware refs/changes/21/103221/1 && git cherry-pick FETCH_HEAD
From https://android.googlesource.com/platform/hardware/libhardware
* branch refs/changes/21/103221/1 -> FETCH_HEAD
error: could not apply c6980da... Add Nfc HAL module ID for NXP NCI PN54x chips
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'

After which I went to nfc.h and made the changes once again you mentioned and looks like it compiles

Thank you once again

I hope these Cherry Picks get merged soon, so that we do not need to worry about artefacts while compiling
[Xperia Z3 Compact General] jam.01:
This solved it for me. Building for Z1, had the same problem. Could you explain why that file had those artefacts, and how that's addressed?
[Xperia Z3 Compact General] m0d:
It creates the error because the Commit has been updated with Patch 2

Applying:

git fetch https://android.googlesource.com/platform/hardware/libhardware refs/changes/21/103221/2 && git cherry-pick FETCH_HEAD​

Works

(Change the 1 to 2 for the libhardware cherry pick)

[MENTION=6341909]lewis_flt[/MENTION]

So we do not have to remove artefacts manually ;p

[MENTION=359497]jerpelea[/MENTION] updating guide will help, when you have the time of course, at least people will stop having this problem and reporting it.
[Xperia Z3 Compact General] lewis_flt:
git merge artefacts

It's a merge issue. That particular cherry-pick pulls a specific change from Git, but it's in the same place as another change to that file. Git doesn't know which of the two lines are supposed to be in the file (or in which order they should go) as each change is based on a different reference point. Result: it leaves the merge unresolved, and effectively asks you to fix it. Either a smarter choice of cherry-pick or a just creating a new patch based on a better choice of starting point would do the trick, but that's one for Sony to puzzle over :)

FYI, whenever you repo sync, it will b0rk at that point if the file is unresolved. To resolve it:

cd android/hardware/libhardware
git add include/hardware/nfc.h
git cherry-pick --continue

Although do note that the next time you run repo sync after that, the defines will drop to just one (and I hope that's the desired one -- I've got a build running at the moment to see, but it's going to be a while...)
[Xperia Z3 Compact General] graffixnyc:
Nice. I haven't done a build since the one I posted when the stuff was first pushed initially. Just synced the repo over my existing folder, grabbed the new binaries and built it according to the guide. Built without a hitch the first time. I'm going to add the images to the thread I have for the first build I did. I am still not bootloader unlocked so it still is a blind build
[Xperia Z3 Compact General] m0d:
Have you tried compiling kernel, too?
[Xperia Z3 Compact General] m0d:
I was able to compile using SW_binaries_for_Xperia_AOSP_L_MR0_v5

A quick question, does the kernel now compile along with AOSP?

Or, do we still have to compile separately?

Thank you in advance
[Xperia Z3 Compact General] x1123:
AOSP used "binary" kernel by default (CMIIW), the best guide I found to build aosp is how-to-build-android-kitkat-nexus5 including how to integrate kernel build and " gapps ". It's great to have "OneStopFlash method"
[Xperia Z3 Compact General] m0d:
I will test the next time I build,

Thank you.
[Xperia Z3 Compact General] m0d:
Using Latest Sources and Binaries (v6),

Camera app does no appear in app drawer

Camera is now in app drawer, after a while I clicked the app icon on drawer and a pop-up appeared "App is not installed" and it disappeared from drawer again.

but still from lockscreen:

it FCs - Unfortunately, Camera has stopped

External SD card is not detected. (It worked on stock, and mount sd card does nothing) ~ It got corrupted, I tried with a different SD and it worked

Screen randomly wakes from sleep Seems to work much better so far

Slow reaction when trying to wake/go to/from sleep. Much better - no more "android" when n sleep

With low brightness right side of screen has a black cloud formation. Lowest brightness is higher than previous build but cloud seems to be gone

Is there a way to remove "android" being displayed when putting device to sleep with power button?

(Switched daydream off, and no other settings showing) Disappeared like magic

Looking forward to the next batch of commits, hopefully it gets even better - withCamera?
[Xperia Z3 Compact General] x1123:
Is there any new binaries ? ... "official aosp" getting better. I discharge my aosp source file and grab CM 12.
[Xperia Z3 Compact General] m0d:
External SD card appears with blank name, whereas "Internal SD" appears as is.
[Xperia Z3 Compact General] jerpelea:
kernel should not be inline built since it just add more compile time

there is no real benefit

br

J
[Xperia Z3 Compact General] jerpelea:
build guide has been updated for easy reading

http://developer.sonymobile.com/kno...evices/how-to-build-and-flash-a-linux-kernel/

br

J
[Xperia Z3 Compact General] daunown:
I built this and it works great besides the camera. I managed to fix modem by copying modem files from stock ROM but don't know how to fix the camera.
[Xperia Z3 Compact General] dzejmsbond007:
Hi, by "works great" you mean no lags, everything but camera working perfectly? Ready for everyday use?

Thanks
[Xperia Z3 Compact General] dzejmsbond007:
Any progress, gentlemen?
[Xperia Z3 Compact General] m0d:
Check site for latest updates: http://developer.sonymobile.com/knowledge-base/open-source/open-devices/latest-updates/

New binaries v8

Compile, flash, and then tell us what the progress is.

Other wise you might want to use Q&A section
[Xperia Z3 Compact General] m0d:
Using updated guide, l-mr0 branch and aosp/LNX.LA.3.5.2.2-03010-8x74.0 kernel

But I have a problem with music controls. When I click them(play, forward, previous) app hangs and causes device to stop responding at times.

If I exit app quickly I do not need to restart however most times I need to restart device for it to go back to normal.

Log: http://pastebin.com/Tfr2Q9UQ

Hope it helps in solving the problem. It also occurs in CM12, with apollo and myplayer, and other music apps

This repo has modem files - service provider detected: https://github.com/SuperBenevolent/aosp-vendor-sony

I tried making a call and it worked, will modem files be added to next binaries update, v9?

Other issues:

USB drives that worked on Sony stock, such as SanDisk Ultra Dual USB Drive, do not work in AOSP.

​

USB connection to computer sometimes does not get detected, needs a restart for it to connect to PC.

Audio and video crashes app and hangs system sometimes needing restart

http://pastebin.com/WqxFH9mM

http://pastebin.com/FPiWQ6Aa

http://pastebin.com/KcWGwEZi
[Xperia Z3 Compact General] m0d:
3.10 kernel works fine ( I guess the pixelated screen confused me into thinking it was not working )

​

But, it starts with rainbow pixels instead of boot logo,

​

then quickly flashes Sony boot logo before android logo appears

There is no service, using modem files from SuperBenevolent repo, (it worked in 3.4 kernel , though).

​

Bluetooth works for file transfer,

ISSUES:

Music still crashes app and system starts to hang and reboot needed( same issue with 3.4 kernel).
[Xperia Z3 Compact General] phroenix:
beginner question - how do you get 3.10 kernel built in images - do you need to build it from source?

I'm using LNX.LA.3.5.2.2-03010-8x74.0 revision, and tried both l-mr0 and master for aries device (don't know if that matters) but each builds with kernel version 3.4.0 dated Feb 10, 2015 - is this the latest version of the pre-compiled available?
[Xperia Z3 Compact General] m0d:
Check http://fxpblog.co/aosp/aosp-5-0/

And,

AOSP 5.0.2 for 3.4 kernel

If you want to build them yourself follow the guide for 3.4 kernel bring-up

3.10 kernel you will need to switch branches: aries and shinano device master branch and kernel aosp/AU_LINUX_ANDROID_LA.BF.2.1_RB1.05.00.00.173.012 branch
[Xperia Z3 Compact General] phroenix:
Thank you.

I did a build last night (08 March 2015) but couldn't boot the build - so guess its just me being noob

In case anyone is interested I put the logcat here http://pastebin.com/q57ghXT3

The last bit that it hangs on is:

I/AudioFlinger( 272): Using module 1 has the primary audio interface
I/AudioFlinger( 272): AudioFlinger's thread 0xb5820000 ready to run
D/audio_hw_primary( 272): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
I/AudioFlinger( 272): HAL output buffer size 240 frames, normal sink buffer size 960 frames
I/AudioFlinger( 272): AudioFlinger's thread 0xb58b4000 ready to run
D/audio_hw_primary( 272): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
I/AudioFlinger( 272): HAL output buffer size 768 frames, normal sink buffer size 1152 frames
I/AudioFlinger( 272): AudioFlinger's thread 0xb524a000 ready to run
D/audio_hw_primary( 272): out_set_parameters: enter: usecase(16: afe-proxy-playback) kvpairs: routing=65536
I/AudioFlinger( 272): AudioFlinger's thread 0xb4b01000 ready to run
I/AudioFlinger( 272): AudioFlinger's thread 0xb4b01000 ready to run
I/audio_a2dp_hw( 272): adev_open: adev_open in A2dp_hw module
I/AudioFlinger( 272): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 10
I/AudioFlinger( 272): loadHwModule() Loaded usb audio interface from USB audio HW HAL (audio) handle 11
I/r_submix( 272): adev_open(name=audio_hw_if)
I/r_submix( 272): adev_init_check()
I/AudioFlinger( 272): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 12
D/r_submix( 272): adev_open_input_stream()
D/r_submix( 272): submix_audio_device_create_pipe()
I/AudioFlinger( 272): AudioFlinger's thread 0xb4b01000 ready to run
D/r_submix( 272): adev_close_input_stream()
D/r_submix( 272): submix_audio_device_release_pipe()
D/r_submix( 272): submix_audio_device_destroy_pipe(): pipe destroyed
E/SoundTriggerHwService( 272): couldn't load sound trigger module sound_trigger.primary (No such file or directory)

Let me know if there is any other log I can pick up to help with this.

Thank you
[Xperia Z3 Compact General] m0d:
More importantly, and easier to figure out - if you compiled the build yourself - what branches did you add to local manifest?

I have been building master and 3.10 kernel branches the last few nights with no issues and if you followed the guide on sony site you should also be okay.
[Xperia Z3 Compact General] jerpelea:
Android 5.1 has been published (build guide and blobs are pushed)

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

Enjoy

J
[Xperia Z3 Compact General] jerpelea:
from error messages you have not followed the guide and your branch on kernel or devices is osffsync

br

J
[Xperia Z3 Compact General] m0d:
Great news, that was quick.

Will be testing this out.

Guide typo for 5.1, there is a space after revision="aosp/ and an extra " is in kernel local manifest, (section 3):

<project path="kernel/sony/msm" name="kernel" groups="device" remote="sony" revision="aosp/ AU_LINUX_ANDROID_LA.BF.2.1_RB1.05.00.00.173.012"

"

/>​
[Xperia Z3 Compact General] dzejmsbond007:
Hi all. How far are we from stable working AOSP Lollipop suitable for everyday use? Is it just about compiling the sources and using Sony binaries, or am I too naive?

Thanks!
[Xperia Z3 Compact General] jerpelea:
this one is intended for developers and is not a final product

in this moment camera and mobile data is not working on mr1 release

br

J
[Xperia Z3 Compact General] dzejmsbond007:
Sorry for my impatience but do you know if there is anyone working on getting the AOSP 100% working?

And also - where is the problem? The Google sources? Or the Sony binaries? Or putting it together?

Thanks!

Jan
[Xperia Z3 Compact General] m0d:
For 5.1, I guess mr1 release, I am not getting SIM card detection.

Modem files are missing in latest binaries.

Looking forward to the progress

If there is anything I can do to help test just let me know

Where can I find documentation on z3c hardware and its implementation, i.e. msm8974pro ac board / sony camera?

Also where can we look to try to figure out audio routing issues?

It is annoying that audio has inconsistent routing, when making calls sometime it is routed to loudspeaker while at other times it is routed correctly.

I tried searching but can not seem to find any.

Is there a specific reference available?

Sony open source initiative is great.

It is nice to see the work of developers and enthusiasts integrated.

It would be great to see work progress towards hardware's full potential.
[Xperia Z3 Compact General] phroenix:
Hi,

Thank you to you both for taking your time to respond

Finally found time to do & test a new build - you were both correct, branches were mixed up (I did my last build/test just as the new instructions went up!)

Everything on master now, compiling 5.1, all boots up as usual - super smooth fwiw, I really like how clean aosp is

Can confirm m0d, sim card is not detected - I still need to extract binaries from the device & test a build using some additional firmware not included in the released mr1-v2 binaries - will let you know how that goes if I can figure out how to do it & include them in the build (there are quite a few missing compared to cm) - if you have advice on what to do here it would be appreciated as always

Thanks
[Xperia Z3 Compact General] m0d:
For Sim-card detection - you will need to extract modem files from 23.1.A.0.690 - which is not quite straightforward.
[Xperia Z3 Compact General] jerpelea:
hi all

new blobs for android 5.1.0_r5 have been uploaded

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

enjoy

J
[Xperia Z3 Compact General] m0d:
In regards to Cherrypicks from the build guide,

The qcom bluetooth and display cherry picks are not for our devices ?

So we do not need to apply them?
[Xperia Z3 Compact General] dferreira:
It would be nice to know for the Z3 Compact what cherry-picks to use... right now the guide is generic, but seems to lead to unnecessary changes for specific devices. Also, android-5.1.1_r1 is rolling out now. Any ETA on the binaries?

Here's how to fix the location services over network (triangulation, Wi-Fi):

- Search for the lines in frameworks/base/core/res/res/values/config.xml that say:

<string-array name="config_locationProviderPackageNames" translatable="false">
<!-- The standard AOSP fused location provider -->
<item>com.android.location.fused</item>
</string-array>

And change this into:

<string-array name="config_locationProviderPackageNames" translatable="false">
<!-- The Google provider -->
<item>com.google.android.gms</item>
<!-- The standard AOSP fused location provider -->
<item>com.android.location.fused</item>
</string-array>
[Xperia Z3 Compact General] jerpelea:
Hi

instead of changing framework's xml is enough to add your change in platform overlay

this change is not required if you build android without GMS.

Br

J
[Xperia Z3 Compact General] jerpelea:
Project has been updated to latest android 5.1.1_r13 to address security patches

New blobs have been published for better device support

Enjoy
[Xperia Z3 Compact General] FcukBloat:
any news about camera? someone tried if new blobs are also related to camera support? :(
[Xperia Z3 Compact General] m0d:
2015-08-19: Lollipop_MR1_v11

No changes for z3 compact.

Only fixes for new releases (z3+/z4).

From the 14th the last 2 binaries have a folder:

/vendor/sony/build/tasks/ :
deb_from_target_files/deb_from_target_files
deb_from_target_files.mk

?
[Xperia Z3 Compact General] :
jerpelea, you know the reason for Sony not release the camera drivers to AOSP project?
[Xperia Z3 Compact General] Arch9:
AFAIK its because the drm related
[Xperia Z3 Compact General] DjowBr:
At least release the câmera drivers without these implements in drm like noise reduction and bionz
[Xperia Z3 Compact General] arcadroid:
FM Radio

I downloaded and built the firmware for the Sony Experia Z1, but it looks like FM radio is not included.

Added Info:

Looking around the web it appears CodeAurora has a branch that add qcomm FM radio. Also, Cyanogenmod has source for Sony Experia. Does anyone know if Cyanogenmod supports FM radio?

Any idea how to add FM radio to the ASOP?

Thanks in advance!
[Xperia Z3 Compact General] mcgi5sr2:
Hi [MENTION=359497]jerpelea[/MENTION],

thanks for sorting all of this out, and for Sony supporting AOSP on shinano boards. I have just come across from the S3 and its refreshing to have any form of support, never mind a full on guide!

Thank you, and I will post progress on Marshmallow as it comes :)