yashsingh1/xdaforums huggingface dataset:
[Android] 33bca:
Yes, you can see it in my repo :confused:

Do you think it can be something different?
[Android] Jeik:
Yeah,that is odd... I have never encountered an issue like that...
[Android] Hashbang173:
What version of android are you planning to build?
[Android] hami497:
i will first try 4.4 kitkat

---------- Post added at 10:10 PM ---------- Previous post was at 10:07 PM ----------

i will first try 4.4 kitkat
[Android] asim.sidz:
Things seem to be okay till now.
[Android] efusi:
What about security?

Guide is fine.. However why everybody writting manuals based on Ubuntu - it works on all Linux distros anyway.. I did on centos 7 by following official documentation and was able to build my own custom AOSP rom without problems.. even in less steps.. Struggling to find correct way to Sign my ROM build (this is obviously required for security reasons as many people simple forgetting and just using pre-generated AOSP test keys - well known keys in public)...
[Android] :
TWRP guide???

[MENTION=5216756]jackeagle[/MENTION] Simply awesome work Sir... :good: :good: :good:

Can you please provide a similar simple walkthrough for n00bs on how to build TWRP?

I know there's a guide provided here http://xdaforums.com/showthread.php?t=1943625 but if you can please illustrate the steps as in this thread, it would be great... :o

Thanks Sir...
[Android] asim.sidz:
Your statement about the author writing Ubuntu based manuals is not wrong but it woudn't hurt to appreciate the work that [MENTION=5216756]jackeagle[/MENTION] has done. If you are done with your bragging about your superior skills of developing on any distro, then i'm looking forward to your custom-made manual for linux and/or all the distros. Offence intended.
[Android] seniout:
thanks

Great job!!
[Android] f0CUS_o:
I am looking to build an AOSP based lollipop rom for my n7105 (t0lte).

However, reading your guide - i seem to get stuck on the part where you get the device specific files.

Am i simply not looking close enough, or are there none available?

If they are available. Can someone please send me a direct link and a set of instructions.

Thanks for your time.
[Android] Epirex:
CM12 repo sync error

Hi, I've started to download the sources cm12 but I have this error, any solution?

Fetching projects: 97% (503/518) Fetching project CyanogenMod/android_packages_screensavers_WebView
Fetching project platform/external/droiddriver
Fetching project platform/external/apache-qp
Fetching projects: 99% (513/518) remote: Counting objects: 21, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 21 (delta 2), reused 1 (delta 0)
Unpacking objects: 100% (21/21), done.
De https://github.com/CyanogenMod/android_packages_apps_Settings
355b882..d4c0b5c cm-12.0 -> github/cm-12.0
Fetching projects: 100% (518/518), done.
[COLOR="Red"]Syncing work tree: 59% (306/518) error: in `sync`: [Errno 2] No such file or directory: u'/home/epirex/cm12/frameworks/base/.git/HEAD'
error: manifest missing or unreadable -- please run init[/COLOR]
epirex@MaxiCM-Team:~/cm12$
[Android] azher98:
hey

when i type :

sudo apt-get install git gnupg flex bison gperf build-essential \

zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \

libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \

libgl1-mesa-dev g++-multilib mingw32 tofrodos \

python-markdown libxml2-utils xsltproc zlib1g-dev:i386

i get this error

The following packages have unmet dependencies:

libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.7)

Recommends: libgl1-mesa-dri:i386 (>= 7.2)

E: Unable to correct problems, you have held broken packages.

can somebody help me ?

ps im using ubunt 12.04 lts
[Android] adomol:
I've googled this and can't really find a clear answer. Can anyone explain the difference between using mka and mka bacon? And also can mka be used instead of make when building any rom?

I don't know much about this error, except for the fact that I ran into the same thing when I tried out ubuntu 12.04 to build and it happened after I installed an nvidia driver package (the updates version). Are you using an nvida card?
[Android] Mr.R™:
bacon is the device, in this case the one plus one :)

I'm just being lazy right now as i'm using my phone for internet as my provider isn't installing my internet till xmas eve :/ but does anyone know how to successfully have both java 1.6 and 1.7 installed so i can build for both kitkat and lollipop? I'm sure it's possible just thought someone may provide an answer quicker than it would be for me to find the answer myself haha
[Android] bm19981217:
If you're running Ubuntu or something similar it should be no problem to install both versions. I have 1.6, 1.7 and 1.8 installed. You only have to edit the defaults file (don't remember what it's called) to change the version to use. That should be correct, please correct me if I'm wrong :)
[Android] adomol:
I figured out using the bacon option (not bacon the device) is similar to the otapackage option... just more efficient. Also, if you are ubuntu based you can set your default java like this...

sudo update-alternatives --config java

If you are Arch Linux based:

archlinux-java set <JAVA_ENV_NAME>

Look here for Arch examples.
[Android] Mr.R™:
Thanks for that, now i just need to figure out how to change javac to 1.7 as its still trying to use 1.6 for building :/

EDIT: Done that, but still says i'm trying to build with 1.6, i must be missing something
[Android] hhp_211:
sudo update-alternatives --config javac

or

I found this nice app that lets you see and change for all individual java/related items

Alternatives Configurator

https://apps.ubuntu.com/cat/applications/precise/galternatives/

.
[Android] Mr.R™:
I found the javac config but still states i'm using 1.6 somewhere :/

Both java and javac point to 1.7 and java -version says 1.7 as it should, but when i go to compile it says your version is 1.6, not figured out why yet :(
[Android] electrikjesus:
Make sure you have this in your .bashrc file

JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

Or your current java path.
[Android] Mr.R™:
Ahhh, i had set it in etc/environment, that seems to have got me a step closer to building, i now get a few minutes into it before it fails haha. I see no rule to make target pac logo 1080x1920.rle needed by logo.rle is the cause of the failiure, i'll be away from my computer for a few days now so it'll have to wait but it's progress at least :)
[Android] Hashbang173:
Know any fix for this?

target C: libcutils <= system/core/libcutils/load_file.c
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from system/core/libcutils/native_handle.c:23:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^

Let me know if you need anything else.
[Android] 33bca:
The strange thing is that it uses the 32bit toolchain instead of the 64bit one... shouldn't it use the aarch64 toolchain?
[Android] HASH:
really need help

Can anyone please help me:crying:
[Android] hdorius:
Resync and try again
[Android] HASH:
tried but no luck same error again
[Android] ABSathe:
You resynced whole source and compiled it again in 6 minutes ?? That's super PC you have !

(Ignore grammatical mistakes if any )
[Android] HASH:
Hmm quite a good pc yaar:p

i said i hav tried it before:cool:
[Android] ABSathe:
Okay .. I thought you compiled whole rom in 6 minutes again

Sorry for the misconception that I had
[Android] TimSchumi:
Did you do make clean?
[Android] HASH:
Yes i do make clean before each build
[Android] psbankar:
Latest tutorial for Nougat please!
[Android] Albe96:
+1 this would help much!
[Android] somadsul:
+2

sent from my Tencent OS G900H
[Android] somadsul:
Can any one knows solution for this
[Android] somadsul:
No One?
[Android] Startrek852:
Wow, impatient much? It's only been slightly more than 3 and a quarter hours since your original post, you need to wait at LEAST a day before asking again. Even then, people don't like it when you ask the same thing over and over again, and it makes them less likely to help you.
[Android] Sachin7843:
anyone know fix for this?

Checking build tools versions...
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/binary.mk:1220: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1220: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/sachin/candy/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/base_rules.mk:183: *** hardware/qcom/power: MODULE.TARGET.SHARED_LIBRARIES.power.msm8974 already defined by device/qcom/common/power.
build/core/ninja.mk:163: recipe for target '/home/sachin/candy/out/build-candy_onyx.ninja' failed
make: *** [/home/sachin/candy/out/build-candy_onyx.ninja] Error 1
[Android] Adromir:
I am trying to add some flashable zips to my rom, like some roms do it with superuser (copying it to a tmp folder, extracting it and running the updater-binary with run_program). If I didn't get something wrong, recent superuser doesn't have an updater-binary, but I a shell script, how can I adjust that to run one of the older update-binaries with an edify script?
[Android] spookcity138:
Why not just add SuperSU to the ROM build?
[Android] Adromir:
Because as chainfire states it is not as trivial as packing the zip file inside the rom zip. All roms I saw that uses chainfires root do it this way. But the superuser isn't my problem. For example, I need to flash a patch file for an app to work. This is provided as a flashable zip, which I want to include like the flashable superuser. But it uses the edify script and is not working like the superuser zip chainfire provides
[Android] spookcity138:
Ahh,gotcha. I've successfully added SuperSU to some ROM builds before without problems,but as you're question is about more than this I'm afraid I can't be of much help. Good luck through!
[Android] nicesoni_ash:
On 4gb ram build time waa about 5 and a half hour on my pc, I added 4 more and more on 8gb the build time is still the same. It's that supposed to be like that or what's wrong?

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

Compiled by myself.
[Android] NepoRood:
The biggest factor in building, in my limited experience, is the processor. I've used a few different machines to build with:

1) AMD Dual-Core C50 (@1.0Ghz)

2) Intel Core Duo (@2.3Ghz)

3) Intel Xeon Quad Core (@?, it was a build server shared by someone else, and I never got the specs, but it was stinking fast, lol)

4) Intel i7 Quad Core(3.8Ghz with Hype-Threading)

Using the following, and some rounding up, all with HDD (no SSD):

1) Has 4Gb ram, took 8 hours to build, if it even finished

2) Has 8Gb ram, took 6 hours to build

3) Had 16Gb ram, took 45 minutes to build (give or take)

4) Has 16Gb ram, takes 54 minutes to build (give or take) <--This is what I am using now

As you can see, the ram doubled in most cases, but, the processor was the key :good:

You could probably shave off some time by switching over to a SSD, but compare the cost to a new machine...

My 2 cents,

Nepo
[Android] nicesoni_ash:
So what do u suppose on my i3 with 8gb ram should give me how much the amount of time?

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

Compiled by myself.
[Android] AndDiSa:
Well 4-5 hours for an initial build is not so bad for your environment. If you do incremental builds the build time will reduce much.

BTW. On my i7 laptop with 8GB a clean build takes about 1.5 hours
[Android] NepoRood:
Honestly, I can't answer that. My post was based on my

limited

experience, I've only been "messing around" with android code for a few months.
[Android] Startrek852:
The build server you're talking about had an Intel Xeon E3-1231v3 clocked at 3.4 GHz with 4 cores but 8 threads. It also had 32GB of RAM, not 16. Also, the abbreviation you're using for gigabytes is wrong. Gb stands for Gigibit, which is an eighth of a gigabyte. GB stands for Gigabyte.
[Android] NepoRood:
OK, thanks
[Android] mistercheese:
Remove hardware/qcom/power
[Android] Frostyagent:
I am using HP Envy Notebook with I7 4th generation, 8GB of RAM and I tried almost all linux distros, but whenever i try to build the ROM, it gives me an error segmentation fault, relloc 42; something like this, before this i was using intel i5 and ROMs were compiling with no errors, anyone can help me?
[Android] Qiangong2:
Is there a way to build 7.0 without ninja? Even JACK was faster than ninja. It keeps regenerating at the beginning of each build.
[Android] Startrek852:
Yes. Add

export USE_NINJA=false

to your .bashrc.
[Android] somadsul:
Hi I am getting this now ...

I know this is Ram related but is there any solution to get working for me?

I am using

command right now.

I also attached details of my device
[Android] ParanoidNemo:
Have you at least 4gb of swap? Because I read memory 3.7gb and to build android you need at least 8 GB of ram.
[Android] spookcity138:
Yeah,I only have 4GB of physical memory, but 5GB of swap and I have no problems.
[Android] somadsul:
Then what should I do, How to get swipe memory? Can you please guide me.

sent from my Tencent OS G900H

---------- Post added at 06:57 AM ---------- Previous post was at 06:48 AM ----------

Sorry for noob quetion I will get it thanks for you suggestions

sent from my Tencent OS G900H
[Android] spookcity138:
Here's a link that should help.

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
[Android] 33bca:
AOSP Build error

Hey Guys, i have problems building AOSP-CAF for my device. It would be nice if someone can help me :crying:

I'm useing a prebuilt zImage in the folder "prebuilt", if this helps :rolleyes:

Here my device repo: https://github.com/33bca/android_device_xiaomi_gemini/tree/aosp-caf

here my build log: http://pastebin.com/DBcLN6U4
[Android] arpit_nnd:
Need help debugging builds for a new device.

Stuck on endless bootanimation.

Logcat: http://pastebin.com/xAg28kQ5

Source: https://github.com/arpitnnd/android_device_lenovo_x3_row/tree/staging/cm-13.0

Thanks in advance! :highfive:
[Android] tschmid:
I've a problem with an avc denied logentry. The message is surfaceflinger tries to lock/open/write a file on dev mmcblk14 (userdata) path /data/data/surfaceflinger/cache/(serialnumber).toc

Does anybody know how I can solve this? If I use audit2allow the propossed rule isnt allowed (neverallow write)

Maybe someone has knowledge how I could solve this.

Thanks in advance

Thomas Schmid

Gesendet von meinem Nexus 6P mit Tapatalk
[Android] MSF Jarvis:
So remove the neverallow no?
[Android] tschmid:
Hmm but the neverallow comes from external/sepolicy from cm-13 so how should I remove this? If I resync the repo the rule comes back? And what if I want my device official (future plan ?)?

Gesendet von meinem Nexus 6P mit Tapatalk
[Android] Startrek852:
Your device tree is trying to build a kernel from source and use a prebuilt kernel at the same time. Remove lines 55 to 59 of your BoardConfig.mk then run:

rm -rfv /home/fabian/buildenv-aosp/kernel/xiaomi/msm8996

Also, since you're building AOSP, you need to remove lines 116 to 121 of your BoardConfig.mk to prevent a future error.
[Android] MSF Jarvis:
AOSP never builds kernel inline, so I believe the flags are always ignored.

---------- Post added at 10:56 PM ---------- Previous post was at 10:54 PM ----------

The neverallow will give you the line number (atleast gave it to me in Nougat) so you can comment it out. And yeah if Steve Kondik accepts it then you can submit a patch into the CyanogenMod repo too ;)
[Android] Startrek852:
OK, thanks for telling me that :). He still needs to remove the kernel source directory though.
[Android] TimSchumi:
I'm building CM13 at the Moment and just want to ask, how to define ro.hardware, which is referenced in init.rc like this:

/import init.$(ro.hardware).rc

I want to avoid hardcoding it directly into the init.rc

Methods I have tried so far (none of them worked):

Adding TARGET_KERNEL_CMDLINE := androidboot.hardware=something to BoardConfig

Adding androidboot.hardware=something to the cmdline in the kernel defconfig

Adding ro.hardware=something through ADDITIONAL_DEFAULT_PROPERTIES in the device.mk

Device tree: http://www.github.com/SiniTurk/android_device_samsung_cs02/tree/cm-13.0

Kernel source: http://www.github.com/SiniTurk/android_kernel_samsung_cs02/tree/cm-13.0

Vendor tree: Does not exist yet
[Android] heisenberg33:
hi

I hope someone can help, i try to build a aosp nougat rom and i have following error

toybox_driver_intermediates/export_includes

mv /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libreboot_static_intermediates/export_includes.tmp /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libreboot_static_intermediates/export_includes ;

mv /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libminzip_intermediates/export_includes.tmp /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libminzip_intermediates/export_includes ;

Export includes file: bootable/recovery/Android.mk -- /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libfusesideload_intermediates/export_includes

make: *** No rule to make target `/home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/librecovery_ui_msm_intermediates/export_includes', needed by `/home/sam/te/out/target/product/oneplus3/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.

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

mv /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libtoybox_driver_intermediates/export_includes.tmp /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libtoybox_driver_intermediates/export_includes ;

mv /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libfusesideload_intermediates/export_includes.tmp /home/sam/te/out/target/product/oneplus3/obj/STATIC_LIBRARIES/libfusesideload_intermediates/export_includes ;

make: Leaving directory `/home/sam/te'

#### make failed to build some targets (02:17 (mm:ss)) ####

sam@Nougat:~/te$
[Android] Sachin7843:
I am getting lots of make errors for nougat :(

anyone know how to fix this?

ninja: error: '/home/sachin/slim/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/sachin/slim/out/target/common/obj/APPS/ConfigPanel_intermediates/with-local/classes.dex', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/sachin/slim'

#### make failed to build some targets (01:09 (mm:ss)) ####
[Android] Jeik:
Do you have a "common" folder in device/qcom/ ?
[Android] 33bca:
Hey Guys, I'm here again :D

This time I have an building error while building AOSPA for the Mi5, I use the CM-CAF Device tree and modified it, that it should work with AOSPA-CAF, but I'm faceing at least one problem, here is the one :(

http://pastebin.com/y94wLjws

It would be great if you guys can help me one more time ::fingers-crossed:
[Android] Arvind7352:
Add that definition in your system.prop

ro.hardware=<refer-your-device-for-this-value>

If I'm not wrong, this .prop file (In the Device tree) would be concatenated in the build.prop file, thus making use of these properties...
[Android] TimSchumi:
system.prop won't work because it's added to the build.prop, which is in /system partition. But the ro.hardware value is already needed when mounting the partitions, because else it won't find the fstab (or the init file where the fstab is loaded). So /system isn't mounted when the value is needed

But thanks for the answer
[Android] saintxseiya:
Hi, how did you fix that?
[Android] Jeik:
I had a similar error while building CM14,but I couldn't solve it,sorry...
[Android] Modder001:
Hey guys please help me out

I and my neighbour both build ROMs for our device

I use his PC as his PC is fast (16 gig ram /1 TB hard drive )

Now his PC has broken and I have only 64 bit PC but no VT-x(and yeah .. Only 2 Gigs or Ram .. However I have 1 tb USB hard drive )

I don't want to spend money on buying a new PC

So can anyone please tell me how can I build ROM on such PC ?

Please

Please help

Any help will be appreciated

Thanks and regards

PS- We always use compressed source and we work on one device only
[Android] somadsul:
Hi I am noob

My build is out but just wanted to ask that now I patch two files

now what should my commands in Terminal

again have to start with
[Android] NepoRood:
Yes, anytime you come back to your build system, you'll need to enter that before you start.
[Android] somadsul:
I need to clean build again if applying patches?

or

build/eventsetup
lunch
mka bacon

will add my patches automatically in old zip?
[Android] Arvind7352:
Delete the Folders device/oppo/common/configpanel and device/oppo/common/keyhandler

I may be wrong, but CMSDK isn't ready for getting built yet. Prebuilt as well as Source-Buildable (Not present in Manifest)

Applies for you too, [MENTION=4150512]The Marionette[/MENTION] .

To make finding easy.....

grep -r --include \*.mk 'LOCAL_MODULE := <Module_Name>'
[Android] MSF Jarvis:
Or running "ag -ia --make <string>" which uses a tool which is like...... 10 times faster than grep?
[Android] NepoRood:
Not necessarily. When building Bliss6 (CM13 based), if I make very many changes it will automatically force a clean build. If I only make a few changes, it usually just builds with my changes included YMMV.

Best way to know for sure what's going to work for you is give it a shot and do your own testing :good:
[Android] somadsul:
Hi

I am trying to compile cyanogenmod rom for Samsung Exynos G900H model

but stuck at following error

& audio_hw.c contents as follows

I have attached image that videodev2_exynos_media.h is present
[Android] 33bca:
Hey Guys, I'm getting this error while Building AICP, CM and PAC from Source with the following Device Source.

The Strange thing is, that it worked untill Yesterday, today i synced some new commits and the integrated kernel building. But none of this commits seems to have something to do with this error for me.

Error: http://pastebin.com/8TGMc9HU

Device Tree: https://github.com/33bca/android_device_xiaomi_gemini/tree/aicp-6.0

It would be nice if someone can tell me what I'm doing wrong...
[Android] sai milind:
trying to build cm-14 for galaxy grand duos, any help, stuck with this error

make: *** No rule to make target '/home/milind/cm14/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex', needed by '/home/milind/cm14/out/target/common/obj/APPS/Bluetooth_intermediates/classes.dex'. Stop.

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

target R.java/Manifest.java: org.cyanogenmod.platform-res (/home/milind/cm14/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/R.stamp)

warning: string 'android_preparing_apk' has no default translation.

warning: string 'android_preparing_apk_obscured' has no default translation.

warning: string 'android_upgrading_apk' has no default translation.

warning: string 'android_upgrading_complete' has no default translation.

warning: string 'android_upgrading_complete_details' has no default translation.

warning: string 'android_upgrading_fstrim' has no default translation.

warning: string 'android_upgrading_starting_apps' has no default translation.

make: Leaving directory '/home/milind/cm14'

#### make failed to build some targets (04:32 (mm:ss)) ####
[Android] MrCeez:
Noobie

Ive just installed ubuntu 13.10 on vbox need some help to install the java required for marshmallow and nougat rom creation please.

Im new to linux as well but if you can post the commands as well i would greatly appreciate it.

(wget https://launchpad.net/~webupd8team/...acle-java6-installer_6u45-0~webupd8~8_all.deb sudo dpkg -i oracle-java6-installer_6u45-0~webupd8~8_all.deb) did not work dependencies problems