yashsingh1/xdaforums huggingface dataset:
[Android] srgrusso:
I'm trying to build Bootleggers for the Samsung Note 4 and I'm coming up with the following error.

FAILED: /mnt/UserData/Projects/Android-Source/Bootleggers-4.1/out/soong/.intermediates/lineage-sdk/org.lineageos.platform.internal/android_common/gen/aidl/lineage-sdk/sdk/src/java/lineageos/app/IProfileManager.java
/mnt/UserData/Projects/Android-Source/Bootleggers-4.1/out/soong/host/linux-x86/bin/aidl -d/mnt/UserData/Projects/Android-Source/Bootleggers-4.1/out/soong/.intermediates/lineage-sdk/org.lineageos.platform.internal/android_common/gen/aidl/lineage-sdk/sdk/src/java/lineageos/app/IProfileManager.java.d -Iframeworks/base/core/java -Iframeworks/base/graphics/java -Iframeworks/base/location/java -Iframeworks/base/lowpan/java -Iframeworks/base/media/java -Iframeworks/base/media/mca/effect/java -Iframeworks/base/media/mca/filterfw/java -Iframeworks/base/media/mca/filterpacks/java -Iframeworks/base/drm/java -Iframeworks/base/opengl/java -Iframeworks/base/sax/java -Iframeworks/base/telecomm/java -Iframeworks/base/telephony/java -Iframeworks/base/wifi/java -Iframeworks/base/keystore/java -Iframeworks/base/rs/java -Ilineage-sdk/sdk/src/java -Ilineage-sdk lineage-sdk/sdk/src/java/lineageos/app/IProfileManager.aidl /mnt/UserData/Projects/Android-Source/Bootleggers-4.1/out/soong/.intermediates/lineage-sdk/org.lineageos.platform.internal/android_common/gen/aidl/lineage-sdk/sdk/src/java/lineageos/app/IProfileManager.java
lineage-sdk/sdk/src/java/lineageos/app/IProfileManager.aidl:21: couldn't find import for class android.app.NotificationGroup

Can Anyone help? I don't get this error building LOS 16.

Thanks
[Android] secretwolf98:
When I built AOSP UA 8.1 a few months ago. It kept on failing to compile until I disabled ninja.
[Android] akhilnarang:
I don't know, but if you ever make a change to your kernel files and aren't sure if it'll work now, just make a bootimage, boot it

If it boots, then all good

Otherwise, try to figure out what was wrong
[Android] jgcaap:
i wanted to make kernel almost without logs, as i am turning off that on rom level, and also would like to turn off on kernel level. but i do not know if is a safe procedure.
[Android] mohit310:
To me it doesn't make sense. The kernel is the fastest part of the android ROM. And disabling logging you are atmost saving couple seconds of boot time but making it difficult to debug any app if there is a kernel issue.

Google themselves don't disable kernel logging
[Android] jgcaap:
alright will keep it then :P thanks for sharing your opinion .

# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y
# CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_GOV_ONDEMAND= is not set
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y

To insert interactive as default, i presume is like this, it is correct?

I'm slowly adding features xD i like to know what i am doing hehe

Thank you both =)
[Android] mohit310:
I would suggest first check your kernel default config file.

For "Oneplus one" phone it is following

https://github.com/CyanogenMod/andr.../arch/arm/configs/cyanogenmod_bacon_defconfig

Similarly, find the config file for your kernel and then take that as base and modify add params.

There are almost more than 100 parameters you can change for a kernel and asking each parameter would not make sense.
[Android] jgcaap:
Thanks :) i think i am getting used to this... is not very hard... takes some time.
[Android] tecno789:
But I can switch off the pc, right?
[Android] mmcneil:
Hi. I'm in the process of building lollipop 5.1 for the Nexus 6, using the source code from Google. I hoping someone can assist me with obtaining the correct device tree and vendor files. This guide explains how to do it when building CM, but again, I'm using pure AOSP. Where can I pull the correct device tree and vendor files for Shamu/Nexus 6? Any help is greatly appreciated. Thanks in advance.

Mike
[Android] mohit310:
It should be available at

http://github.com/TheMuppets
[Android] akhilnarang:
You can get device trees and kernel source from android.googlesource.com

Vendor files from github.com/themuppets
[Android] mmcneil:
Thanks to you both.
[Android] mohamed786:
Syncing work tree: 11% (52/469) error: in `sync -f`: [Errno 2] No such file or directory: u'/home/Mohamed786/external/chromium/.git/HEAD'

error: manifest missing or unreadable -- please run init

i got this error plz help me to resolve
[Android] mohit310:
Are you in the directory where repo init was first run.

If yes then it seems your manifest directory is corrupted.

Save your local manifest and then run repo init command again

Then run repo sync
[Android] prince.d.emperor:
Same Error !

I'm fed up :(
[Android] mohit310:
Which Linux system you running?
[Android] prince.d.emperor:
Ubuntu 14.10 64 bit.
[Android] mohit310:
I'm sure u must have done this already but if not read the following post. Just install all the software mentioned there. This will make sure environment is setup.

http://xdaforums.com/oneplus-one/general/guide-building-lollipop-oneplus-one-t2947949
[Android] fefuzzo:
hi, one question: where i can find Device , Kernel , Vendor Source for

i9000 (galaxysmtd)

??? thanks
[Android] akhilnarang:
Device and kernel source on your developers github, maybe even vendor files there

If it has official support of some ROM, then you'll find device and kernel files on the ROMs github, and vendor files on TheMuppets
[Android] fizbanrapper:
Most of the device trees have similar naming conventions on github. Use google or search github and try Android_device_Samsung_i9000 for the device tree. If that yields nothing, replace i9000 with galaxysmtd.

Once you find an up-to-date device tree, look for a file with an extension of ".dependencies". Open the file. It lists the other repos needed to compile the device. In a perfect world, running breakfast will add those repos for you, but not always. I always manually add those repos to my local_manifest.xml.

You need to repeat this process in each of the added repos, opening up the dependencies and adding them to your local.

The one that isn't always listed in dependencies is the vendor repo. Google proprietary_vendor_Samsung. Add that to your local manifest as well.
[Android] gipsy.danger:
you need to edit that lineage.os.internal type line from dt if i am correct. bootleggers is aosp based. i ran into this building aex but i don't exactly remember where i changed it in my dt.
[Android] srgrusso:
Thanks for your reply. I just removed the dependencies that require "lineage.os.internal".
[Android] gipsy.danger:
how did it go?
[Android] adinechin:
Hi everybody, I've successfully built LineageOS 15.1 (Oreo) for my device, and now I wanted to modify the device tree to build DotOS. For that I followed the very quick guide on DotOS here : https://github.com/DotOS/android_vendor_dot/blob/dot-o/README.md

I modified vendorsetup.sh, lineage.mk and AndroidProducts.mk in device tree to be "dot" compatible

I also changed the lineage.dependencies into dot.dependencies and removed all dependencies in there

My problem is that I have now the following error when building :

ninja: error: '/home/antoine/android/dotOS_Oreo/out/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform.internal_intermediates/classes.jack',
needed by '/home/antoine/android/dotOS_Oreo/out/target/common/obj/APPS/LenovoDoze_intermediates/with-local/classes.dex', missing and no known rule to make it

Should I completely remove the "doze" folder in my device tree (I've tried and it's building but I'm not sure of the result), or is there something else to do ?

Thanks for your help !
[Android] gipsy.danger:
dot is aosp based if am correct so you need to remove lineage os stuffs if its giving error.
[Android] adinechin:
OK so for now I've removed this folder of my device :

device/lenovo/A6020/doze

But a little after I had these errors :

hardware/qcom/audio-caf/msm8916/policy_hal/AudioPolicyManager.cpp:1996:61: error: member reference type 'android::AudioMix *' is a pointer; did you mean to use '->'?
sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote();
~~~~~~~~~~~~~~~~~~~~~^
->
hardware/qcom/audio-caf/msm8916/policy_hal/AudioPolicyManager.cpp:1996:62: error: no member named 'promote' in 'android::AudioMix'
sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote();
~~~~~~~~~~~~~~~~~~~~~ ^
hardware/qcom/audio-caf/msm8916/policy_hal/AudioPolicyManager.cpp:1999:33: error: no member named 'mCbFlags' in 'android::AudioPolicyMix'
&& ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) {
~~~~~~~~~ ^
hardware/qcom/audio-caf/msm8916/policy_hal/AudioPolicyManager.cpp:2000:73: error: no member named 'mDeviceAddress' in 'android::AudioPolicyMix'
mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress,
~~~~~~~~~ ^
hardware/qcom/audio-caf/msm8916/policy_hal/AudioPolicyManager.cpp:2021:35: error: no member named 'mMixType' in 'android::AudioPolicyMix'
} else if (policyMix->mMixType == MIX_TYPE_PLAYERS) {
~~~~~~~~~ ^
hardware/qcom/audio-caf/msm8916/policy_hal/AudioPolicyManager.cpp:2022:38: error: no member named 'mDeviceAddress' in 'android::AudioPolicyMix'
address = policyMix->mDeviceAddress;
~~~~~~~~~ ^

Any idea ? Are there other folders to remove on the device tree ?
[Android] gipsy.danger:
you need to revert this for above error.

https://github.com/LineageOS/androi...mmit/acf624493aae07a82ff17723e85a8fdbfc4c3166
[Android] DiamondJohn:
You can check if doze is working and how well by running

dumpsys deviceidle;

I have also built a utility to visually display the doze results (among other things): https://xdaforums.com/showpost.php?p=79150051&postcount=75

I also build Pie Havoc-OS, and one of the items I exclude is the device's doze project, as Havoc has a built in doze that is very very good.
[Android] grumpycoder100:
Hi guys, i get this build error at 99% when building dotOS, it's not a device tree or dependency error but probably something wrong with the commands invoked by a build script in the ROM source or something else. I've attached the pastebin below; I would appreciate it if someone could help me out!

https://pastebin.com/uGS9PgeZ
[Android] adinechin:
Thanks for the tip, I'll try this next time :)
[Android] adinechin:
I've modified manually the file as I was not on this repo, but it unblocked me, thanks !

I have an additionnal question about dotOS if some of you can answer, when building I'm missing the DOT_VERSION, do you know where can I put it, and where can I find the correction version to put ?

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
DOT_VERSION=
TARGET_PRODUCT=dot_A6020
TARGET_BUILD_VARIANT=userdebug
TARGET_PLATFORM_VERSION=OPM1
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-58-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM8.190305.001
[Android] gipsy.danger:
https://github.com/DotOS/android_vendor_dot/blob/dot-o/config/version.mk

why are you using old version, the security patch is also not been updated since 03-05
[Android] adinechin:
When you say "old version", it's Oreo against Pie ? It's only because for now I've built LineageOS 15.1 that I find more stable, and I wanted to do the same with DotOS.

And about the file you pointed out, I have the file, all information seems ok, why doesn't it work ? It should be launched on envsetup.sh or lunch/brunch I suppose ?
[Android] gipsy.danger:
technically its should be read during lunch which in your case it fails to do so. i think you must ask dotos team regarding this. i am out of ideas on where to enable/disable that stuff right now.
[Android] NepoRood:
AndroidProducts.mk

I don't know how Dot does it, but this is where you need to add your device, ie: dot_device.mk

For me, it looks like this: scorpion_crosshatch.mk
[Android] adinechin:
Thanks for your suggestion, but it seems that my AndroidProducts.mk (in device tree I suppose) is OK :

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_A6020.mk \
$(LOCAL_DIR)/dot_A6020.mk

What I don't really understand, is that initially I renamed myself the lineage_A6020.mk to dot_A6020.mk to make the repo dot compatible, but in my lineage repo there isn't a lineage_A6020.mk anywhere....

I've sent an email to the DotOS contact, I'll see if I have some answers or advice...
[Android] DiamondJohn:
I am getting the following near the end of a synch

[COLOR="Gray"]...snip...[/COLOR]
info: A new version of repo is available

warning: project 'repo' branch 'stable' is not signed
warning: Skipped upgrade to unverified version
[COLOR="gray"]...snip...[/COLOR]

When I first saw it a few weeks back, I re-downloaded repo as if I was resetting up the environment, but I think I ended up with the same file. I just noticed its either still there or come back.

What do I need to do?

I did the following last time

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Is it simply a case of repeating the above, again? or is there something more to do?

It all builds OK.
[Android] gipsy.danger:
repo sync is tricky sometimes. i had to repo sync everything due to that new repo available thing.

something might have messed up during sync.

if it all builds well it can be ignored.
[Android] adinechin:
Ok I've solved my DOT_VERSION problem : I was not calling the correct makefile in /device/lenovo/A6020/dot.mk !

This file is looking for a makefile in /vendor/dot/config/ but the name was wrong and so nothing popped up here. Hope it helps someone one day !
[Android] alphamale:
Trying to build msm xtended for taimen using dirty unicorns trees getting following error https://del.dog/bezuguwezu.makefile
[Android] nitin.chobhe:
Revert this commit and rebuild:

https://github.com/Project-Xtended/...mmit/d382c974c34e9cfb546d1cf5f383530a2fb741d8

It might help.

Nitin
[Android] razvangabriel82:
Hey guys! I'm trying to compile Android 10 for my Nexus 7 2013 using the existent Pie sources (thought I might give it a try). However, I am getting this error as soon as I start to compile:

error: art/build/Android.bp:1:1: "soong-art" depends on undefined module "soong-apex"

I think that this is somehow related to the new Project Mainline thing (which uses APEX for the security updates through play store).

Anyways, any ideas on how can I fix this?

Thanks in advance!
[Android] aala27:
Hi all,

I have built RR pie rom for my Samsung Galaxy Tab SM-P550. Everything works fine with the exception of one thing. I cannot play any drm content ie Netflix etc. When I come to play the video/ live stream it just gives me a black screen. I have downloaded drm info and when I compare it to my phone (also running RR pie) it doesn't show the Widevine CDM (see attached). I have attached a log of when I click play on the video and it hangs on a black screen.

I have a feeling that I am missing a vendor file something.

Let me know if anyone has any idea.

Hastebin Link to log: https://hastebin.com/gebemelosi.cpp

Thanks.
[Android] aman.dwivedi:
Android 10 need system as root ,

And try with full android 10 bringup
[Android] AmirHRC:
who can help me with this iam trying to build nitrogen os 10 for shamu nexus 6

internal error: failed to find dex jar path for module "telephony-ext"

03:03:39 soong bootstrap failed with: exit status 1
[Android] nosko_stojachkov:
Good day,

I'm building an assembly on Android 7 for the Asus TinkerBoard device.

Need to add Kiosk app

I have done so.

Created the directory source / packages / apps / Kiosk

In it, I created the Android.mk file and added the Kiosk.apk application

Android.mk content

LOCAL_PATH: = $ (call my-dir)
include $ (CLEAR_VARS)
LOCAL_MODULE_TAGS: = optional
LOCAL_MODULE: = Kiosk
LOCAL_CERTIFICATE: = platform
LOCAL_SRC_FILES: = $ (LOCAL_MODULE) .apk
LOCAL_MODULE_CLASS: = APPS
LOCAL_MODULE_SUFFIX: = $ (COMMON_ANDROID_PACKAGE_SUFFIX)
include $ (BUILD_PREBUILT)

Added to source / build / target / product / core.mk

PRODUCT_PACKAGES + = Kiosk

The application is installed, but now I have no way to remove it.

Please tell me what to do. Maybe I'm not adding it correctly?
[Android] DiamondJohn:
Are you asking how to remove it (ie uninstall it) from the running ROM? or how to exclude it from being included in the build? For the last, simply undo your changes to "build / target / product / core.mk"
[Android] nosko_stojachkov:
Good afternoon, I need to be able to remove from a working ROM
[Android] gipsy.danger:
not possible if you install it as system app. you need root for that.
[Android] nosko_stojachkov:
i can make the application non-system with the ability to delete?
[Android] DiamondJohn:
If you are flashing a custom ROM, then you have a custom recovery (ie TWRP). From there you can manually delete it. If you wish to automate it you can make a zip to specifically remove apps (ie debloat). Both of these solutions are done without rooting the running ROM, but you will need a custom recovery, which you would obviously have if you are flashing a custom ROM.
[Android] nosko_stojachkov:
I need to create a ROM, already with the Kiosk application installed. But this application needs to be uninstalled in the future and it should not be a system.

This can be done?
[Android] Sands207:
why not just move the app from /priv-app to /app and recompile the ROM? Sounds like you are over complicating a simple process
[Android] DiamondJohn:
Instead of uninstalling, you could freeze and/or hide the app at any time. I do the same to the default equalizer on any ROM I flash, before I start using ViperFX. You may also be able to supply it as a user app to optionally install, and thereby enable the user to uninstall the app, without root.
[Android] nosko_stojachkov:
Hello, you can show an example of how to do this correctly. I am the first to assemble ROM.

I will be very grateful for your help. Thank!
[Android] AmirHRC:
can i ask why when i build with lineage os device tree ihave problems with sim call when i make call the phone reboot

but if i build with aosp based device tree i have no issue
[Android] razvangabriel82:
After a few days of debugging, I am very close to finishing the build, but, right at the end, I am getting some errors regarding selinux:

FAILED: out/target/product/flo/obj/ETC/treble_sepolicy_tests_27.0_intermediates/treble_sepolicy_tests_27.0

/bin/bash -c "(out/host/linux-x86/bin/treble_sepolicy_tests -l	out/host/linux-x86/lib64/libsepolwrap.so -f out/target/product/flo/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/flo/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts	-b out/target/product/flo/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/flo/obj/ETC/treble_sepolicy_tests_27.0_intermediates/27.0_mapping.combined.cil	-o out/target/product/flo/obj/ETC/treble_sepolicy_tests_27.0_intermediates/built_27.0_plat_sepolicy -p out/target/product/flo/obj/ETC/sepolicy_intermediates/sepolicy	-u out/target/product/flo/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil ) && (touch out/target/product/flo/obj/ETC/treble_sepolicy_tests_27.0_intermediates/treble_sepolicy_tests_27.0 )"

The following domain(s) must be associated with the "coredomain" attribute because they are executed off of /system:

bluetooth_loader bridge camera conn_init hci_attach irsc_util kickstart mpdecision netmgrd qmux rmt sensors tee thermald

How can I fix this?

Once again, thanks in advance!
[Android] ashwini215:
I am trying to build aex pie for samsung device, A5 2016 (a5xelte) using an already available lineage device tree for this device.

Have made few changes in order to adapt lineage tree for aex ( like removing livedisplay from device.mk and sepolicy folder of my device tree).

Now, build errors out with this :

error: hardware/samsung/lineagehw/hidl/touch/Android.bp:15:1: "vendor.lineage.touch@1.0-service.samsung" depends on undefined module "vendor.lineage.touch@1.0"

error log : https://pastebin.com/w0j3pWK6

My local manifest:

https://gitlab.com/Exynos7580/android_device_samsung_a5xelte

https://gitlab.com/Exynos7580/android_vendor_samsung_a5xelte

https://gitlab.com/Exynos7580/android_vendor_samsung_universal7580-common

https://gitlab.com/Exynos7580/android_kernel_samsung_universal7580

https://gitlab.com/Exynos7580/android_device_samsung_universal7580-common

https://github.com/DotOS/android_hardware_samsung
[Android] spookcity138:
Either fix up you sepolicies or just simply comment out (#) the BOARD_SEPOLICY_DIRS line(s) in your BoardConfig.mk/device.mk.

Don't build vendor.lineage.touch for AEX ROM. Just comment it out in your BoardConfig/device.mk and you'll be fine
[Android] razvangabriel82:
Thanks to all of your for the help that you have offered! The build completed! However, I have found out that Android 10 uses system-on-root, which does not allow me to boot successfully. Does anyone know how I can deactivate this feature? (I have tried adding some lines to deviceconfig.mk to revert to the old mode, but with no success)

If there is no way to outright disable this, I read that you have use dm-verity to change the / mountpoint to /system (you have to recompile the kernel). Can anyone help me do this?

If I am asking too many questions, just tell me (I'm just trying to breathe some new life into my old tablet) :D
[Android] ashwini215:
Thanks for your help :good: I did that and something else too which borked my build :laugh:

I will try a clean build again..
[Android] ashwini215:
I was able to build AEX for Samsung a5 2016(a5xelte), with just 1 major bug... Outgoing calls don't work..... Getting an " No SIM or SIM error".

Log says something like this " E/BufferQueueProducer(2452): [com.android.dialer/com.android.dialer.app.DialtactsActivity#0] disconnect: not connected (req=1) "

Please help guys. I was so effing excited that I finally manged to build an AOSP rom (LOS, I've already built) but this bug is a serious dampener :(
[Android] DragonFire1024:
I've been trying to build a CM kernel inline with a ROM I am building for my Amazon Fire Tablet, but having trouble because of an error that I can't figure out. so it still seems like I'm trying to accomplish The impossible. Its something along the lines of:

can't find TARGET_KERNEL_BINARIES
"No rule to make .config needed by out/target/product/suez/obj/KERNEL_OBJ/.config"

I know it's looking for the deconfig which it clearly finds, and builds the kernel according to that configuration, builds the said modules, then proceeds to tell me that it can't find the configuration that it just built the kernel from. so I'm assuming it has to do with where that configuration is going after the kernel is built, which is clearly not in the place it should be. So I need to know what I am missing in my BoardConfig.mk that should send that file to where it needs to go. not much comes up in the terms of a Google search and what I have found I have incorporated into the BoardConfig if needed or seemed logical, but clearly did not help since I am asking this question. Any guidance would be greatly appreciated so I can finally move on to the next step.
[Android] ParanoidNemo:
getting this and this while building AOSP 10 for suzu following Sony Open Device building guide, really don't understand what's missing, but I've to say that sometimes seems to me that there are very few resources out there to start learning how to effectively learn and debug the Android building process. Someone have some resource to share/point me to?