yashsingh1/xdaforums huggingface dataset:
[Android] albertoduqe:
Hi everyone!!

First of all thanks for this fantastic guide and thread, I have been mostly following it in my first building attempt. The intention is to compile XenonHD (Mr Iceandfire knows about it) for Lithium (Xiaomi Mi Mix). I am no developer and when things get very technical I get lost, but anyway... I managed, for the second or third time, to sync sources, get device tree and blobs, edited due files to make source compatible with the device and up till that point all good.

In case someone can help and needs some more info on sources:

https://github.com/TeamHorizon/platform_manifest

Device tree from TurkDevs (device: lithium, kernel: xiaomi_msm8996_common, proprietary: xiaomi/lithium):

https://github.com/TurkDevs

When the building starts is when, after less than a second, doesn't work. I searched the thread and googled and couldn't find precisely the same thing. Most of the similar errors I found where related to not having the proper repo manifest. This, I believe, is a bit different:

including vendor/xenonhd/vendorsetup.sh
build/core/product_config.mk:253: *** _nic.PRODUCTS.[[device/xiaomi/lithium/xenonhd.mk]]: "frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk" does not exist. Stop.
build/core/product_config.mk:253: *** _nic.PRODUCTS.[[device/xiaomi/lithium/xenonhd.mk]]: "frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk" does not exist. Stop.
No such item in brunch menu. Try 'breakfast'

My guess it must be either because there's some stuff missing from device tree, or because I didn't edit xenonhd.mk properly. I can attach that file is someone is willing to have a look and help :)

The strangest thing is that before summer I did the same things exactly and building proceeded with no errors for about 45 minutes until my VM run out of disk space :P

Well, thanks in advance!

EDIT: sorry guys, I had synced the wrong branch of XenonHD... Not good to do not know your business properly and be in a rush, bad combo. Anyway, thanks all the same and let's see if now it comes up :)
[Android] dev.kasibhatla:
dont worry just open terminal in that folder and repo sync again.

continues where it left off and works perfectly well.
[Android] TheReaper1:
Hello, guys!

I try to build AOS for d855 but I received this error: https://hastebin.com/qejuyurumo.sql

How I can solve?
[Android] YedanyXD:
Does someone know how to add a lib in the source ? Exactly this lib (libqsap_sdk.so) to be include in the zip compiled?
[Android] xenreon:
You don't have the hardware repos synced, sync the appropriate ones for your device from lineage

Not a problem on your end, ROM derped. Either inform the ROM Dev(s) or if you know some Java fix it and send to them.

---------- Post added at 09:49 PM ---------- Previous post was at 09:48 PM ----------

Look at the vendor repos, see how it's done there and try to emulate that
[Android] mukesh22584:
I've many failed due to this..

"Jack server installation not found"

Please help..I've searched everywhere but no luck...

Self compiled RR [emoji1128]
[Android] xenreon:
How are you doing it? You got your changes pushed to GitHub or somewhere we can check and see if you're doing something wrong (assuming that you're having a problem)?

Jack errors have been discussed numerous times in this thread, search for those exact keywords here(and it's better to always do that first before simply posting here).
[Android] YedanyXD:
Not yet, I will upload to github later
[Android] mukesh22584:
Thanks for answer, I've searched and apply all said method but not helped for me..

Self compiled RR [emoji1128]
[Android] Ripudamankaushik:
yes I am able to build other roms with these sources..............anyways I am trying to append DTB by editing my boardconfig.mk by adding this TARGET_KERNEL_APPEND_DTB := true

and I get this error

FAILED: /bin/bash -c "out/host/linux-x86/bin/acp -fp out/target/product/athene/obj/KERNEL_OBJ/arch/arm/boot/zImage-dtb out/target/product/athene/kernel"

acp: file 'out/target/product/athene/obj/KERNEL_OBJ/arch/arm/boot/zImage-dtb' does not exist

[ 25% 7449/29647] target thumb C: liblog <= system/core/liblog/config_write.c

ninja: build stopped: subcommand failed.

Anyone any ideas:confused:
[Android] CZ Eddie:
Is it still somehow possible to build CM11?

I have an Odroid XU4 that I want to build into a car stereo.

Odroid has and still develops KitKat for it and provides the source.

But I want CM and cannot stand anything newer than KitKat.

KitKat was the last great Android platform for customisation purposes, IMO.

But I realize that CM is dead and I'm guessing it's just too late to learn to build CM11 now?

Odroid XU4 specs:

* Samsung Exynos5422 Cortex™-A15 2Ghz and Cortex™-A7 Octa core CPUs

* Mali-T628 MP6(OpenGL ES 3.1/2.0/1.1 and OpenCL 1.2 Full profile)

* 2Gbyte LPDDR3 RAM PoP stacked

* eMMC5.0 HS400 Flash Storage

* 2 x USB 3.0 Host, 1 x USB 2.0 Host

* Gigabit Ethernet port

* HDMI 1.4a for display

EDIT:

Not sure if it helps, but a developer does have CM-11 source hosted for my particular device.

He stopped developing for it years ago though, and I need to get it updated for new fixes, etc:

https://forum.odroid.com/viewtopic.php?f=94&t=6398
[Android] CZ Eddie:
Darn, I guess not.

odroid@ubuntu:~/cm11$ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
bash: /home/odroid/bin/[B]repo: Permission denied[/B]
odroid@ubuntu:~/cm11$

EDIT: Nevermind, I got past this with a little help starting with this link:

https://askubuntu.com/questions/390834/error-installing-repo-command-help-please-ubuntu-12-04-lts

Between that and a dozen other hiccups that Googling around for fixes was able to get me past, I seem to now be sync/downloading a LOT of files. :good:
[Android] CZ Eddie:
Wow, I need a bigger virtual machine.

Sync did not complete due to running out of space. :eek:

Filesystem [B]Size[/B] Used Avail [B]Use%[/B] Mounted on
/dev/sda1 [B]37G[/B] 35G 16M [B]100%[/B] /

As long as I'm at a stopping point, can someone direct me to the best guide for porting 4.4.4 Cyanogenmod to a device that does not have CM but the mfg does have an up-to-date 4.4.4 source available for download?

Thanks to the Wayback Machine, I have access to CM's guide:

http://wiki.cyanogenmod.org/w/Doc:_porting_intro

Just wondering if there is an easier-to-follow guide for folks who has built AOSP from source one time only (last year) but does not much more experience beyond that.
[Android] nithin chandra:
can you also figure out this plz..error occured while compiling pa

https://hastebin.com/vixepiwimi.pas
[Android] matteo0026:
ninja: error: '/home/matteo/lineage/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/link_type', needed by '/home/matteo/lineage/out/target/common/obj/APPS/SamsungDoze_intermediates/link_type', missing and no known rule to make it

Hi guys, I have this error while compiling LineageOS 15 for Galaxy S II Plus, any help? Thanks.
[Android] osas514:
Remove samsung doze from your device.mk/common.mk
[Android] DiamondJohn:
I use old USB2 portable hard drives as extra storage in my VM's. I add a new drive device in Vbox manager (located on the USB storage, but it could be on any drive), then mount the drive at a specific location within the virtual guest using fstab file. I have about four to make one VM; one for the OUT directory, one for ccache, one for the actual ROM source and of course I have the VM system drive on another drive. In my case the system and ROM source are sitting on separate USB drives (one usb2, the other usb3). Splitting the drives also speeds up the compilation by sharing the disk load. Its easy to move the ROM source from your system drive to a new mounted partition also.I just have to be careful not to pull em out when the VM is up.
[Android] CZ Eddie:
Hahah, yeah storage won't be an issue after I delete a few of the thousand TWRP backups I've made over the years.

I just misread the OP talking about needing 10GB of RAM and my brain read it as 10GB of HDD space.

I'll free up some space and make a 200GB VM. :good:

Btw, when my KitKat efforts got hampered, I tried out Lollipop and Nougat. And I still remember what Marshmallow was like.

KitKat was THE BOMB Android platform. It's just been downhill ever since.

Someone needs to lead a re-group effort to continue development on KitKat to make it even smoother and more compatible with today's hardware and newer Substratum.

Between the KitKat OS itself and mega compatibility with Xposed modules, KitKat is AWESOME!
[Android] nathsagar96:
Can anybody help to solve this issue
[Android] matteo0026:
I resolved putting

WITH_LINEAGE_CHARGER := false

in BoardConfigCommon.mk file. But i have another problem...

device/samsung/galaxys2plus-common/healthd/healthd_board_capri.cpp:18:10: fatal error: 'healthd/healthd.h' file not found
[Android] matteo0026:
Resolved that too... I disabled healthd...

https://hastebin.com/eruqulaqag.sql

now I can't go away, I resolved some issues of sepolicy, but this how I can do?
[Android] aoleary:
bad revision when doing git cherry-pick -x 8aa32eb

Hi.

I am trying to cherry-pick the following commit 8aa32eb1a5879e703b26f6b4a7cabdf6191d8084

When I execute it from "/DU/device/lge/d855" I get an error stating bad revision

antoin@OL:~/DU/device/lge/d855$ git cherry-pick -x 8aa32eb
fatal: bad revision '8aa32eb'

My remote repo is https://github.com/aoleary/android_device_lge_d855/tree/du
[Android] Albe96:
LOL.Do "git cherry-pick 8aa32eb1a5879e703b26f6b4a7cabdf6191d8084"
[Android] aoleary:
Already tried that.

It gives an error stating "bad object"
[Android] Ripudamankaushik:
I am trying to append DTB to my kernel as my device bootloops with an Error to load kernel............But I am getting this error during build

https://hastebin.com/ufinozuyiz.js

can anyone help me with this plz........I just changed TARGET_KERNEL_APPEND_DTB := true in boardconfig.mk ..............do i need anything more to append DTB to my kernel
[Android] Albe96:
Then Do "git cherry-pick -quit" and then start all thing from first
[Android] neonkat:
you need to add conifg. in the kernel source too.find your defconfig and add

#if arm64

CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE=y

#if arm

CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE=y

hope this works.
[Android] MHasan001:
Sir, you have given example for CM. But where do i obtain device tree, kernel & vendor source for ASOP android rom? [MENTION=5216756]jackeagle[/MENTION]
[Android] neonkat:
git fetched https://github.com/RMarchetto96/android_device_lge_d855 ?

recheck it,seems the correct branch wasn't fetched.
[Android] aoleary:
Sorry, since this is my first attempt at cherry-picking, I don't really understand what you mean by "git fetched"..

Is this what I should do : https://stackoverflow.com/questions/41413357/cherry-pick-commit-from-a-different-repo
[Android] NepoRood:
You have to fetch before you can pick, to put it simply. Take a look at this Guide, hope it helps ;)
[Android] aoleary:
Thx. That looks like exactly what I needed. Will try it soon and report back :)
[Android] ANIKETultimate:
I'm compiling AOSP for my sprout4. After setting up the device tree, I'm having an issue with lunch.

If I run

lunch aosp_sprout4-userdebug

It gives me an error

build/core/envsetup.mk:212: *** No config file found for TARGET_DEVICE sprout4 generic. Stop.

What's weird is the 'generic' in the device name. It should be only sprout4.

There's no mention of the word 'generic' in any file in my device tree.

Any idea?
[Android] Ripudamankaushik:
thank you for the reply.... but it still gives me the same error
[Android] mrpascal:
How to get device , vendor , kernel information ?
[Android] NepoRood:
Link to your device tree please

Try

mka clean

And build again

Use Gooble to search, or try Github...
[Android] neonkat:
add "vendorsetup.sh" file in your device tree,in that file,add

add_lunch_combo aosp_sprout4-userdebug

save and re run . build/envsetup.sh,the lunch menu will have your device.
[Android] Ripudamankaushik:
Well I am basically compiling PA with AOSP-CAF device tree and kernel ......and my device fails to load kernel when i flash the rom , so a developer told me to append DTB in my kernel ......anyways I will try to do a clean build again and report back sir
[Android] NepoRood:
If you took his tree and made changes, then his tree isn't

exactly

what you are using.

OR,

If you are using his tree

exactly

, then that's your problem.

We can all speculate, and offer suggestions, but without knowing

exactly

what you are using, we're just shooting in the dark...
[Android] Albe96:
[emoji12] [emoji23] [emoji23] [emoji23]
[Android] dev.kasibhatla:
The rom i built doesn't boot.

Here's the log. Please tell me whats wrong.

https://pastebin.com/TBdQ7rVf

thanks
[Android] somadsul:
Well you are senior member, don't spam like this
[Android] Albe96:
?? Sorry!
[Android] NepoRood:
The member didn't do anything "wrong", other than agree with my previous post. Granted, it was in an offhand way, but I gathered the intent ;)
[Android] ANIKETultimate:
Here, I uploaded the device tree. Please see if I am missing any files or not. https://github.com/AniketTheGreat/android_device_google_sprout4
[Android] YedanyXD:
Which guide did you follow to upload to git?
[Android] aoleary:
That worked perfectly, thanks :)
[Android] nithin chandra:
[MENTION=5991747]neonkat[/MENTION] please see this issue

https://pastebin.com/PdTHuhj0
[Android] darjwx:
And advise. Try to always maintain the commit history. Don't download the files and then push them to github without maintaining the older commits as you seems to have done.

---------- Post added at 12:47 PM ---------- Previous post was at 12:45 PM ----------

You can fork the repository directly from the web. There's a bottom for that on the right bottom corner.

You can also clone a repository. (git clone url -b name of the branch). Then, you have to create an empty repository on your github account. There you will have the instructions to upload your local repo you just synced ok your pc.

First you have to add the URL of your online repo to the local one. You do this with the remote command.

git remote add origin URL.

Note: origin is just the name of the remote. It can be whatever you prefer.

Then do:

git push origin -u master

Origin is the name of the remote you just added. Master is the name of the branch you have online.

---------- Post added at 01:11 PM ---------- Previous post was at 12:47 PM ----------

Seems that you have something wrong in that XML. Can you upload that file?
[Android] NepoRood:
You have conflicting files, delete "full_sprout4.mk"

May not solve your issue, but it's a start in the right direction :good:
[Android] DiamondJohn:
I am looking into the SEPolicy for my device (motorola xt897). Which is an official LOS device.

When I compare the SEPolicy with that of another Official device (hammerhead, ie Nexus 5), there are some not in my device. Is it safe/ok to simply take SEPolicy files (for common defined types), from one official device to another? NB: My device tree for the destination appears to be "older and simpler" ie it could be missing some.
[Android] Ripudamankaushik:
[MENTION=5991747]neonkat[/MENTION] and [MENTION=7237874]NepoRood[/MENTION] Thank u both for helping me out with DTB files it finally worked but now I am having a bit of sepolicy problem........and I am not sure how to solve ithttps://hastebin.com/miqepuruja.vbs
[Android] aoleary:
Hi.

I cherry-picked this commit (https://github.com/RMarchetto96/and...mmit/8aa32eb1a5879e703b26f6b4a7cabdf6191d8084), however it has added a second Gestures menu in the Settings menu.

How do I point it to use the menu that already exists?

See attachment below. The new menu is highlighted in that screenshot..
[Android] TibDEV1:
Could anyone help me with this? I can't seem to find the solution.

DEV1@pc-k55a:~/LINEAGE15$ make -j8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=full_oneplus2
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
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.4.0-93-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR6.170623.012
OUT_DIR=/home/DEV1/LINEAGE15/out
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
ninja: error: '/etc/init.rc', needed by '/home/DEV1/LINEAGE15/out/target/product/oneplus2/ramdisk-recovery.cpio', missing and no known rule to make it
17:15:43 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

#### make failed to build some targets (02:56 (mm:ss)) ####
[Android] heisenberg33:
hi

someone knowing soothing about this ?

https://hastebin.com/ojuceteket.scala
[Android] DiamondJohn:
Going mad here.:silly:

I have built ResurrectionRemix (Nougat) using an appropriately modified device tree from an official LineageOS (xt897) device. It builds, it boots and runs :highfive:; for a few minutes. Then it starts to have force close after force close:(. A similar thing happens when I build Nougat crDroid. If I build Nougat LOS (ie 14.1) its all good. If I build RR MM that works fine.

The pattern for each FC is the same, as below:

Shutting down VM
FATAL EXCEPTION: main
Process: com.android.calculator2, PID: 5235
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.calculator2/com.android.calculator2.Calculator}:
java.lang.ClassNotFoundException: Didn't find class "com.android.calculator2.Calculator" on path:
DexPathList[[zip file "/system/app/ExactCalculator/ExactCalculator.apk"],
nativeLibraryDirectories=[/system/app/ExactCalculator/lib/arm,
/system/lib,
/vendor/lib,
/system/lib,
/vendor/lib]]
...
Caused by: java.lang.ClassNotFoundException:
Didn't find class "com.android.calculator2.Calculator"
on path:
DexPathList[[zip file "/system/app/ExactCalculator/ExactCalculator.apk"],
nativeLibraryDirectories=[/system/app/ExactCalculator/lib/arm,
/system/lib,
/vendor/lib,
/system/lib,
/vendor/lib]]...

I have checked, and the files are there in the search location (ie /system/app/ExactCalculator/lib/arm for above FC, and its actually a sym link from another one of the paths in the search paths). It is also confusing, as it actually works for the first few minutes (around 10 say). Its as if it loses permission to see the location (but there is no SELinux exception and its a permissive build anyway) Also, some apps (like calendar) appear to be immune, and continue to work.:confused:

Below are some logcats.

some errors: https://www.hastebin.com/kecuwunuzo.pl

upto the first error: https://www.hastebin.com/ogefegibam.bash

Proof the file exists (for LatinIME crash): https://www.hastebin.com/gerahibiye.hs

NB: above the line is when it was all working, below the line is after it started to crash every time it was started.

This is sooooo frustrating as it looks like it is working, then, it all starts to fall apart.:crying:It really feels like there is going to be something simple and quick that hopefully someone has seen and fixed before?:fingers-crossed:

Any help, or even on where to look, would reeeeeaaaaallllly be appreciated.:angel:
[Android] neonkat:
the error was solved before too,please use search button in thread or google your issue once for solution.

follow this,will probably fix it.
[Android] albertoduqe:
Hi again everybody!

Built (more or less) successfully XenonHD for Lithium (xiaomi mi Mix). I used Xenonhd base (of course) and LineageOS sources for device, kernel and vendor. The rom is flashed, I can flash gapps on it and it boots and setup works and wifi, sensors, calls and most apps work. So far so good.

I detect three main big problems:

1: lesser of them, but annoying and with no idea of why it happened, there is no boot logo/animation. I understand this should be pulled into the build when brunching...

2: xda app crashes :(

3: main problem: camera crashes. Cyanogenmod camera, preinstalled, does not even open. Google Camera 4.4 loads and I can see image for like 1 second :) and then crashes.

I have (as far as I know) latest updates from device and stuff, and am new at this business, so I have no idea of how to fix issues or how to proceed from here. If anyone around here has any idea, just points me in the right direction, it'd be fantastic.

I uploaded logs:

https://mega.nz/#!oHZGVLBZ!Cm8JwDlpc5NMnt9UjIPvtYoah9qzwfCC0zGfJ1zW4a0

Thanks in advance guys!!!
[Android] neonkat:
in your boardconfig.mk,change:

TARGET_CPU_VARIANT and TARGET_2ND_CPU_VARIANT to "generic".should fix this issue(kryo comes under generic).

---------- Post added 7th September 2017 at 12:04 AM ---------- Previous post was 6th September 2017 at 11:57 PM ----------

1. add bootanim. size parameters in your device.mk(i guess xenonhd.mk here).

# Boot animation

TARGET_SCREEN_WIDTH := 1080

TARGET_SCREEN_HEIGHT := 1920

2.can't say about this.
[Android] albertoduqe:
Thanks mate. It is a place to start fixing.

I'll try another build also tomorrow with different device sources and I'll keep trying.

Camera's always been a bad issue with some test builds for this device...
[Android] darjwx:
Pick this topic.

https://review.lineageos.org/#/q/topic:kryo-libc+(status:open+OR+status:merged)
[Android] arnabJ:
I have changed to generic for now as stated by another user.

I am still new to this. So don't really know how to pick.

I will read through the guides and try this too.

Thanks for replying.
[Android] kaiodduarte:
I'm trying to build DU, but intermediates fails build

These are about some libs on vendor

ninja: error: '/home/kds/ROM/DU/out/target/common/obj/JAVA_LIBRARIES/[B]com.qti.dpmframework_intermediates/classes.jar[/B]', needed by '/home/kds/ROM/DU/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp', missing and no known rule to make it

ninja: error: '/home/kds/ROM/DU/out/target/common/obj/JAVA_LIBRARIES/[B]dpmapi_intermediates/classes.jar[/B]', needed by '/home/kds/ROM/DU/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp', missing and no known rule to make it

There are libs on vendor ¯\_(ツ)_/¯

kds@kds:~/ROM/DU$ ls vendor/xiaomi/markw/proprietary/framework/ -l
...
-rw-rw-r-- 1 kds kds 45073 Set 7 00:49 [B]com.qti.dpmframework.jar[/B]
-rw-rw-r-- 1 kds kds 9715 Set 7 00:49 [B]dpmapi.jar[/B]
...

This is another bug

ninja: error: '/home/kds/ROM/DU/out/target/product/markw/obj/STATIC_LIBRARIES/[B]librecovery_ui_msm_intermediates/export_includes[/B]', needed by '/home/kds/ROM/DU/out/target/product/markw/obj/EXECUTABLES/[B]recovery_intermediates/import_includes[/B]', missing and no known rule to make it

I found this clue, but I already have that files

kds@kds:~/ROM/DU$ ls device/qcom/
drwxrwxr-x 6 kds kds 4096 Set 7 01:59 [B]common[/B]
drwxrwxr-x 19 kds kds 4096 Set 7 01:59 [B]sepolicy[/B]

Any solution? Thanks in advance.
[Android] dungphp:
Please help !

Im compiling Nitrogen Oreo build but stuck at this:

Please Devs help me out this problem (for Mi Max Qcom msm8952)
[Android] arnabJ:
What to do now

The build shows successful and I have several files and directories in out directory.

Check screenshots. I can't find a <ROM>.zip file
[Android] mukesh22584:
[MENTION=5014460]arnabJ[/MENTION] it'll be in out/target/product/<devicename>/...
[Android] DiamondJohn:
for starters, its in out/target/product/<DEVICE>/ not in the out root.

Also, the number of steps (11k) looks low. My Nougat builds are >30K

---------- Post added at 09:58 PM ---------- Previous post was at 09:53 PM ----------

Having the file is not enough, you need instructions to the compiler on what to do with the files.

Check your device.mk file to see that it is inheriting/including your expected vendor make file. Then follow that to see if there are steps/instructions to deal with the files you found.