yashsingh1/xdaforums huggingface dataset:
[Android] himsin:
I am trying to build xenonHD for titan (moto g 2014) and getting following error:

libsepol.context_from_record: type livedisplay_sysfs is not defined

can anyone please help me?
[Android] Kaito_kid:
Still. . Really a noob one. . But i am very hunger to study about all android system. .

Sorry bad english
[Android] FayaX[PT]:
When I open a Snapdragon Camera, and switch to video mode I get this error:

Process: org.cyanogenmod.snap, PID: 8677

java.lang.RuntimeException: Unknown camcorder profile quality

at android.media.CamcorderProfile.native_get_camcorder_profile(Native Method)

at android.media.CamcorderProfile.get(CamcorderProfile.java:523)

at com.android.camera.VideoModule.readVideoPreferences(VideoModule.java:921)

at com.android.camera.VideoModule.init(VideoModule.java:490)

at com.android.camera.CameraActivity.openModule(CameraActivity.java:1935)

at com.android.camera.CameraActivity.onModuleSelected(CameraActivity.java:1853)

at com.android.camera.ui.ModuleSwitcher.onModuleSelected(ModuleSwitcher.java:175)

at com.android.camera.ui.ModuleSwitcher.-wrap0(ModuleSwitcher.java)

at com.android.camera.ui.ModuleSwitcher$1.onClick(ModuleSwitcher.java:210)

at android.view.View.performClick(View.java:5204)

at android.view.View$PerformClick.run(View.java:21155)

at android.os.Handler.handleCallback(Handler.java:739)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5422)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Anyone can help pls ?

One more question:

How can I push a commit to my project from another project that is not mine ??
[Android] MSF Jarvis:
This seems to be a case of messed up media profiles, not sure, but the first lines indicate that. About pushing the commits, if I'm understanding it correctly, you want to cherry pick a commit. [MENTION=4803464]jabza[/MENTION] has a fantastic guide for that.
[Android] yshalsager:
Hi All, I need help:

I built cm12.1 form source for Nokia XL RM-1030 Qualcomm MSM8225 / MSM7x27a

Sources Here: https://github.com/NormandyEGY

ROM Here: http://xdaforums.com/nokia-x/orig-development/rom-cyanogenmod-12-1-alpha-1-t3344017

I Have Bugs With:

- RIL (sim card not detected ) Log Here

- Wi-fi (Can't Open) Log Here

- Video Recording - Log Here

I really need help to fix these bugs, thanks
[Android] Uchiha_Dev:
I am compiling liquidsmooth 5.1 (cm theme engine version) the ROM compiles well but org.cyanogenmod.platform.jar and org.cyanogenmod.platform-res.pak do not get compiled and due to this ROM is not booting at all
[Android] MSF Jarvis:
Find working prebuilt ones and use PRODUCT_COPY_FILES to put them in the right place. And oh, do you mind telling me how are you using a prebuilt kernel with ROMs if they don't allow its use?
[Android] Uchiha_Dev:
i'll hit you up in PM
[Android] FayaX[PT]:
How can I add dark/light mode on a rom ?

I already added option on developer options to change theme, but doesn't work
[Android] MSF Jarvis:
Dude, that's a FWB change required as well. Look through SlimROMs gerrit or Android N preview's commits.
[Android] martinusbe:
http://review.cyanogenmod.org/#/q/daynight
[Android] Droidcore:
I try build carbon , but this not want build , no error just after lunch_m7-userdebug

Just - rom name= carbon 27032016

Target arch= armv7

Target Ndk gcc=

Target gcc arm=

And done no build process

Or because source still not complete

Because this my m7 doesn't have official support

Any help?
[Android] akhilnarang:
mka carbon after lunch
[Android] Droidcore:
thnks
[Android] MSF Jarvis:
What is it with people and their avoidance of logs?

Now, when you want to do mka carbon, replace it with this :

mka carbon 1>(tee stdout.log) 2>(tee stderr.log)

When you run into an error, share the stderr.log and then whine that you want help for the build error. If you think you are smart enough to know which handful of lines contain the error, be smart enough to also know how to fix them. I would have gone ahead and taken the liberty of explaining why almost always the actual error is far away from the exception raised for termination of build, but it would be falling upon dead ears.
[Android] mobiusm:
Hello fellow developers,

I brought Resurrection Remix to the LG G2 mini and it works fine, but the last time I want to make a build I get errors that I don't understand since I have changed nothing... I tried to make builds for other roms but it generates the same error.... I could use some help from people with better knowledge than me. HERE are the errors.

p.s. I have tried to re-sync from scratch the project but with no help. I also tried re-installing java version and updating anything I could.
[Android] ganesh varma:
Hi...i'm trying to compile cm12.1 rom for my device j5 from source. I have synced the device tree,vendor and kernel but still when i run lunch command and select my device from menu this is the error am getting.

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

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

Repository for j5 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_j5". Stop.

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

** Do you have the right repo manifest?

** Invalid variant: 'common-userdebug'

** Must be one of user userdebug eng
[Android] MSF Jarvis:
Check your vendorsetup.sh and ensure it has cm_j5-userdebug after add_lunch_combo

Would also help to delete cm.dependencies if it exists
[Android] ganesh varma:
Checked vendorsetup.sh in both the folders device/samsung/j5-common and vendor/samsung/j5-common they both have cm_j5-userdebug after the add_lunch_combo.

Deleted cm.dependencies and tried lunch once again but no luck :(
[Android] MSF Jarvis:
You are using ONLY a common tree for the build? That's unheard of. Most guys will create a common tree for two VERY similar devices and separate device specific ones which inherit most of the stuff from the common one and includes variant specific info.
[Android] ganesh varma:
Am not munch into this building stuff this is just my first try. :p

Here's the link for the git repository of my device tree https://github.com/nickverse/android_device_samsung_j5-common

Is there any way to overcome the error??...i think it's just not able to find the device make files.
[Android] INT3NSE07:
Hey guys, I have been trying to compile a rom for bacon. I have all the source set up and the build is stopping at this error.These are the things I tried to solve the problem.

1. Manually created KERNEL_OBJ in out/target/product/bacon/obj

2.Tried to clean build.

3.Made sure the folder had the right permissions.

4.Made sure KERNEL_OUT pointed to the right folder.

Please help me solve this problem. I have searched a lot by of no avail. Any help is greatly appreciated.

make -C kernel/oneplus/msm8974 O=out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/int/darko/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androideabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= bacon_defconfig

/bin/sh: 1: cd: can't cd to out/target/product/bacon/obj/KERNEL_OBJ

host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)

Install: out/host/linux-x86/lib64/libcutils.so

make[1]: Entering directory `/home/int/darko/kernel/oneplus/msm8974'

Makefile:121: *** output directory "out/target/product/bacon/obj/KERNEL_OBJ" does not exist. Stop.

make[1]: Leaving directory `/home/int/darko/kernel/oneplus/msm8974'

make: *** [out/target/product/bacon/obj/KERNEL_OBJ/.config] Error 2

make: *** Waiting for unfinished jobs....
[Android] MSF Jarvis:
Use the local manifest he's provided in his Github by placing the xml in that repository at .repo/local_manifests/ and then running repo sync --force-sync
[Android] ganesh varma:
Thx bro..as you have said in the previous post it was only a common repo used for the other variants.

My bad i have only synced the common repo that's the reason it was not showing in the lunch menu...now after syncing of all the device specific repo's it showed up in the lunch menu and building it now. ?
[Android] Garv Maggu:
Please help

I am not able to edit device tree beacuse my device tree is not of cm.

Please somebody help me how to edit device tree of AOSP. :(
[Android] FayaX[PT]:
[Deleted]
[Android] DarkFrenzy:
logcat of camera failed

I/OpenGLRenderer( 5290): Initialized EGL, version 1.4
D/NuPlayerDriver( 189): reset(0xb7a9fb28)
D/OpenGLRenderer( 5290): Enabling debug mode 0
D/NuPlayerDriver( 189): notifyResetComplete(0xb7a9fb28)
V/WindowManager( 599): Adding window Window{2bb83bbc u0 SurfaceView} at 3 of 8 (before Window{1970a78e u0 net.sourceforge.opencamera/net.sourceforge.opencamera.MainActivity})
E/CameraService( 189): Camera HAL module not loaded
W/CameraBase( 5290): An error occurred while connecting to camera: 0
W/System.err( 5290): java.lang.RuntimeException: Fail to connect to camera service
W/System.err( 5290):	at android.hardware.Camera.<init>(Camera.java:529)
W/System.err( 5290):	at android.hardware.Camera.open(Camera.java:364)
W/System.err( 5290):	at net.sourceforge.opencamera.CameraController.CameraController1.<init>(CameraController1.java:34)
W/System.err( 5290):	at net.sourceforge.opencamera.Preview.Preview.openCamera(Preview.java:1002)
W/System.err( 5290):	at net.sourceforge.opencamera.Preview.Preview.mySurfaceCreated(Preview.java:566)
W/System.err( 5290):	at net.sourceforge.opencamera.Preview.Preview.surfaceCreated(Preview.java:592)
W/System.err( 5290):	at android.view.SurfaceView.updateWindow(SurfaceView.java:580)
W/System.err( 5290):	at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:176)
W/System.err( 5290):	at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
W/System.err( 5290):	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1970)
W/System.err( 5290):	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
W/System.err( 5290):	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891)
W/System.err( 5290):	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
W/System.err( 5290):	at android.view.Choreographer.doCallbacks(Choreographer.java:580)
W/System.err( 5290):	at android.view.Choreographer.doFrame(Choreographer.java:550)
W/System.err( 5290):	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
W/System.err( 5290):	at android.os.Handler.handleCallback(Handler.java:739)
W/System.err( 5290):	at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err( 5290):	at android.os.Looper.loop(Looper.java:135)
W/System.err( 5290):	at android.app.ActivityThread.main(ActivityThread.java:5294)
W/System.err( 5290):	at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 5290):	at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err( 5290):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
W/System.err( 5290):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
W/System.err( 5290):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
W/System.err( 5290): net.sourceforge.opencamera.CameraController.CameraControllerException
W/System.err( 5290):	at net.sourceforge.opencamera.CameraController.CameraController1.<init>(CameraController1.java:40)

which lib is camera hal ?
[Android] hieptran.bk:
Hi guys, anyone try to compile AOSP (n-preview-1 branch)? it very difference to android M build, and always failed when i compile kernel :D
[Android] ganesh varma:
cm build error

The build process fails everytime with a internal compiler error: Segmentation fault. Have searched over the internet but found no fix. Some say it's becoz of a hardware fault or over heating issue but my lappy looks fine it doesn't get that hot. This error happens everytime at a c++ file not a particular one though.Any idea on how to fix this issue?

target thumb C++: base_base_gyp <= external/chromium_org/base/allocator/allocator_extension.cc

In file included from external/stlport/stlport/stl/_string.h:23:0,

from external/stlport/stlport/string:29,

from external/chromium_org/base/logging.h:9,

from external/chromium_org/base/allocator/allocator_extension.cc:7:

external/stlport/stlport/stl/_alloc.h:410:25: internal compiler error: Segmentation fault

typedef _STLportAlloc has_trivial_copy_constructor;

^

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://source.android.com/source/report-bugs.html> for instructions.

make: *** [/home/techkid/cm12.1/out/target/product/j5nltexx/obj/STATIC_LIBRARIES/base_base_gyp_intermediates/base/allocator/allocator_extension.o] Error 1
[Android] Garv Maggu:
[MENTION=5216756]jackeagle[/MENTION] How to make AOSP Device Tree compatible to ROM?
[Android] neonkat:
there is a search button and also its given on page 1.

http://xdaforums.com/showthread.php?p=852
[Android] hdorius:
Anyone know what cause the rom is bootlooped here? http://hastebin.com/ihogigariw.coffee (i know i used multirom, but i still bootlooped when i dont use it too, same log)
[Android] FayaX[PT]:
target StaticLib: libvold (/home/fayax/android/aosp/out/target/product/bacon/obj/STATIC_LIBRARIES/libvold_intermediates/libvold.a)

target thumb C: wcnss_service <= hardware/qcom/wlan/wcnss-service/wcnss_service.c

target thumb C: wcnss_service <= hardware/qcom/wlan/wcnss-service/wcnss_qmi_client.c

hardware/qcom/wlan/wcnss-service/wcnss_service.c:44:24: fatal error: mdm_detect.h: No such file or directory

#include "mdm_detect.h"

^

compilation terminated.

build/core/binary.mk:817: recipe for target '/home/fayax/android/aosp/out/target/product/bacon/obj/EXECUTABLES/wcnss_service_intermediates/wcnss_service.o' failed

make: *** [/home/fayax/android/aosp/out/target/product/bacon/obj/EXECUTABLES/wcnss_service_intermediates/wcnss_service.o] Error 1

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

target thumb C++: libjavacrypto <= external/conscrypt/src/main/native/org_conscrypt_NativeCrypto.cpp

hardware/qcom/wlan/wcnss-service/wcnss_qmi_client.c:33:17: fatal error: qmi.h: No such file or directory

#include "qmi.h"

How can I include these files ?

Edit: It was a missing repository :D
[Android] FayaX[PT]:
I am trying to compile android 6 and I am getting this error:

warning: [options] bootstrap class path not set in conjunction with -source 1.7

external/guava/guava/src/com/google/common/reflect/Types.java:317: error: TypeVariableImpl is not abstract and does not override abstract method getAnnotatedBounds() in TypeVariable

private static final class TypeVariableImpl<D extends GenericDeclaration>

^

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 error

1 warning

This is because wrong java version rigth ? How can I install the correct version ?
[Android] DarkFrenzy:
Can i build cm11 with openjdk 7?
[Android] osamat:
help with ./extract-files.sh

hello, need help with error

trying to build cm13.0 for bacon

when i get to ./extract-files.sh some files are not found

not only these files. but many others

so after searching for some info, i managed to download the proprietary files form TheMuppet but i don't know how to tell the ./extract-files script to read from the downloaded directory

first timer here so forgive the ignorance.

edit: i solved this by restarting adb as root. go to device dev settings, and allow adb to be root then type "adb root" in terminal to restart adb as root

now only two files are missing:

remote object '/system/lib/libwpa_qmi_eap_proxy.so' does not exist

remote object '/system/vendor/lib/liblisten.so' does not exist
[Android] akhilnarang:
No need of using the extract-files script, just clone or sync vendor_oneplus from TheMuppets
[Android] osamat:
i tried your suggestion by simply copy/paste the content of Themuppet for bacon into the rom/device/oneplus/bacon folder

i still get this error when using brunch bacon

make: *** No rule to make target `vendor/oneplus/bacon/proprietary/lib/libwpa_qmi_eap_proxy.so', needed by `/home/osama/imamrom/out/target/product/bacon/obj/SHARED_LIBRARIES/libwpa_qmi_eap_proxy_intermediates/LINKED/libwpa_qmi_eap_proxy.so'. Stop.

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

make: Leaving directory `/home/osama/imamrom'

#### make failed to build some targets (01:37 (mm:ss)) ####
[Android] MJPollard:
No. CM11 requires Java 6. CM12 and later can use (require, in fact) Java 7.
[Android] MSF Jarvis:
You have to place the files into vendor/oneplus/bacon, not device/oneplus/bacon.
[Android] DutchMan_1990:
can anyone help with this error? Device is Grouper. REpo has synced with the source.

[IMG="error"]http://i66.tinypic.com/1549406.jpg[/IMG]
[Android] MSF Jarvis:
Please provide logs, not motherf***ing screenshots. If you don't know how(I am sure you don't), use this command to compile

time <insert-any-command> 1>tee stdout.log 2>tee stderr.log
[Android] Arvind7352:
Execute this command in the Terminal

sudo apt-get install maven maven2

Let it get installed. This will solve it :)

Continue your build

From next time, please send logs, and not Screenshots. Place on sites such as pastebin etc. Instead of putting it in a post which becomes tooo big ;)
[Android] SlimShady's:
Am I missing some repos?

I'm building DU 6-caf with a CM Device Tree and caf repos...
[Android] mobiusm:
Any idea what this could be? I get this for a few days already.
[Android] MSF Jarvis:
It's a kernel repository issue. Try compiling only the kernel to confirm it.

---------- Post added at 06:50 PM ---------- Previous post was at 06:48 PM ----------

Don't use JACK to compile it. Add this to your BoardConfig.mk

COMPILE_WITH_JACK := false

I am not 100% sure if the name is correct, so please cross check it at developer.android.com to confirm it.
[Android] Qiangong2:
I get an "unexpected data" error whenever it tries to build kernels using the defconfig I have for cm. Other people have used the exact same defconfig and it has built fine. What am I doing wrong?
[Android] neonkat:
can you give the terminal log of error?

check last page,someone gave a very good response and a method to get one too.
[Android] mobiusm:
You were right! :highfive:

EDIT: it's back. Damn it. I hate when that happens. It's just random.
[Android] Qiangong2:
well, i checked by just building the kernel, and i get this:

I have the config.h though. I also don't have a "kernel/samsung/logan2g/source" folder if that matters.
[Android] kenzolo:
any idea ?

http://pastebin.com/vnvj7PRY
[Android] MSF Jarvis:
See lines 21 through 23 of your paste. And please stop being lazy, it took me 7 seconds to find the error and fix.
[Android] Droidcore:
help this http://pastebin.com/fjPRAsCP :rolleyes:
[Android] kenzolo:
already tried but I have a java version error because I need openjdk 7...

I use openjdk 8 on ubuntu 16.04 the problem is that 7 version has been removed from 16.04 repo in these day and I don't know how to install﻿
[Android] mobiusm:
I have successfully compiled the kernel on its own. I have re-synced the kernel from scratch in my rom project, but it still gives me the same error. Got an idea?
[Android] MSF Jarvis:
Search for WebUpd8 team's PPA

---------- Post added at 12:36 AM ---------- Previous post was at 12:34 AM ----------

Please stop being smart and post ENTIRE logs!.Last 20 lines are nothing
[Android] martinusbe:
Looks like you are trying to build Slim

What did you init? mm6.0 is not updated, init staging/mm6.0
[Android] Droidcore:
[MENTION=6552280]MSF Jarvis[/MENTION] i already add 1>(tee stdout.log) 2>(tee stderr.log after mka but still blank
[Android] DutchMan_1990:
I'm sorry for the inconvenience, but could you please take a look at this one too http://pastebin.com/qjGwgGaR
[Android] MSF Jarvis:
Your terminal is blank?
[Android] Droidcore:
On stderr.log or stdout blank no text , not my terminal ,
[Android] MSF Jarvis:
I must've messed up. I'll go ask [MENTION=4869275]thewisenerd[/MENTION] about it, he's the one who taught it to me.

Meanwhile you can remove the brackets and then word tee but that'll make the terminal blank and only fill the files.
[Android] mobiusm:
the "error: input truncated" is still present. I compiled the kernel successfully on it's own but when trying to compile a rom it exits with this error. I tried to compile Resurrection Remix (which I have already compiled successfully in the past) and I tried to compile Omnirom and it gives me the same error everytime. Here is the most recent build try http://pastebin.com/yriUMAyB

I could really use some help :(
[Android] JonathanRAZ:
I need some help i am getting # In case value of packages is empty i have looked on google nothing appears for help

Did make clean and brunch its working now but with mka bacon it wasnt if it happens again will try again with make clean and mka bacon
[Android] DutchMan_1990:
Hello again!! Does anyone could point out what am I missing here??

http://pastebin.com/NDd2iWbM
[Android] Arvind7352:
'libminui' is built from the folder bootable/recovery/minui

Check if that folder is present --

If present, do a

mmm -B bootable/recovery/minui

Which will build only that module, but chances that it will ask for other dependencies will arise (likely)

Or

mka recoveryimage

This may solve things -- Try this first

Then continue with your build
[Android] DutchMan_1990:
Ok. when that error came forward then I have removed cyanogen_bootable_recovery project from the sync tree. Maybe that's the reason, now I have resynced the tree and build is running. Let's see what happens next.
[Android] Arvind7352:
mka bacon(or any other command) > >(tee stdout.log) 2> >(tee stderr.log >&2)

Leave spaces as in the command above

Thanks to Google :- http://stackoverflow.com/questions/692000/how-do-i-write-stderr-to-a-file-while-using-tee-with-a-pipe

Notify if it worked or not -- I might be wrong
[Android] akhilnarang:
Hardware/ril-caf

Else disable caf ril in BoardConfig

---------- Post added at 11:57 AM ---------- Previous post was at 11:56 AM ----------

Don't use JACK to compile it. Add this to your BoardConfig.mk

COMPILE_WITH_JACK := false

I am not 100% sure if the name is correct, so please cross check it at developer.android.com to confirm it.[/QUOTE]

The flag in ANDROID_COMPILE_WITH_JACK, and that error isn't related to jack :)
[Android] akhilnarang:
The flag in ANDROID_COMPILE_WITH_JACK, and that error isn't related to jack :)
[Android] sh A ne:
Any help please?
[Android] Arvind7352:
Try this

mmm -B frameworks/av/services/audiopolicy

Else

mka libaudiopolicymanager

Continue your build if successful
[Android] letmedanz:
Well, i went ahead & tried a few things relative to the general installation process and i was able to get everything up & running in opensuse.

Was able to get a succesfull build as well.

Will see if i can put together a small guide for it as there seems to be next to nothing for getting this going
[Android] mohittadhiyalcdn:
Little bit confuse with the POST 9 @rutvikrvr

I dont understand the POST 9 of [MENTION=4924398]rutvikrvr[/MENTION], Can you please explain it
[Android] RVR:
you have to tell me what you didnt understand ... in my opinion ,, i hv written it as simple as possible