yashsingh1/xdaforums huggingface dataset:
[Android] tecno789:
tonight i re-compile the rom and i got this error :

device/lge/g2m/overlay/frameworks/base/core/res/res/values/config.xml:161: error: Error parsing XML: mismatched tag

make: *** [/home/customer/aokp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Errore 1
make: *** Eliminazione del file "/home/customer/aokp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk"
make: *** Attesa per i processi non terminati....

#### make failed to build some targets (01:11:01 (hh:mm:ss)) ####

can someone help me?
[Android] DSA:
What have you changed in that file?
[Android] Mtsprite:
So i tried looking this up before hand but i couldn't find anything that helps. So i want to modify regular AOSP to build with a custom kernel. The device i'm building for is the Nexus 6, but no matter how hard i look no one seems to mention what you need to change if anything to get the ROM and kernel to build all at once. i could go about building them separately but i'd really rather just have them build integrated just like liquid smooth does with theirs. If you guys need any more info let me know. thanks :)
[Android] tecno789:
I'm. Telling the truth : nothing man
[Android] DSA:
You must have, a file doesn't change itself
[Android] tecno789:
Maybe from I take the device tree
[Android] banerjeeayan1996:
Hey bro it says could not read from boot medium. System halted...

Can anybody help.

Press thanks

Regards

banerjeeayan1996
[Android] jgcaap:
Guys.... I need some help here.. I cant get pass this without stock toolchains .

Clean source from cm... Anyone can help? Thanks
[Android] mohamed786:
Any one plz help me to resolve

Lunch menu... pick a combo:
1. aosp_arm-eng	38. cm_i9305-userdebug
2. aosp_x86-eng	39. cm_i9500-userdebug
3. aosp_mips-eng	40. cm_jem-userdebug
4. vbox_x86-eng	41. cm_jflte-userdebug
5. mini_armv7a_neon-userdebug	42. cm_klteusc-userdebug
6. cm_goldfish-eng	43. cm_kltevzw-userdebug
7. cm_goldfish-userdebug	44. cm_l01f-userdebug
8. cm_goldfish-user	45. cm_m4-userdebug
9. mini_mips-userdebug	46. cm_maguro-userdebug
10. mini_x86-userdebug	47. cm_n1-userdebug
11. cm_amazing-userdebug	48. cm_n5120-userdebug
12. cm_a700-userdebug	49. cm_n7000-userdebug
13. cm_apexqtmo-userdebug	50. cm_n7100-userdebug
14. cm_aries-userdebug	51. cm_odin-userdebug
15. cm_captivatemtd-userdebug	52. cm_otter-userdebug
16. cm_crespo-userdebug	53. cm_otter2-userdebug
17. cm_d2lte-userdebug	54. cm_otterx-userdebug
18. cm_d710-userdebug	55. cm_ovation-userdebug
19. cm_dogo-userdebug	56. cm_p1-userdebug
20. cm_e973-userdebug	57. cm_p3100-userdebug
21. cm_encore-userdebug	58. cm_p3110-userdebug
22. cm_endeavoru-userdebug	59. cm_p5100-userdebug
23. cm_enrc2b-userdebug	60. cm_p5110-userdebug
24. cm_epicmtd-userdebug	61. cm_p880-userdebug
25. cm_exhilarate-userdebug	62. cm_p930-userdebug
26. cm_expressatt-userdebug	63. cm_r950-userdebug
27. cm_fireball-userdebug	64. cm_skyrocket-userdebug
28. cm_galaxysbmtd-userdebug	65. cm_sprout-userdebug
29. cm_galaxysmtd-userdebug	66. cm_t769-userdebug
30. cm_hercules-userdebug	67. cm_tate-userdebug
31. cm_hlteusc-userdebug	68. cm_tf700t-userdebug
32. cm_hltevzw-userdebug	69. cm_tf701t-userdebug
33. cm_huashan-userdebug	70. cm_vs920-userdebug
34. cm_hummingbird-userdebug	71. cm_vs980-userdebug
35. cm_i9100-userdebug	72. cm_w7-userdebug
36. cm_i9100g-userdebug	73. cm_ypg1-userdebug
37. cm_i9300-userdebug	74. cm_yuga-userdebug

Which would you like? [aosp_arm-eng] 11
ls: cannot access device/*/amazing/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_amazing". Stop.
Device amazing not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for amazing 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.
ls: cannot access device/*/amazing/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_amazing". Stop.

** Don't have a product spec for: 'cm_amazing'
** Do you have the right repo manifest?
[Android] mohit310:
Try

Breakfast cm_amazing

Lunch cm_amazing

Or

Brunch cm_amazing

---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------

Repo sync again.. Also make sure the android sdk is 5.1
[Android] jgcaap:
it is... which is super weird.. you just gave me an idea... on manifests will add remote and revision of cm-12.1 to all source and try again
[Android] akhilnarang:
You have your device tree?

It dosen't seem so

Even if you do, its not it the right place
[Android] mohamed786:
yes

device tree path: Home/cm11/device/samsung/android_device_samsung_amazing-master

as same vendor and kernel will placed
[Android] akhilnarang:
That's why the error

Go through the log

The device tree should be in device/samsung/amazing

Rename the folder,it'll work

The path should be

/home/cm11/device/samsung/amazing
[Android] mohamed786:
After changes device/samsung/amazing

Which would you like? [aosp_arm-eng] 11
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/amazing/cm.mk]]: "device/mdpi-common/mdpi.mk" does not exist. Stop.
Device amazing not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for amazing 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:239: *** _nic.PRODUCTS.[[device/samsung/amazing/cm.mk]]: "device/mdpi-common/mdpi.mk" does not exist. Stop.

** Don't have a product spec for: 'cm_amazing'
** Do you have the right repo manifest?
[Android] akhilnarang:
Do

breakfast amazing
mka bacon

Or simply

brunch amazing
[Android] banerjeeayan1996:
Hey guyz please help....

It says could not read from boot medium. System halted.....

While installi g ubuntu

Press thanks

Regards

banerjeeayan1996
[Android] OfficerJimLahey:
Is the boot order correct in VirtualBox, that is, is your virtual HDD a device in the boot list?

Or, if this error throws up before install, is the virtual CDROM a device in the boot list, the image selected previously, and valid?
[Android] jgcaap:
retried... again.. SDK is 5.1 .. not working. Do you have any other idea? Thanks
[Android] mohamed786:
Dude I also run the command that u post but same error again any other idea to resolve...
[Android] akhilnarang:
Send me link to device tree

Think there is some error there
[Android] jgcaap:
Mine is GitHub.com/jgcaap

Atually is beeing synced only vendor , build, frameworks base , frameworks av and new kernel. The rest is Cm default. Thanks
[Android] akhilnarang:
I was asking mohamed786

But anyway, I'll check yours out too :p

What error are you getting?
[Android] tecno789:
what can i do? help me please

device/lge/g2m/overlay/frameworks/base/core/res/res/values/config.xml:240: error: Resource at config_proximityCheckOnWake appears in overlay but not in the base package; use <add-resource> to add.

device/lge/g2m/overlay/frameworks/base/core/res/res/values/config.xml:240: error: Resource at config_proximityCheckTimeout appears in overlay but not in the base package; use <add-resource> to add.

make: *** [/home/customer/aokp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Errore 1
make: *** Eliminazione del file "/home/customer/aokp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk"
make: *** Attesa per i processi non terminati....

#### make failed to build some targets (10:09 (mm:ss)) ####
[Android] jgcaap:
Sorry and thanks... This one
[Android] akhilnarang:
Can you post on pastebin please, and till the end, till make gives an error

Thanks

Try repo syncing to get the latest updates from CM, then build
[Android] jgcaap:
I think i find the reason for this... Git hub hás a limit on files... And instead of forking I uploaded. Right after linking my source the errors began... I'll do q clean work tomorow with forks and try again as also give Herr the result
[Android] mohit310:
Where is your local manifest. Also only fork projects that you will modify no need to fork everything.
[Android] banerjeeayan1996:
I didn't get u could u explain it please or pm me or give me ur whatsapp no.

Press thanks

Regards

banerjeeayan1996
[Android] jgcaap:
i've restarted again...

https://github.com/jgcaaprom?tab=repositories

put everything here.

And manifest is: https://github.com/jgcaaprom/android_local_manifest

And still have same errors.. :( lol If you find would be great..

Thanks...
[Android] mohit310:
Local manifest looks good. it seems you are downloading 4.9 toolchain but didnt see where you using it.

This is how I would build it.

1. i would just simply use all cm12.1 repo and nothing forked and make a build.

2. Then I would fork all projects that i need to modify and then compile again with my forked projects. If everything compiled fine then I would change the toolchain.

3. After changing toolchain I will compile and make sure new toolchain works

4. Work on the forked projects.
[Android] jgcaap:
Will try out again..

He compiles if i dont mod. My changes are very similer to temasek. I bekieve there is some verification whrre it checks settings APP and gives that error. I was able to compile already without problems without the forks.

4.9 GCC is beeing used on the ROM check build source..

4.8 GCC is for art

4.9.3 is for kernel
[Android] quanganh2627:
It's seems a full disk issue, i had it one time ago. In my case, the /tmp folder set by default about 1Gb, and i extracted the stock rom before compiled. And so, like you, i couldn't finish. I checked again and the problem was the temporary extracted file in /tmp folder. It's still there even I closed archive program, so not enough space for the building process write new file into /tmp. When i deleted manually, this problem was gone. Maybe you try,huh!?[emoji3]

---------- Post added at 11:30 PM ---------- Previous post was at 11:28 PM ----------

It's seems a full disk issue, i had it one time ago. In my case, the /tmp folder set by default about 1Gb, and i extracted the stock rom before compiled. And so, like you, i couldn't finish. I checked again and the problem was the temporary extracted file in /tmp folder. It's still there even I closed archive program, so not enough space for the building process write new file into /tmp. When i deleted manually, this problem was gone. Maybe you should try,huh!?[emoji3]
[Android] laperry1:
good news!

finally got my build to compile...

Background:

currently compiling CM 12.1 for my OnePlus One via 2-VM's

1-Ubuntu (14.04 Trusty)

2-BBQ Linux (bbqlinux-2015.03.22-x86_64)

i initially attempted to build w/the linaromod toolchains from here: via the BBQ vm but i could only compile w/the kernel toolchain (LinaroMod ARM-EABI 4.9)

currently, i'm compiling on the Ubuntu vm w/both LinaroMod ARM-EABI 4.9 & LinaroMod ANDROIDEABI 4.9... so far, so good...

i'll try other optimizations later if this current effort pans out...
[Android] tecno789:
Help please
[Android] dareino:
Following the guide, I am compiling for two different roms for the same device. After setting up, I used the repo init command to sync my already download source folder. So my question is, when I am in say, folder A, when I run repo sync I will see BOTH sources syncing via the terminal?

thxs

d

great guide!
[Android] mohit310:
No it will sync only folder A. You need to go to folder B and repo sync again unless you tell repo to use already existing sources via repo -m command if I'm not mistaken.
[Android] dareino:
well then I screwed up somehow...even tho I have two different local manifest, the default manifest is same for both? I didnt run any other command other than what was posted in guide...When I run repo sync in either folder, same info scrolls across terminal......

thxs

d
[Android] mohamed786:
Help out With this Error

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/Effect_Tick.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/KeypressStandard.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/KeypressSpacebar.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/KeypressDelete.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/KeypressReturn.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/VideoRecord.ogg:system/media/audio/ui/VideoRecord.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/camera_click.ogg:system/media/audio/ui/camera_click.ogg ignored.

find: `bootable/recovery/res-320': No such file or directory

No private recovery resources for TARGET_DEVICE amazing

device/samsung/bcm21553-common/bcm21553-bootimg.mk:4: warning: overriding commands for target `/home/mohamed786/cm11/out/target/product/amazing/ramdisk.img'

build/core/Makefile:416: warning: ignoring old commands for target `/home/mohamed786/cm11/out/target/product/amazing/ramdisk.img'

build/core/tasks/kernel.mk:63: ***************************************************************

build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *

build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *

build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *

build/core/tasks/kernel.mk:67: * source repository to kernel/samsung/amazing

build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building

build/core/tasks/kernel.mk:69: * for more information *

build/core/tasks/kernel.mk:70: ***************************************************************

make: *** No rule to make target `/home/mohamed786/cm11/out/target/product/amazing/kernel', needed by `/home/mohamed786/cm11/out/target/product/amazing/boot.img'. Stop.
[Android] akhilnarang:
Output is similar because all ROMs have most files similar, from cm/aosp

But you need to sync both separately
[Android] rikicchi:
Much thanks and respect to the TS! You don't know how much this might help me and others who don't have any custom ROM on their device(s) but needs them in order to make custom adds on their devices or even needed them for custom recovery only!

I'm going to ask for a permission to make this guide printed as my personal guidebook, not for personal profit. So it'll be easier for me to customize things anywhere even if I'm somehow in a cave without any kind of internet connection :D

I'm going to try to make a custom ROM for my device when it's done being mended by the service center ^^

Thanks again TS!

---------- Post added at 10:45 AM ---------- Previous post was at 10:00 AM ----------

errr....~

anyways, is this guide including the custom recovery modding from other device to another? for example, like if I had a custom recovery from a Device A from manufacturer X and want it to be able to be flashed to a Device B from manufacturer Z so it wouldn't got bricked.
[Android] mohit310:
Doesn't work like that. Lot of work is involved in porting. Read about aosp porting
[Android] thepotatoman1:
thank you, but some problems.

I have a Xiaomi device which I got as a gift. The xiaomi mipad to be exact. The kernel source has not been released and it runs on a xiaomi ROM 4.4.4. I run the one custom CyanogenMod ROM released for it, but nobody knows how to make CM 12/12.1 for it without kernel source, one guy managed it but he went inactive, any ideas?
[Android] mohamed786:
During Building

make: *** No rule to make target `/home/mohamed786/cm11/out/target/product/amazing/obj/KERNEL_OBJ/usr', needed by `/home/mohamed786/cm11/out/target/product/amazing/obj/SHARED_LIBRARIES/camera.bcm21553_intermediates/BcmCamera.o'. Stop.
[Android] tecno789:
does need a special command to get a .zip file as output?
[Android] jgcaap:
alright guys i solved my problem. Everything was related to apps which i deleted. There is a veryfier i couldnt find yet so... until i find i'll leave as is. :)
[Android] saintxseiya:
Hi,

anyone with an idea, how to integrate Apps, that SHOULD be able to be removed by the user and should be able to upgrade the app.

Right now when i am intgrating an app through packages/apps the app is not able to update by playstore or apk install.

Any advices?

saint
[Android] sunsettrack4:
Do you know what to do? How do I remove LZ4 compilation?

target StaticExecutable: updater (/home/sunsettrack4/cm12/out/target/product/slte/obj/EXECUTABLES/updater_intermediates/LINKED/updater)
system/extras/ext4_utils/make_ext4fs.c:229: error: undefined reference to 'LZ4_compressBound'
system/extras/ext4_utils/make_ext4fs.c:252: error: undefined reference to 'LZ4_compressHC'
collect2: error: ld returned 1 exit status
build/core/executable_internal.mk:66: recipe for target '/home/sunsettrack4/cm12/out/target/product/slte/obj/EXECUTABLES/updater_intermediates/LINKED/updater' failed
make: *** [/home/sunsettrack4/cm12/out/target/product/slte/obj/EXECUTABLES/updater_intermediates/LINKED/updater] Error 1
make: *** Warte auf noch nicht beendete Prozesse...

#### make failed to build some targets (03:45:09 (hh:mm:ss)) ####
[Android] noobandroid15:
You can use titanium backup to link it to android market
[Android] saintxseiya:
did you answer my post? :)

If yes, that is not the problem, the problem is, that if i start the update installation, that one fails all the time then.

Cheers.

Francesco
[Android] v7:
Getting this error while building any rom

"android/cyanogennod/android.icu unable to fetch"

Can anyone help ?

Tapped from my furious ZR ;)
[Android] SteamCards:
Most complete and useful guide that I saw, thanks!
[Android] mohamed786:
[MENTION=5867207]vaisakh7[/MENTION]Did you try repo sync -j1
[Android] v7:
Yes.But no success :confused:

Tapped from my furious ZR ;)
[Android] mohamed786:
Let find what issue by entering this commands

repo --trace sync -l
[Android] v7:
Here's the output

: export GIT_DIR=/home/daedroza/rr/.repo/projects/hardware/qcom/media/default.git
: git fetch github --tags +refs/heads/cm-12.1:refs/remotes/github/cm-12.1 2>|
: load refs /home/daedroza/rr/.repo/projects/hardware/qcom/media/default.git
error: Cannot fetch platform/external/chromium_org/third_party/icu
error: inflate: data stream error (incorrect data check)
error: failed to read object 9e351a518e3a8cb32af3edd73efd2a937cc26e45 at offset 30265708 from /home/daedroza/rr/.repo/projects/external/icu.git/objects/pack/pack-afd2625a31d165b5283c989de5a98cc5c5e1d100.pack
fatal: packed object 9e351a518e3a8cb32af3edd73efd2a937cc26e45 (stored in /home/daedroza/rr/.repo/projects/external/icu.git/objects/pack/pack-afd2625a31d165b5283c989de5a98cc5c5e1d100.pack) is corrupt
fatal: index-pack failed

: export GIT_DIR=/home/daedroza/rr/.repo/projects/external/icu.git
: git fetch github --tags +refs/heads/cm-12.1:refs/remotes/github/cm-12.1 2>|
fatal: SHA1 COLLISION FOUND WITH 313316797c77dc877f115a6f85bc080240dc6287 !
error: Cannot fetch CyanogenMod/android_external_icu

I posted this on behalf of [MENTION=5906831]Daedroza[/MENTION]
[Android] jackeagle:
You will get the output ROM in .tar format and flashable Zip format too:)
[Android] ezio84:
A noob question :D

I want to place this script (to use opendns) in /system/etc/init.d and build it within the rom (slimkat):

#!/system/bin/sh
iptables -t nat -I OUTPUT -p tcp --dport 53 -j DNAT --to-destination 208.67.222.222:53
iptables -t nat -I OUTPUT -p udp --dport 53 -j DNAT --to-destination 208.67.222.222:53

with chmod 777 permissions.

How to do the magic?

Thanks a lot.
[Android] edriclim:
been looking for ROM development and i found this nice tread! AWESOME!

i read thru the thread, says that i will need to learn Java, C, C++, XML programming language first? any more i need to learn first?

sorry i'm new to this :)
[Android] RVR:
u just need a basic understanding of programming to deal with build errors ... if ur new .. u can post ur build errors here
[Android] david makarove:
i suggest to you

start with java and learn about app development first then continue with XML and then c,c++

and for sure you must have good background in shell scripting

if you want be highly professional do above as i said

Then come back to this great guide

if you don't want to be pro and love easy life lol then go and start directly with this guide

you choose ;)
[Android] GeekSpin:
Hello, I read your post thank you for explanation of every step, the one thing I am confused with is that you say I don't need to download while source I can download the one for my device only by editing the local manifest.

Let's say I have Motorola moto e and it does not have cm available so can I fork the cm repos of the device similar to my Moto e or I have to sync everything thanks.
[Android] Kishan14:
U misread it buddy.. I guess u r talking about syncing the source in few minutes... For that u should have one source which you will give reference of... Mostly cm is used..

For example if you want to make rom for your device device tree kernel tree and vendor sources are mandatory... You should add the proper location of folder and link to the same in your local_manifests.xml..
[Android] cmdru1980:
Here you have under Controller: IDE you have 'Host Drive E:'. Mine Just says "Empty". What do I need to do if anything to fix this?

Thank You,

C
[Android] jackeagle:
Hi,

Can you provide a screen shot? :) Even if its not there just add Ubuntu OS Iso as per guide...:)

Jackeagle