yashsingh1/xdaforums huggingface dataset:
[Android] Nemeziz 56th:
Hello everyone,

i run into troubles when i was trying to compile a kernel for my xperia z2 on ubuntu 18.04. Can someone explain me the issues the the solution?

ERROR: modpost: Found 13 section mismatch(es).

To see full details build your kernel with:

'make CONFIG_DEBUG_SECTION_MISMATCH=y'

To build the kernel despite the mismatches, build with:

'make CONFIG_NO_ERROR_ON_MISMATCH=y'

(NOTE: This is not recommended)

/home/igor/android/Kernel/Z2/kernel/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed

make[1]: *** [vmlinux.o] Error 1

Makefile:936: recipe for target 'vmlinux.o' failed

make: *** [vmlinux.o] Error 2
[Android] DragonFire1024:
Okay so I figured it all out. No more errors and the build has continued. It turns out of all things, my toolchain variables weren't quite right. Fixed that up along with a couple of other fixes modifications and everything has gone smoothly.
[Android] AmirHRC:
who can help me with this

what is mean and how i can fix it

error: device/moto/shamu/camera/QCamera2/Android

.mk: camera.msm8084: C_INCLUDES must be under the source or output directories:

/libstagefrighthw /libgralloc /libqdutils.[/QUOTE]
[Android] dungphp:
What is problem friends:
[Android] M Asad Khilji:
Hi, I'm trying to build Pixel Experience Pie for hammerhead and getting below error. Can someone help ?

vendor/pixelstyle/config.mk:49: warning: "PixelStyle: TARGET_BOOT_ANIMATION_RES is undefined, assuming 1080p"

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=9

CUSTOM_VERSION=PixelExperience_hammerhead-9.0-20190930-0622-UNOFFICIAL

TARGET_PRODUCT=aosp_hammerhead

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.18.0-25-generic-x86_64-Ubuntu-18.10

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=PQ3A.190801.002

OUT_DIR=/home/osboxes/android/pixel_experience/out

PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974

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

ninja: no work to do.

ninja: no work to do.

$(shell date -u +%d) was changed, regenerating...

vendor/pixelstyle/config.mk:49: warning: "PixelStyle: TARGET_BOOT_ANIMATION_RES is undefined, assuming 1080p"

$(shell date -u +%d) was changed, regenerating...

vendor/pixelstyle/config.mk:49: warning: "PixelStyle: TARGET_BOOT_ANIMATION_RES is undefined, assuming 1080p"

[549/965] including system/sepolicy/Android.mk ...

system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.

[965/965] including vendor/qcom/opensource/dataservices/Android.mk ...

ninja: error: unknown target 'hammerhead'

02:22:37 ninja failed with: exit status 1

#### failed to build some targets (35 seconds) ####
[Android] pranavaryans:
Share DT

And

1 . build/envsetup.sh

2 lunch aosp_hammerhead-userdebug

3 mka bacon

All correct?
[Android] unmaskedfalesh:
i am a bit stuck and don't know what is causing this.

i have successfully build AEX rom and it runs just fine but only issue is i can't make any calls.

it detects SIM card, WIFi, bluetooth everything works, i can even recieve calls but but when i dial a number nothing happens and later a warning pops up No Sim or SIM error.

any insights on how to approach this?
[Android] dungphp:
Please help me this problems:

https://pastebin.com/fvtYK3wh

I use root user. For P android was good but Q android i can't

Thanks

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

Edited:

Oh eh, problem with root user !
[Android] gipsy.danger:
This is general problem of q, I don't know if there is any solution as of now m
[Android] M Asad Khilji:
I tried mka -j4

It worked.
[Android] M Asad Khilji:
Hi, I have following error while building Pixel Experience Pie Plus for Nexus 5 Hammerhead. Can someone help ?

[ 98% 51811/52394] Check package name ...id.test.base_intermediates/classes.jar

FAILED: /home/osboxes/android/pixel_experience/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp

/bin/bash -c "(build/make/core/tasks/check_boot_jars/check_boot_jars.py build/make/core/tasks/check_boot_jars/package_whitelist.txt /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/framework-oahl-backward-compatibility_intermediates/classes.jar /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/classes.jar ) && (mkdir -p /home/osboxes/android/pixel_experience/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/ && touch /home/osboxes/android/pixel_experience/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp )"

Error: /home/osboxes/android/pixel_experience/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar contains class file vendor/lineage/livedisplay/V2_0/DisplayMode.class, which is not in the whitelist

---------- Post added at 06:06 PM ---------- Previous post was at 05:52 PM ----------

Device Tree: https://github.com/zeDDer/pe_device_lge_hammerhead

I used

1 . build/envsetup.sh

2 lunch aosp_hammerhead-userdebug

3 mka -j10

It worked fine for Pie branch But when i am building pie-plus i have above error at 98%
[Android] DiamondJohn:
I don't know if this is your issue (and actually doubt it), but I normally use something along the lines of

source build/envsetup.sh;
lunch "$PEFIX"_$DEVICE-userdebug;
make clobber;
brunch "$PEFIX"_$DEVICE-userdebug;

The clobber is obviously for a clean build.
[Android] rodman01:
i9305 / Exynos4 / MDM9x35 Modem / Pie

I have no ril and no simcard detection with the builds of above device and specs.

Logcat says

E kickstart-qcks: Couldn't find "/dev/mdm"

When I include either a directory mdm or a file mdm (which I extracted from a working N rom) I am getting this errors in logcat.

I kickstart-qcks: Trying to bring MDM9K out of reset
E kickstart-qcks: Could not issue ioctl WAKE_CHARM

I guess its a kernel issue, but cannot find any commit or else to solve the problem.

Andy help or idea is highly appreciated :)
[Android] aman.dwivedi:
Sir if you are on telegram

There a group u can join they can help

https://t.me/AndroidBuildersHelp
[Android] ashwini215:
Do tell if you found any solution to your problem. I have the same exact issue with my AEX build as well.
[Android] gipsy.danger:
When did you build it?

Someone suggested me that changing network to auto in settings solves the issues. However I came to know about it a little later and had deleted all my repo and ROM zips.

Currently I am still syncing the repo little at a time due to limited bandwidth of my internet connection.

You can try that and see if that helps.
[Android] ashwini215:
Haha, same here man !! I deleted the whole folder after trying out everything I could .

Had this problem a few weeks back.

But then , I dont remember if there's an auto option in network selection. I will sync the project again and pm you if its alright with you. Dont want to spam this forum :)
[Android] DiamondJohn:
I have successfully a built Pie HavocOS for a Samsung S4 (kslt01ltexx), using a LOS Kernel/Device/Vendor. There is HavocOS specific tree (official device), but it uses a newer Bootloader and Modem that is problematic; so I am testing the LOS tree which uses an older boot/modem.

Anyway, I did my first build, and it flashes and boots (for the most part, long story), however, once in the ROM, in my file manager (MiX) I cannot seethe contents of /data :confused:, but if I do a directory listing in ADB, its all visible. The data size is also visible from a partition viewing app.

Both using Magisk Root. Before I start delving deep into code, anyone got pointers of where in the source I might pay extra attention or as a starting point?
[Android] unmaskedfalesh:
i just did a complete repo re-sync and problem still persists.

now i am starting to think that they changed something in the source that is creating the issue. however i don't know what to revert.

damn this is frustrating.
[Android] ParanoidNemo:
Getting this almost at the end of a build. Android 10, suzu AOSP
[Android] gipsy.danger:
got anything?

i tried to revert some commits and it resulted in build error and had to download the entire repo again.

from what i observed if you go to dialer and click on Settings>Calling Accounts, it should display your SIM name at the top.

in this case it does not.

also they tried to add new settings in that section to add own phone number, i bet that broke the thing.

and since nobody from dev group is bothered when asked about it, i don't know if it will be fixed from their side.

so if you find any fix, let me know.

thanks.
[Android] ashwini215:
I could not find any solution and thought its best to move on..

I have now built blissrom, DotOS, GZOSP, Validus based on the same device tree that I used for building aex, and each one them is working fine.

For AEX , all I understood, from the logs, is that the The Android Telecom framework (com.android.server.telecom, you can read more about that here, https://developer.android.com/reference/android/telecom/package-summary) is somehow not working and I sure don't know how to fix it :confused:
[Android] gipsy.danger:
Hmm, will try once again before moving to Q building.

I don't know how these people can mess such important thing and could care less about it.

I have grown accustomed to using aex that I don't want to build any other rom as of now.

And my device opx is kinda abandoned, nobody apart from 2-3 people develops anything for it.

Thanks for heads up!!
[Android] salmannotkhan:
i am trying to build aospa 10 for o7prolte

i built rr pie rom successfully but i want to build aospa 10 now so how can i do that i have aex oreo based local manifest.xml

here are the links:

AEX Oreo device tree:

https://github.com/on7/android_device_samsung_o7prolte/tree/AEX-O

all the local manifest available :

https://github.com/Galaxy-MSM8916/local_manifests

my device has snapdragon 410 CPU(MSM8916)
[Android] ashwini215:
Best of luck !! and plz do share if you find any solution...

BTW, I was building it for Samsung A5 2016 (a5xelte).
[Android] Soul Spark:
Please help

[MENTION=5216756]jackeagle[/MENTION]

I have been trying to do this

repo init -u https://github.com/Havoc-OS/android_manifest.git -b pie && repo sync -j16

and I keep getting an error

Traceback (most recent call last):
File "/usr/bin/repo", line 938, in <module>
main(sys.argv[1:])
File "/usr/bin/repo", line 904, in main
_Init(args, gitc_init=(cmd == 'gitc-init'))
File "/usr/bin/repo", line 370, in _Init
can_verify = SetupGnuPG(opt.quiet)
File "/usr/bin/repo", line 508, in SetupGnuPG
proc.stdin.write(MAINTAINER_KEYS)
TypeError: a bytes-like object is required, not 'str'
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

I have tried to reinstall everything but still same error. Can someone please help me and tell me what might be missing.
[Android] gipsy.danger:
did you follow all steps before initializing repo?
[Android] tweetingdinosure:
help

been dealing with this error, cant figure out how to fix it

[100% 1229/1229] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
Clang SA is not enabled
error: device/google/crosshatch/recovery/Android.bp:17:1: "librecovery_ui_crosshatch" depends on undefined module "libnos_for_recovery"
error: device/google/crosshatch/recovery/Android.bp:17:1: "librecovery_ui_crosshatch" depends on undefined module "libnos_citadel_for_recovery"
00:07:05 soong bootstrap failed with: exit status 1

#### failed to build some targets (33 seconds) ####

Build failed!

Total time elapsed: 4 minutes (270.019817414 seconds)
[Android] M Asad Khilji:
Also tried the clean build. Still same error.
[Android] NepoRood:
Link to your device trees
[Android] tweetingdinosure:
<manifest>
<!-- Pixel 3 -->
<project name="LineageOS/android_device_google_crosshatch" path="device/google/crosshatch" revision="lineage-17.0" remote="github" />
<project name="LineageOS/android_kernel_google_crosshatch" path="kernel/google/crosshatch" revision="lineage-17.0" remote="github" />
<!-- WireGuard -->
<remote name="zx2c4" fetch="https://git.zx2c4.com/" />
<project remote="zx2c4" name="android_kernel_wireguard" path="kernel/wireguard" revision="master" sync-s="true" />
<!-- microG and F-Droid -->
<!-- too old; use https://downloads.nanolx.org/NanoDroid/Beta/ instead -->
<project name="lineageos4microg/android_prebuilts_prebuiltapks" path="prebuilts/prebuiltapks" remote="github" revision="master" />
</manifest>

cant post any links yet but they are from LineageOS

this is a different error that i got trying to build wireguard into my kernel
[Android] dungphp:
Please help me how to solve these problems:

OutOfMemoryError: Java heap space

Or: Meta lava is too long

Thank you so much !
[Android] NepoRood:
OK, you're doing "crazy" stuff, meaning, not the normal type of building I'm use to. Sorry, can't help you with that
[Android] tweetingdinosure:
its all good i figured out that the rom was not ready to be built so i stopped with that rom but now im getting this with a different rom.

LTO vmlinux.o
/home/tweetingdinosaur/evx/kernel/google/crosshatch/scripts/link-vmlinux.sh: line 93: 10694 Killed ${LD} ${LDFLAGS} -r -o ${1} $(modversions) ${objects}
/home/tweetingdinosaur/evx/kernel/google/crosshatch/Makefile:1105: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 137
make[1]: Leaving directory '/home/tweetingdinosaur/evx/out/target/product/crosshatch/obj/KERNEL_OBJ'
Makefile:152: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/tweetingdinosaur/evx/kernel/google/crosshatch'
[ 52% 48320/91686] //system/bt/bta:libbt-bta clang++ dm/bta_dm_act.cc [arm]
ninja: build stopped: subcommand failed.
19:45:07 ninja failed with: exit status 1
[Android] NepoRood:
I don't see a real cause, post the entire output on del.dog

I know you can't post links, but you can post URL's ;)
[Android] DiamondJohn:
I have a running build of Oreo Havoc-OS I built about march sometime. I recently tried doing a new build of the same ROM using the same sources, and am getting the following error: https://hastebin.com/lifavehoxo.rb

Where I think the meat is on

setRequestingSid(::android::hardware::details::gServiceSidMap.get(_hidl_impl, false));
^~~~~~~~~~~~~~~~
system/libhidl/transport/include/hidl/HidlTransportSupport.h:84:6: note: candidate function not viable: requires 2 arguments, but 1 was provided
bool setRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service, bool requesting);
^

I tried reverting the following commit: https://github.com/LineageOS/android_system_libhidl/commit/c99f1231e6ab82715cf75c0ac5a515ce669c3c0a

But that then gave me this error:https://hastebin.com/ilipuroket.rb

where I think the source issue is

...DownmixEffectAll.cpp:598:60: error: no member named 'gServiceSidMap' in namespace 'android::hardware::details'
[2019-10-16 11:08:23] setRequestingSid(::android::hardware::details::gServiceSidMap.get(_hidl_impl, false));
[2019-10-16 11:08:23] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Anyone got any ideas?

Is anyone else building Havoc-OS Oreo?
[Android] DiamondJohn:
Found the solution. It was a missing second commit I had to rollback

cd ~/android/$ROM/system/libhidl;
git revert c99f1231e6ab82715cf75c0ac5a515ce669c3c0a;

cd ~/android/$ROM/system/tools/hidl;
git revert eed1bcaa60504164ad31d2622a80b7741fb0b54e;
cd ~/android/$ROM/;

Well, that enabled a build. I haven't flashed it as yet.
[Android] tweetingdinosure:
really ? Need to try it, now i get this error i think it has to do with open JDK [url]https://pastebin.com/YDsyi52p[/URL]
[Android] ArcherTanu:
I need help.. Cant figure out what coz this error.

[ 119.994618,6] init: starting service 'wpa_supplicant'...

[ 119.997305,1] init: Created socket '/dev/socket/wpa_wlan0', mode 660, user 1010, group 1010

[ 120.208433,5] wlan: loading driver v3.0.11.85

[ 120.209697,0] ueventd: firmware: loading 'wlan/prima/WCNSS_qcom_cfg.ini' for '/devices/soc.0/a000000.qcom,wcnss-wlan/firmware/wlan!prima!WCNSS_qcom_cfg.ini'

[ 120.211509,0] ueventd: firmware: could not find firmware for wlan/prima/WCNSS_qcom_cfg.ini

[ 120.211622,0] ueventd: loading /devices/soc.0/a000000.qcom,wcnss-wlan/firmware/wlan!prima!WCNSS_qcom_cfg.ini took 2ms

[ 120.211878,5] wlan: [F :HDD] hdd_parse_config_ini: request_firmware failed -12

[ 120.211931,5] wlan: [E :VOS] vos_mem_vfree NULL address passed to free

[ 120.211973,5] wlan: [F :HDD] hdd_wlan_startup: error parsing wlan/prima/WCNSS_qcom_cfg.ini

[ 120.212030,5] wlan: [F :HDD] hdd_driver_init: WLAN Driver Initialization failed

[ 120.232319,5] wlan: driver load failure

My device sources in..

https://github.com/Archertanu
[Android] NepoRood:
Something wrong in your device tree, you need to push what you are working with to Github, if you're using Lineage trees, you'll need to make some changes to build for Evo X and push that to git.

That way I can see what you're working with...
[Android] adinechin:
Hi everybody, I was wondering something about LineageOS and other ROMs : I have a dual SIM phone, if I want to be able to disable one SIM, do I need to fully developp it, or is it a device parameters that activates the correct display in the ROM ? If anyone has an answer I'm very interested...
[Android] tweetingdinosure:
Thanks but I found the issue it wasn't the device tree it had to do with missing dependencies on Ubuntu
[Android] ParanoidNemo:
Hi all,

I'm a bit confuse, getting this error while building android_10 AOSP. https://pastebin.com/cZ55uPaU

The error is pretty clear but I've no clue of which of the causes listed in the log could be or how to check. Surely I know that the problem is not the RAM because as you can see in the log I've 16Gb of RAM and the only think that was running at the build time was the build itself, so all the RAM was dedicated to android.

Thanks in advance for the help.
[Android] gipsy.danger:
you need to increase Java heap size
[Android] ParanoidNemo:
Thanks but getting the same error with 8Gb of max heap set. Any other ideas?
[Android] gipsy.danger:
then allocate more RAM and check, 8GB is nothing for Android 10. it requires more memory.
[Android] isbon:
find: ‘/home/ubuntu/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
./system/sepolicy/Android.mk:22: BOARD_SEPOLICY_UNION is no longer required - all files found in BOARD_SEPOLICY_DIRS are implicitly unioned; please remove from your BoardConfig.mk or other .mk file.
No recovery.fstab for TARGET_DEVICE kmini3g
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/hw/camera.msm8226.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/hw/camera.msm8226.so'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/libreference-ril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/libsecril-client.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/libsecril-client.so'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/hw/consumerir.default.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/lineage/out/target/product/kmini3g/system/lib/hw/consumerir.default.so'
build/core/ninja.mk:166: recipe for target '/home/ubuntu/android/lineage/out/build-full_kmini3g.ninja' failed
make: *** [/home/ubuntu/android/lineage/out/build-full_kmini3g.ninja] Killed
make: *** Deleting file '/home/ubuntu/android/lineage/out/build-full_kmini3g.ninja'
make: Leaving directory '/home/ubuntu/android/lineage'

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

I am getting this error while compiling cm 14.1

I am using openjdk 8, on Ubuntu 18.04

Please help

Thanks in advance
[Android] tweetingdinosure:
cant figure this one out i tried different device tree's and they all gave me the same error

https://pastebin.com/1pDqMnX0
[Android] alphamale:
Getting this error with havoc on taimen android ten https://del.dog/mabohopaxu
[Android] quake73:
Try adding SELINUX_IGNORE_NEVERALLOWS := true in boardconfig.mk
[Android] alphamale:
Still getting error
[Android] DiamondJohn:
Just to get you further, if I may suggest, comment out the includes for the SEPolicy make files. NB:you may have one for the device and another for the ROM, usually found in the ROM vendor and sitting under system folder I think. Or go for broke and delete all your SELinux statements; which will have all the "never allows". But make sure to build permissive. Then come back to it when the rest is building.