yashsingh1/xdaforums huggingface dataset:
[Android] Enddo:
Has anyone been able to repo sync CM12 tonight? I've been trying for the past 4 hours or so and I keep getting fetch errors. I've even tried the 'repo sync -f' command and it still gives me a generic 'error: Exited sync due to fetch errors' error and quits

I'm noticing a lot of "Failed to connect to android.googlesource.com port 443: No route to host" errors while it's trying to sync

edit - This is the error I just got right now before it immediately failed

"error: in `sync -f`: revision refs/tags/android-5.0.2_r1 in platform/developers/build not found"
[Android] RukusX7:
I just synced around an hour ago. No problem.
[Android] Enddo:
Thanks for the feedback. Oddly enough, I think it had something to do with how I connect to the internet. I generally connect to a router which connects to a comcast router

I've been doing updates to nightly builds for one device just fine on this setup though. However, maybe since I'm trying to do the first major repo sync for a new build, that it has something to do with it. I dunno. I just connected directly to the comcast modem though and so far my repo sync has gotten further than it has all night. So it seems like that was causing the issue somehow :highfive:
[Android] Enddo:
Ok, so I've been trying to build a custom N5 kernel(franco) into this CM12. I thought I fixed all of the issues but now I'm coming across this error. . .

target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....

During the build process. Does anyone know what could be causing this and/or how I could fix it?
[Android] desalesouche:
check here: https://github.com/SlimRoms/hardware_qcom_display/commit/d77d6faa055583c918418bcf99b3b79a7e1f4de3 you might have to revert commit or adapt device tree /kernel
[Android] Enddo:
Thank you for pointing that out. I will look into it later.

As of right now, I have gone back to just compiling the entire stock build since it's so much easier and I'm still learning.

I do have another question, if anyone would be able to help, what would be the best way to go about compiling two CM12 for two different devices? Would it be best to create a new base folder and do an entirely new repo sync for the LG G3, pulling down the 10+ GB of data again, or is there a way for me to utilize my original directory that I'm using for the Nexus 5?

I see in the tips and tricks section on the first page, they talk about using my original CM12 directory to create a new one for a different type of custom ROM. Would it be similar to something like that?
[Android] Jmhark:
may pang samsung s5 clone ba kayo pang root

ayun sa nakita ko madali lang yan source parang pang online na cheat lang eik pero hnd ko kaya mag root dahil s5 clone ung cp ko paanu po ba
[Android] desalesouche:
english please... :)
[Android] canatasever:
Woww, amazing guide. My little brother has been looking for such a guide, thank you very much :)
[Android] Deep Nox:
Thanks for the wonderful guide. I wrote a local manifest, but I get this error-- cannot fetch k2w1/android/...samsung_n5100. This is for all three, the kernel, vendor device.

I am trying to build a cm 12 for my samsung galaxy note 8 n5100, the international version.
[Android] GalaticStryder:
O don't know what is going on my PC, the target otapackge get 50MB less than the original one and won't boot. Straight from sources or modded, nothing is working.
[Android] Røbin:
Hey I've installed 8Gb RAM alongside 4GB RAM total 12 GB and I didn't touch or edit jack but It only took me 1 hour 38 min. to complete the build process.I'm glade I didn't face any trouble at all like other guys.And many thanks for the guide. :)
[Android] excelly2k1:
[MENTION=7059381]bablu048[/MENTION]

Pl share me the solution if you succeeded.

Thanks in advance.
[Android] bablu048:
no didn't succeed, but i know i need some CAF commits. There is something wrong with the roomservice i am using, i am not facing this error on CM/LOS. only on AOSP.
[Android] Raja_12:
http://cloud.tapatalk.com/s/587e239501598/Screenshot from 2017-01-17 19:03:03.png?

http://cloud.tapatalk.com/s/587e23b36ced3/Screenshot from 2017-01-17 19:06:33.png?

Wat went wrong?
[Android] qoejohn:
try make new folder named "local_manifests" on /home/dragon/sayan/.repo/

Then , rename your local_manifest.xml to roomservice.xml and put on /home/dragon/sayan/.repo/local_manifests/

then repo sync again, and try build
[Android] Raja_12:
Thnx before that I missed a big step which i figured out now. Can u tel me that if my device is officially supported by a source, do I hav to make local manifest?
[Android] qoejohn:
by using it, you can add the project you want or remove projects that are not needed, so why not

maybe this could be a reference
[Android] DJKristy:
I looked up at my vendor tree in github and saw that it is cm branch.

I am trying to build a RR ROM which haven't been yet developed for my device. I think I'm the first one building RR ROM for my device.

So can I use this cm branch vendor tree to build RR rom
[Android] NepoRood:
Yes, RR is CM based, may need to compare your device to some on the RR github to make some small changes.
[Android] neonkat:
vendor files can be used with any rom,its not cm or aosp specific.
[Android] thafath:
First thank you for the great thread first time here, I would love I have saw it when trying to build cm a couple of months ago.

I was able to build CM 13.0 and now Lineage 13.0 a couple of times for LG G3 (d852) and I was wondering if is it possible to merge/apply the monthly security updates.

I see in this old commit

https://github.com/CyanogenMod/android/commit/72acd18d76e1c4cb3da46c2dec5c435a20e76da7

and I changed the current tag from android-6.0.1_r74 to android-6.0.1_r77 in android/default.xml

- revision="refs/tags/android-6.0.1_r74" />

+ revision="refs/tags/android-6.0.1_r77" />

and rebuild but that was not sufficent, I tried to change the BUILD_ID in build/core/build_id.mk from "export BUILD_ID=MOB31K" to "export BUILD_ID=M4B30Z" that did not help too.

Got those ids from this page

https://source.android.com/source/build-numbers.html

Any hint please on how to apply monthly security updates on my current build.

Thank you.
[Android] lightwars:
You just need to "repo sync" again to get the latest changes.

Be sure to do a fresh build afterwards.
[Android] thafath:
Thank you for your reply.

Sure I did repo sync and did a build fresh (mka clean)

But the date of security updates is always December 2016.

Is this a correct check? I mean is it possible patches are applied but only that date/string was not changed?

Thanks
[Android] NepoRood:
Sync command?

Most of the time, I use:

repo sync -j24 -c -f --force-sync --no-clone-bundle --no-tags

you can do "repo sync --help" to get more information

EDIT:

Also, did you check the remote repo to ensure these changes have even been done?
[Android] TimSchumi:
Afaik, the security updates have never been merged into the repositories of cm-13.0
[Android] thafath:
Thank you for your response. I will try that sync command and see. I was always using "repo sync"

yes those security updates are not merged, and this was the beginning question. How to get them in my build. If they was merged in cm 13.0 or for now LineageOs, a simple fetch will be sufficient.

I will report back after the new sync and build.

Thank you
[Android] thafath:
I started fresh and used this command to sync

repo sync -j24 -c -f --force-sync --no-clone-bundle --no-tags

But did not help (I think that's expected) we need to merge something to get it to apply monthly security updates.

So back to the first question "How to apply monthly security patches" on my local build when those patches are not merged in the remote branch (in this case Lineage OS 13.0).

Thank you, I continue searching.
[Android] mistercheese:
After you synced the r77 tag in manifest You have to merge the r77 tag to several cm projects.

For example

Cd frameworks/base

Git pull https://android.googlesource.com/platform/frameworks/base android-6.0.1_r77

If you dont have conflicts you are lucky.

Also do this with build and frameworks/AV and several others
[Android] thafath:
Excellent, that's what I was missing.

I will try that. Any way to get all projects affected and those need to be merged?

Thank you.
[Android] gtpitch:
This is kind of a generic question - how can I tell what causes a lib to be looked for? I have an AOSP source that I'm trying to bring up a build from 7.0.0 to 7.1.1 using some CAF. It looks like some libraries (like libbootloader_message_writer to libbootloader_message) have been changed so I know I just need to adjust the mk files to point to the correct location. How can I tell what makefile a lib exists in?
[Android] Zejsters:
libv8 Error i guess :confused:

Can anyone help me with this: http://pastebin.com/YPq9TSVs

Im trying to compile NitrogenOS for Oneplus 2.
[Android] nitin.chobhe:
Looks like something related to toolchains. Are you using any TCs?

Nitin
[Android] zjq985062714:
i build cm11 ROM successfully,and i would like to delete some APP,such as Voice+,system updater.but if i use remove project in local_manifest.xml,the initial when system first boot wil disappear and if i flash Gapps,setting wizard will fc.how can i delete these APP with everything is OK?
[Android] Zejsters:
No. All stock. What else can be the problem?
[Android] adizz4:
I'm trying to build aosip for kenzo and im getting this error. Someone please tell me how to fix.
[Android] nicesoni_ash:
Stop building them thru ur device.mk and if an app is needed at boot or called by other app, remove that reference from system calls.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] MSF Jarvis:
Or just uninstall them by hand, since the other option is too intimidating and invasive
[Android] nicesoni_ash:
Absolutely, I do just the same.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] zjq985062714:
i would like to build a custom ROM,because i use it as a debug mobile.to uninstall by hand may cause problems too.i check it and find it is cmac****.apk that cause the problem and i need delete the reference.
[Android] Infinity:
https://hastebin.com/ifudaqirej.coffeescript
[Android] MSF Jarvis:
LMAO Cosmic-OS :silly:

Getting to your issue, it's definitely a derped kernel source and since you posted here I'm assuming you're not particularly good with kernels so best way out would be to switch to another one like CM's or rolling back to an older revision of the source if you can find the offending commit.

P.S. Ignore my laughs, I'm on Team Cosmic :p
[Android] Infinity:
Changing kernel source
[Android] aoleary:
Hi.

I'm trying to build for DU11, but I get these build errors quite early in the process:

find: ‘/home/antoin/DU/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/base_rules.mk:183: *** packages/apps/DU-Updater/app/src/main: MODULE.TARGET.APPS.DU-Updater already defined by DU-Scripts/themes-resources/packages/apps/DU-Updater/app/src/main.
make: *** [/home/antoin/DU/out/build-du_h815.ninja] Error 1

How do I resolve that error?

TIA
[Android] MSF Jarvis:
I just checked the DU manifest, they don't track this repo. `rm -rf DU-Scripts` should be enough to fix it
[Android] aoleary:
Wow that worked!!

Its building now.

Can you explain to me why?
[Android] MSF Jarvis:
Within the build system there is a rule to make sure no two different modules have the same name. Apparently DU's scripts to generate theme resources have some sort of bug or it's probably a derp on your side, but the Android.mk from DU-Updater got replicated. That's what triggered the error.
[Android] nicesoni_ash:
I am getting this error

vendor/oneplus/oneplus3: MODULE.TARGET.SHARED_LIBRARIES.libril already defined by hardware/ril-caf/libril.

while buidling. I understand that I started to get this after I changed my vendor repo but how to fix this since the new repo better deal with messed up RIL stuff for unify devices.

Edit:

Ignore please.
[Android] hyperterminal:
Is there anything which should be known, I'm a noob can I learn this or is there anything I have to learn before this? [MENTION=5216756]jackeagle[/MENTION]
[Android] Akhilesh S V:
guys help when i try to compile LUNCH

build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/lge/mako/lineage.mk]]: "vendor/cm/config/common_mini.mk" does not exist. Stop.

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

Repository for lineage not found in the LineageOS 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:243: *** _nic.PRODUCTS.[[device/lge/mako/lineage.mk]]: "vendor/cm/config/common_mini.mk" does not exist. Stop.
[Android] NepoRood:
re-sync your repo, you're missing a file:

"vendor/cm/config/common_mini.mk" does not exist.
[Android] Kapiljhajhria:
trying to build xenonHD for OP2

getting this error

http://pastebin.com/4Xpw5SF1

any ideas on how to fix this?
[Android] arjunan47:
compilation error

bro i get this error when i tried to compile citrus-caf

build/core/base_rules.mk:183: *** device/qcom/common/rootdir: MODULE.TARGET.ETC.init.qcom.rc already defined by device/cyanogen/msm8916-common/rootdir.

make: *** [/home/arjunan/citrus/out/build-citrus_tomato.ninja] Error 1

make: Leaving directory `/home/arjunan/citrus

what should i do next

plz tell me

---------- Post added at 09:54 AM ---------- Previous post was at 09:51 AM ----------

bro u need to clone cm vendor from cm github. i think it'll work. other wise just delete that inherit line from lineage.mk make file.no need to resync repo

hit thanks if i helped you​
[Android] NepoRood:
You have duplicate files, also my qcom common device doesn't have a "rootdir", so I'd delete the init from that one. Clone/sync, same difference, more or less...
[Android] arjunan47:
Bro I didn't get that one.could u please explain for me.I am a noob in this area
[Android] MSF Jarvis:
rm -rf device/qcom/common/rootdir
[Android] techdude18:
how bout kernel? Is there any guide around for kernel building for that particular rom?(cm,lineage,rr etc)

I mean stock kernel can't run on cm definitely...

sorry for off topic but need help here
[Android] Arvind7352:
A Guide is available to build a Kernel in general

https://xdaforums.com/android/software/ultimate-guide-compile-android-kernel-t2871276

It explains all Kernel related stuff, which involves Finding the Source, Downloading it, Making it ready for Building, Understanding some Terminologies on Kernel building. Take a read
[Android] falconscrest123:
Out of memory error

so ive been trying to build resurrection remix for the lg g5 but i constantly get this error at the same spot everytime i start compiling the rom

stubs_current_intermediates/classes.jar.toc

Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).

GC overhead limit exceeded.

Try increasing heap size with java option '-Xmx<size>'.

Warning: This may have produced partial or corrupted output.

build/core/java.mk:730: recipe for target '/home/melwyn/Aokp/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex' failed

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

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

make: Leaving directory '/home/melwyn/Aokp'

Things i have tried to fix the error modified .jack file

SERVER_NB_COMPILE=4 (changed to 1) but that didnt help

changed this line as well

SERVER_LOG=${SERVER_LOG:=$SERVER_DIR/jack-$SERVER_PORT_SERVICE.log}

JACK_VM_COMMAND=${JACK_VM_COMMAND:=java -Xmx6500}

Any help would be great and the PC im using is a toshiba p755 s5120

Full log: http://pastebin.com/RwpbiiYn
[Android] rocknegi:
Out of memory your ram?

I Build with 8gb ram use this

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

./prebuilts/sdk/tools/jack-admin kill-server

./prebuilts/sdk/tools/jack-admin start-server
[Android] excelly2k1:
Hi All,

Any solution Please for the following error while building CM14.1 for Lenovo K3 Note (aio_otfp) from Ubuntu 16.04 64bit sysytem.

make: execvp: /bin/bash: Argument list too long

make: *** [/media/*/Backup/out/cm14.1/target/product/aio_otfp/module-info.json] Error 127

Thanks in advance.
[Android] gtpitch:
If I compile a rom and the make completes successfully but didn't create a zip file in the out directory... What went wrong? I'm assuming in the build directory or somewhere i need to tell it to do that but I don't know where
[Android] DevUt:
You need to do make bacon
[Android] gtpitch:
Thanks but getting unknown target 'bacon' did you mean 'racoon'
[Android] hyperterminal:
[MENTION=4659955]nicesoni_ash[/MENTION] how did you customize the byline thing, I meant the last line where you said "Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself " please teach me
[Android] gtpitch:
Solved. I needed make otapackage
[Android] allurba:
Hello, I try to compile the RR for BQ M5 (piccolo) with device tree:

Error:

I can help?

http://cloud.tapatalk.com/s/58892f46e64be/IMG_20170126_000340.jpg?
[Android] NepoRood:
You're missing a commit from Lineage (or rather RR is), you can remove the offending lines:

ERROR: /home/allurba/RR/vendor/cmsdk/cm/lib/main/java/org/cyanogenmod/platform/internal/CMHardwareService.java:57: The import org.cyanogenmod.hardware.TapToWake cannot be resolved
ERROR: /home/allurba/RR/vendor/cmsdk/cm/lib/main/java/org/cyanogenmod/platform/internal/CMHardwareService.java:146: TapToWake cannot be resolved
ERROR: /home/allurba/RR/vendor/cmsdk/cm/lib/main/java/org/cyanogenmod/platform/internal/CMHardwareService.java:185: TapToWake cannot be resolved
ERROR: /home/allurba/RR/vendor/cmsdk/cm/lib/main/java/org/cyanogenmod/platform/internal/CMHardwareService.java:211: TapToWake cannot be resolved
[Android] allurba:
In what file do I delete it?

Thanks

Enviado desde mi HUAWEI RIO-L01 mediante Tapatalk
[Android] NepoRood:
Do this:

nano -c vendor/cmsdk/cm/lib/main/java/org/cyanogenmod/platform/internal/CMHardwareService.java

Remove "Tap to Wake" references in lines 57, 146, 185 and 211

We've done this at AOKP already, you can look Here for a visual aid
[Android] nicesoni_ash:
Can you link to that commit please? Thanks.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] allurba:
Problem solved, compiled successfully. Thank you very much

Enviado desde mi HUAWEI RIO-L01 mediante Tapatalk
[Android] NepoRood:
Sure, link to commit
[Android] NepoRood:
Your APIs haven't caught up with the repo yet, give it some time and sync again. Or, you can try:

make update-api && make

Control Panel/Edit Signature

Unless using tapatalk, it has it's own settings for signature when using your device
[Android] hyperterminal:
Is there any way to do it on xda official app?

Maybe by doing things like decompiling, is it possible?
[Android] NepoRood:
Yes, tap the "Hamburger" in upper left corner, then choose: Settings/Edit Signature

---------- Post added at 01:28 PM ---------- Previous post was at 01:16 PM ----------

And...

Now: Sent from my "1+2", using my finger...
[Android] hyperterminal:
[MENTION=7237874]NepoRood[/MENTION] Hmm. Looks like you're using some other app like xda legacy , mine is com.xda.labs.play
[Android] NepoRood:
I've never used "Labs", I've always used the app from Play
[Android] hyperterminal:
Which is better, labs or legacy? I always liked the dark material design of the app :D.

---------- Post added at 08:33 PM ---------- Previous post was at 08:32 PM ----------

Well, xda labs is an official app from xda
[Android] NepoRood:
I know where XDA Labs comes from, lol. I have a few friends that use it and are always complaining about this or that. I haven't had any issues with Legacy app from Play, although, I rarely use my phone for that type of stuff. I prefer my PC...
[Android] hyperterminal:
[MENTION=7237874]NepoRood[/MENTION] I've just tried xda legacy, it's awesome, thanks!!! By the way the dark theme is even available in legacy.

Sent from my awesome device using an awesome ROM by an awesome human being

Hit "Thanks" if I helped ;)
[Android] allurba:
Error compile Citrus-aosp:
[Android] NepoRood:
Same error, last page...

Solution:

rm -rf device/qcom/common/rootdir

Common device doesn't have a root directory, this is determined my your actual device tree...
[Android] allurba:
Thanks, now I have this error
[Android] NepoRood:
Best ref for your problem, if it doesn't point you in the right direction, maybe someone else can help: Post, by [MENTION=6049586]Arvind7352[/MENTION]
[Android] davidvanwijk:
Problem: errno=12 Cannot allocate memory

What to do? And how?
[Android] gtpitch:
I'm confused by this screenshot. I have the right file, in the right folder. What am I missing?
[Android] NepoRood:
That's a good one, lol, have you tried inserting it manually?
[Android] gtpitch:
Yea I created that addon.d folder in the out directory and copied the zip to it and same error
[Android] NepoRood:
OK, so I got this error:

ninja: error: '/media/nepo/common/aosip7/target/product/quark/dt.img', needed by '/media/nepo/common/aosip7/target/product/quark/boot.img', missing and no known rule to make it

I have device qcom common and kernel source...
[Android] SlimShady's:
You're missing the kernel support commit in build repo :)

I wish I could link it to you, I'm not able to atm
[Android] NepoRood:
Thanks, I'll ask the Gooble to look for me :good:

PS, link when you can though, lol
[Android] davidvanwijk:
Perhaps a stupid question, but I am inexperienced with building ROM's...

Verstuurd vanaf mijn GT-P7500 met Tapatalk
[Android] NepoRood:
Can you provide more information?
[Android] davidvanwijk:
Thanks for reaction. In the meantime problem is solved. Java Runtime Environment was unable to allocate enough memory. I read instructions again and did some things again. I think it had to do with Jack.

Now I have on my S3 i9300 my 'own' build ?

Verstuurd vanaf mijn GT-P7500 met Tapatalk
[Android] kisiell:
target thumb C++: camera.msm8974 <= device/lge/g3-common/camera/CameraWrapper.cpp
device/lge/g3-common/camera/CameraWrapper.cpp:242:43: error: no member named 'KEY_LGE_CAMERA' in 'android::CameraParameters'
params.set(android::CameraParameters::KEY_LGE_CAMERA, (id == 0 && is4k(params)) ? "1" : "0");
~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Any solution?
[Android] bablu048:
Is it true that AOSP (not CM) requires a prebuilt kernel? I'm trying to build an AOSP rom, and have the kernel source targetted in my Boardconfig like normal in CM, but it says something like, "error out/target/product/bacon/kernel" needed by boot.img missing and no known rule to make it. If AOSP does not support inline kernel building, I have a few questions:

Is there a forked version of platform/build (maybe CM's version) that lets me inline build?

How do I reference a prebuilt kernel in my source?

If it does support inline kernel building, what am I doing wrong?

---------- Post added at 03:25 AM ---------- Previous post was at 03:11 AM ----------

how did you solve this error. I am a new in building roms. i am building for bacon. I have directly cloned my kernel source from github but it is asking for prebuilt and i guess i have to make some extra changes?
[Android] rocknegi:
in boardconfig check the

TARGET_KERNEL_SOURCE

clone the kernel in that dir
[Android] Røbin:
Solved.