yashsingh1/xdaforums huggingface dataset:
[Android] MZO:
If E6533 is called ivy then it is fully supported

source build/envsetup.sh

breakfast ivy

<Sync vendor/sony from themuppets>

brunch ivy
[Android] SH1M4BD3:
So its no need to add manually to the manifest.xml right??
[Android] MZO:
No, you can git clone it alternatively.
[Android] SH1M4BD3:
Can you please tell me how to do that sir really noob on this thing
[Android] MZO:
source build/envsetup.sh

git clone https://github.com/TheMuppets/proprietary_vendor_sony vendor/sony

brunch ivy
[Android] XTutorials:
HELP

I am developing cm 13 for Huawei P8Lite

Sources:

Tree: https://github.com/XePeleato/android_device_huawei_p8lite_alel21/tree/cm13.0 branch cm13.0

Kernel: https://github.com/XePeleato/ALE-L21_ESAL/tree/android-6.0 branch android 6.0

Vendor: https://github.com/XePeleato/android_vendor_p8lite branch cm-14.1

I get this error after 28 minutes:

target C: libext2_e2p <= external/e2fsprogs/lib/e2p/percent.c

Import includes file: /home/andrei/cm13/out/target/product/hi6210sft/obj/EXECUTABLES/bootanimation_intermediates/import_includes

make: *** No rule to make target '/home/andrei/cm13/out/target/product/hi6210sft/obj/KERNEL_OBJ/usr', needed by '/home/andrei/cm13/out/target/product/hi6210sft/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Stop.

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

make: Leaving directory '/home/andrei/cm13'

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

andrei@HP-EliteBook-8530p:~/cm13$

Can someone help me please???
[Android] SH1M4BD3:
So i need to loctae the terminal on ~/android/lineage and type that commands??
[Android] MZO:
Yes
[Android] SH1M4BD3:
Will try it and report soon sir
[Android] SH1M4BD3:
i've these error messages , is that okay??
[Android] MZO:
This isn't an error you should worry about. It had an error finding the device tree in the device/vendor/devicename but it started to download the tree from github.com/LineageOS. You should be good to go when it is done
[Android] SH1M4BD3:
i got ths far sir, $ bruch ivy .....any fix??
[Android] MZO:
rm -rf vendor/sony

git clone https://github.com/venkatkamesh/android_vendor_sony vendor/sony
[Android] gabrielgagz:
Hi guys i succesfully build CM13 for my device. The roms boots and load fine but simetimes stuck on "Android is Starting"...with no error on logcat or dmesg. Sometimes reboots help and sometimes dont. Also after flashing gapps, stuck with the same msg....again with no error on logcat or dmesg.

Can you point me in some direction? Maybe related to dalvik or art? Thanks
[Android] SH1M4BD3:
Still error
[Android] MZO:
Post the log mate
[Android] turnert:
im trying to build the rom from https://github.com/PlatinumMaster/android_device_samsung_cprimeltemtr but when i try to build it with . build/envsetup.sh && brunch lineage_cprimeltemtr-userdebug i get this error:

]including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh

including device/generic/mini-emulator-x86/vendorsetup.sh

including device/generic/mini-emulator-arm64/vendorsetup.sh

including device/generic/mini-emulator-mips/vendorsetup.sh

including device/generic/mini-emulator-x86_64/vendorsetup.sh

including device/samsung/cprimeltemtr/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

including vendor/cm/bash_completion/git.bash

including vendor/cm/bash_completion/repo.bash

including vendor/cm/vendorsetup.sh

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

Device cprimeltemtr not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).

Repository for cprimeltemtr not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.

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

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

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

Any ideas on how to fix this?
[Android] NepoRood:
Change This

It should be lineage_cprimeltemtr
[Android] TimSchumi:
Either remove the prebuilt kernel (so the kernel from source will be used) or create the folder "/home/andrei/cm13/out/target/product/hi6210sft/obj/KERNEL_OBJ/usr" manually and DON'T do a clean build afterwards

EDIT: Also, this line in your BoardConfig is wrong

TARGET_KERNEL_SOURCE := kernel

It should point to where you downloaded your kernel source.

This was also the reason of your previous errors where everyone just advised to rename the defconfig (why?, the defconfig name was totally right).

---------- Post added at 10:21 AM ---------- Previous post was at 10:04 AM ----------

You accidentally synced your device tree two times (third picture)

Delete ~/android/lineage/android_device_sony_ivy

Also, your extract-files.sh is still running in the background, which then causes the vendor error (first two pictures). Wait until it's finished and this error should be gone
[Android] XTutorials:
Thanks. Will try later
[Android] gabrielgagz:
I got dmesg and logcat when the hangs happens. I'm able to connect to the device via tcp adb.

dmesg: https://pastebin.com/NGxPU92Y

Logcat: https://pastebin.com/1PzNJa9L

Any help will be appreciated!
[Android] falconscrest123:
Im trying to build AOKP Nougat for lg g5 but im getting error if anyone can help that would be great

target StaticLib: libbatterymonitor (/home/melwyn/Aokp/out/target/product/h830/obj/STATIC_LIBRARIES/libbatterymonitor_intermediates/libbatterymonitor.a)

3 errors generated.

build/core/binary.mk:986: recipe for target '/home/melwyn/Aokp/out/target/product/h830/obj/STATIC_LIBRARIES/libhealthd.cm_intermediates/healthd_board_cm.o' failed

make: *** [/home/melwyn/Aokp/out/target/product/h830/obj/STATIC_LIBRARIES/libhealthd.cm_intermediates/healthd_board_cm.o] Error 1

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

make: Leaving directory '/home/melwyn/Aokp'

Full Log https://pastebin.com/mFFui3dd

Another small question if I wanted update my kernel source,device tree do i use repo sync or repo sync --force-sync -j4 just to add the changes
[Android] nathsagar96:
i am building aosip for bacon

it just stops in the beginning

here is the log:

Checking build tools versions...

FindEmulator: find: `cts/apps/CtsVerifier/src/android': No such file or directory

FindEmulator: find: `cts/hostsidetests/os/test-apps/HostLinkVerificationApp/src': No such file or directory

FindEmulator: find: `cts/libs/commonutil/src': No such file or directory

FindEmulator: cd: cts/tests/libcore/ojluni/resources: No such file or directory

FindEmulator: find: `cts/libs/commonutil/src': No such file or directory

build/core/binary.mk:1251: external/deqp/Android.mk: libdeqp: Unused source files: \

FindEmulator: find: `external/ims/provider/java': No such file or directory

build/core/binary.mk:37: modetest uses kernel headers, but does not depend on them!

build/core/binary.mk:1251: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc

frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0

build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets

FindEmulator: find: `frameworks/opt/bluetooth/src/android/bluetooth/client/pbap': No such file or directory

find: ‘/home/sagar/aosip/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory

FindEmulator: find: `frameworks/support/design/dummy': No such file or directory

build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets

FindEmulator: find: `frameworks/support/v17/leanback/dummy': No such file or directory

FindEmulator: find: `frameworks/support/v17/preference-leanback/dummy': No such file or directory

FindEmulator: find: `packages/services/Car/car-support-lib/dummy': No such file or directory

FindEmulator: find: `prebuilts/tools/android-arm': No such file or directory

build/core/base_rules.mk:183: *** vendor/qcom/opensource/cryptfs_hw: MODULE.TARGET.SHARED_LIBRARIES.libcryptfs_hw already defined by device/qcom/common/cryptfs_hw.

make: *** [build/core/ninja.mk:167: /home/sagar/aosip/out/build-aosip_bacon.ninja] Error 1

#### make failed to build some targets (44 seconds) ###
[Android] rikirock001:
getting error

while entering this command = sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

iam getting this error message = roybabu@roybabu-Inspiron-3558:~$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

ln: failed to create symbolic link ‘/usr/lib/i386-linux-gnu/libGL.so’: No such file or directory

anyone please help me?

:crying::crying::crying::crying::crying::crying:
[Android] MZO:
rm -rf vendor/qcom/opensource/cryptfs_hw
[Android] XTutorials:
make: *** No rule to make target `/6.txt', needed by `/home/andrei/android/system/out/target/common/obj/PACKAGING/checkpublicapi-cm-last-timestamp'. Stop.

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

What does /6.txt mean?

I cannot get past this error and I don't find any error

I'm building for qualcomm

---------- Post added at 10:09 PM ---------- Previous post was at 09:32 PM ----------

That error is just for croot/mka, if I run brunch... it gives me this error:

make: *** No rule to make target `/home/andrei/android/system/out/target/product/a6010/obj/STATIC_LIBRARIES/libinit_osprey_intermediates/export_includes', needed by `/home/andrei/android/system/out/target/product/a6010/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.

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

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

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

andrei@HP-EliteBook-8530p:~/android/system$

I looked into the file ... needed by... and there is no /executables/init_executables ...

I can comment this somewhere to skip this?

Thanks
[Android] aggarwalace:
You are missing some files track device kernel vendor caf if needed
[Android] vinoth_raja:
Great guide. Highly recommended for newbie Rom builders...
[Android] Fuma:
Hi ,

Can someone please take a look,

Been trying to build cm13 for OP3 and got some errors(big surprise...) thanks to this thread i solved all the proguard issues.

But then i hit a wall with symbols and identifiers.

I get this symbol error :

device/oneplus/oneplus3/pocketmode/src/com/cyanogenmod/pocketmode/ProximitySensor.java:25: error: package org.cyanogenmod.internal.util does not exist
import org.cyanogenmod.internal.util.FileUtils;
^
device/oneplus/oneplus3/pocketmode/src/com/cyanogenmod/pocketmode/ProximitySensor.java:50: error: cannot find symbol
if (FileUtils.isFileWritable(FPC_FILE)) {
^
symbol: variable FileUtils
location: class ProximitySensor
device/oneplus/oneplus3/pocketmode/src/com/cyanogenmod/pocketmode/ProximitySensor.java:51: error: cannot find symbol
FileUtils.writeLine(FPC_FILE, isNear ? "1" : "0");
^
symbol: variable FileUtils
location: class ProximitySensor
3 errors

Full Log : https://pastebin.com/gCRzqaKv

If I go to /device/oneplus/oneplus3/pocketmode/src/com/cyanogenmod/pocketmode/ProximitySensor.java

and try to declare the variable FileUtils then I get an identifier error :

device/oneplus/oneplus3/pocketmode/src/com/cyanogenmod/pocketmode/ProximitySensor.java:37: error: <identifier> expected
private FileUtils;
^
1 error

Full Log : https://pastebin.com/xPrBLnJi

Anyone have a clue?
[Android] MJPollard:
I've been doing this for a while and have gotten pretty good at it, but the following issue has me stumped. I've been building a custom CyanogenMod (now LineageOS) Marshmallow ROM, and until recently, compiling has gone smoothly, but now I'm getting the following error:

target Prebuilt: Gello (/home/martin/android/rom/altair-mm/out/target/product/m8/obj/APPS/Gello_intermediates/package.apk)
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /home/martin/android/rom/altair-mm/out/target/product/m8/obj/APPS/Gello_intermediates/package.apk or
/home/martin/android/rom/altair-mm/out/target/product/m8/obj/APPS/Gello_intermediates/package.apk.zip, and cannot find /home/martin/android/rom/altair-mm/out/target/product/m8/obj/APPS/Gello_intermediates/package.apk.ZIP, period.
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:215)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at java.util.jar.JarFile.<init>(JarFile.java:154)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at com.android.signapk.SignApk.main(SignApk.java:926)
make: *** [/home/martin/android/rom/altair-mm/out/target/product/m8/obj/APPS/Gello_intermediates/package.apk] Error 1

This is the contents of the only file that's in the directory, package.apk.unsigned:

Downloading: gello.apk (version 40) -

Obviously not a ZIP file. ;) I'm wondering if anyone else has encountered this problem, and how they managed to fix it. Help!
[Android] heisenberg33:
hey guys

someone knows somthing about this error with clang 5

https://hastebin.com/uwemijuguc.lua
[Android] DiamondJohn:
I on the otherhand am just starting, but am willing to take a stab ;)

An APK IS a ZIp file, but it looks like you got the message out in the file instead of the file, when it was downloading. Have you tried replacing the file in the directory with an actual Gello.apk? (renaming the file to whatever it is in your directory) I have about 10 copies of this apk from lots of different ROMs.
[Android] MJPollard:
I have, actually, and it keeps getting overwritten by whatever process is trying to create the APK. I've tried to track down the process, but gave up in frustration when I hit the wall of the convoluted Android build process. I'll continue to take a stab at it, but after pounding on it for most of my spare time during the weekend, I'm giving my brain a break. :)
[Android] DiamondJohn:
by setting permissions and ownership after you have copied the file should stop the build process overwriting it. and maybe it may error out when it tries, and give you a line number and file name of the file that is trying to do that step.One of my mistakes of my first attempt in building a build environment caused wrong ownership of some files, and a heap of informative messages came out.

I'm starting on a lineage build, and they have an online chat room which is full of developers willing to provide help. Maybe search to see if there is something similar for your rom source.
[Android] heisenberg33:
hey guys i need help :(

someone knows something about this error with clang 5

the erro is in line 40-41

https://hastebin.com/ugeceroxak.coffeescript
[Android] DiamondJohn:
As I said, I am starting to build LineageOS and have been messing with my build process/steps/environment. I also on an unrelated note, have a pretty broad Firewall set up.Because of the repo step, I have previously turned my firewall off. However, I just started a new build with the firewall turned back on after the repo sync step. Additionally, I have also created a mount point for my .ccache which points to another drive; in the hope that will enable asynchronous r/w. Anyway, when I started the build, it kept on failing. On guess what? now my gello wasnt the same as yours however, interesting we both fail at what may be the same step, even though in different ways.

So, my suggestion to you is to look at both that you are not in anyway blocking your internet access, and also check if you are using .ccache, that the owner is your build user sudo -R user:user /blah/blah/blah/.ccache. I am not sure which step finally fixed it for me, but for you it appears internet related.
[Android] Fuma:
bumping for help
[Android] Hel10s:
Hi people, I am trying to compile from AOSP code for HTC 10 (pme).

I have compiled from the code of a default device, unspecified in the lunch command, and compiles fine but I need to compile for my device.

The problem is binary data. HTCDev has some code to download, but I can only compile the kernel from this source. So, this kernel, I put it in the

device/htc/pme-kenrnel

path, a file, the name is: Image.gz-dtb (but lel, I do not know if it's a kernel for AOSP or Sense, Documentation in these web), but i need more code for "device/htc/pme-kenrnel".

I have found code in github for this here:

https://github.com/HTCOSP/android_device_htc_pme

Now, lunch give me option for select aosp_pme-userdebug, but it said me that i need more files from qcom.

Any idea that where i can found these files?

Thanks!
[Android] aggarwalace:
clonning issues

did you cloned the qcom common and sepolicy and what about vendors ?

---------- Post added at 03:35 ---------- Previous post was at 03:27 ----------

look at your codes it says package not found i believe that you are using old cm 13 tree file ProximitySensor.java try to remove this file or directory and check if you get the error or not !
[Android] Hel10s:
Yeah, thats the problem, HTC only provide the binaries for build the kernel, im searching for get qcom common and sepolicy. Also im trying to find the vendors, i see this on HTCDev:

http://www.htcdev.com/bootloader/building_kernels

To build a rom based on AOSP, additional proprietary binaries are required and are not available at this time. However, they could potentially be extracted from your device similar to the above adb command but using “adb pull” instead. Note: there may be distribution restrictions for files from different vendors, please note that these instructions are not to be taken as legal advice, please check applicable local laws regarding reverse engineering.

So, damn haha.

Im going to see if i can find the necessary stuff in these repositories:

https://github.com/TheMuppets

https://github.com/HTCOSP

https://github.com/LineageOS

Or extract it from my device.

If im get no lucky, i will try first to build a rom based on LineageOS.

Aprox 4 or 3 years ago i was able to build a CM ROM, and AOSP ROM for the Nexus 4, but Google provide all necessary binaries, drivers and all things hehe.
[Android] aggarwalace:
Proprietary blobs you can extract it ! Easily from ur device !

Qcom clone it from lineage and extract-files.sh in device tree of lineage will help you to get proprietary blobs I mean vendor all the best ! Do let me know about issues n progress in pm :)
[Android] Vika__:
Hi. Does anyone found way how to fix this?

[MENTION=6435663]hackslash[/MENTION] had same problem and fixed it by changing from aosp tag to cm. I've tried Cm, Aosp, RR, Lineage, Omni and all have same problem
[Android] Infinity:
Delete that app from packages/apps

And clone it from RR

it's that simple!
[Android] Aadars:
Just wanted to ask a noob question (i guess):

Does the device tree,vendor,kernel vary with os or we can use those device tree,kernel and vendor for making any os i.e marshmallow ,nougat etc??

I hope i will get helped soon??
[Android] MZO:
Well it does vary with apis, you'd need to make your trees compatible with new version adding/removing the needed code.
[Android] Aadars:
Thanx man...

Btw is there any tutorial for it.???
[Android] MZO:
No such tutorial I remember. But you can see github for specific devices and see how it woros. Every device is different so it needs different stuff for bringups :)
[Android] aggarwalace:
Well in most of cases kernel remains the same you just need to modify your tree it depends on os to os
[Android] Aadars:
Is there any tutorial for that?? Thanx btw☺☺
[Android] aggarwalace:
Bunch of tutorials are there but it varies from os to os what is you want to compile ?
[Android] Aadars:
Cm13...
[Android] aggarwalace:
Do you have Laos 14 sources ?
[Android] Aadars:
Y do we need lineageos14 sources...if i need to compile cm13
[Android] aggarwalace:
Which device u have ?
[Android] Aadars:
J500H variant
[Android] pvineeth97:
I don't know where is the problem exactly here.
[Android] Infect_Ed:
building slim7 for lg v20 h918

can anyone hbo and give me some insight on how to resolve this please.

build/core/java.mk:334: recipe for target '/home/NuGuy/slim/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/src/sdk/src/java/cyanogenmod/app/ICMStatusBarManager.java' failed

make: *** [/home/NuGuy/slim/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/src/sdk/src/java/cyanogenmod/app/ICMStatusBarManager.java] Error 1

make: *** Waiting for unfinished jobs....
[Android] MZO:
Hi, use a device tree without CM/LOS implementation because your ROM isn't LiOS based
[Android] dom133:
I have this error when i try compile LineageOS:
[Android] Infect_Ed:
Even if I have changed dependency files it won't work. I have not seen a device tree that isn't los based. I'll look a little harder.
[Android] messi2050:
your kernel source is not updated.
[Android] NepoRood:
Device tree? "Dependencies" are device specific, please provide links to what you're working with :good:
[Android] Infect_Ed:
https://github.com/LineageOS/android_device_lge_v20-common

https://github.com/Nu-Guy/android_kernel_lge_msm8996

https://github.com/LineageOS/android_device_lge_msm8996-common

https://github.com/TheMuppets/proprietary_vendor_lge
[Android] dom133:
I updated my kernel but after compile rom on boot I have bluescreen for one second and phone is restart

Wysłane z mojego LG-K420 przy użyciu Tapatalka
[Android] yeshwanthvshenoy:
Getting the following error when trying to build CarbonROM for Athene.

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/yeshwanthvshenoy/carbon/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex', needed by '/home/yeshwanthvshenoy/carbon/out/target/common/obj/APPS/Bluetooth_intermediates/classes.dex', missing and no known rule to make it
build/core/ninja.mk:166: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

I changed the

BOARD_HAVE_BLUETOOTH_QCOM := true

to

BOARD_HAVE_BLUETOOTH_QCOM := false

Still getting the same thing. Any help?
[Android] messi2050:
yea that's usually a kernel related bug, make sure u are using the correct source for your device ?

---------- Post added at 03:32 PM ---------- Previous post was at 03:29 PM ----------

[missing and no known rule to make it] i think it's a source and build environment error, check that your source has the correct permissions and it's better to build on ubuntu if you are not using it already, regards.
[Android] yeshwanthvshenoy:
Yes on ubuntu and builds others roms but not carbon alone.
[Android] DSA:
Yes
[Android] akhilnarang:
As per what I've seen on the cm wiki, brunch <device name> is the same as breakfast <device name> && mka bacon
[Android] V_v3k:
Hello guys. I screwed up at one place.... I accidently clicked Ctrl + C while downloading from:

git://github.com/CyanogenMod/android_external_rsync

Is there any way I could resync this part alone?? And will it affect other branches too??
[Android] bm19981217:
Not 100% sure but might be worth a try: just delete <your source directory>/android/external/rsync and run repo sync again. Worked for me when there were problems at compiling. Might work for you too
[Android] tobitege:
To me it's not the same because I need to run breakfast for prebuilt chromium.
[Android] mohit310:
Delete the project folder under your setup and then delete same same project folder under. Repo/projects/

Then repo sync should work