yashsingh1/xdaforums huggingface dataset:
[Android] Ninnix96:
if I have a unsopported device (zuk z2 pro) how can sobstitute the breakfast and brunch command?
[Android] FSadino:
This thread is for supported devices, that will be my next guide
[Android] Ninnix96:
Yes I know... You can give me a only this little help now? Thanks I hope to see it very soon
[Android] qudamahlinux:
I hope i'll see it soon, because there is no custom ROM for my device!
[Android] FSadino:
Did you installed "bison"?
[Android] mukesh22584:
[MENTION=4315132]FSadino[/MENTION] Same issue is raising with me while I've compiled many time successfully,

I've posted my issue in many thread/community but nobody helped, So I decided to quit for some times, But after seeing same issue I've also posted here and I've installed "bison"? But as you've suggested I'll do again, Anyway my issue is...

Looking for dependencies in device/oneplus/cheeseburger

Looking for dependencies in device/oppo/common

Looking for dependencies in device/qcom/common

Dependencies file not found, bailing out.

And build goes succesful but when I've flashed that build I'm unable to access my Storage, I've got message "No SD card present,

Someone please help me or link me to understand about dependencies files..

Self compiled RR [emoji1128]
[Android] FSadino:
For your sdcard problem try this:

1. Install any terminal emulator

2. Create a directory named external_sd in the sdcard

3. Open terminal emulator and excute following commands:

su

mount -o bind /mnt/emmc /sdcard/external_sd

4. Create a new directory using either file explorer app or mkdir command in the terminal emulator.
[Android] mukesh22584:
How is that possible to creat directory while I'm unable to access SD card..

Any adb command for this...

Self compiled RR [emoji1128]
[Android] htiellr:
Thanks for your tip. Looks like some of packages were not installed properly. I re installed everything again and the build ran for 10 mins and showed me a different error.

make: *** No rule to make target 'vendor/lge/mako/proprietary/vendor/firmware/tzapps.b00', needed by '/home/karthick/android/system/out/target/product/mako/system/vendor/firmware/tzapps.b00'. Stop.
make: *** Waiting for unfinished jobs....
Copy: /home/karthick/android/system/out/target/product/mako/system/vendor/firmware/q6.mdt
make: Leaving directory '/home/karthick/android/system'

Thanks,
[Android] FSadino:
You can't access internal memory or external sdcard?
[Android] FSadino:
You didn't extract proprietary blobs from your device
[Android] mukesh22584:
OP5 has only internal, And basically problem is in my build that is happening due to dependencies error...

Self compiled RR [emoji1128]
[Android] FSadino:
I found this thread

If it works, you have some problem related to selinux
[Android] htiellr:
Thank you very much. I extracted the blobs from the device but looks like some were missing. So i used the ones from TheMuppets.

The build ran ok but it wont boot. Any ideas why?

Thanks again. You have been great help. :)
[Android] sohail0098:
Syncing work tree: 57% (336/589) error

I got this error while I was away. So, I wanna ask, if it will continue from where it left off if I pass the command"repo sync" again? or will it do it from start? it took me almost 8hrs for this. Or is there something else that caused this?

Edit: when i rerun "repo sync" it gives error "error: Exited sync due to fetch errors"
[Android] FSadino:
If stuck at boot logo maybe is kernel related problem
[Android] FSadino:
Use " repo sync -f --force-sync" and be sure you don't have WiFi drops or use ethernet
[Android] sohail0098:
Thanks a bunch.. I had the connection on all the time. but it happens sometimes. It completed successfully. Can you explain the thing while extracting device specific blobs. Do i need to create the folder myself for ~/android/system/device/"your device"/"code name"? and i already set my path for platform tools still i get the error command not found while doing extract-files.sh.. Do i need to use ./extract-files.sh?
[Android] FSadino:
You are skipping one step (Prepare the device-specific code)

After that step, you will have ~/working_dir/device/your_device/code_name

Inside that folder, you just have to type ./extract-files.sh and don't forget to plugg your device through ADB
[Android] sohail0098:
Sorry about that. I thought I should probably include them before breakfast so i don't have to wait for it. My apologies. And thanks a lot. This is a Well written amazing guide and is completely easy to understand.

And also, when will you put the guide about adding/removing features for custom LineageOS?.

Thanks a lot.
[Android] FSadino:
When you "repo sync", you are downloading all LineageOS base files that are common to every device.

When you do " breakfast device" you are downloading device especific files like device tree and kernel (above others), so after that, you can see that a new file is created at "~/working_dir/.repo/local_manifests/roomservice.xml" showing your especific device repos
[Android] sohail0098:
Thank you for this. But I currentlly am waiting at this step. There is no dependency file in my device/qcom/common. Where do I get that dependency file? the other folders have the lineage.dependency files with different codes. Does my device need to be on stock rom? or LOS?
[Android] FSadino:
which is yours device?
[Android] sohail0098:
Redmi Note 3 a.k.a kenzo. Also i did the part of Extracting Propreitory Blobs.
[Android] FSadino:
You don't need any dependence file on qcom/common folder. If you did "breakfast" and extracted proprietary blobs successfully you are ready to compile.
[Android] sohail0098:
Did "brunch kenzo" but there is some problem. I pasted the whole console o/p in pastebin. please check it at the end.

https://pastebin.com/SHesZQxf

Update: No prob bro. The building process started after i reboot my laptop. Thankyou.
[Android] svprm:
Thanks for great tutorial.

Anybody tried to compile Lineage 15?

Because already new branch lineage-15 is up on the github. And is it ready to compile?

Actually i tried to compile Lineage 15 for Oneplus 3. But i;m facing below error at "soong_build docs" stage.

field arch.arm.kryo does not exist

on each Android.bp files.

Any help would be appreciated.
[Android] darjwx:
Lineage 15 can be compiled but it's so wip right now.

There are a ton of patches you will need to solve errors that are still being reviewed on Gerrit. I would take a look at the open section on Gerrit.

That error means most likely a missing field (variable) on a structure of the soong repo. I think I saw a commit for it. I will edit this post with it soon.

EDIT: You need to pick this topic to enable support for kyro targets: https://review.lineageos.org/#/q/topic:kryo-libc+(status:open+OR+status:merged)
[Android] sm_adil:
Sorry to bother u man..

I had a question..

My device developer has stopped building ROMs for the device..so I wanted to continue the development

Currently he provided cm 12 branch tree (device,vendor and kernel tree's)

Which is all set and ready for compiling ROM

So what and all changes should I adapt to build

Say LOS 12 to LOS 13 and later LOS 13 to LOS 14??:confused:

Or is it just in kernel that we have to change??

My device isn't supported by official LOS team..so I'm asking..
[Android] darjwx:
You have to modify device, kernel, and probably even other repos as well. Brinuping a device to a newer version of android is not always that easy. A lot of parts of the code change with each revision and the device tree has to change as well.

My advice. Take the tree for 12.1 and sync 13.0 then start building. Fix all the compilation bugs and flash the zip. It will most likely not boot. This is the hard part. You will have to mess up with logcats during the boot process to figure out the problems. This is how you update a tree to a newer android version.

Other trees of similar devices can sometimes help, but don't follow them blindly.
[Android] svprm:
Thank you. That solved above issue.

Now compilation completes within 2mins without any error but with some warnings. I think i have to enable dispabled repos in the snippets/lineageos.xml . But i'm not sure what are repo needs to be enable.

Full Log:

https://pastebin.com/babTpwby
[Android] darjwx:
Do not worry about warnings for now. They are not the same as errors as in they won't stop the compilation. Is good to fix warnings, but for you now is pointless.

Do:

make bacon -jx

Being x the number of threadas you want to use (and your processor supports), and lets see how it goes :P

Btw, an advice. Do an eng build to enable the debug tools by default.

lunch lineage_oneplus3-eng
make bacon -jx

Is likely that the build won't boot, and eng builds are better for that scenario.
[Android] svprm:
Thanks for quick reply.

But same.

https://pastebin.com/pkAvgmY8
[Android] darjwx:
Wow, that is so weird. It doesn't start the build, but I do not see any error despite a syntax error in toybox, and it ends with compiled succesfully.

I will let you know if I find the reason.
[Android] svprm:
Any update on this?

Thanks
[Android] darjwx:
Sorry for the delay.

I am not totally sure why it happens. In your log there is an awk related error of toybox.

I have found this commit in lineage gerrit, pick it and see what happens.

https://review.lineageos.org/#/c/187155/
[Android] svprm:
No luck. I have no idea where should i look?
[Android] darjwx:
Hmm, thinking about it... I think what you are missing is commits in the build repos to make it actually build the stuff. That's my guess. Check the open commits in Los Gerrit for android_build_soong and android_build. I will take a look later if I get time.

Note: do not pick board-flags-ftw topic.
[Android] FSadino:
* Update 08/09/2017

What is Github and how to use it
[Android] mukesh22584:
[MENTION=4315132]FSadino[/MENTION] Great guide [emoji106], I need some help...

This guide is referring if we want to made all lineage default kernel/device tree etc. Intrested to know if I want to build on top of any custom kernel/Device tree which changes should be there, Actually I've build RR for my Oneplus5 with all defaults but if I want to add Mokee device tree and "Flash Kernel" in my build what should do? Also I've selected "Flash kernel" for my build and made changes in defconfig but still getting error..
[Android] narueon:
C_includes error

Guys I tried to compile LOS15 for Zuk z2 Plus but it fails at the beginning with this error

[1/977] including /home/narueon/LOS15/out/soong/Android-lineage_z2_plus.mk ...

build/core/binary.mk:1533: error: /home/narueon/LOS15/out/soong/Android-lineage_z2_plus.mk: AHardwareBufferTest: C_INCLUDES must be under the source or output directories: /include.

01:06:20 ckati failed with: exit status 1

make: *** [run_soong_ui] Error 1

make: Leaving directory `/home/narueon/LOS15'

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

Can someone tell me how to solve it.
[Android] bxkhoo:
I have some question,

What is the function of fork? Have our own copy to work on? Then if someone updated something, we will get update as well? Or the device tree is fixed, nothing to upgrade? Or we manually sync the sync the github?

Next, adding to the roomservice.xml. Revision="branch" is the branch we want to sync right?

If I want to sync more than 1 branch, then I have to write multiple line? Syncing multiple branches will occupy more space on computer? Then when exactly will I sync the branch? I mean, they will be synced when I keyed in what command? Repo sync?
[Android] Kohul Raj:
Anyone with experience in developing shim - need help
[Android] FSadino:
Yes, you can fork someone repo to use it as your base and start doing your changes.

Yes

Yes but it doesn't make sence.

Yes

Yes
[Android] bxkhoo:
Do we need to constantly keeping our fork up to date manually?

Found a helpful tip here, https://gist.github.com/CristinaSolana/1885435
[Android] FSadino:
Before each build!
[Android] ramakrishna048:
Woah! Awesome is the understatement!

I am reading several tutorials one the same and this is the best yet. Short and useful. Can't wait for the Github tutorial. Thanks
[Android] FSadino:
You mean, Git tutorial because github tutorial is already available ;p
[Android] ramakrishna048:
Ummm...yes. I thought I was wrong. But I was so lazy and sleepy(right now) to cross check. And yes. I am eagerly waiting for your Git tutorial
[Android] FSadino:
Maybe repo sync failed. Try to sync and build again
[Android] Mcenzie:
I sync always before I build. In los 14.1 repo sync finished. In los 15 doesen't finished.
[Android] Kohul Raj:
General Queries

1. As for as i know kernal is present in /boot partition and bootloader and other firmwares are present in a different partition,

Then how would flashing a different kernal would corrupt bootloader and hard brick the device?

2. I have changed the working directory to a new directory and then initiated the repo sync, but the .repo folder appears in the home directory and not the directory i changed

Please help me with my queries
[Android] af03:
My device (e7lteub) hasn't a tree in the Lineage OS repo but the SoC (msm8916) has it, I have found a tree for this device in another repo so I guess I can start from that, I know you are going to do a guide for unsupported devices so I guess all my doubts are going to be solved.
[Android] wadken1:
Total novice here so don;t shout too loudly, please.

I've spent most of the day following the instructions in the OP to build LOS 14 for the H815 (LG G4 International) and so far as I can see I've done everything as written with just one exception - I placed the LOS sources on a different drive to /bin - don't think that this is my problem though.

Anyhow, the problem is that bash is telling that doesn't recognise the "prebuilts/....../ccache", "croot" or "brunch" commands - see below terminal messages. I have no idea what's awrong - any hnelp at all would be appreciated. Many Thanks

Terminal readouts:

:/media/wade/Data #2/android$ prebuilts/misc/linux-x86/ccache/ccache -M 50G

bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory

:~$ croot ?

No command 'croot' found, did you mean:

Command 'chroot' from package 'coreutils' (main)

Command 'proot' from package 'proot' (universe)

croot: command not found

:~$ brunch?

brunch?: command not found

wade@wade-EG41MF-US2H:~$ brunch ?

No command 'brunch' found, did you mean:

Command 'branch' from package 'rheolef' (universe)

Command 'crunch' from package 'crunch' (universe)

brunch: command not found
[Android] FSadino:
When you did "prebuilts/misc/linux-x86/ccache/ccache -M 50G" you were inside "media/wade/Data #2/android" and when you did "brunch" you were inside "wade@wade-EG41MF-US2H:~$"

Were exactly is your working folder?
[Android] wadken1:
repo is in ~/bin as per instructions.

To give myself more disk space I changed "~/android/lineage" to "/media/wade/Data #2/android/lineage" ("Data #2" is the volume name of sdb2 which is mostly empty 250Gb drive). Everything else worked fine and I have all the LOS sources, device tree and blobs below this folder.

The instructions for the "prebuilt....ccache" command were to execute it "from the top of your Android tree" - I guess I misinterpreted this. Should I be in "/media/wade/Data #2/android/lineage:" and then the same for croot and brunch?.

EDIT 1: I launched "prebuilt....ccache" from "/media/wade/Data #2/android/lineage:" and it worked fine but croot still is not recognised in this folder.
[Android] FSadino:
croot is just to go to your working folder. You must do "source build/envsetup.sh" and then "brunch" will work. Obviously this steps have to be done inside working folder
[Android] Gaurav k21:
Will it work on Windows PC ??

If yes, then what softwares do I need to install on my PC ??

I'm New to it, so i will be very glad if someone would help me

Device :-

Galaxy S6
[Android] FSadino:
This guide is for linux users
[Android] wadken1:
Many thanks for your help.

I spotted a problem with my file path due to the disk volume label being "Data #2". While this is not generally a problem is found that in some of the automated scripts it had been truncated to "media/wade/Data" - I guess the text parser in some cases is using a space character as a terminator.

Anyhow, I removed the space and together with your advice I re-ran envsetup & breakfast, re-extracted blobs, then croot and was finally able to run the build.

However, it hung with the following output:

mkdir: cannot create directory ‘/media/wade/Data’: Permission denied

cat: /media/wade/Data/out/build_number.txt: No such file or directory

cat: /media/wade/Data/out/build_date.txt: No such file or directory

^Cbuild/core/ninja.mk:166: recipe for target '/media/wade/Data#2/android/lineage/out/build-lineage_h815.ninja' failed

make: *** [/media/wade/Data#2/android/lineage/out/build-lineage_h815.ninja] Interrupt​

As you can see some parts of the code had not updated the path variable for the working folder. There might be an easy fix for this but in case there are other issues that I haven't uncovered yet I'm going to completely delete the working folder and redo the process from "Initialize the LineageOS source repository"

Cheers
[Android] FSadino:
I never built on external storage but you can try to give permissions to your working folder and all subfolders.

1. create your working folder

* (example) /media/wade/data/android_custom_rom

2. enter working folder (android_custom_rom)

3. Type "chmod -R 755" (without quotation marks)
[Android] wadken1:
Yes. Thanks. I will try that and see how it goes. I'm re-doing everything just now to be sure I have it all in the correct places so it will be a little while before I know for sure if it works.

Cheers
[Android] FSadino:
Ubuntu+xfce
[Android] wadken1:
[MENTION=4315132]FSadino[/MENTION]. Things were pretty successful after I clean everything our and reinstalled except that this time build crashe dout with this message:

OUT_DIR=/media/wade/Data2/android/lineage/out

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

Checking build tools versions...

************************************************************

You are attempting to build with the incorrect version

of javac.

Your version is: /bin/bash: javac: command not found. <<== Something hasn't executed properly here

The required version is: "1.8"

Please follow the machine setup instructions at

https://source.android.com/source/download.html

************************************************************
​

Here's my terminal printout for java -version:

openjdk version "1.8.0_144"

OpenJDK Runtime Environment (build 1.8.0_144-8u144-b01-2-b01)

OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
​

EDIT 1: Typing "javac" at the command line Ubuntu told me that it wasn't installed !!. I installed it from openjdk-8-jdk-headless and restarted the build.

This time it progressed up to:

Starting build with ninja

ninja: Entering directory `.'

ninja: error: 'vendor/lge/g4-common/proprietary/app/ims/ims.apk​

I'm pretty sure that this is because of the blobs I'm using. They are the Nugat set rather than the MM set used on official LOS. ( I wanted to find out if it would work without mods). I'll correct that tomorrow and have another go.

Cheers
[Android] FSadino:
Make sure that "javac" is set to 1.8.xxx

sudo update-alternatives --config javac
[Android] wadken1:
Our set-ups must be quite different, I think. That command just returned "There is only one alternative in link group javac (providing /usr/bin/javac): /usr/lib/jvm/java-8-openjdk-amd64/bin/javac

Nothing to configure."

and the "chmod -R 755" command returned with a "missing parameter" error

I'm using Ubuntu 17.10 by the way.

This must be getting to the point where I'm bugging you now, especially as these issues are not really to do with your guide. Sorry for that, it's not intended, it's just that my Linux knowledge is paper thin and I really should go back and learn to walk before I try to run.

Many thanks again for all your help
[Android] FSadino:
Try to uninstall all java and reinstall openJDK 8
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] khanem:
I always wanted a phone with an small amoled screen and water proofing so i jumped ship from the huge mate 8 to witch i am comparing. I agree with your pros but i found: 1-the camera is average and lacking OIS (need very stable hands), 2- cannot use sd card as default storage (very handy on mate 8), 3- phone very slippery, 4- Design and Screen of a3 2016 seemed better (personal opinion), 5- no stutter but little slow (comparing to mate 8). Only lacks IR blaster to check all boxes but we can't have everything.
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] mario24601:
Great feedback, thanks guys.

You mentioned not display is good but not awesome, could you elaborate? Is issue clarity or something else? Thanks.
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] Sunil_Kaura:
Coming from a larger phone with a quad HD screen, it's never going to look as dazzlingly sharp, but on a 4.7 inch screen 720p still looks great and it is perfectly sharp and clear - if you've ever seen an iPhone screen, this feels much the same. Colours can be adjusted to your preference - I prefer accurate rather than punchy, but you can set it to either or somewhere in between.

I've had everything from a galaxy s6 which has crazy high pixel density to a Moto x, and personally I prefer the 720p smaller screen because it's far more efficient and I don't notice the pixel density difference after an hour or two.

Hope this helps.
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] mario24601:
Thanks!
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] patci32:
Thanks for sharing this. I am also very happy with this phone so far. It's my second day with it, the battery is at 39% with 4h45 sot and 1d3h total since unplugged. In a night of 9 hours, the phone just lost 3%.

I have noticed though that wifi is constantly detected as running by betterbatterysats, even if it's turned off. Any idea how to fix this?
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] F157:
Have you checked in Settings -> Connections -> Location?

There are some wifi settings behind it (in location method and improve accuracy) you can deactivate.
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] patci32:
Indeed, I didn't know. Thanks, I hope this works.

---------- Post added at 01:38 PM ---------- Previous post was at 01:33 PM ----------

Also, could you please tell me if you use other settings to improve your battery life?
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] F157:
Mm, nothing special yet, as I'm really happy with battery life so far.

What I did in the past with other devices is for example use the app greenify (needs root) to hibernate apps you don't want to run in the background.

Also, something that really helped me with my old s4 mini was to set mobile network to 2g, and only switch to lte once required.

And as always, use wifi instead of mobile network as often as possible, disable Bluetooth if not needed, etc.
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] iMaterial:
£280?!?! That's highway robbery for a device with 720p, small battery and everything in budget-range. You get this, all the bells and whistles for £150 with a well known Chinese brand. Now I know why I'd never ever get a Slamsug.
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] Sunil_Kaura:
Please could you elaborate on one of these phones that you can get for £150? I'm pretty clued up but if I've missed something I'd be keen for you to share what you've found for myself and the community - my mother needs a new phone so if you've seen something better than the A3 for less I'd love to buy it
[Samsung Galaxy A3, A5, A7 (2017) Guides, News, & D] iMaterial:
Which stats are you looking for? Battery? Screen res? SoC power?

Compare, with €150 phones, battery, res, SoC, well anything really part from 10 mm in size.