yashsingh1/xdaforums huggingface dataset:
[Android] bluelagoon8951:
OK, yeah, it doesn't have instructions about extra things needed. Install the extras from Google's page as well as jdk 8
[Android] bluelagoon8951:
Put the code in these sections of the 'establishing a build environment' page in a terminal
[Android] mahmoud saleh:
Thnx so much bro ❤️❤️
[Android] M.A.P:
Hi everyone, I'm trying to compile LineageOS 15.1 for a device called Lenovo K8 Note. It got official oreo update from nougat so I'm using stock blobs. My selinux is set to permissive and I got many errors in dmesg and last_kmsg and so far I fixed this error. add a cpuset for the camera daemon. but I'm having other errors too many or all of them are of ro.boottime errors saying that property is already set. I'm uploading my last_kmsg and dmesg.

The phone comes with MediaTek Helio X23 SOC and here are my trees. Device Tree Vendor Tree Kernel Source All the errors are common android related errors. There is only one mtk related error. which I should fix
[Android] roksyk:
Anyone who know how to fix it? Thanks in advance
[Android] mistercheese:
Hi, i am building roms for my own device for a few years now but the problem i run into now is a big question for me. It appears like no single overlay in my device tree is merged in the source. Can it be enforce_rro? Of some treble related stuff? Or do i miss something in build repo?

My source is github.com/jason-caf

If someone would take a look i would appreciate
[Android] vkvictor1989:
reserved
[Android] ahmed gamal 1m:
can anyone help me in this error

https://del.dog/ecuhihayok.rb
[Android] NepoRood:
Look in your BoardConfig.mk for the following line:

WITH_DEXPREOPT := true

Change it to "false" or comment the whole dexpreopt section and see if that works
[Android] ahmed gamal 1m:
thank you it built successfully

But when I tried to flash it stuck at

patching system image unconditionally

can you help me to make it flash
[Android] klorinczi:
I tried to build RR from source, but I got error:

. build/envsetup.sh && brunch hlte

Starting build with ninja

ninja: Entering directory `.'

ninja: warning: phony target '-*-' names itself as an input; ignoring [-w phonycycle=warn]

ninja: error: '/srv/2d8f112a-ce0d-4bbd-8948-25e9fb3fc9e4/git/RR/out/target/product/hlte/obj/lib/libtime_genoff.so.toc', needed by '/srv/2d8f112a-ce0d-4bbd-8948-25e9fb3fc9e4/git/RR/out/target/product/hlte/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/srv/2d8f112a-ce0d-4bbd-8948-25e9fb3fc9e4/git/RR'

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

No Jack server running. Try 'jack-admin start-server'

Any idea how to fix it?

Sent with Tapatalk from my Samsung Galaxy Note 3 SM-N9005
[Android] Ololoev9999:
Build fails at the very end while compressing data and making flashable zip.

Log here:

https://pastebin.com/ytxP7YhS

Fedora 28

I guess I configured my build environment wrong.
[Android] rahul1892:
Line no 281, 292 clearly tells you the reason. You don't have enough space left on the disk which you are using to build the rom. Either increase the partition size or delete some unnecessary files.
[Android] Ololoev9999:
Rom source is stored in my second had drive, which has around 150GB if free memory. I guess the problem is that some of system partitions, like /temp have no sufficient space. But I am not sure which partition do I need to expand.
[Android] Jolt151:
run "df -h" to see which partitions are full
[Android] ahmed gamal 1m:
I've built cm-12.1 successfully but when I try to flash it it stuck at

patching system image unconditionally

could any help me to fix it
[Android] Infect_Ed:
lunch lineage_f400-userdebug

---------- Post added at 05:00 AM ---------- Previous post was at 04:58 AM ----------

Also... Is this device officially supported?
[Android] sheepkill15:
Did you add TheMuppets repo?
[Android] Ololoev9999:
The problem was with /tmp

Pixel experience is pretty heavy, ant It required about 5.7 GiB of tmp while compressing brotli. And I had only 4GiB.
[Android] Darshan@Anand:
I'm facing this following error while building lineage os 16 for redmi note 4:

https://www.hastebin.com/ugixoxudeq.SQL
[Android] ZonalRipper:
Hey guys, was happy when I came across this guide covering the setup, however the OP seems a bit outdated now, and most of the sudo commands don't work, it's there a more up to date guide that covers setup needed for oreo or pie?
[Android] NepoRood:
Not setup as fancy as the OP in this thread, but a quick Google search yielded this result: link right here on XDA

It's geared at AEX, but should suffice to build just about any ROM you choose to get the source for :good:
[Android] atharv.unde59:
Los 15.1 Build failing for hydrogen

Hello , Am new to ROM development and looking forward to make cook los 15.1 for hydrogen. I have added device tree,kernel,vendor but getting following error !!

Any way to fix it ? as am completely noob and ROM development

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=8.1.0

TARGET_PRODUCT=lineage_hydrogen

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=cortex-a53

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a53.a57

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.15.0-1023-gcp-x86_64-with-Ubuntu-18.04-bionic

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=OPM7.181005.003

OUT_DIR=/root/android/lineage/out

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

ninja: no work to do.

ninja: no work to do.

/root/android/lineage/out/build-lineage_hydrogen.ninja is missing, regenerating...

[133/1073] including ./device/xiaomi/msm8956-common/Android.mk ...

build/core/binary.mk:47: warning: camera.msm8952 uses kernel headers, but does not depend on them!

[528/1073] including ./hardware/qcom/media-caf/msm8952/Android.mk ...

./hardware/qcom/media-caf/msm8952/Android.mk:4: warning: target list is : msm8952

[543/1073] including ./kernel/device_xiaomi_msm8956-common/Android.mk ...

build/core/base_rules.mk:238: error: kernel/device_xiaomi_msm8956-common/XiaomiParts: MODULE.TARGET.APPS.XiaomiParts already defined by device/xiaomi/msm8956-common/XiaomiParts.

02:28:16 ckati failed with: exit status 1

#### failed to build some targets (27 seconds) ####
[Android] twcobra:
I'm just learning this stuff as well. But if I had to make an educated guess. It looks like you have a duplicate target.
[Android] NepoRood:
build/core/base_rules.mk:238: error: kernel/device_xiaomi_msm8956-common/XiaomiParts: MODULE.TARGET.APPS.XiaomiParts already defined by device/xiaomi/msm8956-common/XiaomiParts.

[/QUOTE]

You cloned your kernel wrong, should be something like "kernel/xiaomi/msm8956", or something
[Android] atharv.unde59:
You cloned your kernel wrong, should be something like "kernel/xiaomi/msm8956", or something[/QUOTE]

Yeh i got it. I will redo carefully !!
[Android] ahmed gamal 1m:
when ever I try to flash my new rom it stops at

patching system image unconditionally

could any one help me to solve this problem

Please :fingers-crossed:
[Android] sev7en:
Dears,

quick question... the first setting up posts are at work also for Oreo and Pie?
[Android] NepoRood:
OP is a bit out of date, I posted a link on the previous page to a guide that is a bit more updated
[Android] aoleary:
Also, for device/kernel trees, go on XDA for your device, find a thread for a ROM for your device and ask the OP for his trees.

Most will give them to you without any problems.

Saves you the initial hassle of having to configure everything from scratch.

Note, ALWAYS sync ROM first, and then kernel/device trees in a second separate pass.
[Android] sev7en:
Thank you, I have a lovable Mi Mix I would use as dev platform.
[Android] Hritik utekar:
Can anyone help me. I am building for galaxy j6

This is the last kmsg:

http://batman.gyptis.org/zerobin/?c68eda968972f5e1#j/AqxjqXVwO0vkdDnz6mgMM0TbPwVfz+KaQ7BKr1ML0=

---------- Post added at 03:00 PM ---------- Previous post was at 03:00 PM ----------

Can anyone help me. I am building for galaxy j6

This is the last kmsg:

http://batman.gyptis.org/zerobin/?c68eda968972f5e1#j/AqxjqXVwO0vkdDnz6mgMM0TbPwVfz+KaQ7BKr1ML0=
[Android] klorinczi:
Anybody has idea how to fix this jack server problem?
[Android] aoleary:
its not a jack server problem. Its a build problem. Its looking for a missing file, hence the error. Have a look at this commit for your device. Might help.

https://github.com/LineageOS/androi...mmit/d9db1b4c42cd3c2d92eb7879a6c6ff6b3143716e
[Android] klorinczi:
This commit is 5 years old.

How can it be related to the source, which likely includes this commit?
[Android] aoleary:
Its a commit to be added to your device tree, not source.

And they remove stuff all the time from source
[Android] klorinczi:
Thanks, I will check into.
[Android] Abhishek17599:
Can anyone help me find my device source tree.... I have "10.or G" i couldn't find it... I am confused now .... What should i do? If not then how can i make my device tree?

Kernel sourse for this device has been released for nougat.... How can i use it to build roms based on oreo... Or even recovery? Isnt there anyone who can help me out?
[Android] knaik95:
Is there still life here? :confused:

I'm trying to build AICP Pie but am running into LOTS of errors about sepolicy.

Here's the tl;dr

libsepol.check_assertions: 1245 neverallow failures occurred
Error while expanding policy
[Android] NepoRood:
Build permissive and comment the path to sepolicy in your BoardConfig, get boot first, then worry about policy :good:
[Android] knaik95:
Okay, I commented out the sepolicy import statement in BoardConfig, not sure what you mean by "Build permissive."
[Android] NepoRood:
Also in BoardConfig.mk

BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
[Android] knaik95:
Just tried that, as well as just appending to the end of the variable like this

BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 zcache.enabled=1 zcache.compressor=lz4 maxcpus=1 androidboot.selinux=permissive

didn't work. :crying:
[Android] Infect_Ed:
For now, do this until you can figure it out

https://github.com/InvictrixRom/vendor_invictrix/commit/f57a3c5702dfdace77a3c99c60da57f50aa4c959
[Android] knaik95:
This is really getting out of hand :eek:

Here are what my files look like

BoardConfigCommon.mk

TARGET_KERNEL_SOURCE := kernel/samsung/msm8974

BoardConfig.mk

TARGET_KERNEL_CONFIG := lineage_klte_bcm2079x_defconfig

And this is the latest snag

FAILED: TARGET_KERNEL_BINARIES
/bin/bash -c "(rm -rf /root/AICP/out/target/product/kltedv/system/vendor/lib/modules ) && (mkdir -p /root/AICP/out/target/product/kltedv/system/vendor/lib/modules ) && (rm -rf /root/AICP/out/target/product/kltedv/obj/PACKAGING/depmod_vendor_intermediates ) && (make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8974 O=/root/AICP/out/target/product/kltedv/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" zImage ) && (if grep -q '^CONFIG_OF=y' /root/AICP/out/target/product/kltedv/obj/KERNEL_OBJ/.config; then	echo \"Building DTBs\";	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8974 O=/root/AICP/out/target/product/kltedv/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" dtbs;	fi ) && (if grep -q '^CONFIG_MODULES=y' /root/AICP/out/target/product/kltedv/obj/KERNEL_OBJ/.config; then	echo \"Building Kernel Modules\";	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8974 O=/root/AICP/out/target/product/kltedv/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" modules;	fi )"
[Android] Infect_Ed:
Look in lineage_vendor. Your answers are in there.
[Android] knaik95:
Oh I guess I should I'm trying to build AICP so it would be vendor_aicp. Though I'm still not sure what I'm supposed to be looking for.
[Android] Infect_Ed:
No lol. It's obviously not there or you wouldn't be having these errors. Look in lineage_vendor and cherry-pick. -_-
[Android] knaik95:
Just looked through LineageOS's and AICP's gerrit and couldn't find anything relating to TARGET_KERNEL_BINARIES :eek:
[Android] Infect_Ed:
Actually... That's not your error. Paste the whole error in del.dog. Not just what you think is the error. And link your trees too.
[Android] Infect_Ed:
Post the whole log. This doesn't show an error.
[Android] knaik95:
Here you go (the del.dog)

I'm not sure what you mean by trees. Here's my roomservice.xml if that helps.
[Android] Infect_Ed:
All those things inside your roomservice.xml are your trees lol. And it tells you what the error is in the error log you posted. Read it and you will see. Also, don't build in root. It's never a good idea.
[Android] :
whats wrong here?
[Android] Infect_Ed:
Link your trees WITH the changes you've made.

You didn't edit the trees right to build citrus.
[Android] :
Bro i am completly new and it's my first time. pls explain me in detail or send me a PM , and thanks for the reply.
[Android] knaik95:
lol yup, that fixed that problem. Got 96% of the build done. near the end, however, I have this issue about org.lineageos.internal.util not existing. I ran into that issue a while ago and "fixed" it by commenting out the include lines in the appropriate files, but am not sure what to do about this time.

I did a git clone from LOS's android_lineage-sdk into ./lineage-sdk but that didn't quite fix the problem.
[Android] rahul1892:
The device related repositories is commonly called trees. For example, this is the official device tree of Redmi 5 (rosy) of mokee rom.
[Android] :
First thanks for sparing ur time to reply.

i've gone through the thread once again. like he said in post 9 i've made all the changes to the files but i dont have that 3rd one Androidproducts.mk , but anyhow i've made the canges to the remaining two files and run the build again but this time i got another error. source i have downloaded is citrus and the link to my device tree, kernal , vendor is https://github.com/Teamlions
[Android] rahul1892:
See this
[Android] :
:crying:
[Android] Infect_Ed:
Dude... Look at the error. It's literally telling you what's happening.
[Android] :
Bro i know it's saying module was aleready defind by system , but i dont know how to solve it , now do i need to delet one or change it . if everyone know whats wrong just by looking an error we dont need these threads . only experienced ppl knows what to do that is why i am posting here to get help . if i just know how to fix it i dont be wasting my time by posting here . pls try to help by being more specific if u have time . thank you
[Android] Infect_Ed:
I understand what you are saying, but you need to look at your device tree and get familiar with it. Know where things are and try to understand what they are doing. To answer your question, remove it from your device tree. It's already built by system/libhidl. Read the error. Follow the path where it's located. I'm not trying to be a jerk. I'm trying to help you.
[Android] :
Yes i know befor i post something i do a lots of search , but this field is new i am not understanding things so quick i am so afraid to change or delete something. Because it can break a lot other things like when i code in Android studio. But anyhow i've manged to get past that error with ur suggestion (deleting) , but now i got same error with different file i'll see what i can do , but if i got stuck at this long time and can't figure it out. This thread will always be there to help ??? . Thank you so much for helping me out!
[Android] Infect_Ed:
I'm not trying to deter you from using this thread. I'm trying to encourage you to try to fix the problem before coming here to get the quick fix. You never learn the easy way.
[Android] rahul1892:
And i want to add that you learn basics of git. Make an account at Github, fork the trees and push your changes because i think you are making your changes locally, so when you will repo sync again, you will have conflicts. Also, when you push your changes to the trees, we will be able to help you more efficiently as we'll see the changes you have made.
[Android] mistercheese:
Just remove the libhidl folder in your device tree
[Android] Abhishek17599:
Please.... isnt there anyone who can help me out?
[Android] mistercheese:
https://github.com/search?utf8=✓&q=device+10.or&type= a simple github search brought me here.https://github.com/ShankarWarang?tab=repositories
[Android] FlagersXDA:
Hi, I am having a problem building android/lineage 15.1. Please help me fix it.

https://gist.github.com/flagersinc/771d0e085436edec9324c7a1943aa9c6
[Android] Infect_Ed:
I have no idea man. I've never built on Mac. Sorry.:confused:
[Android] FlagersXDA:
Thanks anyways.
[Android] :
Device Tree := https://github.com/doraemon-mvl/android_device_xiaomi_rosy

Common Tree := https://github.com/doraemon-mvl/android_device_xiaomi_msm8953-common

Kernal Source := https://github.com/doraemon-mvl/android_kernel_xiaomi_rosy

Vendor Tree := https://github.com/doraemon-mvl/android_vendor_xiaomi_rosy

Rom Source := https://github.com/PixelExperience

Error--

Dogbin URL := https://del.dog/ihehilufet.p

Someone pls take a look at this .
[Android] Dark.Arrow:
Device tree: https://github.com/LineageOS/android_device_xiaomi_jason

Kernel: https://github.com/LineageOS/android_kernel_xiaomi_jason

Vendor: https://github.com/sdm660/proprietary_vendor_xiaomi/

Trying to build AOKP pie ( https://github.com/AOKP/platform_manifest/tree/pie ) and gives this error:

Any solution?
[Android] prabhjot368:
building official build? some errors about ota ..
[Android] DiamondJohn:
Post the log on a text site such as www.hastebin.com not a screenshot. A screenshot will also miss things that have scrolled out of view.
[Android] albertoduqe:
Hi everyone!

Trying to build Candy pie for lithium for the thousand time :) after resetting the VM and starting clean, I get an error I already got before:

ninja: error: '/home/albertoduqe/candy/out/target/product/lithium/obj/HEADER_LIBRARIES/generated_kernel_headers_intermediates/export_includes', needed by '/home/albertoduqe/candy/out/target/product/lithium/obj/EXECUTABLES/ipacm_intermediates/import_includes', missing and no known rule to make it

First times I got it I went through all commits that defined the use of generated kernel headers in camera and data-ipa-cfg-mgr, and reverted all of them manually... Then the build progressed past this point, yeah, but still I do not think that looks like a proper fix...

I searched the thread and didn't find a specific solution or any idea to look for it.

I use a slightly modified device trees from lineage, Mi5DEVS vendor and also lineage's kernel for msm8996.

I would also really like to know why this happens... It doesn't with other rom sources...

THANKS!
[Android] Ab Sdr:
So I build a rom for kenzo and after boot animation I'm getting the error "Process System isn't responding". It goes back into boot animation after a while and repeats....

Logcat: So I build a rom for kenzo and after boot animation I'm getting the error "Process System isn't responding". It goes back into boot animation after a while and repeats....

Logcat: del.dog/zibagemafu.sh

---------- Post added at 10:23 AM ---------- Previous post was at 10:23 AM ----------
[Android] saurabh6377:
So what I understood is that first I have to download source from github using git by help of Repo and the source code will be downloaded locally on my computer and then I have to modify the source code and compile the rom then upload the source code to Github.

But can't we copy the source code from Github to my github repository while downloading the source code to my computer at the same time and then sync changes i made locally to my repository on github, so i do not have to use internet again to upload source code on github to my account because it will already be there?
[Android] setrofex:
Hello, i tried to build an unofficial RR build for Alcatel Pixi 4 (5) 5010D and i got this problem pastebin.com/ysuqjQ9T

If someone would help me, i would be grateful.
[Android] DiamondJohn:
You do not have to upload your modified source to build it.

Also, if you build an official device, it's possible you do not even need to modify the source.
[Android] RVR:
remove line 96,108 and 111 from device/TCL/5010D/overlay/frameworks/base/core/res/res/values/config.xml or comment them out
[Android] heindrix:
Hi sir,

First thing, thanks for your guide.

Thing that i want to ask, how to update OpenGL ES and Vulkan driver properly?

Until yesterday, i try to merge things from here :

https://android.googlesource.com/platform/frameworks/native/+/master/opengl

https://android.googlesource.com/platform/frameworks/native/+/master/vulkan

The OpenGL ES commit merge successfully and built with no big issues, but for Vulkan, i see that many things have to be done to make it buildable after doing the merge, so i passed the Vulkan merge and do nothing about it for now.

After successfully updating OpenGL ES commit and build the rom, i try to see the OpenGL ES version driver and the version didn't go up/increment, so i think maybe i made the wrong commit from the wrong tree subs.

I want to ask you about this, maybe you can help, thanks in advance!
[Android] MrRob0t:
Hi guys,

So fagyi got Pie booted on the htc 10, lineage 16 along with aosip,, he's a beast.

anyway, I am trying to build lineage 16 based off his:

device

git clone https://github.com/Fagyi/android_device_htc_pme.git -b lineage-16.0 device/htc/pme

vendor

git clone https://github.com/Fagyi/proprietary_vendor_htc.git -b lineage-16.0 vendor/htc

kernel

git clone https://github.com/Fagyi/android_kernel_htc_msm8996.git -b lineage-16.0 kernel/htc/msm8996

and then moving onto trying to get crdroid going.

I am very noob at this. very new to me, so, many things is trial and error, and as much reading as these old eyes can handle.

I try to not ask for help unless I'm really stuck as you learn more this way, but i'm really stuck. it seems like it should be an easy fix, and I'm just missing something?

thank you in advance.

https://pastebin.com/jcAhuHtr
[Android] alphamale:
Getting this error with Crdroid taimen
[Android] sheepkill15:
I solved that error by cloning LineageOS's system_vold repo. Maybe not the best solution but it lets you through.
[Android] parthroxx:
building PixelExperience for OnePlus 5

Device Tree : https://github.com/PixelExperience-D..._cheeseburger/

Common Tree : https://github.com/LineageOS/android...msm8998-common

Vendor tree:= https://github.com/officialpm/propri...vendor_oneplus

Kernel Source:= https://github.com/LineageOS/android...neplus_msm8998

Rom Source : https://github.com/PixelExperience

Locations :

Device Tree - device/oneplus/cheeseburger

Common Tree - device/oneplus/msm8998-common

Vendor - vendor/oneplus

Kernel- kernel/oneplus/msm8998

Commands i I followed :

. build/envsetup.sh

lunch

then selected cheeseburger (49)

and mka bacon -j16

Error- https://del.dog/pecheese3.rb
[Android] dev.kasibhatla:
I had a doubt regarding updating the rom

i have created a working device tree and built a rom from source.

now if i make small changes to my device tree, like add some sepolicy rule, can i create a small update package and dirty flash it or do i have to build the entire rom again?

---------- Post added at 03:43 AM ---------- Previous post was at 03:43 AM ----------

I had a doubt regarding updating the rom

i have created a working device tree and built a rom from source.

now if i make small changes to my device tree, like add some sepolicy rule, can i create a small update package and dirty flash it or do i have to build the entire rom again?
[Android] nitin.chobhe:
You've to build the ROM. If it were some package or kernel you could just build that and flash/ install it. But for sepolicies and stuff you'll have to rebuild.

Nitin