yashsingh1/xdaforums huggingface dataset:
[Android] Startrek852:
You can't use 13.10, the minimum version you can use is 14.04.
[Android] MrCeez:
Thanks I was just following the guide. Thanks for the tip

How can I install the correct jdk required please. Thanks
[Android] Teblakuda4o4:
Hey guys, this guide looks great and I am planning on using it to build for my Blu Life One X. Just a quick question... How do I make device, kernel and vendor sources on github? I see this mentioned on all guides for building Roms but my device doesn't have one on github. So I will have to make one, as such how do I go about doing this?

Thanks
[Android] NepoRood:
Google can be your friend, if you let it: Go Here
[Android] Startrek852:
That guide won't work for him since he's using 14.04 not 16.04, plus you need OpenJDK not Oracle and that guide only shows how to install Oracle JDK. To install the JDK required for building Marshmallow, run

sudo add-apt-repository ppa:openjdk-r/ppa && sudo apt-get update && sudo apt-get install openjdk-8-jdk
[Android] NepoRood:
Shouldn't it be 7? I use JDK7 to build Marshmallow, not 8

PS: Point of the post was to get the member to use the Google...
[Android] Startrek852:
No, you need to use 8 for Marshmallow, you can use 7, but it's legacy. And 8 is absolutely required for Nougat. And if you wanted him to use Google, why didn't you just tell him to Google it instead of posting a link that had the completely wrong information?
[Android] NepoRood:
Because I'm "dumb" like that, other folks don't have a brain that works the way mine does, so I post stupid crap, thinking it's what I need to do to help. Sorry for any offense
[Android] DarkFrenzy:
i got this error after 6 hours while compiling cm14. how to fix this ?

"Communication error with Jack server (28). Try 'jack-diagnose'"
[Android] Startrek852:
It's OK. I'm sorry if what I said came off mean. :)
[Android] MrCeez:
Most helpful.

i have now managed to install jdk8, add and sync the repo.

Now I'm trying to find info to setup the device vendor etc. for my shamu.
[Android] sagar03:
Getting error for " repo init -u git://github.com/CyanogenMod/Android.git -b cm-11.0"

Please any one help!!...
[Android] sagar03:
Getting error while trying repo command ..can any one help please!???
[Android] nicesoni_ash:
Common courtesy is to wait 24 hours before repeating your question. Have patience.

Edit :

A quick google search returned this..

stackoverflow.com/questions/6234666/android-repo-init-failed

Sent from my "1+2" powered by Unofficial RR

Compiled by myself.
[Android] HASH:
need help

can please help me to solve this error please :crying:
[Android] ParanoidNemo:
Please instead of screenshot use hastebin to paste the code and give the link into your post..it's really more easy to read!
[Android] HASH:
Sorry ...

i will use pastbin next time(already closed terminal)

Can u help me with this error
[Android] nicesoni_ash:
Error will be in your device log file.

Sent from my "1+2" powered by Unofficial RR

Compiled by myself.
[Android] NepoRood:
Use "https" instead of "git", maybe?
[Android] MSF Jarvis:
As [MENTION=7237874]NepoRood[/MENTION] said, use https or the CORRECT git:// notation which is git@github.com:<organization-name>/<repository> . You need to set up your SSH keys beforehand if you want to use git@github.com, do not ask here, use Google to find out how.
[Android] ereneren564:
Hello everyone, I have been working on porting Paranoid Android for few days now and I have some issues during building mostly about SELinux. Right now I'm getting this error and I really don't know what I can do. Any help is appreciated!

IES/librilutils_static_intermediates/librilutils_static.a)
Symlink: out/target/product/clark/system/fonts/DroidSans-Bold.ttf -> out/target/product/clark/system/fonts/Roboto-Bold.ttf
Usage: insertkeys.py [options] CONFIG_FILE MAC_PERMISSIONS_FILE [MAC_PERMISSIONS_FILE...]
This tool allows one to configure an automatic inclusion
of signing keys into the mac_permision.xml file(s) from the
pem files. If mulitple mac_permision.xml files are included
then they are unioned to produce a final version.

insertkeys.py: error: Must specify a config file (keys.conf) AND mac_permissions.xml file(s)!
Symlink: out/target/product/clark/system/fonts/DroidSans.ttf -> out/target/product/clark/system/fonts/Roboto-Regular.ttf
external/sepolicy/Android.mk:316: recipe for target 'out/target/product/clark/obj/ETC/mac_permissions.xml_intermediates/mac_permissions.xml' failed
make: *** [out/target/product/clark/obj/ETC/mac_permissions.xml_intermediates/mac_permissions.xml] Error 2
[Android] SlimShady's:
Is anyone having issues with HALs not compiled in CM14? Mine are totally not compiled, only default libs. I'm on CM14 branch and my device trees are https://www.github.com/Nougat-w7
[Android] DarkFrenzy:
Have u successfully build cm14 with your 4gb ram ?
[Android] spookcity138:
Haven't successfully built CM14,but not because of my lack of RAM. I needed to adjust some jack related stuff though...

home/.jack

-SERVER_NB_COMPILE=2

and

-JACK_VM_COMMAND=${JACK_VM_COMMAND:=java -Xmx6144m}

home/.jack-server/config.properties

-jack.server.max-services=2

With those changes I've had no RAM related issues.
[Android] DarkFrenzy:
Have u ever got this error "Communication error with jack server (28)" ?
[Android] spookcity138:
Not that I recall. Only thing off the top of my head I can think of is try and manually start it and see what happens

"jack-admin start-server"

Otherwise I'd just double check that all of the server settings in .jacks-settings are correct.
[Android] OCmylife:
Does anyone know how to fix this error?

http://pastebin.com/gBKz3uWX

If I copy the file from my compiled OmniRom I don`t have this error, but I wanted to fix this, as I have a major bug with Slim where I have to insert a non-existent password to start Android
[Android] smart-t78:
my build breaks at 59% because of this error. building aosp nougat for my device.
[Android] AndDiSa:
Most likely too few memory available for jack ...
[Android] :
Hello! I'm compiling CM13 for Grand Neo Plus, but I get an error:

frameworks/av/media/libstagefright/ACodec.cpp:59:10: fatal error: 'sec_format.h' file not found

How to fix it? Thanks in advance!
[Android] somadsul:
Sync repo again
[Android] DarkFrenzy:
did u got a fix ? i disabled ninja and was able to finish the build but it was missing many important apps like framework-res systemui and setting.apk,

build/core/jack-defaults.args --versbose
[Android] smart-t78:
no fix for now.

running with 4gb ram, 15gb swap, 8gb java heap size.

one thing i know, building N with 4gb ram isnt funny:)
[Android] spookcity138:
Yeah,4GB RAM is no fun building N for sure. The jack settings I posted here a few pages back fixed the out of memory errors for me however.

Haven't tried to build in a bit though.
[Android] adityaupreti:
you guys need more ram i also got that same error than i upgraded my ram to 14gb now everything fine
[Android] spookcity138:
Wish it was as simple as just getting more RAM for me. The laptop I build on is fairly old and only supports 4gb,so I'd have to just buy a new computer. Which I obviously want,but things cost $$ that I ain't got right now.
[Android] NepoRood:
Look into "refurbished", 1/2 the cost or less, and you're still getting a good machine. I'm talking desktops though, however, you can use your laptop to build on your desktop :good:

I got an HP Elite for $450: Intel i7, 2Tb HDD, and 16Gb ram (upgrade-able to 32Gb). It's sitting in a corner without a monitor and I use my crap top to access it...
[Android] spookcity138:
Wow,that's a great deal! I will look into refurbished. Thanks for the tip!
[Android] jneto3000:
I don't think this problem with jack server is a RAM problem, you see, i'm compiling on a VM with 28 GB RAM and had this problem. I know people who suceed to compile Nougat with only 4 GB RAM.
[Android] AndDiSa:
It's a problem that you need to assign about 4gb heap space to jack otherwise the compilation fails. You can do that on a 4GB machine, too, but you need to have at least 4GB swap space enabled ... and compiling with swap is no fun.
[Android] smart-t78:
so true:)
[Android] heisenberg33:
someone know something about this ? i cant start building

build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/oneplus/oneplus3/tesla.mk]]: "vendor/qcom/binaries/msm8996/graphics/graphics-vendor.mk" does not exist. Stop.
[Android] ABSathe:
For those having RAM problems

Try this

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"

out/host/linux-x86/bin/jack-admin kill-server

out/host/linux-x86/bin/jack-admin start-server

And restart the build

This might help
[Android] Startrek852:
What ROM are you building?
[Android] savsir:
http://pastebin.com/RMJKdS1w

Please help
[Android] arpit_nnd:
Well, I have been trying to boot CM13 on a new device (Lenovo Vibe X3; x3_row).

The builds are successful but upon booting the device stays on bootanimation endlessly.

Here's the logcat: http://pastebin.com/EGKTBUvW

and the dmesg: http://pastebin.com/VPcE8R97

The lines keep repeating where the logs are truncated at.

This is my device tree: https://github.com/arpitnnd/android_device_lenovo_x3_row/tree/staging/cm-13.0

and here's the kernel(mostly stock Lenovo sources): https://github.com/arpitnnd/android_kernel_lenovo_msm8992/tree/staging/cm-13.0

I am really requesting someone to please help me out with this...
[Android] Teblakuda4o4:
Hey my device (Blu life one X L0070UU) doesn't have any device tree or vendor tree on github. I did the kernel source tree myself.

How do I make those trees? Do I have to modify someone else's tree from a similar device or is there an application or command I can run to do this?

Thanks
[Android] NepoRood:
This:
[Android] jneto3000:
Hi guys, trying to build AOKP MM for LG G2 D802...

How can I revert this commit?

https://github.com/CyanogenMod/andr...mmit/6abe369faa49d1e219d2c0456428be9d73d8442c

This is causing ThemesProvider_intermediates/with-local/classes.dex] Error 41
[Android] Startrek852:
I don't think that you should revert that commit, but if you upload the full error to hastebin.com then post the link here someone might be able to help you.
[Android] jneto3000:
Full log here

It keeps returning this:

ERROR: /home/jneto/AOKP6/packages/providers/ThemesProvider/src/org/cyanogenmod/themes/provider/ThemesOpenHelper.java:687: ThemeMixEntryColumns cannot be resolved to a variable

.

.

.

make: *** [/home/jneto/AOKP6/out/target/common/obj/APPS/ThemesProvider_intermediates/with-local/classes.dex] Error 41

make: *** Waiting for unfinished jobs....
[Android] NepoRood:
I'm getting same error building Bliss, which I've built a hundred times. It's something that'll have to be fixed by CM devs and they will fix it, just give them some time.
[Android] MSF Jarvis:
Lemme have a look at this, bored AF.

P.S. Shouldn't you be asleep right now?

---------- Post added at 08:50 AM ---------- Previous post was at 08:49 AM ----------

cd packages/apps/ThemesProvider

git revert --no-edit 6abe369faa49d1e219d2c0456428be9d73d8442

cd ../../../
[Android] NepoRood:
I had to go to work for a few hours, plus, I usually get up early when I don't have to work. Habit, I been doing this for 10 years, lol

One can also rm -rf theme provider, at one's own risk, lol. I did that and make completed, but I got a lot of weird messages from build. Also, I didn't flash it :silly:
[Android] MSF Jarvis:
If you had it would have bootlooped or FC'd a lot lol
[Android] NepoRood:
I figured as much, told myself: Self, if you flash that you deserve what you get

I'll give the CM devs some time to fix the theme thingy, or I may just go ahead and revert. However, I'm waiting on some other fixes as well, and latest security patch (last is on Team Bliss), so it's not really an issue. My phone is running well on the build I made Wednesday :good:
[Android] savsir:
Cm14 d855 compile error. How can I solve?
[Android] DarkFrenzy:
i think you have to wait until bliss team or AOKP merge this commit https://github.com/CyanogenMod/cm_platform_sdk/commit/c4f27d5b812df3d66c21b4d7ba1d1d216cc0c593
[Android] jneto3000:
How can I revert this commit?

https://github.com/CyanogenMod/andr...mmit/6abe369faa49d1e219d2c0456428be9d73d8442c

This is causing:

ERROR:

... ThemeMixEntryColumns cannot be resolved to a variable

... ThemesProvider_intermediates/with-local/classes.dex] Error 41

Thanks! It did the trick. ;)
[Android] heisenberg33:
Tesla Nougat this error solved but i have a new one :eek:

CHK include/config/kernel.release

GEN ./Makefile

CHK include/generated/uapi/linux/version.h

/home/sam/te/kernel/oneplus/msm8996/kernel/Makefile:133: *** No X.509 certificates found ***

Using /home/sam/te/kernel/oneplus/msm8996 as source for kernel

CHK include/generated/utsrelease.h

CALL /home/sam/te/kernel/oneplus/msm8996/scripts/checksyscalls.sh

/home/sam/te/kernel/oneplus/msm8996/kernel/Makefile:133: *** No X.509 certificates found ***

Building modules, stage 2.

MODPOST 0 modules

make[1]: Leaving directory `/home/sam/te/out/target/product/oneplus3/obj/KERNEL_OBJ'

make: Leaving directory `/home/sam/te/kernel/oneplus/msm8996'

make: Entering directory `/home/sam/te/kernel/oneplus/msm8996'

make[1]: Entering directory `/home/sam/te/out/target/product/oneplus3/obj/KERNEL_OBJ'

DEPMOD 3.18.40-Intoxicated_op3-g7f8c7e6

make[1]: Leaving directory `/home/sam/te/out/target/product/oneplus3/obj/KERNEL_OBJ'

make: Leaving directory `/home/sam/te/kernel/oneplus/msm8996'

[ 3% 462/15236] build /home/sam/te/ou...k-res_intermediates/package-export.apk

target Export Resources: framework-res (/home/sam/te/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)

warning: string 'gsm_alphabet_default_charset' has no default translation.

warning: string 'wfcSpnFormat' has no default translation.

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

make: Leaving directory `/home/te'

#### make failed to build some targets (01:43 (mm:ss)) ####
[Android] MSF Jarvis:
Those are SELinux denials, wouldn't matter if your build is permissive but if it's enforcing, you might want to look at this https://source.android.com/security/selinux/validate.html
[Android] DevUt:
also add androidboot.hardware=(your device codename)
[Android] HASH:
During build i removed sepolicy configs from BroadConfig.mk and build kernel with selinux mode set to permissive.

I made a change like this https://github.com/ngoquang2708/and...mmit/eb20db50bf0648edf0466ea65c599cc38069bddc

I am a newbie so is there anything i hav done wrong

Thanks
[Android] jneto3000:
Guys, if I want to go from r66 to r72, do I need to go one by one (68, 70, 72) or can I jump directly to r72? Thanks.
[Android] spookcity138:
No,just sync up and build. Assuming I'm understanding what you mean.
[Android] MSF Jarvis:
Why did you need to remove SELinux configs? And they are rules actually, configs is the wrong term. BoardConfig simply needs to define the folder where the rules ( in .te format) have been stored. If there is a neverallow violation, the build will halt and you'll be informed about the issue. Just remove the conflicting line from the correct .te file and proceed with the build. Also, your dmesg logs will tell you with each "avc : denied" message if permissive= 0 or 1 so you can make it out whether you were able to toggle SELinux into permissive or not.

Hope this helps without being too confusing :)
[Android] HASH:
Thanks i will try that

should add this line androidboot.hardware=(your device codename or sc7730 or ???)

Edit: tried removing conflicting line but it is causing syntax error
[Android] Trafalgar Square:
Building AICP N7.0 for OnePlus 3:

build/core/product_config.mk:250: *** _nic.PRODUCTS.[[vendor/aicp/products/oneplus3.mk]]: "[COLOR=Red][B]vendor/qcom/binaries/msm8996/graphics/graphics-vendor.mk" does not exist. Stop. [/B][/COLOR]
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[vendor/aicp/products/oneplus3.mk]]: "[B][COLOR=Red]vendor/qcom/binaries/msm8996/graphics/graphics-vendor.mk" does not exist. Stop.[/COLOR][/B]

I don't know, what I'm missing. I found this reporsitory, but there is no graphics directory within msm8996.

I'm syncing the following projects:

https://raw.githubusercontent.com/AICP/device_oneplus_oneplus3/n7.0/aicp.dependencies
[Android] MSF Jarvis:
install silversearcher-ag on your distro, then use 'ag -ia --make <search-term>' to find the appropriate makefile call that is causing the issue. Make sure to escape all backslashes in the search term. In your case it would be "vendor/qcom/binaries/msm8996/graphics/graphics-vendor.mk", to be executed from the base of your build tree.
[Android] p32929:
I've been trying to port Resurrection Remix but while building the ROM I got this "Internal compiler error"

terminal logs are given below:

java.lang.AssertionError

at com.android.sched.scheduler.MultiWorkersScheduleInstance.process(MultiWorkersScheduleInstance.java:490)

at com.android.jack.Jack.run(Jack.java:597)

at com.android.jack.Jack.checkAndRun(Jack.java:367)

at com.android.jack.CommandLine.runJack(CommandLine.java:66)

at com.android.jack.server.ServerTaskInsideVm.run(ServerTaskInsideVm.java:94)

at com.android.jack.server.JackSimpleServer$JackRun.handle(JackSimpleServer.java:427)

at com.android.jack.server.JackSimpleServer$JackRouter.handle(JackSimpleServer.java:311)

at org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)

at org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Internal compiler error (version 1.1-mr2 'Brest' (175100 000a2f91edbe638090dc577801ba49592229fd8b)).

Warning: This may have produced partial or corrupted output.

make: *** [/home/p32929/RR/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41

make: Leaving directory `/home/p32929/RR'

#### make failed to build some targets (03:32:05 (hh:mm:ss)) ####

A screenshot is also given below:

any solution please?

Thanks in advance...
[Android] hfl12:
There are so many broken dependencies.

The ones that are obsoleted I can find newer ones, but ones that are not existed anymore, I am not sure what to do ?
[Android] HASH:
can anyone please help me to solve this error

Install: /home/hashtag/android/aicp/out/target/product/core33g/system/lib/libdl.so
/home/hashtag/android/aicp/out/host/linux-x86/bin/checkseapp -p /home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/sepolicy_intermediates/sepolicy -o /home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/seapp_contexts_intermediates/seapp_contexts /home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/seapp_contexts_intermediates/seapp_contexts.tmp
Error: Could not find selinux type "theme_data_file" on line: 87 in file: /home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/seapp_contexts_intermediates/seapp_contexts
Error: Could not validate
Error: reading /home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/seapp_contexts_intermediates/seapp_contexts.tmp, line 87, name type, value theme_data_file
make: *** [/home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/seapp_contexts_intermediates/seapp_contexts] Error 1
make: *** Deleting file `/home/hashtag/android/aicp/out/target/product/core33g/obj/ETC/seapp_contexts_intermediates/seapp_contexts'
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/hashtag/android/aicp'

#### make failed to build some targets in 01h:04m:45s

thanks
[Android] smart-t78:
what are your pc specs??

it looks like that you have a ram problem

maybe you can try to set the java heap size to 6gb
[Android] Vijay chandra:
Bro if it is lenovo vibe x3 lite then just port and flash ROM of lenovo k4 note...it already has cm13 .. Which other ROMs did u compile
[Android] arpit_nnd:
It isn't Lite variant.
[Android] p32929:
Where is the BoardConfig.mk file? Can you please tell me the location of this file??

Thanks in advance...

---------- Post added at 09:41 AM ---------- Previous post was at 09:14 AM ----------

I'm trying to port Resurrection Remix for my smultron & it gives "Cannot launch jack server". any solution??
[Android] HASH:
building aicp mm

the build is stuck at bootloop

can anyone please

here is the logcat http://pastebin.com/KeBh5RL7
[Android] hfl12:
I am not an expert in Android development, but the error is telling you that the class definitions are not there.

Did you put all the packages in the right place ? Check to make sure the class paths all are correct and have valid permission to read.
[Android] HASH:
I hav compiled aicp mm .

But the rom didnt bootup,its stuck at bootlogo.

Then i tried replacing kernel in aicp zip with cm13, the build passes the bootlogo and now it is bootloop.

The logcat is in my previous post

Any help please...

Thanks
[Android] Pacer_456:
Having a go at compiling DU N for osprey, but ran into this error:

system/vold/cryptfs.c:74:10: fatal error: 'cryptfs_hw.h' file not found

I am really confused on what to do, can anyone help please?
[Android] spookcity138:
You need to get the "cryptfs_hw.h" file and place it in the correct location. I'm sure a google search will help you locate the file.
[Android] Pacer_456:
Done that, copied it from device/qcom/common/cryptfs_hw to system/vold and got this error:

system/vold/cryptfs.c:3365:108: error: too few arguments to function call, expected 3, have 2

int rc = update_hw_device_encryption_key("default_password", (char*) crypt_ftr.crypto_type_name);

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

system/vold/cryptfs_hw.h:38:1: note: 'update_hw_device_encryption_key' declared here

int update_hw_device_encryption_key(const char*, const char*, const char*);

^

system/vold/cryptfs.c:3370:95: error: too few arguments to function call, expected 3, have 2

int rc = update_hw_device_encryption_key(newpw, (char*) crypt_ftr.crypto_type_name);

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

system/vold/cryptfs_hw.h:38:1: note: 'update_hw_device_encryption_key' declared here

int update_hw_device_encryption_key(const char*, const char*, const char*);

^

2 errors generated.
[Android] TimSchumi:
As you manually added the cryptfs_hw.h file, It may be a wrong version or not a full kernel header, but some header which only provides extra information. Try searching for another version of the file.
[Android] Pacer_456:
I can't find any file that is different to the one I have

Do you know where the correct file may be? Checked DirtyUnicorns and CyanogenMods repo and they both have the same file as I do.
[Android] TimSchumi:
You could try to use the cryptfs_hw.h file (If it differs) from here: https://android.googlesource.com/device/moto/shamu/+/master/cryptfs_hw

As far as I can see, cryptfs_hw.h should be included by moving it into the include path (as seen by the <> Brackets). This may also resolve some errors, as multiple modules may need to depend on the same header file.

A good solution for this would be to create a "include" dir in your device tree, and move the file from system/vold into that folder. Then you put a flag into your BoardConfig, which adds this folder to the include path.

I'll look for the flag and edit my post with the correct flag to use
[Android] Pacer_456:
Thanks a bunch, but I am slightly unclear on what to do, do I make a folder in device/motorola/osprey, and how can I add the flag?
[Android] TimSchumi:
If you called the folder "include" and you put the cryptfs_hw.h directly into it (So the file's path is device/motorola/osprey/include/cryptfs_hw.h), then you need to add the following flag to your BoardConfig.mk:

TARGET_SPECIFIC_HEADER_PATH := device/motorola/osprey/include

Don't forget to remove the old cryptfs_hw.h file from system/vold!
[Android] Pacer_456:
Thanks, tried that and got the same error I got at first.

Added it to BoardConfig.mk, didn't work, tried with BoardConfigCommon.mk, that also did not work.
[Android] TimSchumi:
Well, then I have no ideas either
[Android] ratvim:
I have compiled cm14, only issue is volte is not working. Is there anyway to enable it. Volte provision flag is on. What do I miss?