yashsingh1/xdaforums huggingface dataset:
[Android] GamingDevilsCC:
My bad,

Device Tree

I am currently building NitrogenOS for Tissot, however it's not being able to find the boardconfig.mk thats inside of the device source.

ubuntu@Compiler:~/nitrogen$ . build/envsetup.sh && lunch nitrogen_tissot-userdebug

including device/oneplus/oneplus3/vendorsetup.sh

including device/xiaomi/kenzo/vendorsetup.sh

including device/xiaomi/tissot/vendorsetup.sh

including sdk/bash_completion/adb.bash

build/core/envsetup.mk:223: *** No config file found for TARGET_DEVICE tissot generic. Stop.

ubuntu@Compiler:~/nitrogen$

Inside of the code for envsetup.mk:223

SDK_HOST_ARCH := x86

# Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)
# or under vendor/*/$(TARGET_DEVICE). Search in both places, but
# make sure only one exists.
# Real boards should always be associated with an OEM vendor.
board_config_mk := \
$(strip $(sort $(wildcard \
$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
$(shell test -d device && find -L device -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
$(shell test -d vendor && find -L vendor -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
)))
ifeq ($(boardconfig_mk),)
$(error No config file found for TARGET_DEVICE $(TARGET_DEVICE))
endif
[Android] darjwx:
Some things. I guess you are building O.

I just noticed one thing in the code you pasted. It is defining a variable named board_config_mk and then the ifeq that will throw if the BoardConfig file exists uses other variable: boardconfig_mk, while it should use the defined above.

So did you synced recently? Which branch did you synced?

Checked the nitrogen os sources in GitHub and it's correct there. The ifeq uses the variable defined above: board_config_mk
[Android] b50corei5:
Hey everyone, trying to port treble to my device. How can I mount a partions as vendor?

Thanks.
[Android] Black_J:
The log is attached.

Device tree - https://github.com/Black-J88/device_lenovo_A6020/tree/dot-o

Kernel - https://github.com/Black-J88/kernel_lenovo_msm8916/tree/dot-o

Vendor - https://github.com/Black-J88/vendor_lenovo/tree/dot-o

Thanks for updating my knowledge. :highfive:

Please help me with this.
[Android] pranavaryans:
Hello,

I am trying to build Carbon ROM for MI MAX 2. Build 3 ROMs using same Device tree/ Vendor And Kernel.

1. Added my device's lunch combo in vendorsetup.sh of vendor/carbon.

2. Changed My device's .mk and dependencies files and modified it also, but when i am trying to lunch getting this error

pranavaryans@carbon:~/carbon$ lunch carbon_oxygen-userdebug

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

WARNING: Trying to fetch a device that's already there

Traceback (most recent call last):

File "build/tools/roomservice.py", line 363, in <module>

fetch_device(device)

File "build/tools/roomservice.py", line 327, in fetch_device

git_data = search_gerrit_for_device(device)

File "build/tools/roomservice.py", line 84, in search_gerrit_for_device

device_data = check_repo_exists(git_data, device)

File "build/tools/roomservice.py", line 61, in check_repo_exists

"exiting roomservice".format(device=device))

Exception: oxygen not found,exiting roomservice

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

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

** Do you have the right repo manifest?

Solution please Sir..
[Android] NepoRood:
There are open commits to fix this issue, you'll have to wait until they are merged (or you can pick them yourself)

Regards,

Nepo
[Android] bunnyy:
Thank you so much:good::good:

and please can you help me for the above dependency error??
[Android] bunnyy:
ERROR: /home/buns/AOKP/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java:1056.38: KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL cannot be resolved or is not a field

ERROR: /home/buns/AOKP/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java:2613.54: EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI cannot be resolved or is not a field

Wifi is fixed now I'm getting this error while building.... NepoRood
[Android] NepoRood:
It's being worked on and it's a slow process, bear with us
[Android] bunnyy:
I was just confirming if am I the only getting this error. Not in a hurry at all.:good::good:
[Android] dgangwar:
How did you solve the issue of undeclared identifier SkImageEncoder?
[Android] darjwx:
Hey, it's been a while. I will help you when possible. I'm so busy right now with my projects and university, sorry.
[Android] ahmed gamal 1m:
I found this guide :: https://jeffvanderstoep.blogspot.com.eg/2016/05/selinux-kernel-patches-for-android-n.html?m=0

That makes the mm kernel works with n source

But does this guide works with kitkat kernel also or not

Could any one help me and give me the links to the correct patches ??
[Android] IKGapirov:
https://xdaforums.com/showpost.php?p=68602600&postcount=4610

Remove these three from the build..
[Android] quantan:
I meet this error while make brunch:

Would you guys please help me on this. Thanks so much!
[Android] Black_J:
No problem. Take your time. I am in no hurry. Just help me whenever possible. ???
[Android] IKGapirov:
GoodDay Guys!

I try to build AOSP-CAF 7.1.2 for SGS5 (KLTE)

Everything works well, but the sound does`t work and does`t show video.

Can u advise something, there is nothing to find in the subject

.logcat

.dmesg

Thank you in advance!

Decision

I remove this
[Android] :
Is it possible to build 4.4 KitKat ROM for newer devices like LG G6?
[Android] pranavaryans:
[MENTION=5216756]jackeagle[/MENTION] Please help Me: getting this error while compiling AOSPExtended

https://hastebin.com/idofixovoh.sql
[Android] bunnyy:
But they must be included in oder for fully functional rom. What to do then??
[Android] EndLess:
Sir i Faced the same issue .. how can i fix ? i tried searching for the flags in my device tree but mentioned flasga re not there in my device tree , how can i fix this ?

here is the error build log :- https://hastebin.com/rijukadora.pas

device tree used :- https://github.com/test728/dot_xiaomi_device_mido

vendor tree used :- https://github.com/EndLess728/proprietary_vendor_xiaomi.git
[Android] NepoRood:
Line #s 4 and 6 in your error log, follow the path in your device tree and remove those overlays. The error is telling you that while you have the overlay in your device tree, it doesn't exist in the ROM you are trying to build
[Android] pranavaryans:
help me please

https://hastebin.com/idofixovoh.sql
[Android] Black_J:
FAILED: /home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/package-res.apk
/bin/bash /home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/package-res.apk.rsp
AAPT2 link /home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/package-res.apk
/home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/flat-res/vendor/dot/overlay/common/frameworks/base/core/res/res/values_config.arsc.flat: error: resource array/config_disabledComponents does not override an existing resource.
/home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/flat-res/vendor/dot/overlay/common/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
/home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/flat-res/vendor/dot/overlay/common/frameworks/base/core/res/res/values_config.arsc.flat: error: resource array/config_forceEnabledComponents does not override an existing resource.
/home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/framework-res_intermediates/flat-res/vendor/dot/overlay/common/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
error: failed parsing overlays.
[ 4% 1716/37756] build /home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS...apps/Dialer/java/com/android/dialer/app/voicemail/error/res/values-af_strings.arsc.flat
AAPT2 compile /home/black_j/Andro_Dev/DotOS/out/target/product/A6020/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/res/values-af_strings.arsc.flat <- packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/res/values-af/strings.xml

Can anyone help me with this????

Device Tree - https://github.com/Black-J88/device_lenovo_A6020/tree/dot-o
[Android] pix106:
I think your overlay (in your devices tree) contains some values that do not exist in the Android source. so they can not override values that do not exist.
[Android] Douglas Gomes:
I have this error while compiling CosmicOS

Can someone help me?

thank you
[Android] quake73:
try "mka otapackage" or "make otapackage -jX" (where X=number of cores in your pc)
[Android] Douglas Gomes:
I tried and now I have this

Any more ideas?
[Android] quake73:
How do you start the build?

you need to first run ". build/envsetup.sh && lunch" -> select your device -> mka
[Android] Black_J:
OK thanks ...

I get it now...
[Android] Douglas Gomes:
Yes, I did.

now before the compilation appears that.
[Android] Douglas Gomes:
and now?
[Android] quake73:
Ask google for TARGET_KERNEL_SOURCE and/or BoardConfig.mk
[Android] Douglas Gomes:
I can not fix this.

I think I'll start from scratch.
[Android] Douglas Gomes:
Can someone help me?
[Android] Douglas Gomes:
if you solve tell me
[Android] Black_J:
I am trying to build DotOS 2.1 for my device Lenovo Vibe K5 Plus. The build is successful but after flashing the ROM VoLTE is not working and Stock Snapdragon Camera is blue-ish, pics clicked are blue-ish, video recording is not working, but with Footej the camera is blue-ish for the first click, pics clicked are normal(even the first click), video recording is blue-ish.

Device Tree - https://github.com/Black-J88/device_lenovo_A6020/tree/dot-o

Kernel - https://github.com/Black-J88/kernel_lenovo_msm8916/tree/dot-o

Vendor - https://github.com/Black-J88/vendor_lenovo/tree/dot-o

Can anyone please help me with this???

Logcats of Snapdragon Camera and footej camera is attached.
[Android] DiamondJohn:
synch-ing sources from Github

I am having issues with synch-ing sources from Github:silly:

I know of a specific commit that I would expect to see in the source, but I can only see it as a commit, which does not appear in the current source, and have to explicitly repo-pick the commit.; a standard synch does not include this commit in my local source. So, an example is the following.

The commit can be found at: https://github.com/kyasu/android_de...28a4e634e19d8669b25359cc4069/gps/etc/gps.conf

Notice that the top line has been commented out.

However, if I browse the branch, the change is not visible (ie the top line is NOT commented out)

https://github.com/kyasu/android_device_samsung_msm8974-common/blob/lineage-15.1/gps/etc/gps.conf

What am I doing wrong, and/or what do I need to do differently to include this (and other new) commits?:eek:

To update/synch sources, I run the following

repo forall -c git reset --hard;
repo forall -c git clean -fdx;
repo forall -c git checkout -f;
repo sync -fc --force-sync --force-broken --no-clone-bundle;

But as you can see above, even going through the web interface does not work as I would of expected.
[Android] quake73:
Take a look at the history of that file:

https://github.com/kyasu/android_device_samsung_msm8974-common/commits/lineage-15.1/gps/etc/gps.conf

repo sync fetches the freshest version of the file (as it is after the topmost commit). Also when you browse the branch, you also see the latest version of that file. In your case the latet commit removes the comments that were added by a previous one.
[Android] DiamondJohn:
OK, thanks for that:good:, I think I got fixated with that specific commit as the actual GPS fix, and did not pay attention to the actual changes held within the final commit (to correct the GPS fix), when compared to the original commit (which resulted in an unstable GPS lock).
[Android] Black_J:
[MENTION=7237874]NepoRood[/MENTION]
[Android] NepoRood:
Try building without the camera repos and use a prebuilt apk (install from Play) and see if the problem persists. There's not a lot in your logs to go on, other than you're getting a SurfaceFlinger error, which is likely due to missing HALs
[Android] Qiangong2:
Have you tried using "mka clean" then using brunch again? For some reason it looks like it is trying to grab a different device.
[Android] munchy_cool:
trying to build aicp for walleye.

getting this error.

https://pastebin.com/DLFxcZNv

already did

make update-lineage-api
[Android] GroovinChip:
Hello, I installed Ubuntu 16.04 on my laptop and I started following the directions in the OP to install all the tools I need. I installed Java, and when I went to step 2 and ran the first command, I got a lot of errors saying things like 'unable to locate package x' and 'couldn't find any package x'. I then did as op says and ran 'sudo apt-get update' and sudo apt-get upgrade', and ran OP's command again. Same problem. Would anyone please be so kind as to help me?
[Android] NepoRood:
Updated Packages

Run this...

sudo apt-get install git gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev libbz2-1.0:i386 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev libbz2-dev:i386 squashfs-tools pngcrush schedtool dpkg-dev libcap-dev texinfo automake autoconf libgmp-dev libexpat-dev python-dev gcc-multilib gawk libmpfr-dev libmpc-dev libisl-dev
[Android] GroovinChip:
This seems to be doing the trick, thank you!
[Android] NepoRood:
Lunch your device, then try: mka bacon
[Android] munchy_cool:
getting an error when trying to build Nitrogen OS for walleye.

external/tinycompress/Android.mk: error: cplay (native:platform) should not link to libtinycompress_vendor (native:vendor)
[ 5% 5772/108357] build /home/munchy_cool/nos/nitrogen/out/t.../common/obj/JAVA_LIBRARIES/sdk_v16_intermediates/classes.jack
ninja: build stopped: subcommand failed.

pastebin - https://pastebin.com/zEUE9wua
[Android] :
after installing java i am unable to download require tools im getting error like this.

Code:

sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

Package lib32readline-gplv2-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Unable to locate package lib32bz2-1.0

E: Couldn't find any package by glob 'lib32bz2-1.0'

E: Couldn't find any package by regex 'lib32bz2-1.0'

E: Unable to locate package mingw32

E: Package 'lib32readline-gplv2-dev' has no installation candidate

E: Unable to locate package lib32readline5

E: Unable to locate package lib32bz2-dev

im on ubuntu 16.04. And which version of java need installl for nougat and oreo based roms.

my java version -- javac 1.8.0_171

Thank you.
[Android] aala27:
Hey guys,

Can anyone please help me with this error?

I have searched many forums and googled the error to no avail.

Trying to build DotOS for the HTC desire 626 g plus.

If you require information please let me know.
[Android] surendrajat:
For Ubuntu 16.04, Run this one...

Issue this one instead...

sudo apt install android-tools-adb bc bison build-essential ccache curl flex g++-multilib gcc-multilib git-core gnupg gperf htop imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libbz2-1.0 libc6-dev libcurl4-openssl-dev libesd0-dev libgl1-mesa-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libx11-dev libxml2 libxml2-utils lzop maven ncftp nss-updatedb pngcrush python-lunch rsync schedtool screen squashfs-tools tmux unzip w3m x11proto-core-dev xsltproc yasm zip zlib1g-dev
[Android] :
It worked

Thank you.
[Android] surendrajat:
Pleasure's all mine ;)

I hope someone will update the main post.
[Android] :
Bro once i have my device identify. In the post said follow post 9 to make cm tree compatible with your rom source. What does that mean.

What actually i want to know is if i downloaded the source of aex(ex) can i just compile it to make an aex build are do i need to add it to other rom like aosp etc like said in post9. Is this step necessary are it's for only if we want to compile other rom with aex as source.

Pls take a look at pic. Maybe u can understand what im trying to say.

And 1 more thing is if android 9 is released do i need to download the source again.

What are patch do exactly. For example if i made a build and wifi is not working so we add patch to make it work are the patches are used for some other purpose.

Thank you.
[Android] surendrajat:
That's exactly same thing I was struggling with few days back. What happened was that I was using device trees(identity) developed by other devs (and they developed it for Lineage OS and RR). I was happy building RR but when I tried to build AOSP Extendened with same trees (ie. issued

lunch

command), I couldn't find my device codename there.

So, you see if you issue

lunch aosp_somedevice-userdebug

etc. you need

aosp_somedevice.mk

file in device tree, which you can get by renaming and modifying existing

other_rom.mk

file. (Follow post #9:))

Having ROM source isn't sufficient because that's the collection of common source files for all, you'll need device specific(device tree - with

rom_name.mk

file), CPU specific(kernel tree) and Vendor specific trees.

It is necessary only if you can't find your product with proper ROM prefix in

lunch

output (or

brunch

- IDK).

When android 9 comes, create a new dir for that, initialize repo with your existing source dir as

--reference

and you'll only have to download changes.

Patch: Could be a

diff

file,

commit

(cherry-picked by you) or something alike that fixes a bug(like wifi o'course) or error(in building process). It patches something..;)

And yes! You're welcome :)
[Android] pranavaryans:
https;//hastebin.com/xudonupufe.http

Any suggestions please?

Device : MI Max 2

ROM : AOSIP 7.1.2
[Android] Danila West:
Need help from guru -)

Hi everyone!

Question Smart: Wileyfox Storm (kipper) MSM8916

ROM: CypherOS 6.0 (crDroid, lineageos-15.1)

Now I build some roms for Wileyfox Storm (kipper) on Oreo 8.1, for ex. lineage-15.1, cypheros-6.0 crDroid-4.1, with sources placed in westwind1123 repo on github (ex. cypher-6.0 branch is fully stable). Builds completed, ROM works, all great! But, actually, for first time we have a RIL bug, and simcards doesn`t starts... We have replace vendor/wileyfox/kipper/proprietary/vendor/lib64/libsettings.so to a fresh version from OP3 (from TheMuppet repo), RIL starts, all works fine, but after this we have battery dry on Mobile network in standby! And it is awful thing. Actually in use on ANY ROM we have 40-60% MobileNetworkStandby dryning, and we cant resolve it.

Can somebody help resolve it noising drying? Or have some any advices?
[Android] yasser.ibra:
yotaphone 1

hello everyone i want flash yotaphone 1 by qualcomme flash tools please help me
[Android] DiamondJohn:
This thread is about building ROMs from source code. You would be better off searching for a device specific thread, or ask you question in the following thread. https://xdaforums.com/showthread.php?t=2259645
[Android] DiamondJohn:
SELinux

I have built an Oreo crDroid ROM for my device; Samsung S4 ks01ltexx, successfully:good:

Now, I wish to enable installing Viper4A to run under Enforcing, out of the box; ie without a boot scripts.

Installing Viper, I get the following SELinux fail

04-24 13:37:51.305 730 730 W Binder:705_1: type=1400 audit(0.0:180): avc: denied { execute } for path=2F6465762F7A65726F202864656C6574656429 dev="tmpfs" ino=35878 scontext=u:r:audioserver:s0 tcontext=u:object_r:audioserver_tmpfs:s0 tclass=file permissive=0

Which if I am doing it right (i use an Excel spread sheet to build my allows), translates directly to the following SELinux allow

allow audioserver audioserver_tmpfs:file { execute };

However, when I add this line in, i get the following error

device/samsung/ks01ltexx/sepolicy/common/diamondjohndroid_viper.te:18:ERROR 'unknown type audioserver_tmpfs' at token ';' on line 53151:

So it appears that audioserver_tmpfs is not defined, yet I extracted it from a running ROM. :confused: My guess is that is created on boot and not available at build time, but that's almost irrelevant.

How do I get around this error in my build?
[Android] Douglas Gomes:
I added the AOD in my compilation, but when I go to unlock with the digital or home button, the screen goes dark and does not unlock, can you help me?

Edit

When I turn off the AOD, everything is normal.
[Android] Aniket Ghodake:
https://hastebin.com/bimococise.bash

liquid remix rom

device-vince

help with the error
[Android] virsys:
Issues with OMX

Hey!

I've compiled a rom which is booting for my gt510wifi :)

A lot is already working, but google's OMX isn't..

That makes everything related to media crash :(

I think it's not working due to this:

04-28 18:52:36.057 373-373/? E/MediaCodecsXmlParser: addMediaCodecFromAttributes: updating non-existing codec
04-28 18:52:36.057 373-373/? W/MediaCodecsXmlParser: parseTopLevelXMLFile(/etc/media_codecs_performance.xml) failed
unable to open media codecs configuration xml file: /data/misc/media/media_codecs_profiling_results.xml
parseTopLevelXMLFile(/data/misc/media/media_codecs_profiling_results.xml) failed

The file (media_codecs_performance.xml) is present(chmod 755) in the folder system/etc.

Any tips or ideas what I could try next? Thanks!

full logcat: hastebin.com/sonirucavi.lua
[Android] DiamondJohn:
Just reading your error, it implies to me that the file is not well formed XML.
[Android] virsys:
I think it's well formed.

hastebin.com/wayakelifu.xml
[Android] Douglas Gomes:
Can someone help me by compiling Dirty Unicorns
[Android] IKGapirov:
Try to remove one of them for a while until you fix it
[Android] Douglas Gomes:
remove what?
[Android] IKGapirov:
/hardware/samsung/ril/libril or hardware/ril/libril