yashsingh1/xdaforums huggingface dataset:
[Android] spookcity138:
Perhaps this is more helpful. Taken from the caf wiki:

What is CAF and where is the code used?

Code Aurora Forum (CAF), a collaborative open source project at*The Linux Foundation, hosts tested open source software code needed to provide open source and upstream enablement for innovative, performance optimized, network connectivity and related ecosystems to support system on a chip (SoC) products. *It also serves as a staging area for open source code that is submitted to various upstream projects such as the*Linux kernel*and*Android. *CAF also mirrors key upstream projects for use by the community. *CAF uses git as*"the stupid content tracker".
[Android] PraneethMv:
Hey, I keep getting this error while compiling PA, can anyone please look into this:

https://xdaforums.com/paranoid-android/general/build-error-compiling-pa-t3710407

Full Terminal log:

https://drive.google.com/open?id=1IocgdRDTL0VqsMa6wKWPsLxMPYy0ERPA
[Android] spookcity138:
Have a look at this.

https://github.com/AOSPA/android_device_moto_shamu/blob/nougat-mr2/BoardConfig.mk

Define your kernel as such. With your own proper values of course.
[Android] PraneethMv:
Hey! Thanks for replying.

In my local device tree (device/lenovo/A7010a48), I already have a BoardConfig.mk file. Should I move it to somewhere else for it to work?
[Android] spookcity138:
No,you just need to set the kernel arch,config,and source at least within your BoardConfig.mk

Edit:

Unless you mean that its already set in your BoardConfig. In which case perhaps try using and setting it to use a prebuilt kernel ( you'd need to build it and get the zImage or similar)
[Android] PraneethMv:
Still no luck. :( This is my BoardConfig.mk:

https://drive.google.com/open?id=1GECZXwILnFnQmK2G0RL9WYWCzIx9aNq4
[Android] spookcity138:
Hmm, that looks fine to me. The only other idea I have is to build the kernel separately and get the zImage. Then set your BoardConfig to use your prebuilt kernel. You'd do that by commenting out (#) the kernel source and config in your BoardConfig and then adding:

TARGET_PREBUILT_KERNEL := path to prebuilt image

PRODUCT_COPY_FILES += \

$(TARGET_PREBUILT_KERNEL):kernel

Plenty of ppl here know more than me,so perhaps someone else will help if that doesn't work.
[Android] PraneethMv:
Thanks a lot for the help! :) I'll try that. :)
[Android] NepoRood:
Insight?

Asking everywhere and everyone I know:

I'm building Oreo for Pixel XL (marlin) and getting the following error: Link

Anyone with A/B partitions on their device ran across this? So frustrating, the build almost completes, lol

Any LOS based ROM seems to give this error, I obviously haven't tried them All, but that seems to be an issue. DU and Screwd build a zip, but neither of those boot. A friend thinks it's device tree related, but we can't find a reason...

My Tree
[Android] Bidyadhar:
I am getting this error when i try to build Cardinal aosp.

How can i fix this?

Thanks in advance
[Android] FSadino:
Cardinal does not have source tree for z2 plus
[Android] Bidyadhar:
Thanks sir for replying.

So what i basically did is.... i manually downloaded all the trees and placed them in src/device and src/kernel folders respectively

i also added add_lunch_combo for my device..what do i do such that it recognises my device make file?
[Android] FSadino:
Your device tree must be placed on ~/androidrom/cardinal/device/"company"/"brand"

Example for OnePlus one:

~/androidrom/cardinal/device/oneplus/bacon

Same to kernel. Look at my GitHub for example
[Android] DodoGTA:
From a Linux terminal with the Android device connected and ADB set up (run this command in the Android build folder to get the path where one needs to create the device tree):

echo $PWD/device/$(adb shell getprop ro.product.brand)/$(adb shell getprop ro.product.device)
[Android] DiamondJohn:
I know for some ROMs which dont have my device officially supported I had to add a make file in the ROMs vendor tree. So for example, my device is an xt897, and the ROM example is AICP, which is actually LOS based but it previously was ASOP based, so appears to used the same method as another ASOP ROM. I added the file: vendor/AICP/products/xt897.mk. The contents I pulled by comparing for other official devices for the specific ROM and finding a similar make file in my xt897 device tree and just copied the contents and also modified it to look like the other device make files in that path.

I have also had to change the device make files to fit in with the device structures of other official devices (eg renamed lineage.mk to aicp.mk etc etc). That basically got AICP to build and boot, but DU builds and then bootloops :crying:
[Android] Bidyadhar:
Thank you for replying..I have already placed them in correct location sir..

I am not getting how to add the line :

PRODUCT_MAKEFILES := $(LOCAL_DIR)/z1_plus.mk

in AndroidProducts.mk file at this location:

androidrom/cardinal/build/target/product/

PLease help me..thanks in advance..
[Android] Bidyadhar:
yes sir...Similarly i placed my z2_plus.mk file in cardinal/product page..the it says we need to modify the AndroidProducts.mk file to recognise the file placed in th local(product directory)..how do i do that??Please see the above post..i have attatched the files..

Thank you sir.
[Android] Arjun KalyanRam:
how to create the kernel tree for a device ! MY device has a kernel source for los 14.1 and now am planning to build Android O since there is no developers currently working on my device so am planning to build it buy my self!! anyone help plzz
[Android] Albe96:
Add some binder commits to the kernel which are necessary and do oreo bring up things on device tree.It's better to see the source code and references from lineageos wiki or some git maybe.Check out similar devices Oreo bring up and keep on! I think we can't help you for that.And don't forget to take a look on Project Treble! It's helpful I guess

Hope you understand.Feel free to post logs!

Regards

Albe96
[Android] Arjun KalyanRam:
What binder commits ? Can't understand that !
[Android] MZO:
Look a how other kernels for your SoC are brought up, do it the same way
[Android] Arjun KalyanRam:
Yeah will try definitely !! It doesn't matter if I look into nougat kernel and build Oreo kernel ! Coz my soC is msm8960dt which is too old to get Oreo and it doesn't have one
[Android] MZO:
It does matter, O generally needs some changes like binder on the kernel side.
[Android] Arjun KalyanRam:
Is it possible to build lineage based roms using Aosp source
[Android] Orion_Pax:
yes you need to do some specific changes like HALs support ,makefile etc...
[Android] pix106:
Hey.

Thanks, I synced again and I have other errors, in frameworks/av for now.

What changes did you do to pure CM11 to build it for mtk ? Some patches I suppose, if so which one did you use ?
[Android] Albe96:
what kind of queiry is it? [emoji28] lineage and all other roms are based on aosp source!

You can build Aosp rom through Aosp source and lineage through the lineageos source!
[Android] Nonta72:
Anyone knows how to fix these?

host Java: android-icu4j-host (/home/coulibalynonta/RR/out/host/common/obj/JAVA_LIBRARIES/android-icu4j-host_intermediates/classes)
host C++: libaapt2_tests <= frameworks/base/tools/aapt2/compile/IdAssigner_test.cpp
host C++: libaapt2_tests <= frameworks/base/tools/aapt2/compile/PseudolocaleGenerator_test.cpp
host C++: libaapt2_tests <= frameworks/base/tools/aapt2/compile/Pseudolocalizer_test.cpp
frameworks/base/libs/hwui/tests/microbench/FrameBuilderBench.cpp:116:58: error: no member named 'range' in 'benchmark::State'
const char* sceneName = *(SCENES.begin() + state.range(0));
~~~~~ ^
frameworks/base/libs/hwui/tests/microbench/FrameBuilderBench.cpp:132:58: error: no member named 'range' in 'benchmark::State'
const char* sceneName = *(SCENES.begin() + state.range(0));
~~~~~ ^
2 errors generated.
build/core/binary.mk:986: recipe for target '/home/coulibalynonta/RR/out/target/product/y6/obj/EXECUTABLES/hwuimicro_intermediates/tests/microbench/FrameBuilderBench.o' failed
make: *** [/home/coulibalynonta/RR/out/target/product/y6/obj/EXECUTABLES/hwuimicro_intermediates/tests/microbench/FrameBuilderBench.o] Error 1
make: *** Waiting for unfinished jobs....
[Android] ZVNexus:
ninja: error: '/home/nexus/CypherOS/out/target/product/oneplus3/obj/SHARED_LIBRARIES/libantradio_intermediates/export_includes', needed by '/home/nexus/CypherOS/out/target/product/oneplus3/obj/EXECUTABLES/antradio_app_intermediates/import_includes', missing and no known rule to make it

02:20:07 ninja failed with: exit status 1

make: *** [build/core/main.mk:21: run_soong_ui] Error 1

make: Leaving directory '/home/nexus/CypherOS'

#### make failed to build some targets (51 seconds) ####

nexus@nexus-ASUS:~/CypherOS$

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Been stuck here for awhile, its in my device.mk and I have all the ant repos. So anyone have any idea why it is giving me this error still?
[Android] karthik km:
can any one help me with this

FAILED: /bin/bash /home/karthik/Desktop/tesla/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
Building with Jack: /home/karthik/Desktop/tesla/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 37% 12108/32147] build /home/karthik/Desktop/tesla/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes.jack
Building with Jack: /home/karthik/Desktop/tesla/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:153: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/karthik/Desktop/tesla'
[Android] FSadino:
Increase jack compiler memory size
[Android] quake73:
I checked here, on my pc, libantradio is supposed to be built from the folder ant-wireless/ant_service but, in the Android.mk I see it is surrounded by an IF/ENDIF, ifneq ($(BOARD_ANT_WIRELESS_DEVICE),) so...

does your BoardConfig.mk file contain a line BOARD_ANT_WIRELESS_DEVICE := XXXXXXX? For example, mine has BOARD_ANT_WIRELESS_DEVICE := "qualcomm-uart". I guess that is the reason why it doesnt get built. You could try removing the IF/ENDIF lines, it should continue compiling that way (the 'brute force' way)
[Android] NepoRood:
Edit your $HOME/.jack and change SERVER_NB_COMPILE to a lower value. (this is what Gooble recommends, link)

nano $HOME/.jack

If you get permission denied, try the sudo command before it :good:
[Android] Jadimo:
Hello,

I'm trying to build AOSPA for Xperia SP (huashan) but getting this error:

Made recovery image: out/target/product/huashan/recovery.img
Target build info: out/target/product/huashan/system/build.prop
find: ‘out/target/product/huashan/recovery/root/res’: No such file or directory
cat: out/target/product/huashan/recovery.id: No such file or directory
build/tools/generate-notice-files.py out/target/product/huashan/obj/NOTICE.txt out/target/product/huashan/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" out/target/product/huashan/obj/NOTICE_FILES/src

zip error: Nothing to do! (out/target/product/huashan/system/etc/recovery-resource.dat)
make: *** [out/target/product/huashan/system/etc/recovery-resource.dat] Error 12
make: *** Waiting for unfinished jobs....

Here is my roomservice.xml file and full terminal output.

Thanks in advance for any help :)
[Android] HritikSH:
I have not used any patches until now but I guess that's why camera and sensors are not working.

Thinking of building the rom again and I have not made any changes to pure CM until now.:p
[Android] pix106:
Ok, I have built errors,there must be something else.

For your camera and sensors, it may be some missing blobs, check logcat for "... not found" etc...
[Android] HritikSH:
Will try seeing logcat after I complete my work of upgrading my laptop.

What are your build errors exactly?
[Android] DJKristy:
while checking slim rom github I saw many repo of different device.

also saw kernel source of these devices.

but when i checked default.xml i didn't see any project path calling these devices and kernel.

so if i repo sync will all these devices tree and kernel source will synced or not?

do i have to remove these device repo in local manifest.
[Android] DiamondJohn:
The device specifics (device, kernel & vendor as a minimum) are added to your local manifest (ie you don't need to remove unused ones), either by the build process (commonly if its an official device) or manually (if its un-official).
[Android] DJKristy:
I didn't get that.

so will I be downloading these files(device specific ) also while repo syncing?
[Android] FSadino:
Yes if you include them on your local manifest
[Android] DJKristy:
get this while repo syncing.

Fetching project device/generic/common

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0

curl: (22) The requested URL returned error: 404 Not Found

Server does not provide clone.bundle; ignoring.

is this a problem?
[Android] FSadino:
Did you read this tutorial?
[Android] karthik km:
can any one help me with this ?

[ 28% 8608/30212] build /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy
FAILED: /bin/bash -c "(/home/karthik/candy/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/policy.conf ) && (/home/karthik/candy/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (/home/karthik/candy/out/host/linux-x86/bin/sepolicy-analyze /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ]; then	echo \"==========\" 1>&2;	echo \"ERROR: permissive domains not allowed in user builds\" 1>&2;	echo \"List of invalid domains:\" 1>&2;	cat /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/sepolicy )"
libsepol.report_failure: neverallow on line 465 of system/sepolicy/domain.te (or line 9364 of policy.conf) violated by allow mm-qcamerad system_file:file { execmod };
libsepol.report_failure: neverallow on line 439 of system/sepolicy/domain.te (or line 9353 of policy.conf) violated by allow mm-qcamerad system_file:file { execmod };
libsepol.check_assertions: 2 neverallow failures occurred
Error while expanding policy
/home/karthik/candy/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/karthik/candy/out/target/product/wt88047/obj/ETC/sepolicy_intermediates/policy.conf
[ 28% 8608/30212] build /home/karthik/candy/out/target/product/wt88047/obj/EXECUTABLES/init_intermediates/signal_handler.o
target thumb C++: init <= system/core/init/signal_handler.cpp
[ 28% 8608/30212] build /home/karthik/candy/out/target/product/wt88047/obj/EXECUTABLES/init_intermediates/keychords.o
target thumb C++: init <= system/core/init/keychords.cpp
[ 28% 8608/30212] build /home/karthik/candy/out/target/product/wt88047/obj/EXECUTABLES/init_intermediates/property_service.o
target thumb C++: init <= system/core/init/property_service.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:158: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/karthik/candy'

#### make failed to build some targets (23:45 (mm:ss)) ####
[Android] ZVNexus:
Late reply, but mine is BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl" Also when i remove the IF/ENDIF lines it still doesn't compile in the ant_service android.mk.

*EDIT*

Changed BOARD_ANT_WIRELESS_DEVICE to uart like yours. Started building. Thanks!
[Android] ketansharmar:
[ 99% 1115/1116] glob vendor/qcom/opensource/*/Android.bp

ninja: error: '/home/ketanchoyal/oreorom/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/link_type', needed by '/home/ketanchoyal/oreorom/out/target/common/obj/APPS/OneplusDoze_intermediates/link_type', missing and no known rule to make it

03:05:57 ninja failed with: exit status 1

make: *** [run_soong_ui] Error 1

make: Leaving directory `/home/ketanchoyal/oreorom'

#### make failed to build some targets (01:44 (mm:ss)) ####

can anyone help me with this
[Android] KeTuRr74:
Hi guys, im facing this error when building LineageOS 15...

https://pastebin.com/CsNpiVMe

Anyone have an idea or a fix ? Thanks
[Android] tathanhlam66:
Update your CameraWrapper.cpp
[Android] quake73:
You should have the folder "android-base" in system/core/base/include. If it is there then try adding system/core/base/include to the local_c_includes in the android.mk file in your device/samsung/zenlte-common/camera folder.
[Android] tathanhlam66:
Disable compile doze packages or update it.
[Android] MZO:
Since it is oreo cyanogenmod is to be replaced by lineageos
[Android] ketansharmar:
How?

---------- Post added at 12:40 PM ---------- Previous post was at 12:38 PM ----------

So how do i replace, the cynogen.platfotm to lineage.platform ?
[Android] tathanhlam66:
Go to device.mk, delete line

PRODUCT_PACKAGES += \

****OneplusDoze

Or import doze folder from same devices. Or use commit update it.
[Android] MZO:
sgrep it and use a text editor like nano to modify it. It's simple text
[Android] ketansharmar:
Can you tell me the path of file to sgrep?
[Android] MZO:
sgrep will return you the exact file you need to modify, sgrep [args] is modified form like grep [args] $(find)
[Android] Pano01:
Hwcomposer msm8937

Good afternoon, collected lineage 15 but hangs on the logo, on the list I see that there is no hwcomposer'a, read and many write that now the halls for msm8937 are collected from msm8996, found such a comet repopick 192352 / applied, after its application, past the errors, nothing else followed the composter as it was not assembled, thanks in advance for the advice
[Android] KeTuRr74:
Now facing this error, i searched on github but nothing looking to this :/

https://hastebin.com/ducudozibu.rb

Thanks

---------- Post added at 03:26 PM ---------- Previous post was at 03:25 PM ----------

Worked thanks but facing another issue now ?
[Android] kaiz16:
Hi sorry if this a dumb question.

But do i need Kernel sources to build TWRP ?

Or is device tree enough? And what about the vendor? Thank you.
[Android] DiamondJohn:
There is a specific thread for asking TWRP build questions at https://xdaforums.com/showthread.php?t=1943625

You will definitely need Kernel and Device, and I know my device calls into dependencies on the vendor, so I would say you would need all three, but someone else may know better, I'm not the most experienced on this forum. And the other thread may be best.
[Android] ketansharmar:
I'm facing this error, can anyone help
[Android] Sparker0i:
Hey there,

Thanks for this awesome guide. Can you also tell us how to create our own device tree and vendor?
[Android] ketansharmar:
Anyone?
[Android] tathanhlam66:
Fix your sepolicy, go to yourdevices/sepolicy/rfs_access.te remove line error.
[Android] DiamondJohn:
You would of got a much quicker response if you used pastebin over a blury screen photo.:silly:
[Android] ketansharmar:
hey guys I'm facing this error while compiling Lineage OS 15.

https://pastebin.com/ZF247xkw
[Android] KeTuRr74:
Go into device/"manufacturer"/yourdevice and open BoardConfig.mk

Add this line into it

BOARD_KERNEL_IMAGE_NAME = Image

It should fix your issue

---------- Post added at 11:52 AM ---------- Previous post was at 11:08 AM ----------

Hello guys,

Facing this error related to dex2oat

https://hastebin.com/ubavuguxih.cs

Thanks you
[Android] DiamondJohn:
I dont know if it will help, but you are running the debug version of dex2oat (ie dex2oatd)

I added the following to my BoardConfig

USE_DEX2OAT_DEBUG := false
[Android] ketansharmar:
now its bluetooth error and when i removed bluetooth error line from bluetooth_loader.te it stated showing the error of wcnss_filter.te and it continues.

https://pastebin.com/zCaHwNPV
[Android] Necron 99:
Hello, I'm trying to build DirtyUnicorns but I get stucked in this error, I haven't found information about this on internet, and I don't know where to find libqmiservices.
[Android] aoleary:
Luckily for you I had the exact same error as you, and fixed it like this:

You need to navigate to hardware/qcom/wlan/qcwcn/wcnss-service and modify Android.mk like below

https://github.com/LineageOS/android_hardware_qcom_wlan/blob/lineage-15.0/qcwcn/wcnss-service/Android.mk

Delete the # in first line in Android.mk at /hardware/qcom/wlan/qcwcn/wcnss-service/ as like the LOS file and also the # in the last line..
[Android] Necron 99:
I tried to edit Android.mk but there isn't any # in the file, I'm building nougat, but I've found libqmiservices.so in vendor/samsung/j5lte/proprietary/vendor/lib/ do you know if there's a way to link it to that file? sorry if it is a stupid question, I'm still a noob. :(
[Android] aoleary:
Hi.

Can you add the # to that file and see what happens?
[Android] Necron 99:
I've tried too, got the same error :(
[Android] albertoduqe:
Hello everybody!

After a while out of the project, I am back trying to build XenonHD for the Xiaomi Mi Mix (lithium).

I manage the build from xenon's source syncing device, vendor and kernel for lithium and all that.

But I am no developer and do not have technical background or training, so I do not know how to do the important part: fixing things and actually writing code.

The resuktant rom zips are ok and they boot and, with minor issues, it all seems to work. Except for camera. Regardless of the camera app, it force closes every time. I mean, it almost works as for a second or two it provides the image, but then it shuts down.

I have tried with all device sources I have found for lithium, and with TheMuppets and Mi5Devs for proprietary vendor xiaomi. No luck.

Could any of you point me in the right direction? Where should I look for the problem and for a fix? In the sources I am syncing? In my local repo and, in that case, where? Framework, vendor, device? Or in the out/target folders directly?

Any hint in the right direction would be greatly appreciated!

If anyone is willing to help I of course can provide logcats. But before that I preferred to try and see if you guys had any general idea on where should I look for the problem to be fixed.

Thanks in advance!
[Android] DodoGTA:
Logcat?
[Android] albertoduqe:
I'll provide it asap.

Thanks!