yashsingh1/xdaforums huggingface dataset:
[Android] NepoRood:
You can setup a dummy vendor and build the ROM. Then compare the built ROM with stock to see what's missing, it's a long tedious project, but it does work. And you'll have to makes some changes to MM kernel in order for it to build N, at least some headers, probably more.

What path are you syncing to? What sync command did you use?
[Android] DJKristy:
repo sync -j2

cm 13.0
[Android] NepoRood:
And you are in CM 13 directory? Try: repo sync -j1

This should make it stop at the exact point of the error and tell you what's causing it
[Android] nithin chandra:
[MENTION=6304619]MZO[/MENTION] please look at this https://hastebin.com/iyejobamis.coffeescript
[Android] MZO:
Clone qcom common from Lineage
[Android] nithin chandra:
cloned qcom from lineage only but didnt worked...this is the second time i experienced that error..plz give any solution bro
[Android] pvineeth97:
How to setup a dummy vendor?
[Android] DJKristy:
Tried j1.

Error came one time.

Anyway syncing finished

Thanks man
[Android] NepoRood:
Look at my self created vendor for the Dragon Touch X10, Link

Just copy all the files, except what is located in "proprietary/system", and change over to your device. Create, but leave "proprietary/system" empty for now, this is where you will place the files from your stock ROM.

---------- Post added at 08:55 AM ---------- Previous post was at 08:48 AM ----------

:good: :highfive:
[Android] neonkat:
had the same error, follow https://thealaskalinuxuser.wordpres...or-package-com-android-okhttp-does-not-exist/.will fix the issue.
[Android] TheReaper1:
Hi, guys! I try to compile dnd for d855 but I recive this error: https://hastebin.com/zibuhepowe.tex

How I can resolve?

jeal0us

[MENTION=6304619]MZO[/MENTION] [MENTION=7237874]NepoRood[/MENTION] [MENTION=5991747]neonkat[/MENTION]
[Android] neonkat:
/home/darwin/dnd/prebuilts/gcc/linux-x86/arm/arm-eabi-6.3/bin/arm-eabi-gcc failed: No such file or directory

are you trying to use some custom toolchain?(GCC 6.3?)

it is not able to find the toolchain,correct your path.default use armeabi-4.9.
[Android] TheReaper1:
No. I used trees from los and crdroid and kernel from los. I think crdroid is using 6.3 and lineage 4.9. And I tried to sync armeabi from crdroid that is 6.3 but same result.
[Android] somadsul:
Check path again, or don't define path in boardconfig let build find & use default toolchain
[Android] Equals_Android:
Hey people will a 4gb ram laptop with 2nd gen i5 be good enough to build a rom?
[Android] DJKristy:
Yes,it will take time

But u can build
[Android] MZO:
Depends on hard drive and its speed
[Android] SlimShady's:
You are probably missing some definitions in hardware/libhardware. Clone the Lineage hardware_libhardware repo, then type "grep -r -definitionmissing-" and u will see the file where that definition is included. Go find the relative commit in that directory and do this with all the missing definitions.
[Android] anhenrique:
Now, I'm trying to compile cosmicOs to my device and got this error:

make[1]: Entering directory `/home/andreguedes9318/cos/out/target/product/Z017/obj/KERNEL_OBJ'

INSTALL block/test-iosched.ko

INSTALL crypto/ansi_cprng.ko

INSTALL drivers/char/rdbg.ko

INSTALL drivers/exfat/userdebug/64/objects/texfat.ko

INSTALL drivers/input/evbug.ko

INSTALL drivers/mmc/card/mmc_block_test.ko

INSTALL drivers/mmc/card/mmc_test.ko

INSTALL drivers/net/wireless/ath/wil6210/wil6210.ko

INSTALL drivers/scsi/ufs/ufs_test.ko

INSTALL drivers/spi/spidev.ko

INSTALL drivers/staging/prima/wlan.ko

INSTALL drivers/video/backlight/backlight.ko

INSTALL drivers/video/backlight/generic_bl.ko

INSTALL drivers/video/backlight/lcd.ko

INSTALL net/bridge/br_netfilter.ko

DEPMOD 3.18.31-ge161364-dirty

make[1]: Leaving directory `/home/andreguedes9318/cos/out/target/product/Z017/obj/KERNEL_OBJ'

make: Leaving directory `/home/andreguedes9318/cos/kernel/asus/Z017'

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

make: Leaving directory `/home/andreguedes9318/cos'

#### make failed to build some targets (10:04 (mm:ss)) ####

root@instance-1:~/cos#
[Android] psxda97:
How is the build version and LineageOS version are generating? I can't find any data regarding this. I really want to edit my LineageOS version and build version.

Thanks.
[Android] MZO:
It is in github.com/LineageOS/android_build, but why do you want to change your LineageOS and build version?
[Android] :
Need Help for Building AOSP/CAF based ROM

Brothers,

With your help I succeeded in building ROM based on Lineage and integrated support of OMS as well.

Now I am trying a CAF/AOSP Based ROM (Citrus-CAF) and from around 15-18 trials I am failing even with default kernel.

Here's the full output - https://hastebin.com/sonijuduto.sql

Requesting your support for the same.

Regards

Bond
[Android] NepoRood:
Line #192 says there's no defconfig for your lineage based kernel

ninja: error: 'kernel/arch/arm64/configs/lineageos_oneplus3_defconfig', needed by '/home/mahadev/op3/out/target/product/oneplus3/obj/KERNEL_OBJ/.config', missing and no known rule to make it
[Android] :
Brother,

Thanks for the reply.

It's there brother in "kernel/oneplus/msm8996/arch/arm64/". I have tried almost everything I can think of but still getting the error.

Also, I tried deleting and resyncing Kernel Sources along with clean and clobber build.

Any other help.

Best Regards

Bond
[Android] NepoRood:
What you have and what it's looking for are slightly different, change the path in your BoardConfig.mk to match what you put above.

IE:

TARGET_KERNEL_SOURCE := kernel/oneplus/msm8996
TARGET_KERNEL_CONFIG := lineageos_oneplus3_defconfig
[Android] :
Brother,

This is exactly what I was thinking but after checking the BoardConfig.mk I found out that it look identical to what you have written. I'm currently away or I would have shared an image for the same. This is what I've been struggling in all my attempts. I tried checking it in BoardConfig.mk, AndroidKernel.mk, Kconfig, etc. But all good still it's checking for kernel/arch/arm64 instead of kernel/oneplus/msm8996/arch/arm64. Also I tried making folder inside kernel with same path and it then started throwing different error related to Target_arch which is already mentioned.

Here's the device tree just incase if required - https://github.com/Citrus-Seeds/device_oneplus_oneplus3

Thanks again for the help brother.

Regards

Bond
[Android] tejas_kesaria:
Just a question though, I am going to start to learn rom development will the first post be useful to build latest roms(Nougat)?
[Android] NepoRood:
You sure? Device you linked doesn't match defconfig, I checked a few different branches, but not all, Your Device Link

Not really, it's a bit dated, but still contains great reference information. Refer to this Guide for setting up a BE
[Android] :
I know brother because I'm using HalogenOS kernel while I changed the defconfig name in BoardConfig.mk to the respective one available in the kernel which is lineage_oneplus3_defconfig.

While all other things are same as you checked. This is why I provided the device tree and now here's the kernel link - https://github.com/HalogenOS/android_kernel_oneplus_msm8996.

Sorry for sharing the kernel link lately. I'm typing through mobile using chrome browser.

Regards

Bond
[Android] NepoRood:
I'm not big on kernel work, lol, they either work or they don't. 2 things: 1) Did you try just the "oneplus3_defconfig" (the last one in the list), it seems more up to date, and 2) It's lineageos, not lineage...
[Android] DiamondJohn:
If there is an official LineageOS Build for your device, I personally found the following easy to follow. You will of course have to change the device reference for your specific device https://wiki.lineageos.org/devices/hammerhead/build You can follow links from https://wiki.lineageos.org/devices/
[Android] neonkat:
post full logs on hastebin.
[Android] :
The best part is brother, that even with the same kernel as provided by Citrus-Caf the same error is coming just the defconfig file is changed from lineageos_oneplus3_defconfig to fractalx_defconfig.

Don't know what's next to be done.

Let's see if anything will help in this.

Regards

Bond
[Android] anhenrique:
https://hastebin.com/ewamofunid.vbs
[Android] neonkat:
device/asus/Z017/overlay/frameworks/base/core/res/res/values/config.xml:267: error: Resource at config_deviceHardwareWakeKeys appears in overlay but not in the base package; use <add-resource> to add.

device/asus/Z017/overlay/frameworks/base/core/res/res/values/config.xml:291: error: Resource at config_longPressOnAppSwitchBehavior appears in overlay but not in the base package; use <add-resource> to add.

disable/remove those overlays in

device/asus/Z017/overlay/frameworks/base/core/res/res/values/config.xml.
[Android] NepoRood:
Never mind, has been answered...
[Android] psxda97:
Actually I want to change slim version.

"build.1.0" remains constant for all builds. it is not increment. Also I really wish to remove that hour and min from the slim_version.

As far as I know this is the slim version in the about phone menu.

Is there is any way I can edit it?
[Android] MZO:
You can change that stuff from build directory of Slim
[Android] psxda97:
Thanks :)

Can you be some more specific? I still can't find how the slim version is generating.

The closest I can find is how BUILD_DISPLAY_ID is generating.
[Android] MZO:
I'm sorry, slim variables are defined here:

https://github.com/SlimRoms/vendor_slim/blob/ng7.1/config/common.mk
[Android] psxda97:
Finally!!

Thanks for your help :)
[Android] anhenrique:
Now i get this error

https://hastebin.com/ozacasisir.hs
[Android] neonkat:
BOARD_USES_CYANOGEN_HARDWARE

you have this flag enabled in your device' boardconfig?try disabling it.
[Android] Dersaun:
Can someone please help me to finish my LineageOs build, I did make my own device and vendor tree I'm using prebuilt kernel.

I dont what is this error or how to fix.

system/netd/server/SoftapController.cpp:156:17: error: unused parameter 'ifname' [-Werror,-Wunused-parameter]

const char *ifname) {

^

1 error generated.

build/core/binary.mk:986: recipe for target '/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o' failed

make: *** [/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o] Error 1

make: Leaving directory '/home/neverson/android/system'

#### make failed to build some targets (01:08:21 (hh:mm:ss)) ####
[Android] :
Hi Brother,

I am not sure that LineageOS allow using prebuilt kernels. Why to use prebuilt kernel when you can clone the respective kernel sources in the same.

I would suggest you to rather built everything from source and not to use prebuilt kernel and I guess this is the difference between Lineage and AOSP.

Regards

Bond
[Android] Dersaun:
My phone Ulefone Gemini is under developmente does'nt device, vendor or kernel trees in github. I had to built myself, and I don't how to built a kernel 'cause of that I used prebuilt! Can you help with kernel building or show me AOSP repository for repo sync so I can use AOSP instead.

Thanks!
[Android] TheReaper1:
Hello, guys! From where I can get this file? https://hastebin.com/gujoyihiti.pas

[MENTION=5991747]neonkat[/MENTION]
[Android] :
Hey Brother,

Sorry got busy in work and couldn't reply.

I am not sure if Ulefone Gemini sources have been released or not but you can check for the sources and board config here - Ulefone Official Sources.

Also, I would recommend not to mess with these things because Mediatek itself is very messy, at least for me. I would request my friend and master [MENTION=5238428]superdragonpt[/MENTION] for helping you in this. He is a master of Mediatek SOC.

Regards

Bond
[Android] Wywern.pl:
In the mka process I'm getting a bunch of warnings. I have copied some of them and saved on the git: warnings.

Could you look at this and tell are they ignorable or what?
[Android] HaoZeke:
Has anyone ever dealt with this?

It's new. Used to build fine. My last build was 2 months ago... So I deleted and synced afresh only to run into this error.
[Android] sai2698:
What if device is not there in cm tree. How to build for our device then
[Android] a g bell:
Has anybody seen this error before just don't get it?https://pastebin.com/Cundxe1T
[Android] MZO:
If there is any ROM available for it at all? Use their trees

Otherwise get the kernel from your OEM, extract the vendor tree and set up the device tree via mkvendorsetup script from Lineage. You'll find better guides when searching for each of these things.
[Android] sai2698:
Thank you .

I want to make twrp for my device but the omnirom repo is not syncing. can u post the steps to successfully sync and compile twrp.

.........thanks for response...;)
[Android] raujiraut:
try this in boardconfig file

BOARD_USES_LIBC_WRAPPER := true
[Android] NepoRood:
Start, Here

Great guide, and very "friendly"
[Android] sai2698:
Thank you so much sir.............

(Can also tell me the friendly guide to make ROM from source)

Thank for your reply........:o
[Android] NepoRood:
There's no shortage of those, just ask Google. Also, you're posting in one :confused:
[Android] a g bell:
Really ?
[Android] NepoRood:
Yes? Maybe?

Not sure what you meant by your post, but members are happy to ask for help in this thread (more than happy actually). The OP has plenty of info for getting started, granted, it's a bit "dated" but it's still good information to have. Google can give you plenty of info as well, that's not actually on XDA...
[Android] sai2698:
OK. ....

I just want to make custom ROM for my redmi note 4 from Resurrection ROM source and clone the device tree , vendor tree and kernel source .I don't how to edit them(device tree ,vender tree ) to make successful build.....

I just clone device tree vender tree and kernel source and I try lunch mido command with doing anything.

I got errors......

I am a beginner and I am eager to make a custom ROM on my own......

Please help after repo sync how to setup device tree vender tree to make build successful..

Please help me......

Thank you ..........
[Android] neonkat:
rr does not require to modify trees,works well with los trees.post your errors here.
[Android] neonkat:
i believe you are using vendor_xiaomi from the muppets?it got oss canera hals merged so make sure you have those libs with you.

take the new mido tree from lineageos,it has all the libs.
[Android] sai2698:
##kernel source:

https://github.com/MiCode/Xiaomi_Ker...ree/mido-m-oss

##Device tree:

https://github.com/LineageOS/android_device_xiaomi_mido

##vendor tree:

https://github.com/TheMuppets/proprietary_vendor_xiaomi

and i put device tree, vendor tree and kernel source in following

/device/xiaomi/mido -device tree

/vendor/xiaomi/mido -vendor tree

/kernel/xiaomi/msm8593 -kernel source

I posted the kernel source,device tree and vendor from where I have downloaded ...

Please help me sir
[Android] neonkat:
*device: in device/xiaomi/mido

*kernel: in kernel/xiaomi/msm8953

*vendor: in vendor/xiaomi and not in vendor/xiaomi/mido.

and please use hastebin to post your build logs.
[Android] sai2698:
even i am getting errors .....:crying::crying::crying::crying:

please check this

https://hastebin.com/ejucewehih.rb

those are the errors..
[Android] neonkat:
don't use "breakfast" here. if you have added the repo in local manifest(yourself),then just do a repo sync,lunch command then mka bacon.or use brunch.
[Android] sai2698:
thank you for helping me....

i am a beginner.i don't know :confused: how to edit local manifest..

can u eloborate on this please.......
[Android] neonkat:
you are at the right place.go through all the first few posts in this guide,there are steps given to understand how it works and make your own localmanifest.
[Android] sai2698:
i will go through this guide and make changes...

thank you for helping me
[Android] rahul8040:
here you GO! PASTEBIN! LOG

there were 2 files one selectionsubscription.java and one with .orig i gave u the .java one!
[Android] mohit310:
remove the .orig file. I think that caused the issue. It trying to compile two similar files.
[Android] rahul8040:
got it! error was in line 136 it was repeated! i just deleted it! jackeagle just told me :D thanks bro!
[Android] katinatez:
I look in source folder /cm-12.0/.repo/manifests/default.xml

This is where you find the code to remove

<project path="packages/apps/Calendar" name="CyanogenMod/android_packages_apps_Calendar" />

I do it this way

<remove-project name="CyanogenMod/android_packages_apps_Calendar" />

add this to local_manifest /cm-12.0/.repo/local_manifests/local_manifests.xml
[Android] rahul8040:
MADE IT!

Thank you so much everyone! i made my first ever ROM from source! :D and i am really excited about it! now obviously its no use releasing same cm12! so all i want to know that!

How to remove a package from CM12 pror building process

How to add a package from CM12 prior building process

how to change the default theme of CM12 prior building process!​
[Android] mohit310:
Adding/Removing your own app

http://wiki.cyanogenmod.org/w/Doc:_adding_your_own_app

For Removing. remove the package from using tag in your local manifest

http://wiki.cyanogenmod.org/w/Doc:_Using_manifests

Themes, I'm not sure. There are many apps for CM12 but I've no idea.
[Android] rahul8040:
thanks brother its' great! i got the point that i need to move the decompiled .apk to packages/app but what if? it doesnt have any android.mk? and after adding the app sources to packages/apps what exactly i have to do? i need to create another local manifest? and declare that app there? can you please help me on this part thanks :D
[Android] mohit310:
You need to add the apk and then create the Android.mk file and also add it to device.mk so that the build recognizes and packages it. so you need to manually add the files there.

For removing packages you need to go local manifest file and add

for e.g. to remove Calculator as you want it your local manifest file should have

<remove-project name="CyanogenMod/android_packages_apps_Calculator"" />

This assumes that your calculator is getting pulled from Cyanogenmod path from github. Check your manifest.xml file in .repo folder and see which app you want to remove.

This link is also helpful

http://xdaforums.com/showthread.php?t=1198035

http://xdaforums.com/showthread.php?t=1843506
[Android] coderdroid:
thanks for this awesome guide:D
[Android] linuxiano85:
Is possible download only the source of CM12?
[Android] DSA:
yes
[Android] linuxiano85:
Right now I'm downloading 40 gb sources by an Italian guide, you can post terminal commands? I'm trying to learn how to build.
[Android] DSA:
err...read the first, second, third post etc...
[Android] rahul8040:
just tell me how to make the android.mk file and should i place the apk decomopiled?
[Android] mohit310:
Depends on what you want to package. Here is an example. And please try to read forums. No more spoon feeding. all information is available on xda-developers.

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := CameraNext
LOCAL_CERTIFICATE := platform
LOCAL_REQUIRED_MODULES := libjni_mosaic libjni_tinyplanet
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := libjni_mosaic
LOCAL_SRC_FILES := $(LOCAL_MODULE).so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/lib
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := libjni_tinyplanet
LOCAL_SRC_FILES := $(LOCAL_MODULE).so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/lib
include $(BUILD_PREBUILT)
[Android] rootvish:
Thanks for the guide. It's simple and helpful.
[Android] rahul8040:
thanks brother! i got it! :) and i have added it to the packages/apps and i hopefully will make a working android.mk but please can you tell me what do exactly to after i add it to packages/apps like after that i add it to local_manifest or add that device path to device..mk? that would be really helpful thanks! :D
[Android] katinatez:
https://github.com/RobbieL811/android_build/commit/e0e3b50602978350b34abf1fdf1626d2ed5984b4
[Android] rahul8040:
i dont get it? :/

---------- Post added 20th February 2015 at 12:40 AM ---------- Previous post was 19th February 2015 at 11:54 PM ----------

ok, so i have added the app to packages/apps and hopefully made android.mk of it! and now in i9082_device.mk where exactly should i enter the name of my package? i am thinking at the end like the bottom-most line! but i dont think that will work! can anyone please help!

and i am followiing this guide! GUIDE!
[Android] mohit310:
Determine the name of the project from Android.mk

Regardless of how you put the source in packages/apps/, assuming that the source for the app has an Android.mk Makefile, you can get it to automatically build and install the resulting file in your $OUT directory (and thus your .zip) by simply determining the name of the project, which is typically defined in Android.mk with this:

LOCAL_PACKAGE_NAME := PackageName

Add the project to device.mk (or whatever .mk) in the device folder

Then just add that project to be built in the /device/[MANUFACTURER]/[CODENAME]/device.mk file.

Example:

Let's look at the grouper device aka the Nexus 7. You want to find where the list of packages to build is for this device, in device/asus/grouper/device-common.mk.

Note:

For the nexus 7, the device-common.mk file is shared with the tilapia device (the Nexus 7 GSM version), so if you're building for another device that doesn't have device-common.mk, you'd probably make the edit to device.mk instead.

Now you have a choice. If PRODUCT_PACKAGES was previously defined, you can add a value like this:

PRODUCT_PACKAGES += MyPackageName

The += part means to append it to the list.

Or, if it's simpler, you can just add it to the end an existing PRODUCT_PACKAGES list of projects by appending a "\" to the last item and then adding MyPackageName at the end. Notice that you can't put any commented lines (ie, lines starting with #) or even blank lines in the list of items to be built.

So if the list looks like this...

PRODUCT_PACKAGES := \

lights.grouper \

audio.primary.grouper

...you'd add it to the end:

PRODUCT_PACKAGES := \

lights.grouper \

audio.primary.grouper \

MyPackage

If the source for your app does not have the Android.mk makefile stuff, you'll need to add it. You can use any of the existing packages in packages/apps as a model for what needs to be done to build your particular app.

See here for official documentation on Android .mk files.
[Android] MZO:
Do you know how to write an xml file? Manifest is just like that. I wpuld also recommend you what [MENTION=5991747]neonkat[/MENTION] said. Go through and try learning yourself because that's the best thing to do. Otherwise you have this thread to fallback to if you run into errors
[Android] Techie Android:
I'm trying to follow the OP but it's really old and I've had to replace a lot of the outdated commands, but I need some help. So I'm working with AOSPA https://github.com/AOSPA but I got stuck at the command: repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0

There's not a https://github.com/AOSPA/android so in this case which repo would I use?
[Android] psxda97:
repo init -u https://github.com/AOSPA/manifest -b nougat-mr2

Read readme.md of AOSPA/manifest on github for more information.

Cheers!
[Android] heisenberg33:
hi, can somone help with this error please

https://hastebin.com/azocofovug.coffeescript
[Android] Techie Android:
so after a lot of hours waiting for repo sync -j4 to finish downloading, it stopped and I thought it was done but then I looked at my storage space and saw it maxed me out. :'( So I have 28GB worth of it already on my PC should I keep it or delete it and restart it when I have more space? is 50 GB enough for everything? This guide was really misleading because it said to have upto 15GB free. It really needs to be updated.