yashsingh1/xdaforums huggingface dataset:
[Android] mmcbits:
Thanks for the tip. I flashed a newer build of TWRP, but with the same result. It seems what I described as the install process is normal, because what fixed everything was specifying a different version of the kernel in the manifest.
[Android] XXCoder:
I was wondering if I could get lineageos ported to acer a1-840fhl. (acer iconia 8)
[Android] hasan4791:
1. So, when i do repo sync, i get all the sources required to build the rom will get downloaded in my local machine right?

2. After forking in github and changing the necessary files, is it possible for me to edit the code in local or do i 've to use gitnub to checkout the code and edit it?

---------- Post added at 06:19 PM ---------- Previous post was at 06:18 PM ----------

how much RAM and HDD space did u allocate and whats your build time?
[Android] FSadino:
1. Yes

2. GitHub is a code database to save your work so, the correct way is to work locally and then upload your work to github to keep it save and visible to others
[Android] Orion_Pax:
Bookmarked :)

Gonna try soon .

A quick question : To compile an android ROM coding skills are necessary looks like an active mind can do these stuff ?
[Android] smolley:
I'm trying to figure out how to update a custom rom that is no longer under active development. Basically I want to fetch the changes upstream from LineageOS and merge them into the custom rom. Just so I keep up with the security patches etc. I'm confused though since there's so many repo's how to know which ones to check for changes?
[Android] FSadino:
For security patches you have AOSP security bulletin

For LineageOS changes you have Code Review
[Android] Cakzemprongzzz:
Hmm hey can u teach how to build lineage 15.. Cuz i'm new on this :)
[Android] KeTuRr74:
This guide was made for lineageos 14 but it should work for 15 too, just follow the guide and when you see repo init https://blablablabl/blablabla_blabla -b just change the cm-14.1 to lineageos-15.0 and thats alll
[Android] FSadino:
Look at lineages code review and try to find not merge commit about camerawrapper2.cpp
[Android] KeTuRr74:
Now facing this error, i searched on github but nothing looking to this :/

https://hastebin.com/ducudozibu.rb

Thanks
[Android] FSadino:
It's related to camera hal

https://review.lineageos.org/#/q/camera+hal
[Android] HeHeStephen:
Deleted.
[Android] HeHeStephen:
Edit fixed
[Android] KeTuRr74:
Hi guys, updated the device tree and camera things but now facing this error https://hastebin.com/uvaweboyot.xml

Thanks for your help
[Android] GRBurst:
Breakfast error

Hey,

this is my first try to compile Android / Lineage OS.

In order to get a base I can build up, I tried to first compile Lineage for the One (since it is always mentioned as an example), using the device codename "bacon".

I followed the guide but unfortunately I am facing the following error in the breakfast "DEVICE" step:

$ breakfast bacon
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.
Device bacon not found. Attempting to retrieve device repository from LineageOS Github (github.com/LineageOS).
Found repository: android_device_oneplus_bacon
Default revision: cm-14.1
Checking branch info
Checking if device/oneplus/bacon is fetched from android_device_oneplus_bacon
LineageOS/android_device_oneplus_bacon already fetched to device/oneplus/bacon
Syncing repository to retrieve project.
Fetching project LineageOS/android_device_oneplus_bacon
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies in device/oneplus/bacon
Looking for dependencies in device/oppo/common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.

** Don't have a product spec for: 'lineage_bacon'
** Do you have the right repo manifest?
[Android] tech927:
Adding VoLTE and Wifi Calling to a custom rom

Hello,

First thanks for this guide, it was very helpful.

Secondly, I did manage to compile and flash my own custom version of lineage 14.1 for my device an s7 model g930f.

What i'd like to do now is append a name to the version string to differentiate my zips from lineage-supplied zips.

I'd also like to if possible integrate and enable an IMS client in to my build so that I might have a shot of getting VoLTE and WiFi Calling going on lineage.

I'd appreciate any pointers.

Thanks.

Dave.
[Android] FSadino:
Did you run "lunch" first?
[Android] GRBurst:
Hey,

thanks for your reply :)

No I did not. The error occurs in the breakfast step (not in the brunch step). Trying the "lunch" command results in the same error.

The error is here again:

$ lunch lineage_bacon-userdebug
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.
Device bacon not found. Attempting to retrieve device repository from LineageOS Github (github.com/LineageOS).
Found repository: android_device_oneplus_bacon
Default revision: cm-14.1
Checking branch info
Checking if device/oneplus/bacon is fetched from android_device_oneplus_bacon
LineageOS/android_device_oneplus_bacon already fetched to device/oneplus/bacon
Syncing repository to retrieve project.
Fetching project LineageOS/android_device_oneplus_bacon
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies in device/oneplus/bacon
Looking for dependencies in device/oppo/common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/oneplus/bacon/lineage.mk]]: "vendor/oneplus/bacon/bacon-vendor.mk" does not exist. Stop.

** Don't have a product spec for: 'lineage_bacon'
** Do you have the right repo manifest?

So am I missing something? Do I have to provide anything like proprietary blobs or s.th. in order to get it to work. I thought that is not necessary for the bacon device :confused:

Thanks in advance!

---------- Post added at 08:08 PM ---------- Previous post was at 07:56 PM ----------

Yes, I missed exactly that point. Now I used the vendor stuff provided by TheMuppets (github.com/TheMuppets/proprietary_vendor_oneplus) and it seems to work (so where is the facepalm smily?) xD
[Android] Virnik0:
Please update the OP. You have to add following repository in order to compile successfuly for Samsung (and maybe more), instead of extracting blobs:

https://gist.github.com/fourkbomb/261ced58cd029c5f7742350aafdd9825
[Android] :
Hi,

I have been trying to build LineageOS for my device (H5X -kiwi) but I have been getting the following problems

[IMG="Build Error"]https://drive.google.com/uc?export=download&id=17XvrOq8KkXURnix6jeefa2Cm1Shyen-D[/IMG]

Is this a common issue and how could I fix it

Many Thanks
[Android] mattnin:
Thank you very much OP. I built my first ROM ever using this tutorial. I can't believe how easy this tutorial made it and wish I would have done this sooner.

I have a question if someone would help. I put my 'bin' and 'android' directories on another hard drive and did all my work from there. When I run '$ ccache -M 50G', will it only enable the cache on that drive? Or it will it enable cache on my main drive? Thanks

*update* Nevermind, it was easy to change the ccache directory to something else, the command was "export CCACHE_DIR=/directory/here"
[Android] KeTuRr74:
Hi guys facing this error building NexusOS 8.1 based on LOS15.1 repo's, i cant find the folder "media/Audiosession.h"

https://hastebin.com/waviwageja.cs

Thanks

Edit : Fixed updating NexusOS repo's
[Android] swukjay:
Did you fix this ? I am getting the exact same error to the letter !
[Android] BearOfXDA:
So, I followed these instructions and I keep getting this error. I'm building for hammerhead

javac: file not found: /home/bear/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java

Usage: javac <options> <source files>

use -help for a list of possible options

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/home/bear/android/system'
[Android] :
Unfortunately I haven't :(
[Android] swukjay:
I have given up, I have done everything correctly, it appears their are missing depencys not being downloaded when syncing, this is my latest error.

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=7.1.2

LINEAGE_VERSION=14.1-20180104-UNOFFICIAL-kiwi

TARGET_PRODUCT=lineage_kiwi

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=cortex-a53

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a53

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.10.0-42-generic-x86_64-with-LinuxMint-18.3-sylvia

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=NJH47F

OUT_DIR=/home/administrator/android/lineage/out

============================================

Checking build tools versions...

frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0

find: ‘/home/administrator/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory

Starting build with ninja

ninja: Entering directory `.'

ninja: error: '/home/administrator/android/lineage/out/target/product/kiwi/obj_arm/SHARED_LIBRARIES/libtfa9895_intermediates/export_includes', needed by '/home/administrator/android/lineage/out/target/product/kiwi/obj_arm/SHARED_LIBRARIES/audio_amplifier.msm8916_intermediates/import_includes', missing and no known rule to make it

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/home/administrator/android/lineage'

#### make failed to build some targets (41 seconds) ####
[Android] Retch_100:
Hi, the tutorial looks good but i've got a problem. I have a elementary os setup with ~ 20gb SSD space and a 500gb HDD, i wanted to build onto the HDD and created the dictionaries there, so not in the home folder. But when I start this command: repo init -u https://github.com/LineageOS/android.git -b cm-14.1 i get errors ( https://pastebin.com/DD1BmhSJ ). After that i tried it with the original commands so i created bin and android directory in my home folder and it works, but it stops after 2 minutes because the disk space is not enough. Can anyone tell me how to save the files onto my hdd? Thank you very much in advance
[Android] swukjay:
I have given up, the KIWI fork is busted, half the system files are missing, new camera is now being used which is missing, the thing is a mess, cyanogenmod was not like this
[Android] BearOfXDA:
Is there a source that can be built for hammerhead that you know of that is stable? I want a stable source, and if I need to rely on AOSP then I'll be a little upset because I at least want to build nougat for my device
[Android] swukjay:
I am trying again tonight from scratch, I will also be adding blobs from the Muppets and hopefully it will compile, I will update tomorrow
[Android] swukjay:
Update, I gave up, sync error again, takes hours to download just to get an error, its a mess
[Android] smolley:
Hi, I tried building kiwi to see if I could reproduce the same error, but mine succeeded. I was going to say the only thing different I think I did from the OP was clone the muppets blobs, but I see you tried that now too. So something else with our setups must be different? Maybe could share your roomservice.xml see if theres any discrepancies?
[Android] swukjay:
Pulled blobs from device and build is now at 25% main problem was most of the guides were only half right but by using common sense I now have a build compiling, will update progress in morning ?
[Android] FSadino:
We're this guide is "half right" so I can improve it?
[Android] swukjay:
Update, build was successful.
[Android] xDantehh:
Thanks for the great guide, I've just successfully built my first rom. I'd like to add drivers for my TP-link WN722N to the kernel, is that possible and how would I do that?
[Android] mattnin:
I hope someone can help me, not exactly sure where I'm going wrong. I'm not able to get ccache to work. Right now after a build, it's only at 606.2 kB. I have it set for 50.0 GB. I'm building my ROM on another hard drive, sdb1 which is mounted at ~/build/android/system . I ran prebuilts/misc/linux-x86/ccache/ccache -M 50G

from

build/android/system/ .

I set my CCACHE_DIR to /home/matt/build/.ccache

but after waking up today I noticed it was back at /home/matt/.ccache

I don't know if this is part of the reason that ccache is not working for me when I build. I'm not sure how to get ccache to work and my Google Fu has failed me. In .bashrc at the bottom, I have

export USE CCACHE=1

export PATH="/usr/lib/ccache:$PATH"
[Android] vieose:
Device not found.

Any clearance for this newb User?

---------- Post added at 05:55 PM ---------- Previous post was at 05:17 PM ----------

I fail at the last entry:

I added at certain Point my own Github - is that an Error Indication?
[Android] Mcenzie:
First

source build/envsetup.sh
[Android] albertoduqe:
Hi everyone!

Thanks for the guide first of all, it was very useful for me to start and more or less succeed in my first rom builds :)

I am working in a few projects, but the one looking more promising is a LegendRom nougat build for Lithium (Xiaomi Mi Mix). The rom is looking and feeling good in my Mix and almost everything works properly. Only one big issue I haven't been able to fix: NFC.

After like a day of using my last legend build as daily driver I noticed some NFC errors in the logs I hadn't seen before. I checked settings and yep: NFC enabled but shadowed, cannot switch it on or off.

I have the three lineage sources for "android_vendor_nxp-nfc_opensource_xxx" synced and referenced in dependencies. Also "LineageOS/android_packages_apps_Nfc" is of course called from manifest.xml

I've also added PRODUCT_PACKAGES in device.mk like:

# NFC

PRODUCT_PACKAGES += \

com.android.nfc_extras \

com.nxp.nfc.nq \

nfc_nci.nqx.default \

NQNfcNci \

NfcNci \

nqnfcee_access.xml \

nqnfcse_access.xml \

Tag

And from searching around I even added the PRODUCT_PACKAGE NfcNci to build/target/product/generic_no_telephony.mk

I am not sure if any of these things are correct or what I am missing, but final build's still laking NfcNci.apk in system/app/NfcNci, which I guess is the main problem.

Anybody can help me here?

My guess is I am not doing something very basic like a "product_copy_files" somwhere or the like but I can't seem to manage to solve it.

Thanks a lot!
[Android] FSadino:
Missing Nfc on PRODUCT_PACKAGES
[Android] albertoduqe:
:silly:

You must be kidding XD

Now seriously... Ok!

I haven't seen that in any device_xiaomi_lithium or msm8996-common, and I've looked at most of them...

Anyway... If I put that reference in rom-working-folder/device/xiaomi/lithium it should be ok? Or better in device/xiaomi/msm8996-common? I don't even know why ones are there and others not...

Thanks!!!
[Android] albertoduqe:
OK I specified

PRODUCT_PACKAGES

Nfc

on top of what there already was in /build/target/product/generic_no_telephony.mk, /device/xiaomi/lithium/device.mk and device/xiaomi/msm8996-common/msm8996.mk ... to no avail. There is no nfc.apk or any different or added folder or file respect previous builds...

Could you please elaborate a bit more?

Maybe I am missing something essential like making a clean build? I haven't cleared the out folder in some days...

Thanks!
[Android] OnePlusBenefits:
Hi, as in the title I built LineageOS 14.1 from Scratch without adding any other repositories,

it wont boot, it shows the boot animation for some time but its not a bootloop. The bootanimation starts to end (shows the lineage os text) but not even a second after that it crashes.

that's not happening with the official build.

what could be wrong?

also of course when building the rom it gives me 0 errors.

Im pretty sure this is easy to solve since im oretty new at this

any help is appreciated, thanks
[Android] bejunk:
[deleted, because was answered on another thread]
[Android] Mcenzie:
When i repo los 15.1 i become this Message:

fatal: remote error: upload-pack Not permitted in this server

Any ideas whats wrong?

Many Thanks
[Android] tripLr:
Number 9,

What command do I use to adb in a Linux shell? To get to the directory?

Just type adb devices to see if it's connected?

where is the extract files script? On the device?

Working on my first build currently, from @ _mone his build guide and [MENTION=6005084]ripee[/MENTION] poststhere

So say I have a device galaxy tab S2

And someone has posted a deodexed rooted stock Samsung ROM ( Posiedon )

Can adb pull all the drivers and programs and whatever I need to build lineageos14 ( posiedon is a android 7 build)

To use in my build?

Thanks.

Haven't got to the kitchen threads yet

---------- Post added at 02:49 AM ---------- Previous post was at 02:19 AM ----------

If you have a dual boot system on one drive,

Install the second drive

Boot to Linux

Partition the drive to ext4, and mount it as /home/your user name/android

You will now see a folder in your home named android

---------- Post added at 03:02 AM ---------- Previous post was at 02:49 AM ----------

My expierence .

Installed lxle Linux on my 8 year old laptop. It's an Ubuntu derived install

I have dual 750 GB hard drives with Windows 10. So it's gonna be slow cooking.

Only 4 GB memory. How to solve the large cache needed?

Shrunk my windows partition to 400 GB

Install Linux on 2nd hard drive with

/ 50 GB root

/ 100 GB swap partition

/ 500 GB home partition

The second drive will be to try other Linux distributions

Which Debian is probably to be my second choice

Doing this to learn a new trade.

Thanks to all

After an hour, I have 100 percent CPU, 10 percent progress, and 20 percent memory usage, and no hiccups
[Android] johnaaronrose:
I'm trying to build this for my Wileyfox Spark X (codename porridgek3)under Ubuntu 16.04. All Ok until "repo sync" which finishes after over an hour's downloading with "error: Exited sync due to fetch errors".

When I try "source build/envsetup.sh", I get bash: build/envsetup.sh: No such file or directory.

What should I do?
[Android] FSadino:
If you can't repo sync you don't have "envsetup.sh" under build directory. Repo sync is failing because you have wrong repos on your manifest. Search for that wrong repo and delete it
[Android] johnaaronrose:
How and where do I search for wrong repo?
[Android] FSadino:
Run repo sync only, without any additional commands and when it fails look at latest lines on terminal. It should say something like: "failed to fech repo bla bla bla..."
[Android] johnaaronrose:
Whilst waiting for a reply on a very rainy day yesterday and because I couldn't find any file having manifest as the first part of its filename, I thought that I would try repo for cm13.0. using openjdk1.7. That went Ok until "breakfast porridgek3" when I got:

Checking out files: 100% (54503/54503), done.

Looking for dependencies

Dependencies file not found, bailing out.

Looking for dependencies

Dependencies file not found, bailing out.

Done

build/core/product_config.mk:257: *** No matches for product "lineage_porridgek3". Stop.

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

** Do you have the right repo manifest?

** Warning: 'porridgek3' is using CM-based makefiles. This will be deprecated in the next major release.

Looking for dependencies

Do the above problems matter?

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=6.0.1

LINEAGE_VERSION=13.0-20180121-UNOFFICIAL-porridgek3

TARGET_PRODUCT=cm_porridgek3

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=cortex-a53

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a53

HOST_ARCH=x86_64

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.4.0-109-generic-x86_64-with-Ubuntu-16.04-xenial

HOST_BUILD_TYPE=release

BUILD_ID=MOI10E

OUT_DIR=/home/john/android/system/out

============================================
[Android] FSadino:
It's seems that your device is not officially supported by lineageos
[Android] johnaaronrose:
LineageOS

Any ideas as to how to request lineageos to support my Spark X (porridgek3) phone?
[Android] FSadino:
https://wiki.lineageos.org/device_requests.html
[Android] Mcenzie:
Have anyone an updated roomservice.xml for 15.1 ?
[Android] salehin4070:
Could you please tell me how to add dual sim support in an official build? I have the Galaxy S6 Duos and recently Lineage has started supporting the Galaxy S6. I have flashed the official build and everything is working great except the second sim. It doesn't even detect that sim card. Is there anything I can do to the official build to enable support for my other sim? Thanks!
[Android] FSadino:
The "breakfast" command is for that proposal
[Android] tripLr:
This problem is affecting another thread as well. [MENTION=6005084]ripee[/MENTION] I mentioned you because of the note 4 duos problems you had . Any ideas or what u checked .?

I would try to complile just the kernel but add the kernel compile options

And see if there is a check for your second sim to enable.
[Android] Mcenzie:
[1055/1055] including ./vendor/qcom/opensource/rcs-service/Android.mk ...

build/core/Makefile:34: warning: overriding commands for target `/home/mcenzie/android/lineage/out/target/product/oneplus3/system/vendor/lib64/vendor.qti.hardware.wifi.supplicant@1.0_vendor.so'

build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/mcenzie/android/lineage/out/target/product/oneplus3/system/vendor/lib64/vendor.qti.hardware.wifi.supplicant@1.0_vendor.so'

ninja: error: 'kernel/arch/arm64/configs/lineageos_oneplus3_defconfig', needed by '/home/mcenzie/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ/.config', missing and no known rule to make it

17:58:29 ninja failed with: exit status 1

#### failed to build some targets (01:12 (mm:ss)) ####

whats are mising?!

thanks
[Android] FSadino:
Blobs?
[Android] albertoduqe:
The error tells you the problem: you are missing a file in your kernel/oneplus/msm8996 source.

If you check the path of the error you'll see the file is not there. If you then check Lineage github source you'll see that file is there in branches cm-14.1 and lineage-15.1

I have no idea of what exactly is branch staging/lineage-15.1 but it seems to me it's not complete...

You might try getting that file from one of the other branches or changing the branch of the kernel in your local manifest.... There are Oreo builds for Oneplus3 so it can be done :)
[Android] Mcenzie:
Thanks man. :good:
[Android] FSadino:
[MENTION=4584035]Mcenzie[/MENTION]

Try to fetch this repos from other sources:

device/qcom/common

packages/resources/devicesettings

kernel/oneplus/msm8996
[Android] FSadino:
Lineage device tree for OP3 is WIP. Try using another three, maybe from unofficial build