yashsingh1/xdaforums huggingface dataset:
[Android] pranavaryans:
Help Please

This command :

$ repo init -u https://github.com/LineageOS/android.git -b cm-14.1

Giving me this error

/usr/bin/env: ‘python’: No such file or directory

Please Help
[Android] FSadino:
Downgrade python
[Android] pranavaryans:
thank you, solved my error.

I have 1MBPS line downloaded 10GB already.

Can you please tell that how much it will download approx??

thanks in advance..
[Android] FSadino:
Close to 50Gb I think :)
[Android] sohail0098:
Hi [MENTION=4315132]FSadino[/MENTION]. Can you tell me about the breakfast command?

Why are there brunch,lunch etc and what is the difference?

Also, since I am trying to build LOS15.1, I can't pull device tree and kernel tree. This requires to be placed manually. So where do I put them? I don't remember the directories for LOS14.1. My device is "kenzo" Redmi Note 3.

Thanks a Lot. I successfully built my own LOS14.1 with this guide.
[Android] nebkas:
Problem building lineageos to create final zip

Hi there,

could someone tell me what is wrong when I build lineageos? Everything seems fine but at the end I got this error:

[ 99% 1441/1442] glob bionic/libc/kernel/uapi/asm-generic/**/*.h
[100% 1/1] build bacon
FAILED: bacon
/bin/bash -c "(ln -f /home/nebkas/android/system/out/target/product/hollyss/lineage-15.1-20180130-UNOFFICIAL-hollyss.zip ) && (md5sum /home/nebkas/android/system/out/target/product/hollyss/lineage-15.1-20180130-UNOFFICIAL-hollyss.zip | sed \"s|/home/nebkas/android/system/out/target/product/hollyss/||\" > /home/nebkas/android/system/out/target/product/hollyss/lineage-15.1-20180130-UNOFFICIAL-hollyss.zip.md5sum ) && (echo \"Package Complete: /home/nebkas/android/system/out/target/product/hollyss/lineage-15.1-20180130-UNOFFICIAL-hollyss.zip\" >&2 )"
ln: failed to access '/home/nebkas/android/system/out/target/product/hollyss/lineage-15.1-20180130-UNOFFICIAL-hollyss.zip': No such file or directory
ninja: build stopped: subcommand failed.
14:48:36 ninja failed with: exit status 1
[Android] pranavaryans:
Please help

No command 'brunch' found while compiling
[Android] Mcenzie:
Try this command first :

source build/envsetup.sh
[Android] pranavaryans:
thanks it worked, now getting

error : could not find jdk tools.jar at /usr/lib/jvm/java-9-oracle/bin/../lib/tools.jar please check your JDK was installed correctly. Stop
[Android] Mcenzie:
(re)-install Java or update it
[Android] pranavaryans:
any specific command, please?
[Android] Mcenzie:
sudo apt-get install openjdk-8-jdk

sudo apt-get install openjdk-9-jdk
[Android] pranavaryans:
it is already there.

do i have to uninstall and then install?
[Android] Mcenzie:
Check it out, i don't know.
[Android] FSadino:
sudo update-alternatives --config java

sudo update-alternatives --config javac
[Android] pranavaryans:
Thanks solved it.

1 more error after brunch hydrogen

error:

build/core/ninja.mk:166: recipe for target '/home/pranavaryans/RR/out/build-linegae_hydrogen.ninja' failed

make: ***[/home/pranavaryans/RR/out/build-lineage_hydrogen.ninja] Error 1

make: Leaving directory '/home/pranavaryans/RR'

#### make failed to build some targets (31 seconds) ####

No Jack Server running, Try 'jack-admin start-server'
[Android] Mcenzie:
The error says :

Try 'jack-admin start-server'
[Android] pranavaryans:
started it, error is about NINJA
[Android] FSadino:
Read chapter 11
[Android] pranavaryans:
Thanks, it worked, Now getting
[Android] FSadino:
It seems you have libshims defined in two places, delete one of them
[Android] pranavaryans:
ok, will remove from 1 side and let you know,

thanks alot for helping me out
[Android] FSadino:
Delete sonivox folder and run repo sync again
[Android] pvp16:
[MENTION=4315132]FSadino[/MENTION]

Problem 1

jack-admin command not found

jack server installation not found.

Any solution?

Problem 2

Device kenzo

After brunch kenzo

make *** ninja wrapper error 1
[Android] Delgoth:
Awesome! Did that and the sync finished in just a couple minutes. I thought I was about done when it started syncing trees.

Lol it literally failed on the last sync. Probably because it was 4am this morning and I closed the terminal in the middle of that tree.

Thanks for that. I'ma finish up the steps now.
[Android] FSadino:
Don't report your errors in that way. Copy/paste full terminal output ( with hide/hide tags)
[Android] pranavaryans:
Error

Src/Android not found
[Android] FSadino:
Did you extracted blobs from your device or added them to manifest?
[Android] pvp16:
Yes did all procedures correctly

I think there is a problem with ninja, or jack server

When I try to kill jack server, it shows jack not installed.
[Android] tripLr:
Might want to start your shell sudo -s and build in sudo mode

Looks like it didn't have permission to write the file there

---------- Post added at 06:47 AM ---------- Previous post was at 06:43 AM ----------

Ok.

In keenelnewbies.org it says I can set CPU settings to 2 core 4 core etc.

Should I try that? I only also have about 2.5 mb available with no other programs in background. So I set jack for 2048m

Also you have export in your . bashrc commands, will it work without export?

Thanks
[Android] nebkas:
Thank you, will give it a try :)
[Android] tripLr:
Where is the extract files script located, on the phone?

---------- Post added at 05:35 AM ---------- Previous post was at 05:32 AM ----------

Try sync with this

Code:

repo sync -c --force-sync --no-clone-bundle --no-tags
[Android] Cakzemprongzzz:
I want to add Navbar like Google pixel on lineage 14.1.. Since my home keys is broke :( i can't do anything without that :(
[Android] saqlain abbas:
thanks so much for this guide .i have compiled and installed lineage on my Nexus 6. now i want to do some customization . i want to disable my mic and camera by making option in tile like air plane mode .in which when if i click on it,it should disable camera or mic which i want.image is attached

Sorry for Bad English

thanks in advance
[Android] FSadino:
You can check Gerrit from other rom's to see if they have what you need, or something similar, and change it to your needs.
[Android] saqlain abbas:
hi sir can i add other feature of rom.in my own code.

https://github.com/PolyOS-Oreo/platform_frameworks_base

i want to add this feature .sir please guide me how

thanks
[Android] CM_developer:
I have a question about downloading the source. When i download the source code i get one or two error 404 errors about downloading the source does it affect when building? i seem to get it from dead Github links that cause it no matter what repo i download. Thank you in advance for the help!
[Android] FSadino:
No worries about that 404 errors if your sync finish without any errors. You can run repo sync again to make sure that all syncs right
[Android] CM_developer:
Thank you so much! It does download without errors i was just worried that it might mess something up
[Android] knaik95:
Hi, I'm trying to build Resurrection Remix from source and I'm running into a bit of a snag. After hours of pulling out my hair, I finally got

breakfast kltedv

to run flawlessly. However, when I run

brunch kltedv

, it runs for a good 30 seconds before throwing this:

[ 0% 181/67624] host Generated: fs_co...evice/samsung/msm8974-common/config.fs
FAILED: /home/kushal/RR/out/target/product/kltedv/gen/EXECUTABLES/fs_config_generate_kltedv_intermediates/android_filesystem_config.h
/bin/bash -c "build/tools/fs_config/fs_config_generator.py fsconfig --aid-header=system/core/include/private/android_filesystem_config.h device/samsung/msm8974-common/config.fs > /home/kushal/RR/out/target/product/kltedv/gen/EXECUTABLES/fs_config_generate_kltedv_intermediates/android_filesystem_config.h"
Following AID Collisions detected for:
Identifier: "AID_QCOM_DIAG" Friendly Name: "qcom_diag" found in file "system/core/include/private/android_filesystem_config.h" and "device/samsung/msm8974-common/config.fs"
[ 0% 189/67624] Ensuring Jack server is installed and started
Jack server already installed in "/root/.jack-server"
Server is already running
[ 0% 190/67624] Building Kernel Config
make: Entering directory '/home/kushal/RR/kernel/samsung/msm8974'
GEN /home/kushal/RR/out/target/product/kltedv/obj/KERNEL_OBJ/Makefile
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
#
# configuration written to .config
#
make: Leaving directory '/home/kushal/RR/kernel/samsung/msm8974'
make: Entering directory '/home/kushal/RR/kernel/samsung/msm8974'
GEN /home/kushal/RR/out/target/product/kltedv/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
make: Leaving directory '/home/kushal/RR/kernel/samsung/msm8974'
ninja: build stopped: subcommand failed.
18:47:10 ninja failed with: exit status 1

Any ideas on what's wrong?
[Android] FSadino:
Wich Kernel source are you using?
[Android] knaik95:
LineageOS/android_kernel_samsung_msm8974 is the repo I'm using, if that answers the question.
[Android] zogthegreat:
So I'm trying to build my first ROM and while doing my research I came across this:

"Warning: As of this March 14, 2017 announcement, the Jack toolchain is deprecated. While you may continue to use Jack, we strongly encourage using the latest preview version of Android Studio instead, which provides improved support for Java 8 language features built into the default toolchain."

https://source.android.com/setup/jack

How do I configure my build to use Android Studio instead of Jack?

Thanks

zog
[Android] FSadino:
I didn't read about that so I'm not able to help you. Although, I will search and, if necessary, update OP with all information.

As I can see, Android Studio toolchain is a preview... maybe you should try your build with Jack and after you are comfortable you can switch to Studio
[Android] zogthegreat:
Thanks FSadino!

I tried compiling, but my build fails with the following:

#####

make: *** No rule to make target 'vendor/motorola/athene/proprietary/lib/libloc_eng.so', needed by '/home/zog/android/system/out/target/product/athene/system/lib/libloc_eng.so'. Stop.

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

target thumb C++: libloc_stub <= device/motorola/athene/gps/utils/platform_lib_abstractions/loc_stub/src/loc_stub_time.cpp

device/motorola/athene/gps/utils/platform_lib_abstractions/loc_stub/src/loc_stub_time.cpp:33:24: warning: unused parameter 'clock' [-Wunused-parameter]

int64_t systemTime(int clock)

^

1 warning generated.

device/motorola/athene/camera/CameraWrapper.cpp:91:50: warning: unused parameter 'module' [-Wunused-parameter]

static int camera_device_open(const hw_module_t *module, const char *name,

^

1 warning generated.

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

#### make failed to build some targets (22:35 (mm:ss)) ####

#####

I did extract the proprietary blobs with

./extract-files.sh

before compiling, (I think that's what the warnings are in reference to :rolleyes:). I've tried to Google it, but I only get references to Target stores!

Any suggestions?

(EDIT) I removed the word "target" from my search and I'm getting better search results. I'm downloading "TheMuppets/proprietary_vendor_motorola" from Git Hub. I'll see where that takes me....
[Android] FSadino:
libloc_eng.so is missing

Download from https://github.com/TheMuppets/proprietary_vendor_motorola (don't forget to choose the right branch) or add entire repositorie to your local manifests
[Android] zogthegreat:
Thanks again FSadino!

LOL, I just edited my previous post because I'm doing that right now. Do I extract and copy them to ~/android/system/vendor/ or another directory?

BTW, cool avatar!
[Android] FSadino:
You need to add it exactly were is missing, look at red letters above ;)
[Android] saqlain abbas:
dear try to install and restart jack server manually and forcelly this will solve your problem.in start i faced this error also .if you failed then tell me .i will try my best to help you
[Android] Hazuki Amamiya:
Sorry if this has been asked before: Is it possible to set the out/ directory on other drive? I don't have a big single drive for both repo and out/ folder during compilation.

Edit: self answers: Set environment "export OUT_DIR_COMMON_BASE=<path-to-your-out-directory>"
[Android] mjb32803:
I am looking for info on signing builds as well.

Trying to solve the following problem, which I think is related to having unsigned build.

Have d2vzw, latest TWRP 3.2.1-0

Cannot flash my build on top of OFFICIAL LOS, get ERROR: 7

I can only flash if I do a Factory Reset.
[Android] qoejohn:
https://wiki.lineageos.org/signing_builds.html
[Android] saqlain abbas:
No Dear

merge two partition easy solutiom
[Android] mjb32803:
Thanks for link.

The instruction seems "odd". It says this:

Generating and signing target files

After following the build instructions for your device, instead of running brunch <codename>, run the following:

breakfast <codename>

mka target-files-package dist

I don't understand why is says to substitute BRUNCH with BREAKFAST????? Is this a typo?
[Android] qoejohn:
https://gist.github.com/fourkbomb/ce92262fc633a9a001e19095c0e9d734
[Android] Mcenzie:
Deleted
[Android] Spooderman46:
Deleted.

Edit: it's taken me a solid day to even download the Lineage source, and I'm still going.

So. many. Errors.
[Android] Sebaxakerhtc:
Build

Hi. Need help.

Building official LineageOS for oneplus3t

When i at 81% it stack with error.

In file my error "jack" and command for "jack" is work normally.
[Android] FSadino:
I remember having similar jack problems in past and I found resolution HERE.

See if it can help you!
[Android] Sebaxakerhtc:
Link is not work.
[Android] FSadino:
Fixed!
[Android] Spooderman46:
Having an absolute headache here. Was planning to build roms for both Kenzo and Axon7 but decided against Kenzo as the device isn't working great.

But now I seem to be missing some dependencies for it and can't even complete a repo sync.

Any ideas as to what I can try to remove the Kenzo device tree all together?

Syncing work tree: 70% (425/607) Traceback (most recent call last):
File "/home/user/android/lineage/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/home/user/android/lineage/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/home/user/android/lineage/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/home/user/android/lineage/.repo/repo/subcmds/sync.py", line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/home/user/android/lineage/.repo/repo/project.py", line 1327, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync)
File "/home/user/android/lineage/.repo/repo/project.py", line 2491, in _InitWorkTree
shutil.rmtree(dotgit)
File "/usr/lib/python2.7/shutil.py", line 253, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 251, in rmtree
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/home/user/android/lineage/kernel/xiaomi/msm8956/.git'
[Android] FSadino:
Missing kernel repo on manifest.xml
[Android] Spooderman46:
Thank you very much. I've got on to the build stage, just one question that I thought might be worth asking. Is it normal for it have several hundred warnings continuously appearing throughout the buildin.
[Android] Not-Cool boy:
Please man

Just tell me that i can do it with windows operating system. And no one just says where to write these commands. Some use linux, ubuntu or mac os. Others use some kind of terminal of google with browser i'm so confused :confused:
[Android] Mcenzie:
Like this ?

https://xdaforums.com/android/software-hacking/guide-how-to-build-lineageos-15-1-t3750175/page5
[Android] FSadino:
This tutorial is for Linux systems only!
[Android] bunnyy:
When building lineage 15.1 for sm-a5 sim not working??

have tried extracting cbd file into radio config for my device tree

Help please!!!! [MENTION=4315132]FSadino[/MENTION]
[Android] Mcenzie:
Do a repo sync. And after this You can check at all Files completly downloadet.
[Android] FSadino:
Do "lunch" chose your device and paste output
[Android] bunnyy:
[MENTION=4315132]FSadino[/MENTION] help bro please.....
[Android] FSadino:
I wish I knew everything :)
[Android] luckysoul777:
[MENTION=4315132]FSadino[/MENTION],

I solved the problem! I had to manually create the roomservice.xml file *BEFORE* running repo sync for all the necessary files to be pulled from github.

Further, I had to insert the following statement <project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github"/> in addition to the usual default stuff like <project name="LineageOS/android_device_samsung_n5120" path="device/samsung/n5120" remote="github" />.

Now, with that one checked off, I'm moving on to my next project. My final goal is to modify the N5120 ROM to run on an SGH-I467M. Both are variants of Note 8.0. The difference is N5120 has international LTE bands while SGH-I467M is North American. N5120 also has an ear piece, a proximity sensor and 2 MICs while I467M has no ear piece, no proximity sensor and with only one MIC.

The result of running N5120 ROM on I467M is, as expected, SIM not detected, ambient light sensing and MIC not working.

Can you please point me in the right direction where I should look to fix these problems? I assume it's somewhere in the kernel. Thank you again!
[Android] pranavaryans:
Trying to compile CypherOS for MI MAX 2 (Oxygen). Reached 47% in compiling but got errors about

assembler.o

api.o

Full Error Code :

https://pastebin.com/bu89DGFc

please help
[Android] sohail0098:
Thanks for this

Hey [MENTION=4315132]FSadino[/MENTION]. Thanks for this awesome guide. I have successfully built many different roms for my device.

Recently I came across something that caught my attention. It was about using GPU to compile ROMs instead of CPU (export USE_GPU something). Is it really possible? Won't there be any problems?

On top of that, can I use that method if I am running Ubuntu in VirtualBox?

Also, I have a request for you. I would appreciate it if you could guide me upon compiling ROMs with custom kernels. I have been using the same stock kernels up till now and it seems kind of basic ( I don't remember words very much).

Also, about cherry-picking commits, how do I pick multiple commits?

Thanks a million times for this guide. This guide is/was my first and last guide for learning to create a ROM.
[Android] FSadino:
Imagine you want to cherry-pick commits A, B, C... Z

1. git cherry-pick A..Z (A should be older than Z)

This will not cherry-pick A, only B, C, D...Z

2. git cherry-pick A^..B

This WILL cherry-pick all (including A)

About compile with GPU never eard about it but if you find something share with us :)
[Android] sohail0098:
Thanks a lot. This will be helpful.

And I saw that thing about GPU at halogenOS GitHub.

"export USE_GPU_FOR_BUILDS=true"

github.com/halogenos/android_manifest

Also, I have a doubt. If I am building and AOSP ROM with some minor modifications like scrollable qs tiles, where do I cherry-pick commits from? From other ROMs? Won't there be conflicts since they have an extra entity that contains all the modification???

For exampl, I want a commit from AOKP, then how do I manage the commits that are in ROMCONTROL, since my AOSP based rom doesn't have that?

P.S. :
[Android] Mixterix Se7en:
Can this guide be useful for compiling unofficial roms?
[Android] FSadino:
Yes, just change your source :)
[Android] tripLr:
You need to make sure GPU is enabled in your Linux kernel. Depending what kernel you are using the GPU and which video card u use can make a difference. The GPU was originally used for mining Bitcoin because it's processors were better for certain types of math.

So yes, if you have a quad core CPU with x memory, and a GPU with Y memory, your kernel has access to both.

I f you Google Kernel newbies there is some guides for building kernels. I am working on a detailed kernel build guide at www.github.com/tripLr .

Ubuntu has mainline compiled kernels including dailies and release canidate from Linus Torvalds source.

Google Ubuntu mainline PPA kernels and scroll down.

Look at kernel.org to see the latest stable.

If your running a stock kernel, every option is compiled in. Except for the newest Nvidia GPU options. Those may require downloading the Linux driver's from Nvidia.

PM me your email address if you need some help.

Note: I don't have a GPU worth trying to compile on. But I can help you through the process of compiling a kernel for your hardware
[Android] sohail0098:
Thank you. I will make sure to give a look at this. I have a nvidia 1050ti oc edition (4gb). I will see about this after my current exams are over.

I will PM you soon about this. I have something in mind too.
[Android] 1stTimePlay:
I am facing this issue when try to build ROM LineageOS 14.1 for my Lenovo K5 plus (A6020). Does anyone know how to fix this. Thanks in advance
[Android] nuz81:
Hello everyone, I'm trying to build a lineage 15.1 rom.

Here the latest terminal output:

Anyone can help me to investigate this failure?

Where can I find a proper log?

Thanks in advance
[Android] CM_developer:
Sadly we won't have help on this. We just have to look and see if anyone else has encountered it or fix it yourself and hope it worked. I don't mean to sound rude at all i just have the same problem so I'm resolving it for myself and restarting the build
[Android] djdisodo01:
i'm thinging of building a new kernel

my device is teclast x80 power B2N4 (cherry trail cpu)

its stock kernel supports x86

but, i want to use x86_64 kernel to improve performance...

where can i get the kernel source that i need

and.....

as kernel architecture is different, when flushing the kernel, I know it will not boot after flashing. will I have to flash a kernel, ROM, and recovery without rebooting it in fastboot?
[Android] FSadino:
I believe x86_64 kernel is not compatible with x86 architecture but since I'm not kernel developer and this thread is more focused on ROM build, you may try to find help HERE :good:
[Android] chankruze:
Where should i sync my device tree ?

Let i synced los in Work directory should i sync device tree & vendor tree in the root of Work dir ?

Asking before i was working on embeded devices so for AOSP on x86 device i used to sync the aosp device source tree only.
[Android] CM_developer:
When you sync your device tree you sync in in a folder (folder name) run repo sync after you run repo init <branch name and version> you can find your device source code and merge it into the right places it needs to be in. I'm sorry if I'm confusing anyone
[Android] chankruze:
So device tree , vendore tree ,los source don't need to be in one folder ?

do you mean i can edit default.xml ?
[Android] CM_developer:
Yes you can edit it to your needs :) its reccomend that you sync the while device tree your planning on working with into one folder to keep it organized

I'm currently working on CM11 for the Galaxy Young and my OS to SDcard port (just like OS2SD but without twrp) and had to edit the default.xml and a couple of other things to sync the device tree, vendor, etc

The device source vender, tree, etc needs to be in the device tree