yashsingh1/xdaforums huggingface dataset:
[Android General] heindrix:
Oh yes, sorry i forgot to give updates.

Yeah actually i've pulled it out nicely!

After solving the problem about brunch error (switched to Ubuntu 16.04 and the brunch process finished nicely), i flashed the rom to my device but it got bootloop, but i've learned how to get logcat and kernel log even the rom causing bootloop.

I try to figure out the errors in the logs, and try cherry-picking to solve the errors, and eventually bits-by-bits the errors that causing bootloop was solved.

And yes the rom now boots nicely!

Thank you very much for your concern that you follow-up to me, and thank you very much for this tutorial, which helps me so much.

There are still many things i've to learn, maybe i'll keep make you busy in this thread. :D:D:D
[Android General] AlaskaLinuxUser:
Wow! Great work! :good: :good: :good: :highfive:
[Android General] beast97:
am trying to builf aosip for hammerhead

but i got some errors

help me with these

i saw u r video i didn't understand

vj@ubuntu:~/Aosip$ lunch aosip_hammerhead-userdebug

Command 'make' not found, but can be installed with:

sudo apt install make

sudo apt install make-guile

Command 'make' not found, but can be installed with:

sudo apt install make

sudo apt install make-guile

Device hammerhead not found. Attempting to retrieve device repository from AOSiP-Devices Github (http://github.com/AOSiP-Devices).

Found repository: device_lge_hammerhead

Checking branch info

Calculated revision: oreo

Branches found:

mm6.0

n-mr1

n

n7x

nougat

oms

Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.

Command 'make' not found, but can be installed with:

sudo apt install make

sudo apt install make-guile

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

** Do you have the right repo manifest?
[Android General] AlaskaLinuxUser:
I suggest that you watch this video:

https://www.youtube.com/watch?v=_OXI2N62Atk&t=0s&index=9&list=PLRJ9-cX1yE1m8k9gztsQnnXDg1G4X1f6z

You need to set up your build environment. You have not downloaded the tools you need to build with. Granted, this video is for OmniRom, but the setup is the same, you need to download tools like "make" so you can make Android. :good:
[Android General] beast97:
i setup the environment & follow u r instruction

but i end up with same error

how to create roomservices.xml??

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

Device hammerhead not found. Attempting to retrieve device repository from AOSiP-Devices Github (http://github.com/AOSiP-Devices).

Found repository: device_lge_hammerhead

Checking branch info

Calculated revision: oreo-mr1

Branches found:

mm6.0

n-mr1

n

n7x

nougat

oms

Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.

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

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

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

** Do you have the right repo manifest?

vj@ubuntu:~/Aosip_hammerheaf$
[Android General] AlaskaLinuxUser:
So, your device has never been built for AOSIP for Oreo, has it?

To answer your question:

https://www.youtube.com/watch?v=qZzA4Au4Q2o&index=9&list=PLRJ9-cX1yE1m8k9gztsQnnXDg1G4X1f6z

You should watch all the videos, since they answer your questions. :good:
[Android General] beast97:
yes my device is not official

am not able to understand from u r video help me with these(am noob)

according to the dependencies only u need to add in roomservices.xml (am i right ,if it wrong guide me)

and how to create own roomservices.xml???
[Android General] GreatGodvin:
Can someone tell me the difference between roomservice.xml and local_manifest.xml ?
[Android General] heindrix:
hi, i'm a newbie too, but maybe i can help you a little.

you can learn from here : https://wiki.lineageos.org/devices/hammerhead/build

you will understand faster to watch the video and learn from the link i send, many things will make sense.
[Android General] AlaskaLinuxUser:
Great questions! Since your both asking a similar question, I will answer them together:

Roomservice.xml is created automagically (yes, it is a word that means automatically and magically at the same time) when you run the breakfast/lunch/brunch command. When you run these commands, first, the make files are instructed to look for the device you asked to build, if the files to do so do not already exist, it magically and automatically creates roomservice.xml, and looks in the github/lab of your rom to see if there is such a device tree there. If so, it adds it to your roomservice list so they can be synced and downloaded. Then it downloads it and building can begin. Just like in a hotel, room service brings your food to you, hence the name.

Local_manifest is a file you create that does the exact same thing, but it is not made automagically (there's that word again). You create it and add things to it. These could be devices, but also could be other apps you want added to your build. So it could be used for anything. Features, devices, apps, files, vendor files, etc. Just like the default_manifest file, it has a list of repositories to sync and points to where to get them and where to put them.

Here are several videos I have explaining where and how to do that:

https://www.youtube.com/watch?v=C8JtSk3KbTA&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&t=0s&index=28

https://www.youtube.com/watch?v=GayZ6GM6PKE&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&t=0s&index=44

https://www.youtube.com/watch?v=qZzA4Au4Q2o&index=10&list=PLRJ9-cX1yE1m8k9gztsQnnXDg1G4X1f6z&t=5s

https://www.youtube.com/watch?v=LpzHZVbla4E&t=4s&list=PLRJ9-cX1yE1lm9qFpVkOBO1oFJVFFK-fk&index=3

https://www.youtube.com/watch?v=wIlsBAb14lQ&t=0s&list=PLRJ9-cX1yE1lm9qFpVkOBO1oFJVFFK-fk&index=4

Some are HD, some are SD, but they are all informative. Hope that helps.

I highly recommend for anyone joining the conversation, please watch all the videos, I know, 24 hours of videos are really a lot to take in, but they will help you tremendously. :good:

Also remember, just because you are building for (name your device/rom/version of android) that doesn't mean ignore the other videos. Some videos I explain different things you need to know, and they were designed to complement each other. :good:

P.S. The XML files are read alphabetically, so local_manifest gets read before roomservice! Please keep that in mind, if there is a conflict of what files to download....
[Android General] GreatGodvin:
Thanks a lot. This was exactly what I wanted to know.
[Android General] 63c:
thanks for the guide kind sir
[Android General] IvanHephaestus:
Hi AKLU, building aospExtended rom i faced with this error https://pastebin.com/FUmuHdU4 i even can't understand where should i search. Can you help?
[Android General] prabhjot368:
hi sir,

i was building aospa for my device and i was getting some errors, somehow i solved most of them but not can't find solution for Camera.HAL error.. .. maybe i need some more files .. can u help? I'll give you full error log when i retry to build it.
[Android General] AlaskaLinuxUser:
I'm a bit laid up at the moment, but I'll give a look....

I'm not sure looking at the logs. Line 5 seems problematic:

ERROR: Dex2oat failed to compile a boot image. It is likely that the boot classpath is inconsistent. Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS=--runtime-arg -verbose:verifier to see verification errors.

But I can't see what went wrong. I'd start searching there though.
[Android General] beast97:
After adding vendor to localmanifest am unable to sync

help me with these error

error: Cannot fetch DirtyUnicorns/android_vendor_lge/hammerhead (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync vendor/lge` to proceed.)

Fetching project platform/system/libfmq

Exception in thread Thread-522:

Traceback (most recent call last):

File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner

self.run()

File "/usr/lib/python2.7/threading.py", line 754, in run

self.__target(*self.__args, **self.__kwargs)

File "/home/vj/Aosip_hammerheaf/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList

success = self._FetchHelper(opt, project, *args, **kwargs)

File "/home/vj/Aosip_hammerheaf/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper

prune=opt.prune)

File "/home/vj/Aosip_hammerheaf/.repo/repo/project.py", line 1229, in Sync_NetworkHalf

self._InitGitDir(force_sync=force_sync)

File "/home/vj/Aosip_hammerheaf/.repo/repo/project.py", line 2267, in _InitGitDir

raise e

GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync vendor/lge` to proceed.

Fetching projects: 98% (566/577) Fetching project android_hardware_qcom_media

Fetching projects: 99% (572/577)

error: Exited sync due to fetch errors
[Android General] zelendel:
Just run with the force sync agument. So it should be

Repo sync - - force-sync

You will be fine
[Android General] beast97:
am finally sync with the above comand

while building it come out with another error

help me with these

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

vj@ubuntu:~/Aosip_hammerheaf$ time mka kronic

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

TARGET_BUILD_VARIANT=userdebug

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

BUILD_ID=OPM6.171019.030.K1

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

[44/44] bootstrap /home/vj/Aosip_hamme...ut/soong/.minibootstrap/build.ninja.in

[4/4] /home/vj/Aosip_hammerheaf/out/so...rheaf/out/soong/.bootstrap/build.ninja

[866/867] glob vendor/qcom/opensource/interfaces/wifi/*/Android.bp

[56/56] /home/vj/Aosip_hammerheaf/out/...Aosip_hammerheaf/out/soong/build.ninja

/home/vj/Aosip_hammerheaf/out/build-aosp_hammerhead.ninja is missing, regenerating...

[691/1052] including ./system/sepolicy/Android.mk ...

./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

[1052/1052] including ./vendor/qcom/opensource/rcs-service/Android.mk ...

platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests

platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh

[ 99% 1269/1270] glob vendor/qcom/open...erfaces/wifi/supplicant/1.0/Android.bp

ninja: error: 'device/sample/etc/apns-full-conf.xml', needed by '/home/vj/Aosip_hammerheaf/out/target/product/hammerhead/system/etc/apns-conf.xml', missing and no known rule to make it

01:43:28 ninja failed with: exit status 1

#### failed to build some targets (06:15 (mm:ss)) ####

real	6m15.195s

user	2m10.415s

sys	4m29.134s

vj@ubuntu:~/Aosip_hammerheaf$
[Android General] AlaskaLinuxUser:
vendor/qcom/open...erfaces/wifi/supplicant/1.0/Android.bp

ninja: error: 'device/sample/etc/apns-full-conf.xml', needed by

Remember to look at your output for key words, like error and failed.

This line tells you that your files in

vendor/qcom/open...erfaces/wifi/supplicant/1.0/Android.bp

Is looking for

device/sample/etc/apns-full-conf.xml

And cannot find it. So either find it, or remove the call for it. :good:
[Android General] beast97:
how to remove the call???
[Android General] AlaskaLinuxUser:
In the calling file, the one in vendor, android.bp, find the line that references the APN file and comment it out or remove it.

Warning: there is a reason it is called, so removing it is not always the best option. :good:
[Android General] krishV:
Sir,i am trying to build pixel experience ROM for mi max hydrogen but i am getting error

Code:

vamsi@vamsi:~/pie$ breakfast hydrogen

including vendor/aosp/vendorsetup.sh

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "aosp_hydrogen". 20:26:58 dumpvars failed with: exit status 1 Device hydrogen not found. Attempting to retrieve device repository from PixelExperience-Devices Github (http://github.com/PixelExperience-Devices). Repository for hydrogen not found in the PixelExperience-Devices Github repository list. If this is in error, you may need to manually add it to your .repo/local_manifests/pixel.xml build/make/core/product_config.mk:234: error: Can not locate config makefile for product "aosp_hydrogen". 20:27:15 dumpvars failed with: exit status 1 build/make/core/product_config.mk:234: error: Can not locate config makefile for product "aosp_hydrogen". 20:27:15 dumpvars failed with: exit status 1

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

** Do you have the right repo manifest?

are they any tutorials for building ROM for pixel experience
[Android General] RebelLion_:
Did you try what it suggested in the error? Did you try searching the error in Google?
[Android General] prabhjot368:
look into pixel experience github devices.. and do change the files in your device tree as follows.. like changing as per the PE requirements
[Android General] beast97:
can u point out me wat is the error

[ 27% 1946/7180] Building with Jack: /...k_intermediates/with-local/classes.dex

FAILED: /home/vj/Aosip_hammerheaf/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex

/bin/bash /home/vj/Aosip_hammerheaf/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp

Out of memory error (version 1.3-rc7 'Douarn' (445000 d7be3910514558d6715ce455ce0861ae2f56925a by android-jack-team@google.com)).

GC overhead limit exceeded.

Try increasing heap size with java option '-Xmx<size>'.

Warning: This may have produced partial or corrupted output.

[ 27% 1951/7180] Building with Jack: /...http.legacy_intermediates/classes.jack

ninja: build stopped: subcommand failed.

21:48:07 ninja failed with: exit status 1

#### failed to build some targets (33:47 (mm:ss)) ####

vj@ubuntu:~/Aosip_hammerheaf$
[Android General] krishV:
No i didn't find any information about it

---------- Post added at 08:03 AM ---------- Previous post was at 08:01 AM ----------

Sir, Can you explain how to change the device tree according to pixel experience please
[Android General] AlaskaLinuxUser:
Jack is out of memory. It says you don't have enough ram to build it. You can web search Jack build errors not enough memory, and follow some of those guides to try to fix it, but the best thing to do would be to get more ram. :good:
[Android General] AlaskaLinuxUser:
This video will help:

https://www.youtube.com/watch?v=T1I...u-vkgsj61U-Zv3fjzwZ&index=55&t=0s&app=desktop

It shows how to change from lineage to aokp. Look at some PE ROM device trees and change your device tree to match. :good:
[Android General] prabhjot368:
are you going to make videos for caf based roms in future?
[Android General] beast97:
tq build has been completed

but it end in bootloop stuck at google logo (logs attached)

how to fix this

https://pastebin.com/qi8sPHe6
[Android General] rajesh@xda:
I got same error once and solved by adding these line "androidboot.selinux=permissive" in kernel command line of "boot.img"..it may help:good:
[Android General] AlaskaLinuxUser:
I'm not sure. I'll think on it.

I noticed magisk in the logs. Is magisk built in, or did you flash it? You should never flash magisk until you are positive everything else works when building a ROM. :good:
[Android General] krishV:
Exited sync due to fetch errors

my pixel.xml

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

<project name="android_device_xiaomi_hydrogen" path="device/xiaomi/hydrogen" remote="pixel" />

</manifest>

same error what should i do please help me

repo sync

Fetching projects: 99% (634/640) Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_audio
Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media

Password for 'https://github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/PixelExperience/android_device_xiaomi_hydrogen/'
Username for 'https://github.com': vamsikrishna999
Password for 'https://vamsikrishna999@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/PixelExperience/android_device_xiaomi_hydrogen/' not found

error: Cannot fetch android_device_xiaomi_hydrogen

error: Exited sync due to fetch errors

---------- Post added at 05:06 PM ---------- Previous post was at 04:14 PM ----------

vamsi@vamsi:~/pie$ breakfast aosp_hydrogen-eng
including vendor/aosp/vendorsetup.sh
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "aosp_hydrogen".
22:28:30 dumpvars failed with: exit status 1
Device hydrogen not found. Attempting to retrieve device repository from PixelExperience-Devices Github (http://github.com/PixelExperience-Devices).
Repository for hydrogen not found in the PixelExperience-Devices Github repository list.
If this is in error, you may need to manually add it to your .repo/local_manifests/pixel.xml
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "aosp_hydrogen".
22:28:31 dumpvars failed with: exit status 1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "aosp_hydrogen".
22:28:32 dumpvars failed with: exit status 1

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

i have changed the device tree according to pixel

repo sync

Fetching projects: 99% (634/640) Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_audio
Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media

Password for 'https://github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/PixelExperience/android_device_xiaomi_hydrogen/'
Username for 'https://github.com': vamsikrishna999
Password for 'https://vamsikrishna999@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/PixelExperience/android_device_xiaomi_hydrogen/' not found

error: Cannot fetch android_device_xiaomi_hydrogen

error: Exited sync due to fetch errors

local_manifst (pixel.xml)

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

<project name="android_device_xiaomi_hydrogen" path="device/xiaomi/hydrogen" remote="pixel" />

</manifest>
[Android General] AlaskaLinuxUser:
Is your Github repository public. Looks like a permission issue.
[Android General] krishV:
Sir,How to solve this permission issue of GitHub should I upload the device tree official pixel experience git repository
[Android General] @vjnexus:
After I completed my build everything is in .img format

How should I make it as flashable.zip (twrp)???
[Android General] minakshisondule:
Thank you

Thank you for this great article..This will be very useful
[Android General] AlaskaLinuxUser:
What is the link to the actual repository you are trying to fetch?

For what ROM, android version, etc?

You may need $ mka otapackage

Thanks! I'm glad they are helpful. :good:
[Android General] krishV:
What is the link to the actual repository you are trying to fetch?

I am actually trying for mi max hydrogen device tree is in my github repository
[Android General] @vjnexus:
Aosip 8.1

Mka otapackage ??? I can't really understand

Help me how to compile as an flashable zip
[Android General] AlaskaLinuxUser:
Yes, so what is the link to that repository. I think your problem is in your manifest file. I don't think it is appropraitely looking in the right place for your repository. With the link, I can show you how your manifest file should look. If that is the problem. :good:

Perhaps this video will help: I know, it's lollipop, but the command and principles are the same. :laugh:

https://www.youtube.com/watch?v=mWXpC3yr4SM&t=0s&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=23
[Android General] krishV:
Sir, I have changed in local manifest (pixel.xml) but it is redirected to its official pixel experience GitHub repository.

Even I am trying to build for other devices which are already existed in official pixel experience repository I am getting the same error
[Android General] @vjnexus:
Change remote to github
[Android General] krishV:
Yea I have change but same error no change
[Android General] prabhjot368:
okay,, i have built some builds for my device but some of them are rebooting from half stucked bootanimation.. tried lineage oreo and candy nougat these both got the issue.. i was able to get logs from candy i am attaching them. i hope you will help me to solve the issue ..

thanks again

https://pastebin.com/yP2JWF32

and getting this error while building cosmic nougat.. i think it's rom source issue

https://hastebin.com/eduwijotoq.coffeescript
[Android General] @vjnexus:
Send the device tree link

Not the one u upload
[Android General] krishV:
Sorry I didn't understand which one should I send repository or in my local machine
[Android General] AlaskaLinuxUser:
For the boot loop:

Error::Cannot open the file /vendor/firmware/keymaster/keymaster.mdt
QSEECOMAPI: : Error::Loading image failed with ret = -1

Does that file exist? With proper permissions (0644 or rw-r--r--)?

Essentially, your device can't open the hard drive because the phone is encrypted.

A couple of options:

A. Wipe the phone, do a format in TWRP of the system and data drives, then flash your rom, should work.

OR

B1. Look for the file, give it proper permissions if it exists and see if that works.

OR

B2. If the file is not there, extract it from the phone with stock rom installed, and add that to your vendor files and build. That may help.

For the second part, about the rom source code for cosmic nougat:

/tmp/targetfiles-7nyQOU/SYSTEM/app/Chromium/Chromium.apk: write error (disk full?). Continue? (y/n/^C)

Is your disk drive, home drive, or temp drive full?
[Android General] @vjnexus:
Repositoty
[Android General] krishV:
This is from lineage os GitHub .

https://github.com/LineageOS/android_device_xiaomi_hydrogen

From this link I have changed according to pixel experience
[Android General] prabhjot368:
checked as you said..

1. there is no such file as mentioned .. i checked all the versions of trees but didn't find..

2. my working dir is extra disk mounted as /data not /home .. I think temp drive would be full how can i free up space if it's full??
[Android General] @vjnexus:
Change project name like this

"LineageOS/android_device_xiaomi_hydrogen"

And Change remote to github
[Android General] :
Hi, is it possible that you can help me with my error?

I'm building CAF for OnePlus 6T, (sdm845), and using Lineage trees. I know there's lots of work and all that, but I'm getting an error that says:

QSSI: not enabled for sdm845 target as /RELEASE/QSSI/QSSI_enforced_targets_list.txt was not found.

This isn't the error that causes the build to fail, but I'd like to solve it. Apparently QSSI is related to GSIs, but I'm not building one right now.

Do I need to worry about enabling this? And if I want to, how would I do that? Because there's usually no release folder in Android source as far as I know, and I can't find any examples of that file either

[MENTION=7026648]AlaskaLinuxUser[/MENTION] if you can help that would be amazing! :)