yashsingh1/xdaforums huggingface dataset:
[Android] katinatez:
Here is an example of multiple devices in manifest, I currently have Note 3 & Oneplus One.

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<!-- hlte -->
<project name="temasek/android_device_samsung_hlte/" path="device/samsung/hlte" remote="github" revision="cm-12.1" />
<project name="temasek/android_device_samsung_hlte-common/" path="device/samsung/hlte-common" remote="github" revision="cm-12.1" />
<project name="temasek/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" revision="cm-12.1" />
<project name="temasek/android_kernel_samsung_hlte/" path="kernel/samsung/hlte" remote="github" revision="staging-v2" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-12.1" />
<project name="temasek/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-12.1" />

<!-- Bacon-->
<project name="katinatez/android_device_oneplus_bacon" path="device/oneplus/bacon" remote="github" revision="cm-12.1" />
<project name="katinatez/android_device_oppo_msm8974-common" path="device/oppo/msm8974-common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_oppo_common" path="device/oppo/common" remote="github" />
<project name="katinatez/android_kernel_oneplus_msm8974" path="kernel/oneplus/msm8974" remote="github" revision="cm-12.1" />

<!-- Vendor Blobs -->
<project name="TheMuppets/proprietary_vendor_oppo" path="vendor/oppo" remote="github" revision="cm-12.1" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-12.1" />

<!-- Linaro 5.1 Toolchains -->
<remove-project name="arter97/arm-linux-androideabi-4.9" />
<project path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9" name="katinatez/arm-linux-androideabi-4.9" remote="github" revision="cm-12.0" />

<remove-project name="temasek/android_build" />
<project name="katinatez/android_build" path="build" remote="github" revision="cm-12.1" />

</manifest>
[Android] TitanWar:
Good guide. It realy help me.

Thank you, Sir.
[Android] beespoison:
Excellent guide, perfect for newbie like me. Thank you :good:
[Android] NotesOfReality:
Hey [MENTION=5403922]wulsic[/MENTION] ,I'm using the kk device tree and the kk rom source,I'm no more getting that error ,I'm using (in the root of my development directory) ".build/envsetup.sh",lunch 5(it selects spirit_armani-userdebug),mka bacon -j2,it starts the so huge work but I get this other error :

Export includes file: system/core/cpio/Android.mk -- /home/micky007/android/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/export_includes

/bin/bash: m4: command not found

make: *** [/home/micky007/android/out/target/product/armani/obj/ETC/sepolicy_intermediates/policy.conf] Error 127

make: *** Deleting file "/home/micky007/android/out/target/product/armani/obj/ETC/sepolicy_intermediates/policy.conf"

make: *** Waiting for unstopped processes....

Yacc: checkpolicy <= external/checkpolicy/policy_parse.y

prebuilts/misc/linux-x86/bison/bison -d -v -o external/checkpolicy/policy_parse.y

make: *** [/home/micky007/android/out/host/linux-x86/obj/EXhttp://cdn4.xda-developers.com/images/icons/icon11.gifECUTABLES/checkpolicy_intermediates/policy_parse.cpp] Interrupted pipe

The "export_includes" text file is empty,there isn't any plicy.conf file in "/home/micky007/android/out/target/product/armani/obj/ETC/sepolicy_intermediates/",what should I do?

P.S:However,thank you for the permission to use your build scripts,I haven't used them but if in future I will need them can I use them?
[Android] banerjeeayan1996:
So how to fix it. Shoupd i delete the code for second device.
[Android] akhilnarang:
The error is command m4 not found

Google it and you should get a solution
[Android] wulsic:
[MENTION=6336670]Micky99[/MENTION] did you installed all the needed proprietary software for building android?

try to install these things and try again:

$ sudo apt-get install bison build-essential curl flex \
g++-multilib gcc-multilib git-core gnupg gperf \
lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev \
libesd0-dev libncurses5-dev libsdl1.2-dev \
libwxgtk2.8-dev libxml2 libxml2-utils lzop \
openjdk-6-jdk openjdk-6-jre pngcrush schedtool \
squashfs-tools xsltproc zip zlib1g-dev

I suppose that you didn't changed anything in the sourcecode and that you run my buildscript with . build-armani.sh

else it also says about m4 so try to sudo apt-get installation m4

Which distribution are you using may I ask?
[Android] NotesOfReality:
I'm using linux mint 17.1 cinnamon
[Android] wulsic:
[MENTION=6336670]Micky99[/MENTION] did you tried to install the needed packages and m4 like I said above?
[Android] NotesOfReality:
Yes,I did it succesfully,so many thanks for your willingness
[Android] shyvam:
Hey can anyone tell me how to make device tree for new device on github
[Android] chineel:
Read Op Full or at-lest First page here it is http://xdaforums.com/showpost.php?p=54118852&postcount=9
[Android] jaspreet.virdi:
Failed to connect to android.googlesource.com port 443: Network is unreachable

please help [MENTION=5216756]jackeagle[/MENTION]

when i type

repo sync

it shows .

fatal: unable to access 'https://android.googlesource.com/platform/external/tinyxml/': Failed to connect to android.googlesource.com port 443: Network is unreachable
fatal: unable to access 'https://android.googlesource.com/platform/developers/demos/': Failed to connect to android.googlesource.com port 443: Network is unreachable
[Android] Aimbot91:
Hi guys l am getting this error when l try to initiate repo :confused:

repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0

bash: /home/aimbot91/bin/repo: Permission denied

I am using UBuntu 15.04 any help will be great :fingers-crossed:
[Android] commencal661:
add "sudo" (without quotation marks) in front of your command.
[Android] Aimbot91:
l tried that too but l getting command not found error :confused:
[Android] commencal661:
Really??? what happens if you enter the command "sudo -i" in terminal?
[Android] ezio84:
No one? :p
[Android] Trach:
Just add the file into slim/common/prebuilt/etc/init.d and the vendor files will include it on its own
[Android] ezio84:
Tried now, no luck (the script has not been placed in the final zip).
[Android] Mtsprite:
Hey if you guys want, i can make a guide on how to compile with a different tool-chains like Linaro or SABERMOD.
[Android] Kishan14:
You post it here. Once our guide is completed we will rearrange it by reporting mod..

---------- Post added at 05:56 AM ---------- Previous post was at 05:54 AM ----------

I hope its fyn with our team... [MENTION=4924398]rutvikrvr[/MENTION] [MENTION=5216756]jackeagle[/MENTION]
[Android] Mtsprite:
Reserved.
[Android] jackeagle:
No Problem :) you can post the guide [MENTION=5466976]Mtsprite[/MENTION] ..Thanks for showing Interest Towards making Guide and Welocme to Team :)

This will be last addition to Team since due to some probs that might encounter while rearranging post :) :D

Thank you :)
[Android] AmINoS007:
1000000000000000000 thx for this great amazing important tutorial thx bro !! :highfive:

i only have little question the windows on laptop have to be 64 bit ? bcz i have 86 bit :confused:
[Android] jackeagle:
Welcome :laugh: :D Yeah you should have 64bit Windows for Android Rom Development :)
[Android] Mtsprite:
That definitely is odd, don't know how much it will help but try using this...

sudo apt-get dist-upgrade
[Android] david makarove:
Surly it will be awesome

Thanks a lot
[Android] Hashbang173:
Try sudo apt-get install dpkg-dev
[Android] RVR:
yea sure go ahead... wel get the thread re arranged
[Android] Chetan Lodha:
Good job bro....
[Android] poo706:
Holy crap, excellent guide! I wish I had this at my disposal when I started getting into building several months ago.

Here's a probably unique question for you. I build LiquidSmooth and when it's done I swap out the boot.img so that the ROM installs with a unified EXT4/F2FS Fancy kernel instead of the stock LS kernel. Is there anything I can do to not build the kernel since I'm just going to toss it anyway?

[poo]
[Android] Hashbang173:
If you have the kernel source you could build the rom with that, Not exactly a sloution but would save a bit of time.
[Android] poo706:
I understand that building Fancy along with the ROM would save me the trouble of swapping out the boot.img, but I don't see how that would save me any time. I'm still building a kernel either way.

[poo]
[Android] JJsevol:
I'm getting java6 invalid URL Scheme missing when trying to run the java install jdk command. Does anyone else get that? Will manually installing openJDK 6 work instead?
[Android] Trach:
Add the red line into vendor/cm/config/common.mk under the section

# Don't export PS1 in /system/etc/mkshrc.
.
.
PRODUCT_COPY_FILES += \
vendor/slim/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit \
[COLOR=Red]vendor/slim/prebuilt/common/etc/init.d/name-of-your-init.d-file:system/etc/init.d/name-of-your-init.d-file[/COLOR]
[Android] Aimbot91:
After some trying l made it work :)
[Android] commencal661:
Good. :)
[Android] mohamed786:
Plz check your network connectivity it occurs due this unavail of network
[Android] jaspreet.virdi:
problem solved :p but it's not network problem .
[Android] NotesOfReality:
[MENTION=5403922]wulsic[/MENTION],I'm trying to develop spirit rom kitkat for "armani" aka Xiaomi Redmi 1S,after i resynced all the work tree and fixed default.xml issues with the projects placed platform/external/svox,device/qcom/common and /hardware/qcom/fm,so I'm in a super-clean work tree and build environment with all the necessary to develop.After I cd into my tree root directory,I inizialize the build environment with :

1). build/envsetup

2)lunch (select spirit_armani-userdebug)

3)mka bacon

and it gives me this fu$$$ng error

xport includes file: frameworks/native/services/surfaceflinger/Android.mk -- /home/micky007/SpiritRom-armani/out/target/product/armani/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/export_includes

make: *** No rules to make the object"/home/micky007/SpiritRom-armani/out/target/product/armani/obj/SHARED_LIBRARIES/libqdutils_intermediates/export_includes", necessario per "/home/micky007/SpiritRom-armani/out/target/product/armani/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/import_includes". Stop.

make: *** Waiting for unstopped process....

Here is the pastebin link of all the shell text I can copy http://pastebin.com/uC3mzaUP

Plz help me
[Android] mercur23:
hey when i try to install virtualbox i loose network connection i'm using windows 10 64 bit is it form this ?
[Android] rahulbarai:
Yes virtualbox is not yet fully compbatible with windows 10. There are some network issue. Try to reinstall virtualbox latest version while installing disable network share of VB, later you can enable it.

I would recommend you to use any Linux distro like ubuntu, mint, opensuse e.t.c, i.e direct installation of any of them for android development not in virtual box.
[Android] srisurya95:
someone help me with this error...I get this when I tried to symlink

ln: failed to create symbolic link ‘/usr/lib/i386-linux-gnu/libGL.so’: No such file or dire

ctory
[Android] laperry1:
If the file does in fact exist in prescribed folder, then issue command w/sudo...
[Android] annu123:
compatible rom

hey... i cant fine compatible rom to port a custom rom for my micromax canvas nitro 2 E311 which has mediatek chipset mt6592 1.4Ghz octa-core processor.... i need a lollipop rom for it can anybody help me
[Android] SergeantWagner:
Fedora is my favorite flavor and I was having a helluva time trying to create an android build environment on Fedora, mostly trying to find openJDK7 packages. Then I had an epiphany after having an unrelated discussion about Docker and LXC. I created an Ubuntu 14.10 amd64 LXC and was able to compile (and boot!) cm12.0 for my device. I put the LXC on its own SSD and the build was wicked fast, probably as fast as native would have been. Just thought I'd share in case someone else that happens to like Fedora is trying to compile android and banging their head on the wall.
[Android] srisurya95:
File does not exist
[Android] janjan:
Any one tried to build from LG open source? I was trying to build for LG G4 from one source ( M1 preview ) but it fails. Any thing to share will be useful thanks.
[Android] genesixxbf3:
Try with lg-devs source
[Android] janjan:
What do you mean by LG dev source? I tried by following.

http://opensource.lge.com/osSch/list?types=ALL&search=H815
[Android] akhilnarang:
https://github.com/lg-devs
[Android] siju2012:
I am trying to build CM12 for OnePlus One(Bacon) but I get this error while building . How to resolve this ?

make[1]: Entering directory '/home/xyz/Codes/CM12/kernel/oneplus/msm8974'

make: *** No rule to make target '/home/xyz/Codes/CM12/out/host/linux-x86/bin/dtbToolCM', needed by '/home/xyz/Codes/CM12/out/target/product/bacon/dt.img'. Stop.
[Android] genesixxbf3:
you need Qcom common :D
[Android] siju2012:
How do I get that bro?
[Android] akhilnarang:
Add it to your room service

It'll be in the cm.dependencies though I guess
[Android] genesixxbf3:
https://github.com/CyanogenMod/android_device_qcom_common clone it on device/qcom/common
[Android] siju2012:
Works perfectly now. You are a saviour :good:
[Android] siju2012:
Now again I am gettin error :( .

The present kernel configuration has modules disabled.

Type 'make config' and enable loadable module support.

Then build a kernel with module support enabled.

/home/xyz/Codes/CM12/kernel/oneplus/msm8974/Makefile:1149: recipe for target 'modules_install' failed

make[2]: *** [modules_install] Error 1

Makefile:130: recipe for target 'sub-make' failed

make[1]: *** [sub-make] Error 2

I saw in net I need to put

Edit : Added these lines to /home/xyz/Codes/CM12/kernel/oneplus/msm8974/android/configs/android-base.cfg . But still getting same error.

CONFIG_MODULES=y

CONFIG_MODULE_UNLOAD=y

Edit 2:

Did brunch bacon instead of make -j4 . It worked. Don't know why.
[Android] janjan:
Thanks for the help but after adding my device tree, kernel and vendor after sync..I get following error.

From git://github.com/CyanogenMod/android_frameworks_base

1d11593..332f903 cm-12.1 -> github/cm-12.1

error: Cannot fetch lg-devs/android_device_LG_H518

error: Cannot fetch lg-devs/android_kernel_LG_H518

fatal: remote error:

Repository not found.

error: Cannot fetch lg-devs/android_vendor_LG_H518

error: Exited sync due to fetch errors

toffyjan@toffyjan-ThinkPad-X121e:~/cm12.1/.repo$

----------------------------------------------------------------------------

I use following

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project path="device/LG/H518" name="lg-devs/android_device_LG_H518" remote="github" revision="cm-12.1" />

<project path="vendor/LG/H518" name="lg-devs/android_vendor_LG_H518" remote="github" revision="master" />

<project path="kernel/LG/H815" name="lg-devs/android_kernel_LG_H518" remote="github" revision="cm-12.1" />

</manifest>
[Android] akhilnarang:
Are sure sure the repo names are correct?

I think its wrong

As the output says repository not found
[Android] janjan:
To be honest no. I am not sure but I use according to the following.

https://github.com/lg-devs

It seems both contains lge_h815 (Which is LG G4 international European version)

https://github.com/lg-devs/android_device_lge_g4-common

https://github.com/lg-devs/android_device_lge_h815

I also tried this one but it fails too

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project path="device/LG/g4-common" name="lg-devs/android_device_lge_g4-common" remote="github" revision="cm-12.1" />

<project path="vendor/LG/g4-common" name="lg-devs/android_device_lge_g4-common" remote="github" revision="master" />

<project path="kernel/LG/g4-common" name="lg-devs/android_device_lge_g4-common" remote="github" revision="cm-12.1" />

</manifest>

And it fails

Fetching project CyanogenMod/android_hardware_qcom_display

Fetching project CyanogenMod/android_hardware_qcom_display

Fetching project CyanogenMod/android_hardware_qcom_display

fatal: Couldn't find remote ref refs/heads/master

error: Cannot fetch lg-devs/android_device_lge_g4-common

error: Exited sync due to fetch errors

toffyjan@toffyjan-ThinkPad-X121e:~/cm12.1/.repo$

I have already download the LG G4 open source from here

http://opensource.lge.com/osSch/list?types=ALL&search=H815
[Android] genesixxbf3:
G4-common branch is cm-12.1 not master

Edit and lg is not in caps!
[Android] janjan:
I see it now. I use the following one and it sync fine without any error. After sync repo it create a LG folder. Thanks

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project path="device/LG/g4-common" name="lg-devs/android_device_lge_g4-common" remote="github" revision="cm-12.1" />

<project path="vendor/LG/g4-common" name="lg-devs/android_device_lge_g4-common" remote="github" revision="cm-12.1" />

<project path="kernel/LG/g4-common" name="lg-devs/android_device_lge_g4-common" remote="github" revision="cm-12.1" />

</manifest>
[Android] akhilnarang:
So check what branch is available, you're trying to sync a nonexistent one

And also it should be "lge" , not"LG"

Its Linux

Case of letters matters as well [emoji14]
[Android] genesixxbf3:
you might need to create a vendorsetup.sh in the h815 direction

add_lunch_combo cm_h815-userdebug
[Android] janjan:
Could you please be more specific. I added after

. build/envsetup.sh

And now I can find it in the liste (nr. 34)

32. cm_ghost-userdebug

33. cm_grouper-userdebug

34. cm_h815-userdebug

35. cm_hammerheadcaf-userdebug

But it fails to run

Which would you like? [aosp_arm-eng] 34

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

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

Repository for h815 not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.

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

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

** Do you have the right repo manifest?

toffyjan@toffyjan-ThinkPad-X121e:~/cm12.1$

Here is my lg folder. It looks like this
[Android] genesixxbf3:
in your room service you need that

https://github.com/lg-devs/android_device_lge_h815

https://github.com/lg-devs/android_device_lge_g4-common

android_device_qcom_common from cm

https://github.com/lg-devs/android_kernel_lge_msm8992

and all should be fine
[Android] janjan:
I added and after sync repo all looks good. but still get error and fails to run.

Which would you like? [aosp_arm-eng] 34

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/lge/h815/cm.mk]]: "device/lge/g4-common/g4.mk" does not exist. Stop.

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

Repository for h815 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/lge/h815/cm.mk]]: "device/lge/g4-common/g4.mk" does not exist. Stop.

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

** Do you have the right repo manifest?
[Android] wulsic:
So you are sure that device/lge/g4-common/g4.mk" exists?

I have missed some parts and I won't read back as it's late now but you are compiling aosp? If so then you might also need to rename some mk files and also the vendorsetup.sh so a bit like here:

See my changes I made to get it all working, perhaps some unnecessary changes included but I did them anyway I succeeded in compiling when I added some QCOM parameters to my AOSP M preview sourcecode but I also had to just remove the qcom sepolicy for now and also the one from my G2 devicetree kinda as yeah, things like init_shell.te didn't existed anymore and many rules were invalid/not compatible with AOSP so or you had to remove them or readd those to the sourcecode itself but I'd rather not do that so what I did was copy the N5 sepolicy and made some small changes to it. Your phone is 64bit and I am not very knowledged on the Sepolicy part but I suggest to use one from a similair QCOM device.

btw here are my changes I made to my D802 devicetree: https://github.com/OmegaOS/android_device_lge_d802/commit/0e66d121a69c6b8bae78008afe2d70e91cd12da4

other changes like sepolicy, gps related things were not pushed yet as I wanted to try to solve them first.

After doing those things I had succesfully compiled android M But I was being stubborn and I wanted to include kernel compiling, packaging, building TWRP recovery etc so I am now currently facing the issue with:

/bin/sh: 1: cd: can't cd to out/target/product/d802/obj/KERNEL_OBJ
make[1]: Entering directory `/home/wulsic/home/android/m-preview/kernel/lge/msm8974'
Makefile:121: *** output directory "out/target/product/d802/obj/KERNEL_OBJ" does not exist. Stop.
make[1]: Leaving directory `/home/wulsic/home/kernel/android/m-preview/lge/msm8974'
make: *** [out/target/product/d802/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....

Btw this is copied so the directory naming might not be 100% legit as I won't boot back to linux but I am also facing this can't cd to out issue, and yes the directory is created in the kernel make task.

[MENTION=5776465]genesixxbf3[/MENTION] Could you perhaps also help me with my problem :)
[Android] akhilnarang:
From the pics you posted, looks like you've saved it in device/lg

It should be lge
[Android] genesixxbf3:
there can be more error upper about kernel compilation
[Android] wulsic:
[MENTION=5776465]genesixxbf3[/MENTION] I also think that so I will try to fix the problem then by myself as I think its just an issue again in the build folder. I'll also focus when I am done with school for this year on lollipop aosp. Ofcourse Caf Aosp
[Android] janjan:
Thanks for the tips. I messed up my working folder and now gonna try a fresh one. I will keep your tips in my mind when I am finish with all the small issues. It seems that I'm very close. Need some time and patient ;)
[Android] :
Can u help me on this?

yeshwanthvshenoy@falcon:~/carbon$ breakfast falcon && brunch falcon
including vendor/carbon/vendorsetup.sh
build/core/product_config.mk:253: *** No matches for product "carbon_falcon".
Stop.WARNING: Trying to fetch a device that's already there
WARNING: device/motorola/falcon/carbon.dependencies file not found
build/core/product_config.mk:253: *** No matches for product "carbon_falcon".
Stop.** Don't have a product spec for: 'carbon_falcon'**
Do you have the right repo manifest?
[Android] RVR:
Are you using the cm device tree??? .. It has to be modified for compatibility with carbon rom
[Android] :
yes, i renamed cm.mk to carbon.mk and the dependencies file too. Then i change the /vendor/carbon thingy. But i get this error on building!
[Android] chendur1212:
Help !

Can anyone here help me use the compressed cm12 source http://xdaforums.com/android/development/compressed-compressed-android-sources-t3051687 i want to build it for redmi note (dior) .
[Android] kethsawant:
Found any ROM for MMX E311 even i am in search of it if u have any pls let me know...
[Android] annu123:
port a rom for all be the one to introduce E311 lollipop rom

dude try to port a rom for E311 chipset mt6592 Ghz doesnt matter jst rom has to be octa-core processor screen size same ram memory same and remember E311 has onboard home back menu button
[Android] umuturunc:
This guide is awesome. Thanks. [emoji108] [emoji122] [emoji106]

GT-I9190 cihazımdan Tapatalk kullanılarak gönderildi
[Android] kethsawant:
i tried porting the AOSP ROM of MMX A310 and it run on my mobile but the navigation key ( Soft )were missing on it ,so have any solution to fix it