yashsingh1/xdaforums huggingface dataset:
[Android] kaibsora:
Need help developing Pure aosp for moto x pure

Good afternoon gents. I thought i would give rom development a try. So i have downloaded aosp source from google and i tried adding my device tree, vendor, and kernel to the tree, even editing the mk files to correspond with aosp_clark (clark is this device name)

I dont want to commit any changes to my github yet, as it always fails as product_config.mk:234 cannot locate config makefile for aosp_clark.

How do i need to structure my device tree in order to build for my device. Again i am not using los source. i am using aosp.

Thanks for all the help!!

ps my github is located at github.com/kaibsora
[Android] Albe96:
warning: [options] bootstrap class path not set in conjunction with -source 1.7
external/guava/guava/src/com/google/common/reflect/Types.java:317: error: TypeVariableImpl is not abstract and do
es not override abstract method getAnnotatedBounds() in TypeVariable
private static final class TypeVariableImpl<D extends GenericDeclaration>
^
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.
1 error
1 warning
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_opengl_GLES30.cpp
make: *** [/home/alberteno098/android/system/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.ja
r] Error 41
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/alberteno098/android/system'
#### make failed to build some targets (02:13 (mm:ss)) ####

how to fix?
[Android] neonkat:
device tree please and which rom you doing?
[Android] Infect_Ed:
Device tree is lineage based h918 (no other device tree avail)

ROM is Candy. Its building now. Been building for 3 hrs now. Prob close to finishing. Fingers crossed. If this builds it will be the first aosp based ROM for the v20...and my first build ever. Its been a little rough getting this thing to build.
[Android] sskr_:
Please find error log :

I am trying to build AOSCP for ARMANI(xiaomi redmi 1s).

https://hastebin.com/zeqemaqiwa.js

thanks .
[Android] MZO:
I'd say scroll back up for more output: I think it can't find the kernel source because it says no rule to compile image.gz-dtb

---------- Post added at 12:08 PM ---------- Previous post was at 12:07 PM ----------

Revert any local commits you made, or wait for the dev to fix because this is source problem.
[Android] DJKristy:
How to take log while on bootloop
[Android] MZO:
Make an eng build and you'll have adb enabled on boot. Otherwise you can check /data/tombstones/tombstone*
[Android] neonkat:
put full error in hastebin please.
[Android] Infect_Ed:
I got the kernel to compile...used a different kernel. now this GestureHandler bs is back.... it all stems from not having a aosp based tree.

bc lib: libclcore.bc_32 (/home/eddie/candy/out/target/product/h918/obj_arm/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/libclcore.bc)

# Strip useless known warning about combining mismatched modules, as well as

# any blank lines that llvm-link inserts.

bc lib: libclcore_debug.bc_32 (/home/eddie/candy/out/target/product/h918/obj_arm/RENDERSCRIPT_BITCODE/libclcore_debug.bc_intermediates/libclcore_debug.bc)

bc lib: libclcore_g.bc_32 (/home/eddie/candy/out/target/product/h918/obj_arm/RENDERSCRIPT_BITCODE/libclcore_g.bc_intermediates/libclcore_g.bc)

# Strip useless known warning about combining mismatched modules, as well as

# Strip useless known warning about combining mismatched modules, as well as

# any blank lines that llvm-link inserts.

# any blank lines that llvm-link inserts.

bc lib: libclcore_neon.bc_32 (/home/eddie/candy/out/target/product/h918/obj_arm/RENDERSCRIPT_BITCODE/libclcore_neon.bc_intermediates/libclcore_neon.bc)

make: *** No rule to make target '/home/eddie/candy/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/eddie/candy/out/target/common/obj/APPS/GestureHandler_intermediates/with-local/classes.dex'. Stop.

make: *** Waiting for unfinished jobs....

# Strip useless known warning about combining mismatched modules, as well as

target R.java/Manifest.java: ExtServices (/home/eddie/candy/out/target/common/obj/APPS/ExtServices_intermediates/src/R.stamp)

# any blank lines that llvm-link inserts.

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[Android] Indigoeyes:
Hi guys! Trying to compile DU for P2a42 but getting the following error https://pastebin.com/guzV9wBj glad for any help or input =)
[Android] TimSchumi:
I think Jelly wasn't shipped yet in cm-13.0. Not sure about Eleven
[Android] MZO:
Eleven was, but if you put jelly source in and make necessary edits you should be good to go for 13.0
[Android] TimSchumi:
Hm, never tried, but thanks for the information
[Android] Indigoeyes:
I Think I've managed to fix the recent issue but now I've encountered a new one which is "/home/iluzija/DU/out/target/common/obj/JAVA_LIBRARIES/bluetooth.mapsapi_intermediates/classes.jack

make: *** No rule to make target '/home/iluzija/DU/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/home/iluzija/DU/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Stop."
[Android] DiamondJohn:
I am compiling LineageOS 13.0 and have tried putting in Jelly Source. It complained about "Lambda functions" not being available in JDK 1.7. SO I switched to 1.8, and still it failed to compile. It was a while ago so I don't have the exact message handy anymore. I would like to compile it from source if possible so any hints would be appreciated (Yes, I know I need to get the error message...) Currently I use a pre-compiled source APK.
[Android] kaibsora:
Error building kernel

Hello from the land of tomorrowwwww! where apple is obsolete!

Haha. anyway guys, MZO was awesome in setting up my device tree. but i get an error as seen here: pastebin

i am building a new rom based off of xPureAosp(based off of aosp-caf)

im using the clark kernel source forked from lineageos.

how can i fix this?

Thanks for your time!
[Android] neonkat:
try setting BOARD_USE_CYANOGEN_HARDWARE in boardconfig.mk to false.

---------- Post added at 08:29 AM ---------- Previous post was at 08:27 AM ----------

comment out TARGET_RIL_VARIANT = caf in boardconfig.mk or sync ril-caf from los.
[Android] Infect_Ed:
i appreciate the help but i already tried that...
[Android] NepoRood:
Does your tree have anything related to CMActions? Like in device.mk...
[Android] Infect_Ed:
Nope. If you're feeling froggy pm me and I'll send you my teamviewer and hangouts info.

---------- Post added at 11:04 AM ---------- Previous post was at 10:53 AM ----------

What i dont get is i finally had a successful build but it didnt boot. Im guessing a kernel panic as the screen backlight dimmly flashes on/off, on/off...... So i make clean make clobber and now i cant build. Says my kernel is already compiled. So i trashed the kernel...re cloned. Nada...trashed the entire out folder and recloned kernel again... Nothing. Finally i get it to go and it builds for 3 and a half hours, it was right near the end of the build...kernel ✔ recovery ✔ then bam. Friggen org.cyanogenmod.blah.blah.blah... Now the damn kernel wont build again...no matter what i do it says its deprecated because its saying its using prebuilt binary....so i trash it and resync 5 more times...make sure its correct in manifest.xml... Nothing. I just want to headbutt this laptop. I know im new to this but i catch on to things very fast. Im at a total loss. I can literally feel my hair line recede. Fml...any help would be great :good:
[Android] utkarshp64:
Hi all..

I m trying to build dirty unicorn for Yu Yureka aka tomato

got error:

https://pastebin.com/6RDMG8GB

Please help me...
[Android] Arvind7352:
Correct command to run is

mka bacon

Target bacon builds the ROM and ends up with a Flashable Zip

I suppose you've entered

mka tomato

Which is wrong
[Android] TimSchumi:
You can't switch the JDK that is used internally. You need to edit the Jelly source and replace all the lambda functions with other code that does the same
[Android] kaibsora:
Can anyone help me with my kernel source error?
[Android] MZO:
Better post the error instead of asking this.
[Android] kaibsora:
I already posted the error in a pastepin a couple of posts back. The error is that it says multiple target patterns stop in /kernel/Motorola/msm8992/makefile:803

Edit: post from last page asking this
[Android] MZO:
My ISP doesn't allow pastebin, use something else
[Android] kaibsora:
here you go:

Hastebin
[Android] XTutorials:
I got this after your commands:

Set cache size limit to 25.0 Gbytes

andrei@Andrei-HP-EliteBook:~/android/system$ ./prebuilts/sdk/tools/jack-admin kill-server

Killing background server

ERROR: No Jack server to kill

andrei@Andrei-HP-EliteBook:~/android/system$ ./prebuilts/sdk/tools/jack-admin start-server

./prebuilts/sdk/tools/jack-admin: line 96: JACK_JAR: unbound variable

andrei@Andrei-HP-EliteBook:~/android/system$

andrei@Andrei-HP-EliteBook:~/android/system$

?

Thanks
[Android] spookcity138:
Just start the build,then if you get the internal compiler error,run those commands and see.
[Android] XTutorials:
Oh, ok. Now it's building for first time and now I'm using ccache for faster builds. Hopefully I don't get any error.
[Android] MZO:
Show me your kernel
[Android] kaibsora:
My kernel is at GitHub.com/xPureAosp/android_kernel_motorola_msm8992
[Android] Indigoeyes:
"/home/iluzija/DU/out/target/common/obj/JAVA_LIBRARIES/bluetooth.mapsapi_intermediates/classes.jack

make: *** No rule to make target '/home/iluzija/DU/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/home/iluzija/DU/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Stop." need some help fellas
[Android] MZO:
Clone ril-caf
[Android] Indigoeyes:
Sorry for asking stupid questions but I'm a complete noob when it comes to compiling ROMs but where do I find ril-caf to clone from? and where should I clone it to? :o
[Android] MZO:
DU github, clone to hardware/qcom/ril-caf
[Android] Infect_Ed:
Ok so I got a successful build (candy7 for v20) but the dann thing is stuck at "Life's Good" splash...its mocking me. How do I fix this. I hope I don't have to make clean....that was a long 6 hours.
[Android] XTutorials:
GOD BLESS YOU!

GOD BLESS YOU ALL!

============================================================================

______ _____ __ __ _____

/\ _ \/\ __`\/\ \/\ \ /\ _ `\

\ \ \L\ \ \ \/\ \ \ \/'/'\ \ \L\ \

\ \ __ \ \ \ \ \ \ , < \ \ ,__/ --Here it says AOKP, but it's streched or something

\ \ \/\ \ \ \_\ \ \ \\`\ \ \ \/

\ \_\ \_\ \_____\ \_\ \_\\ \_\

\/_/\/_/\/_____/\/_/\/_/ \/_/

=============================-Package complete-=============================

Folder : /home/andrei/android/system/out/target/product/alice

ZipName: aokp_alice_mm_unofficial_2017-05-26_2143.zip

MD5 : 4b0971e25baed04e70b758c5db63e135

Size : 460M

============================================================================

make: Leaving directory '/home/andrei/android/system'

#### make completed successfully (03:48:48 (hh:mm:ss)) ####

andrei@Andrei-HP-EliteBook:~/android/system$

FINNALY! After tons of tries, re-installations of Ubuntu, repo syncing, it builded it completely with no errors!

I can't wait to test it out, hopefully everything works.

Thank you all for all help gave to me, people that actually helped me and wanted to help will go for sure into the contribuitor bar at XDADevDB, you owe it!

But just a minor question:

WARNING: could not find ro.product.model in build.prop

Is this a problem?

Thanks again!
[Android] Charles IV:
I'm not very experienced when it comes to these. It might be a problem, or there may be a blank field in about device.

To fix it, I think you can simply add to.product.model to system. Prop

Set it the corresponding value, but you may be able to leave it empty
[Android] NepoRood:
That's Great!!

You can add "product model" into the "system.prop" file if needed...

(ro.product.model=YOURDEVICE)
[Android] spookcity138:
Fantastic! Glad you got it to build.
[Android] Markinb66:
Hi, I get this error https://hastebin.com/udofahacok.scala with AOSiP and AOSP Extended. Can someone help me please?
[Android] Indigoeyes:
Hi guys! Synced the ril-caf from DU but still getting the following error:

"Building with Jack: /home/iluzija/DU/out/target/common/obj/JAVA_LIBRARIES/bluetooth.mapsapi_intermediates/classes.jack

make: *** No rule to make target '/home/iluzija/DU/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/home/iluzija/DU/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Stop.

#### make failed to build some targets (30:02 (mm:ss)) ####"
[Android] MZO:
Clone ril-caf……
[Android] Indigoeyes:
Oh haha I meant I've cloned the ril-caf :silly: Still getting the error tho:(
[Android] MZO:
Ril-caf goes in hardware/ril-caf not hardware/qcom/ril-caf, sorry
[Android] utkarshp64:
thank you... i thought its just example given for oneplus one aka bacon ... Thank you again..:)

but Got new error and solved by USE_CUSTOM_AUDIO_POLICY = 0 then again

ERROR .............ERROR

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/utkarshp64/du_tomato/out/target/product/tomato/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/export_includes', needed by '/home/utkarshp64/du_tomato/out/target/product/tomato/obj/EXECUTABLES/hostapd_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:166: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

Thank You in advance...
[Android] Indigoeyes:
try with "export USE_NINJA=false" before the build dunno if it helps but give it a try :o

---------- Post added at 05:39 PM ---------- Previous post was at 04:49 PM ----------

I've cloned the Ril-caf to hardware/ril-caf as you suggested but I get another error now which is "make: *** No rule to make target '/home/iluzijaa/du/out/target/product/p2a42/obj/KERNEL_OBJ/usr', needed by '/home/iluzijaa/du/out/target/product/p2a42/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_persist.o'. Stop.

make: *** Waiting for unfinished jobs...."

I've cloned the kernel from https://github.com/Wzedlare/android_kernel_lenovo_msm8953 from the cm 14.1 branch so it should be the correct kernel?
[Android] MZO:
BT and BT-CAF?
[Android] DJKristy:
I would like to add miui compass to my ROM.

Miui compass is there in github. Can I add it to my caf-aosp source and build the ROM with miui compass
[Android] Indigoeyes:
I don't understand what you mean :rolleyes:
[Android] MZO:
Error isn't here, show me more logs, hastebin it.
[Android] Indigoeyes:
I'll compile until the same error again then I'll send you a log :)
[Android] Infect_Ed:
Can anyone HBO. Read a few posts up on my question.

Here's the log from TWRP after flashing

https://docs.google.com/document/d/1deuCe64SdrAARIDjJKAbo0TG6AJDE-2T-Fk-a6QrPFs/edit?usp=drivesdk
[Android] MZO:
Check kernel logs — kmsg
[Android] Indigoeyes:
https://hastebin.com/suyufowine.sql I hope this explains something :)
[Android] MZO:
mkdir -p $OUT/obj/KERNEL_OBJ/usr
[Android] Indigoeyes:
next error haha; Import includes file: /home/iluzijaa/du/out/target/product/p2a42/obj_arm/SHARED_LIBRARIES/libsonic_intermediates/import_includes

make: *** No rule to make target '/home/iluzijaa/du/out/target/product/p2a42/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/iluzijaa/du/out/target/product/p2a42/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes'. Stop.

make: *** Waiting for unfinished jobs....

Import includes file: /home/iluzijaa/du/out/target/product/p2a42/obj_arm/STATIC_LIBRARIES/libcpustats_intermediates/import_includes

#### make failed to build some targets (06:17 (mm:ss)) ####

I guess it's kinda the same procedure as the previous error?
[Android] MZO:
Clone your HALs
[Android] Indigoeyes:
https://hastebin.com/owuperacal.cs I guess they're error due to me not having cloned my HALs, but my question is, how do I clone them? from where and to where? (I know kinda ridiculous questions):fingers-crossed:
[Android] MZO:
Check lineageos snippets. hardware/qcom/*
[Android] Indigoeyes:
I guess I need to find according to MSM8953 since that's the processor I have but the only ones I can find are MSM8952 would they work or it would corrupt the whole build I guess?
[Android] MZO:
Check how other ROMs are built, you 2ill usually need 8953 but might have an exception. Search LINEAGEOS GitHub for both HALs
[Android] Indigoeyes:
I've searched through most of the LineageOS github looking for the correct HAL but none has been 8953 the closest is 8952 and LA.BR one which seems to be more general (?) How can I see how another ROM is build since there aren't so many for P2a42 I'm afraid :crying:

addition; I've also tried to find how others built with the same processor but couldn't find anything related to qcom and HALs
[Android] Indigoeyes:
still getting the following error; https://hastebin.com/wuxofokilo.cs tried to clone from LineageOS aswell as DU but no success since I can't find HALs for 8953

Maybe I should abandon DU for now and try a non-caf based rom and instead focus on a LineAgeOS based ROM? Would that be easier to start out with? [MENTION=6304619]MZO[/MENTION]
[Android] DiamondJohn:
Have you thought about just including it as a pre-built APK? I have added Jelly (replaces Gello and Browser) to my 6.0.1 ROM from a 7.1.2 ROM. Building it is not an easy option as it uses a different version of Java to the rest of the ROM.
[Android] V_v3k:
As a trial attempt I removed that line from cm.mk, and I also tried your command mate but no hope it says device tree not found. And when I try brunch i9082 after removing that code from cm.mk I'm able tot run the compilation but I keep getting errors at packages mainly the gps.
[Android] akhilnarang:
Copy paste the contents of your local manifest here please
[Android] V_v3k:
<manifest><project path="device/samsung/i9082" name="pawitp/android_device_samsung_i9082" remote="github" revision="cm-11.0"/><project path="vendor/samsung/i9082" name="k2wl/android_vendor_samsung_i9082" remote="github" revision="master"/><project path="kernel/samsung/i9082" name="pawitp/android_kernel_samsung_i9082" remote="github" revision="cm-11.0"/></manifest>
[Android] akhilnarang:
You said you synced cm12 source, but manifest has cm11 trees

Replace the cm-11.0 with cm-12.0
[Android] V_v3k:
I tried that already mate but it says repository is invalid....
[Android] akhilnarang:
Check the exact name and branch on github

it should be something like revision="cm-12.0"
[Android] mohit310:
for this manifest it should be master

https://github.com/k2wl/android_vendor_samsung_i9082
[Android] rahul8040:
Check this pleaseee

CHECK THIS PLEASE!!​

!
[Android] mohit310:
rm -rf /home/rahul/cm12/prebuilts/ndk/

rm -rf /home/rahul/cm12/.repo/projects/prebuits/ndk*
[Android] rahul8040:
thanks a ton! sync 100% done wth no error! :D will update u soon on any next time error!

---------- Post added at 11:07 PM ---------- Previous post was at 10:45 PM ----------

After building the ROM and then applying the patches!! i have to use the

Brunch i9082 command only or both ". build/envsetup.sh" and "brunch i9082' please tell me asap!!1 THANKSS :d
[Android] mohit310:
This is what i use. Thanks to [MENTION=3814731]katinatez[/MENTION] for providing this command. The clobber cleans the rom packages and should only use if you want a clean run. Remove it if the ROM is already built as it takes lot of time.

make clobber && export USE_PREBUILT_CHROMIUM=1 && . build/envsetup.sh && time brunch i9082.

As far as ASAP goes, I understand your excitement!! Good luck!!
[Android] katinatez:
Just one thing, ROM Dev has to have prebuilt chromium commits in android/build repo to take advantage of that command.
[Android] akhilnarang:
. build/envsetup.sh has to be done everytime you open a terminal again

It adds some commands, like brunch
[Android] mohit310:
How does one do that?
[Android] desalesouche:
deleted sorry.
[Android] rahul8040:
SEE THIS ERROR PLEASE AND HELP ME!​
[Android] katinatez:
By cherry-picking these commits

https://github.com/temasek/android_build/commit/357abf19dba659debc5b9e0c9d7e3756b216ef79

https://github.com/temasek/android_build/commit/94e065e542e818cf467f7a95e3faa3720b43e557
[Android] akhilnarang:
Was there any error above that?????

Do make clean

Then after . build/envsetup.sh

Do

mka bootimage
[Android] rahul8040:
no it was processing and building at that time! so nothing i saw like an error! and how to clean? what? i didnn't get you? can you please tell me what to do exactly?
[Android] tobitege:
After you ran e.g.

. build/envsetup.sh

breakfast <devicename>

you have available "make clean" (clean current device out folder) and "make clobber"(clean complete out folder) commands.

If you are using ccache then you can clear the cache with "ccache -c"
[Android] Yanun:
Getting that errors when i compile XOSP for xperia z2(sirius).

pastebin com/2KLvx6nY
[Android] XTutorials:
Hi! I'm building now AOSP, where I would find that file in AOSP source to add my device name?

Thanks

Also, here is AOSP source: https://android.googlesource.com/platform/manifest/+/refs/heads/android-6.0.1_r79
[Android] MZO:
AOSP can't be built for Qualcomm device, go for a fork with CAF elements like LineageOS or AOSP-CAF (in case you wanna be close)
[Android] XTutorials:
?

I'm not buildiing for Qcom, I'm building for HiSilicon Kirin. In detail, for Huawei P8 Lite
[Android] MZO:
Aha then give it a try, kernel source goes in kernel/[vendor]/[device] usually, vendor in vendor/{vendor}/{device}, device tree in device/{vendor}/{device}
[Android] XTutorials:
I am left with this error:

build/core/product_config.mk:222: *** Can not locate config makefile for product "aosp_alice_userdebug". Stop.

** Don't have a product spec for: 'aosp_alice_userdebug'

** Do you have the right repo manifest?

I asked spookcity138 because in that reply he gave me a link of all aokp devices, when I was building aokp. But I cannot find any similar file in AOSP source.

Is there any solution to make it lunch and build?
[Android] MZO:
-userdebug and not _userdebug while you lunch
[Android] XTutorials:
Same...

Which would you like? [aosp_arm-eng] 17

build/core/product_config.mk:222: *** Can not locate config makefile for product "aosp_alice". Stop.

** Don't have a product spec for: 'aosp_alice'

** Do you have the right repo manifest?

andrei@Andrei-HP-EliteBook:~/android$
[Android] MZO:
You have AndroidProducts.mk ? Check in with a Google device (aosp device tree) and compare the files to see what you're missing
[Android] XTutorials:
I checked it and copied some stuff. But still says cannot locate cofig makefile for product blablabla
[Android] MZO:
You're clearly missing a file or the syntax
[Android] XTutorials:
I had the same device source same branch, I just changed that thing where spookcity138 told me to and it worked.
[Android] MZO:
Could you upload your tree on gh
[Android] spookcity138:
Different ROMS handle things a bit differently. My guess is what MZO said. Do you have a AndroidProducts.mk in your device directory? If not create it and add

PRODUCT_MAKEFILES := $(LOCAL_DIR)/aosp_alice.mk
[Android] XTutorials:
Where do I have to add that line?

Thanks
[Android] MZO:
AndroidProducts.mk

If it isn't there, nano it. It is necessary for an aosp tree
[Android] XTutorials:
Ok. Here is my git with device repos:

https://github.com/XTutorials?tab=repositories

They are named:

device/kernel/vendor_huawei_alice

device: b los 13

kernel: b mm

vendor: b los 13