[LOLIPOP] Xperia AOSP Project - Xperia Z3 General

hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J

Andoroid L (5.0) code, binaries and guides are published

Wow, you are already testing 5.0 on the Z3?

thx @jerpelea wasn't sure if we would be lucky enought to get lollipop at the first instance ?

Fix? Does the code contain any major bugs something not working? Just got soooo excited with this news

tx a lot @jerpelea! Just make bl unlock a bit more straightforward (e.g. easy to go back to stock)!
Inviato dal mio LG-D802 utilizzando Tapatalk

Would unlocking the bootloader and installing this eventual ROM that's based off of Sony's source code not be impacted by this warning from Sony (meaning the DRM security keys would be intact?
http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
Certain pre-loaded content on your device may also be inaccessible due to the removal of DRM security keys. For high-end devices running recent software versions, for instance Xperia Z3, the removal of DRM security keys may affect advanced camera functionality. For example, noise reduction algorithms might be removed, and performance when taking photos in low-light conditions might be affected. The secure user data partition may also become inaccessible, and you will not be able to get any more official software upgrades if you unlock the boot loader.
Click to expand...
Click to collapse

the proprietary software thar uses drm is not part of aosp
more the point re this lollipop source: camera and phone modem are disabled ~ so no daily driver for a while yet.
I will post results of my first build in this thread (give me a few hours).
update: build failed..
(something to do with bluetooth ~ checked remotely so no details yet)
try again later

iBuzman said:
the proprietary software thar uses drm is not part of aosp
more the point re this lollipop source: camera and phone modem are disabled ~ so no daily driver for a while yet.
I will post results of my first build in this thread (give me a few hours).
update: build failed..
(something to do with bluetooth ~ checked remotely so no details yet)
try again later
Click to expand...
Click to collapse
I'll also build but will not be installing until our gurus fix the camera and modem.

rebuilding now, java was still 6 defaulted not java 7, plus a system folder missing.. fingers crossed..
---------- Post added at 12:24 PM ---------- Previous post was at 12:09 PM ----------
@jerpelea
cd external/libnfc-nci/
git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
FYI - throws out a "fatal: bad object" error
thanks

no good for my builds.. bluetooth errors during build stopping build approx 2hrs into "make" process..
I don't know how to fix so will hold off on any more builds until after source updated or somebody else builds without error.

iBuzman said:
no good for my builds.. bluetooth errors during build stopping build approx 2hrs into "make" process..
I don't know how to fix so will hold off on any more builds until after source updated or somebody else builds without error.
Click to expand...
Click to collapse
What kind of errors are you getting? Im compiling now so will see how that goes.

^^ I'll kick off another build, but resetting up first, will capture error details then, it's something along the lines of:
/android/external/bluetooth <- android/external/bluetooth.. something something
make stopped with jobs still to run (something like that)
definitely bluetooth each time and suggests something missing.
deleted all repos/android folder etc and re-syncing now (just in case change from 4.4.4 to 5.0.0 in repos is causing issues. probably a few hours before next attempt.

thanks for your message
guide updated to cherry-pick nfc from google review
br
J
iBuzman said:
rebuilding now, java was still 6 defaulted not java 7, plus a system folder missing.. fingers crossed..
---------- Post added at 12:24 PM ---------- Previous post was at 12:09 PM ----------
@jerpelea
cd external/libnfc-nci/
git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
FYI - throws out a "fatal: bad object" error
thanks
Click to expand...
Click to collapse

jerpelea said:
thanks for your message
guide updated to cherry-pick nfc from google review
br
J
Click to expand...
Click to collapse
Alin. Should we be using AOSP Master or the android-5.0.0_r2 branch?

iBuzman said:
^^ I'll kick off another build, but resetting up first, will capture error details then, it's something along the lines of:
/android/external/bluetooth <- android/external/bluetooth.. something something
make stopped with jobs still to run (something like that)
definitely bluetooth each time and suggests something missing.
deleted all repos/android folder etc and re-syncing now (just in case change from 4.4.4 to 5.0.0 in repos is causing issues. probably a few hours before next attempt.
Click to expand...
Click to collapse
I'm getting the same thing when building for D6503, fair noob here but i'll let you know if I find anything.
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_util.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_ag_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_dm_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_fs_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gattc_co.c
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gatts_co.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
make: *** wait: No child processes. Stop.
#### make failed to build some targets (33:43 (mm:ss)) ####

thats the one @XeKToReX... (and I need a better computer!! takes me 2.04hr to get that error!) @jerpelea maybe can shed some light? (thanks, appreciate all your help)

SSD makes a difference! Seems like others have built it for the Z2, glad its not just me though, I'd have just blown the is away and started again lol
Sent from my D6503 using xda-developers.com, powered by appyet.com

On each command you will have to select the version of java you want to use. This command is helpful if you also do other coding.
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config jar
sudo update-alternatives --config javadoc
I've included the master from jerpelea's branch in case anybody is having issues and needs it quickly
After i get out of class today i'm going to run through android.com and see what i can find out about the new compiling method for Android L. I'm sure there's something we've all missed.

bluetooth patch pushed on github
enjoy
XeKToReX said:
I'm getting the same thing when building for D6503, fair noob here but i'll let you know if I find anything.
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_util.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_ag_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_dm_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_fs_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gattc_co.c
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gatts_co.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
make: *** wait: No child processes. Stop.
#### make failed to build some targets (33:43 (mm:ss)) ####
Click to expand...
Click to collapse

Related

[Q] Firefox os build error at SurfaceTextureClient.cpp

I'm trying to port firefox os(B2G) to my device (HTC Desire HD). While building it stops because of error at libgui in SurfaceTextureClient.cpp
last few lines of build log
Code:
target thumb C++: libgui <= frameworks/base/libs/gui/SurfaceTextureClient.cpp
frameworks/base/libs/gui/SurfaceTextureClient.cpp: In member function 'virtual int android::SurfaceTextureClient::setUsage(uint32_t)':
frameworks/base/libs/gui/SurfaceTextureClient.cpp:500: error: 'GRALLOC_USAGE_EXTERNAL_ONLY' was not declared in this scope
frameworks/base/libs/gui/SurfaceTextureClient.cpp:505: error: 'GRALLOC_USAGE_EXTERNAL_BLOCK' was not declared in this scope
make: *** [out/target/product/ace/obj/SHARED_LIBRARIES/libgui_intermediates/SurfaceTextureClient.o] Error 1
and the full build log is here
I think this happens because of the build system doesn't build
Code:
hardware/qcom/display/libgralloc/
before building
Code:
frameworks/base/libs/gui/
How can I tell the B2G build system to do that? Or is there any other way to get around this without breaking(like can't see anything) the build?
Here is my B2G manifest file.
I know this belongs in the developer forum but I still can't post in it
In your device blobs you are telling it to make hardware/com/display or display_legacy or the like correct? One way to at least get past this error and possibly get either further clues or have it compile would be to just add the header to this file or reference it as a dependency in your frameworks/base makefiles. These are just some ideas. Its hard without knowing where you are pulling these from (cm repo, Google, linaro, b2g, or whatever) so I can look at the code and makefiles. But normally this sort of thing will be an adjustment needed to your makefiles. Its just finding which, or if its simply a missing statement like this in your device makefiles TARGET_QCOM_DISPLAY_VARIANT := legacy
Pacman for the 3vo CDMA

CM11 jflteatt compile error

Can someone help me with this.. I've just synced and tried a fresh build of CM11 for jflteatt and I'm running in to this:
Code:
target thumb C: irda.msm8960 <= device/samsung/jf-common/irda/irda.c
target thumb C++: keystore.default <= system/security/softkeymaster/module.cpp
device/samsung/jf-common/irda/irda.c:25:27: fatal error: hardware/irda.h: No such file or directory
compilation terminated.
make: *** [/home/kaschenberg/android/system/out/target/product/jflteatt/obj/SHARED_LIBRARIES/irda.msm8960_intermediates/irda.o] Error 1
make: *** Waiting for unfinished jobs....
Thanks :good:
EDIT:
I can see this was moved.. FWIW thanks to anyone who's viewed this but, mods, please this won't get the correct exposure in this section. This belongs in the dev section because it's dev-related material, not generic Q&A material.
chaosclarity said:
Can someone help me with this.. I've just synced and tried a fresh build of CM11 for jflteatt and I'm running in to this:
Code:
target thumb C: irda.msm8960 <= device/samsung/jf-common/irda/irda.c
target thumb C++: keystore.default <= system/security/softkeymaster/module.cpp
device/samsung/jf-common/irda/irda.c:25:27: fatal error: hardware/irda.h: No such file or directory
compilation terminated.
make: *** [/home/kaschenberg/android/system/out/target/product/jflteatt/obj/SHARED_LIBRARIES/irda.msm8960_intermediates/irda.o] Error 1
make: *** Waiting for unfinished jobs....
Thanks :good:
EDIT:
I can see this was moved.. FWIW thanks to anyone who's viewed this but, mods, please this won't get the correct exposure in this section. This belongs in the dev section because it's dev-related material, not generic Q&A material.
Click to expand...
Click to collapse
Found this thread via Google. I fixed it by either removing "Android.mk" and "irda.c" or just renaming "Android.mk" to something else from ~/android/system/device/samsung/jf-common/irda
This will kill any IR functionality, though.
chaosclarity said:
Can someone help me with this.. I've just synced and tried a fresh build of CM11 for jflteatt and I'm running in to this:
Code:
target thumb C: irda.msm8960 <= device/samsung/jf-common/irda/irda.c
target thumb C++: keystore.default <= system/security/softkeymaster/module.cpp
device/samsung/jf-common/irda/irda.c:25:27: fatal error: hardware/irda.h: No such file or directory
compilation terminated.
make: *** [/home/kaschenberg/android/system/out/target/product/jflteatt/obj/SHARED_LIBRARIES/irda.msm8960_intermediates/irda.o] Error 1
make: *** Waiting for unfinished jobs....
Thanks :good:
EDIT:
I can see this was moved.. FWIW thanks to anyone who's viewed this but, mods, please this won't get the correct exposure in this section. This belongs in the dev section because it's dev-related material, not generic Q&A material.
Click to expand...
Click to collapse
anekdotos said:
Found this thread via Google. I fixed it by either removing "Android.mk" and "irda.c" or just renaming "Android.mk" to something else from ~/android/system/device/samsung/jf-common/irda
This will kill any IR functionality, though.
Click to expand...
Click to collapse
This is because the IRDA frameworks aren't added in to the frameworks yet. We have this issue on omni, but I know for a fact that omni doesn't have the IRDA frameworks. I thought CM had them in the cm11 source but apparently not since you're getting this error.
For future reference, that is not the actual line in the terminal output that is where the build was killed at. it's farther up. easiest way to find it is to go to the end of your terminal output and search for "error"
just do the following, and you'll be good to go.
Code:
FROM ROOT OF SOURCE:
cd device/samsung/jf-common
git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_samsung_jf-common refs/changes/25/53625/1 && git cherry-pick FETCH_HEAD
cd ..
cd ..
cd ..
make clobber
source build/envsetup.sh
brunch jflteatt
you may or may not run into more build errors, just post them up in here and i'll get a fix for ya
This does belong in the Q&A section, if it is going to be its own thread. If you had posted this in the CyanogenMod thread, then it would have been alright there as well. :good:

[LOLLIPOP] Xperia AOSP Project

hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J
Wohooo! Finally! [emoji106] [emoji2] [emoji3]
Excellent! An AOSP ROM is the only thing I can think is missing from an otherwise perfect device.
GCC here we come..
Andoroid L (5.0) code, binaries and guides are published
No working camera or modem, looks like we've still got awhile guys...
great news,thankss
nice
I'm syncing it now. I'm going to do a blind build (not changing anything just going with what's already there) because I have yet to unlock my bootloader and won't until they can figure out a way so at least the camera and noise cancellation don't get messed up when unlocking (if I go back to a sony stock rom I know it won't matter on AOSP)
graffixnyc said:
I'm syncing it now.
Click to expand...
Click to collapse
Preparing to build as well. Like you, I haven't BL unlocked and won't until the DRM issues are resolved.
jerpelea said:
Andoroid L (5.0) code, binaries and guides are published
Click to expand...
Click to collapse
Your work is really appreciated. FYI, I convinced a friend to buy a Z3C in large part due to your AOSP commitment. [emoji106]
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
illogic6 said:
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
Click to expand...
Click to collapse
no
Reverse Engeneering
In other words - SONY will deliver the required drivers or better all required driver will be there in a while...
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
m0d said:
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
Click to expand...
Click to collapse
just re sync your tree and fix is there
That inform you in: <insert the cpu thread number of your computer> ??? Please
I got a build to finish. I'll post the boot and system img for someone to try.. I'm not going to go through the trouble yet to make a flashable zip until we at least know it boots. I'll upload the images now
Posted the images: http://forum.xda-developers.com/z3-compact/development/img-aosp-5-0-boot-imgs-t2940499
So @NisseGurra flashed the build I made yesterday here is what he found to be broken:
no wifi, no network, some reboots, no usb storage, no external sd, no sound or camera
But its very snappy, looking forward to a functional aosp
Thank you for the guides,
I was able to compile AOSP for D5803 successfully.
A couple of issues,
First,
Has the Cherry-Pick for external/libnfc-nci/ that is provided in the guide been merged?
As I get the following error,
Code:
/external/libnfc-nci $ git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
fatal: bad object 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
(Updated on blog to correspond with Shinano Issue.)
Second,
I get the following error when I try to output zipped package,
Code:
[B]No private recovery resources for TARGET_DEVICE aries
No recovery.fstab for TARGET_DEVICE aries[/B]
make: *** no rule to make target `otapackage'. stop.
Does this have anything to do with: TARGET_BOOTLOADER_BOARD_NAME := D5803
or that it is called aosp_d5803 (aosp_d5803.mk)
UPDATE: otatools seems to work, [" . build/envsetup.sh && time lunch aosp_d5803-userdebug && make otatools "].
But I can not find the output / output directory for package
Oh,
Is there supposed to be a userdata.img too?
Looking around a different sources mention it, however there is no userdata.img when I compiled it.
Thank you for your time

[Project]Lollipop for the Kindle Fire HD's(2012 Models)

LOLLIPOP!
This is a project thread to help out with getting Lollipop on our HDs !
this is the default manifest that you can put into your repo to make things more smooth for you:
https://www.androidfilehost.com/?fid=95784891001611544
Download Repo:
Code:
repo init -u [url]https://android.googlesource.com/platform/manifest.git[/url] -b android-5.0.0_r7
Then Run:
Code:
repo sync -j#
(#=6,8,16,32) depends on how well your pc can handle muliple projects at once
After sources have downloaded Run:
Code:
lunch
then choose device which is tate
then Run:
Code:
make -j8 otapackage
and itll start compiling
Sources have been bumped up to LRX21T 5.0.0_r7
CURRENT ERRORS AND TEMPORARY FIXES
ERROR #1
So it builds and then stops at netlink/genl/genl.h no such file...
to fix this error run:
Code:
cd external
then:
Code:
git clone https://android.googlesource.com/platform/external/libnl-headers
and then:
Code:
make -j8 otapackage
ERROR #2
Code:
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::configureOutputBuffersFromNativeWindow(OMX_U32*, OMX_U32*, OMX_U32*)':
frameworks/av/media/libstagefright/ACodec.cpp:627:11: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
err = native_window_set_buffers_geometry(
^
frameworks/av/media/libstagefright/ACodec.cpp:631:42: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
def.format.video.eColorFormat);
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputBuffersFromNativeWindow()':
frameworks/av/media/libstagefright/ACodec.cpp:779:5: error: 'mNumUndequeuedBuffers' was not declared in this scope
mNumUndequeuedBuffers = minUndequeuedBuffers;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputMetaDataBuffers()':
frameworks/av/media/libstagefright/ACodec.cpp:848:5: error: 'mNumUndequeuedBuffers' was not declared in this scope
mNumUndequeuedBuffers = minUndequeuedBuffers;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'void android::ACodec::waitUntilAllPossibleNativeWindowBuffersAreReturnedToUs()':
frameworks/av/media/libstagefright/ACodec.cpp:2969:48: error: 'mNumUndequeuedBuffers' was not declared in this scope
while (countBuffersOwnedByNativeWindow() > mNumUndequeuedBuffers
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::pushBlankBuffersToNativeWindow()':
frameworks/av/media/libstagefright/ACodec.cpp:3591:11: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
err = native_window_set_buffers_geometry(mNativeWindow.get(), 1, 1,
^
frameworks/av/media/libstagefright/ACodec.cpp:3592:39: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
HAL_PIXEL_FORMAT_RGBX_8888);
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::BaseState::onOMXMessage(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:3813:26: warning: NULL used in arithmetic [-Wpointer-arith]
if (mCodec->mNode == NULL) {
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'virtual void android::ACodec::UninitializedState::stateEntered()':
frameworks/av/media/libstagefright/ACodec.cpp:4406:19: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
mCodec->mNode = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::UninitializedState::onAllocateComponent(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:4477:5: warning: NULL used in arithmetic [-Wpointer-arith]
CHECK(mCodec->mNode == NULL);
^
frameworks/av/media/libstagefright/ACodec.cpp:4525:26: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
IOMX::node_id node = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp:4544:14: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
node = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp:4547:17: warning: NULL used in arithmetic [-Wpointer-arith]
if (node == NULL) {
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::LoadedState::onConfigureComponent(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:4693:5: warning: NULL used in arithmetic [-Wpointer-arith]
CHECK(mCodec->mNode != NULL);
^
make: *** [/home/android/lol/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Note: frameworks/base/cmds/am/src/com/android/commands/am/Am.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#### make failed to build some targets (04:22 (mm:ss)) ####
to fix this error: download this ACodec.cpp and replace it with the one thats in frameworks/av/media/libstagefright
ERROR #3
Code:
bcmdhd-wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c:65: error: undefined reference to 'os_strncpy'
collect2: error: ld returned 1 exit status
to fix this error: download this driver_cmd_nl80211.c and replace it with the one thats in device/amazon/bowser-common/bcmdhd-wifi/wpa_supplicant_8_lib
NOTE: I got it to compile completely but just so your aware this is in no way good enough to flash as of yet!! Some things still need to be worked out before you can flash away!! YOUVE BEEN WARNED!!
Lollipop Compiled files
WARNINGHEREWARNING
Any Questions, Solutions, or Ideas post them here...
Did you already get past the camera and HardwareComposer issues?
r3pwn said:
Did you already get past the camera and HardwareComposer issues?
Click to expand...
Click to collapse
Yea I got past it using that default.xml. it compiled 95% but got stuck with the error in the op.
Sent from my Nexus 5 using Tapatalk
BuQQzz said:
Yea I got past it using that default.xml. it compiled 95% but got stuck with the error in the op.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Have you tried compiling CM12 yet? A lot of issues I was having with AOSP weren't there in CM.
I only had the CM12 sources downloaded, never got to compile it because my external hard drive gave out on me so I lost everything including the changes I made when compiling aosp! I'm waiting on a new hard drive to come in and then try again
Sent from my Nexus 5 using Tapatalk
Did you setup the device tree for CM12?
Sent from my Nexus 5 using Tapatalk
BuQQzz said:
Did you setup the device tree for CM12?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I did, but it never compiled all the way. I forget which error it's stuck on now...
Cleaned and updated op with latest repo, errors and temp fixes!
BuQQzz said:
Cleaned and updated op with latest repo, errors and temp fixes!
Click to expand...
Click to collapse
Glad you fixed the error! Will it compile all the way now? Im syncing the sources now
faZevoLv said:
Glad you fixed the error! Will it compile all the way now? Im syncing the sources now
Click to expand...
Click to collapse
It threw out another error with ACodec.cpp but what I did was delete some folders 1.kernel 2.build 3.out 4.vendor 5.device ... Repo sync, and it's been compiling good so far, I'd say about 2 hours in!
No go . stuck on ACodec.cpp errors, think it might have something to do with new 64bit support, need to do more research on this.
BuQQzz said:
No go . stuck on ACodec.cpp errors, think it might have something to do with new 64bit support, need to do more research on this.
Click to expand...
Click to collapse
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
faZevoLv said:
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
Click to expand...
Click to collapse
Nice find I'll take a look at it after work and edit the op with the error
faZevoLv said:
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
Click to expand...
Click to collapse
I looked at it but I see no workaround for our error, i posted it in the op so everyone can take a look at it, hope we can get around this soon!
Just fixed the ACodec.cpp, used a line of code from 4.4.4_r2.0.1
Caught another error with a WiFi driver, took care of that, I'll post everything in the op . got a successful build now!! Tried flashing the zip with system unmounted and flashed successfully...buttttt.... Screwed the hell out of the bootloader ! Haha. Note to self: check zip files before flashing ?. I'll be uploading the zip so we can debug this thing..
Good News!!
OP Updated with fixes for a complete build and compiled files to mess around with!
Uploads are hot and ready to go! ive been working on a flashable zip all night, i might have something to flash by tmm night, im exausted!
Again... a warning for those who dont know what theyre doing pleeeeease do not download and try flashing and end up with a pretty bad brick
:good:
BuQQzz said:
OP Updated with fixes for a complete build and compiled files to mess around with!
Uploads are hot and ready to go! ive been working on a flashable zip all night, i might have something to flash by tmm night, im exausted!
Again... a warning for those who dont know what theyre doing pleeeeease do not download and try flashing and end up with a pretty bad brick
:good:
Click to expand...
Click to collapse
So does the build flash and boot? or is it completely messed up? im trying to build omnirom and see if they have any fixes, im syncing te sources now so ill report back once ive started te build and if there are the same errors you have experienced!
And good job bro for getting the first build up for te Kindle!
faZevoLv said:
So does the build flash and boot? or is it completely messed up? im trying to build omnirom and see if they have any fixes, im syncing te sources now so ill report back once ive started te build and if there are the same errors you have experienced!
And good job bro for getting the first build up for te Kindle!
Click to expand...
Click to collapse
itll flash but not boot, instead itll bootloop on the orange kindle fire logo turning on and off. youd have to fastboot everything back. ive tried flashing the imgs aswell with same results... not sure what it is yet but im sure well get there!
BuQQzz said:
itll flash but not boot, instead itll bootloop on the orange kindle fire logo turning on and off. youd have to fastboot everything back. ive tried flashing the imgs aswell with same results... not sure what it is yet but im sure well get there!
Click to expand...
Click to collapse
hmmm i wonder wy that is, ill compile tis omnirom and see if i get the same results, i modified te manifest.xml with the missing repos from your manifest so it should work, sources are at 31% now so it sould be done in a couple of hours
i cant download your rom file, it says i dont have permission...

Building stock kernel for Huawei Y5II CUN-L01

Hello guys, first of all thanks for all the hard work you do for us noobs
So to begin, i am trying to build a simple kernel without any modifications (for now) using source code provided by Huawei on their official website (You will need to select Y5II(CUN-L01) to get something downloadable).
consumer*huawei*com/en/support/phones/y5ii/
(New user external url block)
DOWNLOADS
Y5II Open Source(CUN-LXX,Android5.1,kernel,en) | 2016-04-14 | 140.76 MB
Click to expand...
Click to collapse
I've tried at least 5 different toolchains, I've followed many tutorials for building kernels including the mediatek specific guides but without luck. I would be grateful if someone could point me in the right direction and tell me if I am the one doing something wrong or is the source code broken ?
From many tutorials i've followed i've come to some usual steps i do:
1.
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/home/mita/toolchain/bin/arm-eabi-
2.
I create a .config using predefined config
make hq6735_35u_b1n_l1_defconfig
3.
I try to do a make clean - i get an error
4.
I try to do a make mrproper - also an error
5.
I try just make and make -j4 - also errors
I can post the errors i am receiving, i have experience with android application development but i can't figure out a way to track down errors like i did in Eclipse and Android Studio.
CLEAN .
CLEAN arch/arm/kernel
"CONFIG_TRUSTONIC_TEE_SUPPORT = "
scripts/Makefile.clean:17: /home/mita/Kernel_Development/kernel-3.10/drivers/misc/mediatek/cpu_stress/Makefile: No such file or directory
make[4]: *** No rule to make target '/home/mita/Kernel_Development/kernel-3.10/drivers/misc/mediatek/cpu_stress/Makefile'. Stop.
scripts/Makefile.clean:94: recipe for target 'drivers/misc/mediatek/cpu_stress' failed
make[3]: *** [drivers/misc/mediatek/cpu_stress] Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/misc/mediatek' failed
make[2]: *** [drivers/misc/mediatek] Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
Makefile:1040: recipe for target '_clean_drivers' failed
make: *** [_clean_drivers] Error 2
Click to expand...
Click to collapse
Edit 1:
I forgot to mention i tried building on multiple OS’s: Ubuntu 32bit and 64bit, Lubuntu 32bit and 64bit, Kali Linux 64bit, and even on Raspberry Pi (i know it’s low spec but i had to try building on arm device just to rule it out) - Raspbian Stretch.
Thanks in advance for all the help
Bump
Before bumping i’ve read the rules “Once every 24h bumping”
I just not sure if there is a button to bump or is post like this required, sorry in advance if there is a bump button.
Once again a bump...
I would really be grateful if someone could tell me if source is broken or not so i can know my next steps.

Categories

Resources