yashsingh1/xdaforums huggingface dataset:
[XDA-University] vviperxx:
Hello all.I'm trying to port cyanogenmod to lenovo k910.Lenovo haven't release the source code yet and as far as i know you can't build cm-11 without kernel source.The device has custom recovery and we can root it.Is it possible to use a kernel source from a device with same board,Oppo 7a for example,just to finish compiling and then replace the libs,scripts,apk's from the official?
[XDA-University] judas1977:
Where is RIL???

Hello, my previous phone had RIL file inside device tree - there are devices that have similar RIL files, such as here:

https://github.com/CyanogenMod/andr...telephony/java/com/android/internal/telephony

My phone doesn't have such a file. So i suppose it uses some "common/default" RIL (qualcomm one?), or... prebuilt one?

I wanted to edit some part of ril trying to fix some issues, but there is none...

When i added (i find it somewhere) LGEQualcommRIL.java and added path to it in boardconfig - there is about 60 errors during compilation.

So could someone help me to find a solution - how to add custom RIL file and then try to fix issues???

TIA.
[XDA-University] rastomanchik:
hi. i did compile cm11 and now have cyclical reboot after firmware is full boot.

this is logcat.

maybe someone can help me?

I can roll back to a working version of the code, but I want to understand the cause of the error.
[XDA-University] bangdes:
How about the new device not officially supported by cm? Can we build by this step?
[XDA-University] rastomanchik:
I successfully ran the last version of the firmware. but has made changes and did not remember them
[XDA-University] winxuser:
trying to compile aosp lollipop for a couple exynos4 devices, but is coming up with this error,, please how do you fix this

hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:37:28: fatal error: linux/videodev.h: No such file or directory
[XDA-University] rastomanchik:
in kernel sources in include/linux need take this file and put in device/you_brand/you_phone/kernel-headers/linux/
[XDA-University] someone755:
Having some issues building CM for an unsupported device.

The Sony Xperia Z3 Compact already has an AOSP device tree, so I used that (should be pretty much the same, right?). After a whole week of downloading, I am now greeted with "Trying dependencies-only mode on a non-existing device tree?" when doing "lunch aosp_d5803-userdebug" (I didn't change the device codename).

Anyone have an idea what I can do to fix this/why it's happening?

Thanks in advance!
[XDA-University] patraanjan23:
Download the device tree manually n paste it in device/*manufacturer*/*devicename* directory. You'll find it solved. Read the cm porting guide thoroughly. This device is not supported by cm officially probably that's why you get the error as it's not listed in cm source.

Sent from my Micromax A106
[XDA-University] someone755:
That was ... speedy xD

Thanks!

I did read a handful of guides regarding this but I just assumed that the link in the manifest would automatically download the device tree.

And not a single page on the Internet has a solution for my error which is kinda weird. :T
[XDA-University] patraanjan23:
Your welcome. But remember that line will still appear :D but with results.

Sent from my Micromax A106
[XDA-University] winxuser:
hi im compilign cm9 (i know its old but i like it) but im coming up with this error

dalvik/vm/native/dalvik_system_Zygote.cpp:199:19: error: aggregate ‘setrlimitsFromArray(ArrayObject*)::rlimit rlim’ has incomplete type and cannot be defined

struct rlimit rlim;

^

dalvik/vm/native/dalvik_system_Zygote.cpp:222:43: error: ‘setrlimit’ was not declared in this scope

err = setrlimit(contents[0], &rlim);
[XDA-University] kokos76:
-delete-
[XDA-University] wrick17:
if my device is not officially supported how do breakfast *****?? that fails... how do i compile for a device which is not in the cm list of supported devices??
[XDA-University] bigsupersquid:
Without support from other development for your device is pretty tricky.

If you can hunt down a device tree for something with the same chipset and hardware devices you have a starting point at least.

For example the optimus m/s/t/v are very similar to each other and close enough to the optimus one to use much of its device tree.
[XDA-University] winxuser:
Is there a way I can just download a certain commit from git hub into an empty folder and manually add the changes myself?
[XDA-University] Great_Geek:
If a developer has working kernel source & device trees for your device, setting it up to work with the AOSP build process isn't hard. You need to add a lunch combo for your device. If no source for your device is available, you should ask a developer for your device or something, 'cause you're SOL
[XDA-University] wrick17:
Yes we have a working device and kernel tree for this device.

device: https://github.com/pawitp/android_device_samsung_i9082

kernel: https://github.com/pawitp/android_kernel_samsung_i9082

i have added the device and kernel tree to my repo.. only stuck at compiling...

How do i add the lunch combo for my device?

Since i am new to ROM building, i am in learning stage. So it will be very helpful if u provide the required steps for a successful compilation.. thanks..

[UPDATE] Figured out how to add the lunch combo menu for my device :D thanks... Building now..
[XDA-University] balapradeep.jnvv:
stuck at bulding

make: *** No rule to make target '/media/bala/Newvolume1/phablet/out/target/product/condor/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/media/bala/Newvolume1/phablet/out/target/product/condor/obj/EXECUTABLES/recovery_intermediates/import_includes'

its may be due to link error i think

is there anyone to help ....:confused:
[XDA-University] judas1977:
Hello.

I want to use clean LG sources to compile kernel for msm8226 device.

Could somebody point exact caf commits to get it work?

TIA.
[XDA-University] sooti:
getting strange runtime errors during compile, anyone have ideas how to solve this?

http://pastebin.com/yBZv7P7a
[XDA-University] generalnod:
recompiling after making changes to source

thanks for the guide.

One question, when modifying the source (in my case Cyanogenmod source) how do I get it to recompile only doing necessary work to include my changes and build a new zip for me to flash?

I thought t would just be 'make' like it conventionally is but that doesn't seem to work.

Found something on how to compile parts

http://xda-university.com/as-a-developer/downloadcompile-specific-rom-parts

but that doesn't seem to cover it exactly either. I'm modifying any number of different things, looking for a command to have it intelligently do whatever recompilation is necessary without having to do make clean.

thanks
[XDA-University] kaiodduarte:
i got this bug:

make: *** No rule to make target `device/generic/goldfish/data/etc/apns-conf.xml', needed by `out/target/product/generic/system/etc/apns-conf.xml'. Stop.

i've resynced and nothing has been changed ;/

Chroma ROM
[XDA-University] Shark5060:
Hi,

I don't know if my question is right here, but I'll give it a shot.

I am quite new to android, git, repo and this whole stuff in general, but I've at least managed to setup a VM with ubuntu, and follow this tutorial to the end (quite similar to the one on the cm homepage too).

However, when I build the source with "brunch jfltexx" I don't see any failures or warnings and I even get a flashable zip in the end. The BIG problem with it however is that whenever I flash this zip, my SIM card isn't recognized any longer. When I flash the nightly, downloaded from the cm homepage, it works fine.

Did I forget to do something or missed to install anything critical that could cause such behaviour? The self-built rom itself works fine without any other problems.

Thanks in advance.
[XDA-University] kjinx01:
its stucked hre since many hours..can anyone help me

Fetching projects: 10% (55/547) Fetching project CyanogenMod/android_frameworks_opt_photoviewer

Fetching project platform/external/netcat

Fetching project CyanogenMod/android_bootable_recovery

Fetching project device/generic/x86

Fetching project platform/external/eclipse-windowbuilder

Fetching project CyanogenMod/android_external_jsr308

Fetching projects: 11% (61/547) Fetching project platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6

Fetching project CyanogenMod/android_frameworks_opt_timezonepicker

Fetching project platform/prebuilts/clang/linux-x86/host/3.4

remote: Counting objects: 71, done

remote: Finding sources: 100% (71/71)
[XDA-University] aniket.lamba:
Do a repo sync -j1 -f to see which repo it's stuck on.
[XDA-University] Acookook:
what is the cyanogenmod naming scheme, i just know that cm 11 is kitkat, (i would like to know for the jellybean branch), I also cannot get g++-4.5-multilib package, Any solution?
[XDA-University] winxuser:
Ok guys having a little trouble le with compiling my own aosp for a LG device.. It comes up with. No rule to make target blah blah libaudioservicepolicy... Is there certain commits I need for this error???
[XDA-University] genesixxbf3:
Mm?
[XDA-University] winxuser:
Sorry yeah it's mm
[XDA-University] genesixxbf3:
Try to add that to you BoardConfig.mk

USE_CUSTOM_AUDIO_POLICY := 1
[XDA-University] winxuser:
It already is in the board config
[XDA-University] bigsupersquid:
aosp has poor device support for non nexus.

you might diff/meld frameworks/av between your aosp and whatever you got the device folder from and add support for your chipset to the aosp makefiles based on the working source.
[XDA-University] winxuser:
Been cherry picking commits from cm frameworks/av,, did them all and still doesn't work :/
[XDA-University] somadsul:
hi

I am trying to compile Resurrection Remix but while i am trying to download device tree (repo)

but getting error.

Building RR!

Setting up Build Environment...

including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/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

What is your device code name?
k3gxx
You have chosen to build ResurrectionRemix OS for k3gxx

Building Resurrection Remix OS now!

build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_k3gxx". Stop.
Device k3gxx not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for k3gxx not found in the CyanogenMod 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 "cm_k3gxx". Stop.

** Don't have a product spec for: 'cm_k3gxx'
** Do you have the right repo manifest?

Build failed, check the log at k3gxx-20160612.log
som@ubuntu:/media/som/26F803BDF8038A6F$

what should i have to do?

I have tried to create .repo/local_manifests/roomservice.xml

tried in build/core/local_manifests/roomservice.xml

& in also in main directory.

here is my roomservice.xml contents

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/samsung/k3gxx" name="Fevax/android_device_k3gxx" remote="github" revision="cm-13.0" />
<project path="vendor/samsung/k3gxx" name="Fevax/vendor_samsung_k3gxx" remote="github" revision="master" />
<project path="kernel/samsung/exynos5422" name="Fevax/kernel_samsung_exynos5422" remote="github" revision="cm-13.0" />
<project path="android/hardware/samsung/slsi-cm_exynos" name="Fevax/android_hardware_samsung_slsi-cm_exynos5" remote="github" revision="cm-13.0" />
<project path="ardware/samsung_slsi-cm/exynos5" name="Fevax/android_hardware_samsung_slsi-cm_exynos" remote="github" revision="cm-13.0" />
<project path="hardware/samsung_slsi-cm/openmax" name="Fevax/android_hardware_samsung_slsi-cm_openmax" remote="github" revision="cm-13.0" />
<project path="ahardware/samsung_slsi-cm/exynos5422" name="Fevax/android_hardware_samsung_slsi-cm_exynos5422" remote="github" revision="cm-13.0" />
<project path="android/hardware/samsung/slsi-cm_exynos" name="Fevax/android_hardware_samsung_slsi-cm_exynos" remote="github" revision="cm-13.0" />
</manifest>
[XDA-University] quanganh2627:
Well, i've a look at your tree, and ur troubles due to it's missing AndroidProduct.mk. So creating that missing which contains (at least) :

PRODUCT_MAKEFILES := $(LOCAL_DIR)/device_k3gxx.mk

But i recommend you should split from ur device_k3gxx.mk any line have "call inherit....." to a new file name full_k3gxx.mk, most important at here this new file must have a line

$(call inherit-product,device/samsung/k3gxx/device_k3gxx.mk)

Then in AndroidProduct.mk, instead of device_k3gxx.mk by full_k3gxx.mk.

Sorry for my English. Good luck !
[XDA-University] somadsul:
thanks for your valuable reply

I am newbie here so i cant understand.

here is full_k3gxx.mk file can you please explain me what should i have to do?
[XDA-University] quanganh2627:
It's looking like better right now . But you still missing another important file: AndroidProducts.mk. without it, the building can't run . It's exactly your troubles right now. See my last post to resolve then u can build as normal. Here's some details : from elinux or from CM wiki. Also a very useful book which has a quick view here
[XDA-University] ka_putt:
Hello,

I'm getting an error when i try to compile a kernel. I am on Linux Mint 18.

the error what I get

Building Kernel

make -C kernel/amazon/hdx-common O=/home/roland/android/lp/out/target/product/apollo/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/roland/android/lp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" zImage

make -C O=/home/roland/android/lp/out/target/product/apollo/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=CROSS_COMPILE=" /home/roland/android/lp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" apollo_defconfig

make[1]: Verzeichnis „/home/roland/android/lp/kernel/amazon/hdx-common“ wird betreten

make[1]: *** O=/home/roland/android/lp/out/target/product/apollo/obj/KERNEL_OBJ: Datei oder Verzeichnis nicht gefunden. Schluss. (This means "No such file or directory. Stop."

kernel/amazon/hdx-common/AndroidKernel.mk:163: die Regel für Ziel „/home/roland/android/lp/out/target/product/apollo/obj/KERNEL_OBJ/usr“ scheiterte (failed)

make: *** [/home/roland/android/lp/out/target/product/apollo/obj/KERNEL_OBJ/usr] Fehler 2

make: *** Auf noch nicht beendete Prozesse wird gewartet …

I hope someone can help me. Thanks
[XDA-University] chaudharyjatin115:
Can i try to complie cm12 from twrp device tree will it work
[XDA-University] trigous:
Thanks

Thanks for the guide !
[XDA-University] Eurofighter_ty:
build/core/product_config.mk:234: *** Can not locate config makefile for product "falcon". Stop.

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

** Do you have the right repo manifest?

I get this when I try to compile AOSP 7.0 for falcon. What do I need to modify ?

Thanks !
[XDA-University] nicesoni_ash:
Do u have your device tree synched, is it even available yet for your device? What exactly did you repo?

Sent from my "i9300/1+2" powered by Carbon/RR

Fueled by 7000mAh ZeroLemon Battery
[XDA-University] Eurofighter_ty:
I have all the files with some patched stuff and in theory it should compile (others did it).

I have repoed the AOSP 7.0 from Google and and ththe device kernel, device tree and the common stuff from chipset.

<project path="device/motorola/falcon" name="akhilnarang/android_device_motorola_falcon" remote="github" revision="cm-14.0" />

<project path="kernel/motorola/msm8226" name="akhilnarang/android_kernel_motorola_msm8226" remote="github" revision="cm-14.0" />

<project path="device/motorola/msm8226-comomon" name="akhilnarang/android_device_motorola_msm8226-common" remote="github" revision="cm-14.0" />

<project path="vendor/motorola" name="TheMuppets/proprietary_vendor_motorola" remote="github" revision="cm-13.0" />
[XDA-University] nicesoni_ash:
Issue is related to proprietary blobs but if others have done it, may be you should ask them where they get the updated blobs or patched ones coz TheMuppet still has the old ones.

Sent from my "i9300/1+2" powered by Carbon/RR

Fueled by 7000mAh ZeroLemon Battery
[XDA-University] Eurofighter_ty:
Hi, I did some fixes and now I get this:

cts/build/test_deqp_package.mk:27: kati doesn't support passing results of $(shell) to other make constructs: /home/maxh/android/cm13/out/host/linux-x86/bin/cts-xml-generator -t dummyTest -n dummyName -p invalid.dummy -e cts/tests/expectations/knownfailures.txt -b cts/tests/expectations/unsupportedabis.txt -a arm < cts/build/deqp_dummy_test_list | grep --only-matching -e " abis="[^"]*""

build/core/ninja.mk:163: recipe for target '/home/maxh/android/cm13/out/build-cm_falcon.ninja' failed

Moto G has ARM V7 CPU (snapdragon 400)

This is the boardconfig.mk

TARGET_BOARD_INFO_FILE := $(DEVICE_PATH)/board-info.txt

TARGET_ARCH := arm

TARGET_CPU_ABI := armeabi-v7a

TARGET_CPU_ABI2 := armeabi

TARGET_ARCH_VARIANT := armv7-a-neon

TARGET_CPU_VARIANT := generic

Can you help me out ? Thanks again !
[XDA-University] nicesoni_ash:
I have no idea about this.
[XDA-University] Getnord:
Noob question:

Does that mean my device has to have cyanogenmod built for it in the past? Because there is none for getnord onyx.

Or can I use this guide to build ROM for my device?
[XDA-University] Eurofighter_ty:
ninja: error: '/home/maxh/CM14/out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.dex.toc', needed by '/home/maxh/CM14/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/with-local/classes.dex', missing and no known rule to make it

What can I do about this ?
[XDA-University] nicesoni_ash:
Try:

$ rm -rf out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates

and make again.

or try make clean.
[XDA-University] Eurofighter_ty:
[MENTION=4659955]nicesoni_ash[/MENTION]

I did the make clean command. And still same error. I get this like from 2 hours ago when I deleted all my local data and redownloaded via repo sync
[XDA-University] nicesoni_ash:
Then I have no idea, sorry.
[XDA-University] bigsupersquid:
If you're using ccache, try

make clean

ccache -C

Sometimes remnants in ccache cause similar problems.
[XDA-University] Eurofighter_ty:
Another problem strange problem:

I get "No kernel modules enabled" and the build fails.

/CM14/kernel/motorola/msm8226/arch/arm/configs

In that location I have falcon_deconfig file the folowing line: CONFIG_MODULES=y

But still doesn't want to go away with the error.
[XDA-University] regalstreak:
You need vendor/codeaurora/telephony

Clone that from a CAF based ROM or directly from CAF

git clone https://source.codeaurora.org/quic/la/platform/vendor/codeaurora/telephony/ -b LA.BF64.1.2.3_rb1.3
[XDA-University] YannikM:
Hi,<br />

I tried building aosp 7.0 for the i9300, but erverytime i am getting this error. <br />

http://pastebin.com/7ryWVnwd

Could sombody help me?

Gesendet von meinem LG-H850 mit Tapatalk
[XDA-University] Eurofighter_ty:
Thanks !

Do you know how I disable CMSDK ? via terminal something like EXPORT DISABLE_CMSDK ?

I got this error:

You have tried to change the API from what has been previously approved.

I tried the second option : make update-cm-api

But still same error.
[XDA-University] regalstreak:
make update-cm-api && make update-cm-prebuilts-latest-public-api

And then it will work

regalstreak

---------- Post added at 08:02 PM ---------- Previous post was at 08:01 PM ----------

Remove cmsdk stuff from device tree

regalstreak

---------- Post added at 08:02 PM ---------- Previous post was at 08:02 PM ----------

And use the thanks button instead of saying it. Works better

regalstreak
[XDA-University] Eurofighter_ty:
Is this normal? Is stuck for like 2 hours at this line but my CPU usage is max on all cores. Is stuck or what? The memory usage is constant and so the SSD
[XDA-University] bigsupersquid:
I've had that happen.

You can try

killall python

In another terminal instance.

If that doesn't work, close the hung terminal, and try again in a new one.

. build/envsetup.sh, lunch and all.
[XDA-University] Eurofighter_ty:
I closed the terminal, restarted my PC and still the same. Hangs on that line.. What can I do more? And I don't have any python process running just Java and Jack

Fail after 2 minutes

Out of memory but I have 8 GB of RAM with 8 GB swap..
[XDA-University] regalstreak:
export USE_NINJA=false && unset BUILDING_WITH_NINJA

Thank me later

regalstreak
[XDA-University] Eurofighter_ty:
Thanks ! That worked and the build seemd much faster. But I have another error regarding bluetooth:

build/core/binary.mk:1070: recipe for target '/home/maxh/android/out/target/product/falcon/obj/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.o' failed

make: *** [/home/maxh/android/out/target/product/falcon/obj/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.o] Error 1

Sorry for posting there but everywhere else nobdy responds. BTW: I didn't execute "make clean" before your command. Should I do that ?

Thanks again !
[XDA-University] regalstreak:
You should because you disabled ninja

If you very the error again just quote

regalstreak
[XDA-University] Eurofighter_ty:
# Make sure the extracted classes.jar has a new timestamp.

target arm C++: libcmaudio_jni <= packages/services/CMAudioService/jni/src/org_cyanogenmod_cmaudio_service_CMAudioService.cpp

target thumb C++: libdefcontainer_jni <= frameworks/base/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp

target thumb C++: libappfuse_jni <= frameworks/base/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp

packages/services/CMAudioService/jni/src/org_cyanogenmod_cmaudio_service_CMAudioService.cpp:32:10: fatal error: 'media/AudioSession.h' file not found

#include <media/AudioSession.h>

^

1 error generated.

build/core/binary.mk:968: recipe for target '/home/maxh/android/out/target/product/falcon/obj/SHARED_LIBRARIES/libcmaudio_jni_intermediates/src/org_cyanogenmod_cmaudio_service_CMAudioService.o' failed

make: *** [/home/maxh/android/out/target/product/falcon/obj/SHARED_LIBRARIES/libcmaudio_jni_intermediates/src/org_cyanogenmod_cmaudio_service_CMAudioService.o] Error 1

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

make: Leaving directory '/home/maxh/android'

#### make failed to build some targets (38:43 (mm:ss)) ####

This time another error regarding audio. It's something about CM Audio Service. Do I need to disable it somehow ?

Thanks again !
[XDA-University] regalstreak:
Error says it all. Just put the audio file thingy.

Pro tip: look at gerrit. review.cyanogenmod.com

regalstreak
[XDA-University] Eurofighter_ty:
Ok, I solved that by looking on gerrit after a commit and downloaded the file and I am a lucky guy regarding errors:

packages/services/CMAudioService/jni/src/org_cyanogenmod_cmaudio_service_CMAudioService.cpp:101:18: error: no member named 'setAudioSessionCallback' in 'android::AudioSystem'

AudioSystem::setAudioSessionCallback(enabled ?

~~~~~~~~~~~~~^

packages/services/CMAudioService/jni/src/org_cyanogenmod_cmaudio_service_CMAudioService.cpp:122:27: error: no member named 'listAudioSessions' in 'android::AudioSystem'

status = AudioSystem::listAudioSessions((audio_stream_type_t)streams, sessions);

~~~~~~~~~~~~~^

2 errors generated.

build/core/binary.mk:968: recipe for target '/home/maxh/android/out/target/product/falcon/obj/SHARED_LIBRARIES/libcmaudio_jni_intermediates/src/org_cyanogenmod_cmaudio_service_CMAudioService.o' failed

make: *** [/home/maxh/android/out/target/product/falcon/obj/SHARED_LIBRARIES/libcmaudio_jni_intermediates/src/org_cyanogenmod_cmaudio_service_CMAudioService.o] Error 1

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

make: Leaving directory '/home/maxh/android'

Do I need to edit the file to change something ?

Thanks !