yashsingh1/xdaforums huggingface dataset:
[Android] GalaticStryder:
Decent SS guide

Love it, will be added soon.

I made a decent guide for SS compiling and device porting as adjustments you need.

https://github.com/SaberSunset/building/blob/master/README.md

Not finished yet.

[MENTION=5475344]##W4TCH0UT##[/MENTION] did it work for you? Switch to Linaro for now, when I get back I can help you, I hope you can get in SS development, really need someone to code review the commits and compile other devices as well when you have time to do so.
[Android] katinatez:
I initially had problems building Sabermod but have it all sorted out now.

The commit I use to compile GCC 4.9 kernel is this, maybe you could try it.

https://github.com/CyanogenMod/andr...mmit/6f3f9047eff84c96cc0c8a9c35f5fc25dd12d03d
[Android] ##W4TCH0UT##:
I'll think about it after my exams, i.e 20 days later.

Regards
[Android] rahul8040:
LOG! Error!

can anyone help?​
[Android] spookcity138:
I build with 4GB of RAM and 4.5GB of swap. It can be done no problem. Just slow build times. I've posted the commands I use to build multiple times in this thread.
[Android] PraneethMv:
Hey there! Thanks for replying! As you say you have 4gigs and build without any issues. Can you please tell where i went wrong? Only error i get is jack running out of memory. And can you link to that post where you mentioned the commands? Thanks! :)
[Android] Alviss2108:
Build rom for e53g

I built rom Cyanogenmod 13.0 and LineageOS 14.1 for Samsung E500H using [MENTION=5216756]jackeagle[/MENTION] source from https://github.com/MSM8916-Samsung. But when i port rom to my device, it can't not boot and stuck at Cyanogent Mod logo. I don't know how to fix that.
[Android] spookcity138:
https://xdaforums.com/showthread.php?p=70106713

This is how I do it.
[Android] xenreon:
Is anyone supposed to? Nope.

It's a volunteer hobby for us here so it'd be nice if you keep it respectful.

Iirc the dtbtool errors have been discussed here before so search is this thread first.

You can also add the commends spookcity posted in your bashrc (a quick Google will tell you more on this).

Neither will we know without logs and other details...
[Android] Techie Android:
Well I see... You completely warp what I said there.

Let me explain. I have a life too and I'd rather not waste it if nobody responds on some thread on the internet. It's not all about you, you know I wasted more time than you did, next time you see someone not getting a reply you should also consider that that person's time is being wasted at a more exponential rate the more people skip them by.

So don't get mad at me because you think I'm mad at everybody, which I'm not.

I do want to thank you though for the reply and answer to my error, I'm going to check it out now. Hope you have a good day, and sorry for bothering you.

---------- Post added at 02:24 PM ---------- Previous post was at 02:19 PM ----------

I know that, you don't have to be rude.

Yes I was respectful, you just took it the wrong way. Please look at my reply above since it's also for you.

---------- Post added at 04:11 PM ---------- Previous post was at 03:24 PM ----------

Well [MENTION=7237874]NepoRood[/MENTION] it's still not compiling it.

I think that fixed something but there must be another problem.

I cannot seem to locate the log file either... (yes I did search for it and it wasn't in the results, which means it must be named differently)
[Android] Arjun KalyanRam:
Hey can anyone plzz suggest me a guide to build the device tree plzz !!
[Android] MSF Jarvis:
No such guide. Stick to the iPhone.
[Android] NepoRood:
Relax. As for "wasting time", I took the time to search and track the cause of your problem for you, granted, it didn't take long, but that's not the point.

And by "log file", are you referring to a build log?
[Android] Alviss2108:
How can i get log from boot. I can't get any thing without boot completely.
[Android] Nicklas Van Dam:
logging.h file not found when compile los-15.0?

I'm try to compile los-15.0 for my device, but it seems failed because error of missing logging.h on android-base/logging.h? where i can find that file?, i'm already search on whole source code but isn't available :confused:
[Android] NepoRood:
First result from Google, Link
[Android] Nicklas Van Dam:
Thanks sir to reply it :), but I'm already found it on lineage source. And that file is available but can't be read when compile, should I replace lineage with from google?

---------- Post added at 12:11 PM ---------- Previous post was at 11:47 AM ----------

Sorry sir, but it still give error :confused:

In file included from device/sony/nicki/init/init_nicki.cpp:37:

system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found

#include <android-base/logging.h>

^~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

that file is already available, but can't read when compile rom
[Android] quake73:
in the android.mk file in the folder device/sony/nicki/init, find the line LOCAL_C_INCLUDES and add system/core/base/include.
[Android] DiamondJohn:
Have you checked for /proc/last_kmsg on the very next boot to recovery?

---------- Post added at 05:46 PM ---------- Previous post was at 05:26 PM ----------

I am building a crDroid Nougat ROM for an unofficial device. Currently I am building it as permissive but I then check the logs to see what is failing (ie what would be denied when I build it enforcing). Most seem ok, but I have come across one that i am not too sure of and hope someone here could direct me.

I get the following 3 lines in the log

[ 807.796947,1] type=1400 audit(1505875863.936:155): avc: denied { read } for pid=7556 comm="Thread-14" name="minfree" dev="sysfs" ino=4264 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_lowmemorykiller:s0 tclass=file permissive=1
[ 807.821730,1] type=1400 audit(1505875863.946:156): avc: denied { open } for pid=7556 comm="Thread-14" name="minfree" dev="sysfs" ino=4264 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_lowmemorykiller:s0 tclass=file permissive=1
[ 807.822554,1] type=1400 audit(1505875863.946:157): avc: denied { getattr } for pid=7556 comm="Thread-14" path="/sys/module/lowmemorykiller/parameters/minfree" dev="sysfs" ino=4264 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_lowmemorykiller:s0 tclass=file permissive=1

Which if I am doing it right would translate to the following allows

allow untrusted_app sysfs_lowmemorykiller:file { read };
allow untrusted_app sysfs_lowmemorykiller:file { open };
allow untrusted_app sysfs_lowmemorykiller:file { getattr };

The thing that confuses me is:

1. Why would the lowmemorykiller be an "untrusted app"? (just out of interest since its my only example)

2. Should I enable these? The LMK is pretty central to Android OS. I can only guess that the "sysfs" implies it is trying to read the settings?

3. I searched the web and I also found the following

auditfilter untrusted_app { sysfs_lowmemorykiller sysfs_lcd_writable }:file read;

(at https://github.com/SandPox/android_vendor_samsung_common_sepolicy/blob/master/audit_filter_table) I have no idea of what "auditfilter" does (and web search didnt help), and my current source has no examples :confused:

Basically, should I enable these allows?
[Android] Alviss2108:
Well, I will check it. Thank you very much.

---------- Post added at 08:27 AM ---------- Previous post was at 07:54 AM ----------

https://pastebin.com/u1jemB7K

Thank for your reply. This link above is my log from /proc/kmsg after i port my rom to device. Can you check it to find what problem.
[Android] DiamondJohn:
you really dont need to quote ALL of a post to respond to it, especially since you are not responding to the majority of it. And not TWICE!

There are much more experienced devs here, but, at a glance, it seems you have the log from a recovery boot, not your actual ROM. The only ref to recovery in my last_kmsg is usually the last line noting that the reboot reason is for recovery.
[Android] Alviss2108:
Sorry about that. I'm new member.

I've just researched about rom for a short time. I will check again to get log systemboot.
[Android] Nicklas Van Dam:
Thanks :D, it's already fixed and now compile is running again ;).

i'm add this on android.mk LOCAL_STATIC_LIBRARIES := libbase, and fix some dependencies on cpp file. it's still use c language instead of c++.

Thanks for your suggestion sir :D

---------- Post added at 09:33 AM ---------- Previous post was at 09:30 AM ----------

what's rom that you're porting it? some component on your kernel is failed to load, and that's too critical :eek:
[Android] YedanyXD:
If I don't found NFC enchantment in vendor configs, and that is called by the .mk I can add that file from other rom?
[Android] Alviss2108:
I ported rom cm13 for Samsung E500H, i get source from [MENTION=5216756]jackeagle[/MENTION] https://github.com/MSM8916-Samsung. I can't get boot log from /proc/last_kmsg, i just found log for recovery from /proc/kmsg. How can i get boot msg from anywhere else?
[Android] adammanson:
Hey guys, can anyone help me here?

Im tryind to find a way to test the rom on the pc before flashing it on phone, dont want to flash the rom not knowing its perfect or not :( which might cause brick.....
[Android] dungphp:
Devs helo me please:

And Other build:
[Android] NepoRood:
You can't, it doesn't work that way, only way to test is put it on the device.

So, Riddle Me This:

What device are you using?

How are you flashing the ROM?

Do you have factory firmware?
[Android] Jadimo:
Hello,

I'm trying to build AOSPA for Xperia SP (huashan), but i'm stuck at this compilation error:

make: *** No rule to make target `out/target/product/huashan/obj/STATIC_LIBRARIES/libqc-skia_intermediates/libqc-skia.a', needed by `out/target/product/huashan/obj/SHARED_LIBRARIES/libskia_intermediates/LINKED/libskia.so'. Stop.

Here is the content of roomservice file, and my edited pa.dependecies and pa_huashan, which i placed in /vendor/pa/products/huashan . I'm also attaching the full terminal log..

I'm an novice and only succeded in building Lineage from source, so thank in advance for any help.
[Android] anhenrique:
Anyone knows how to fix this? https://hastebin.com/ogifafelay.erl
[Android] DiamondJohn:
Not sure if it will help, but my manifest include the line:

<project path="external/skia" name="LineageOS/android_external_skia" groups="pdk,qcom_msm8x26" />

NB: Building LOS based Nougat.
[Android] kaibsora:
Need help with lineageos 15

I am trying to build lineageos15 for a moto x pure clark but i recieve this error

device/motorola/clark/init/init_clark.cpp:60:16: error: use of undeclared identifier 'property_get'

platform = property_get("ro.board.platform");

^

device/motorola/clark/init/init_clark.cpp:64:11: error: use of undeclared identifier 'property_get'

sku = property_get("ro.boot.hardware.sku");

^

device/motorola/clark/init/init_clark.cpp:65:11: error: use of undeclared identifier 'property_get'

car = property_get("ro.boot.carrier");

^

3 errors generated.
[Android] Alviss2108:
How can i use prebuilt kernel in Cyanogenmod? i use

but its don't use this prebuilt kernel.
[Android] unknown:
Anyone have some good suggestion about selinux patches update from nougat to oreo ??? :confused::confused::confused:

---------- Post added at 05:14 AM ---------- Previous post was at 05:13 AM ----------

build/core/base_rules.mk:238: error: hardware/qcom/display/libgralloc: MODULE.TARGET.SHARED_LIBRARIES.gralloc.msm8952 already defined by hardware/qcom/display/libgralloc.

Duplicated :confused::confused::confused:
[Android] Jadimo:
Thanks to [MENTION=5417899]DiamondJohn[/MENTION] tip i was able to push the build forward, but now i'm stuck with sepolicy error:

out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/huashan/obj/ETC/sepolicy_intermediates/policy.conf
device/qcom/sepolicy/test/qti-testscripts.te:28:ERROR 'unknown type qti-testscripts' at token ';' on line 38737:
#line 28
typeattribute qti-testscripts netdomain;
checkpolicy: error(s) encountered while parsing configuration
make: *** [out/target/product/huashan/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Oczekiwanie na niezakończone zadania....

I'm attaching a modified pa.dependencies and roomservice file and full terminal output.

Thanks in advance for any help.
[Android] DiamondJohn:
If its under "test" I think it would be pretty safe to delete the file, and move on. I would personally delete the contents of the whole folder, as an easy fix, but better to find where it is being included. I have a vague memory of one of the make files (boardconfig maybe) that has a variable setting the directories of where to find policy files. Remove it from there if you find it. The type of "qti-testscripts" really does not sound valid or real.
[Android] Roybabu:
Bluetooth (/home/roybabu/DU/out/target/common/obj/APPS/Bluetooth_intermediates/src/R.stamp)

device/motorola/msm8916-common/overlay/packages/apps/Bluetooth/res/values/config.xml:3: error: Resource at disable_non_aosp_bt_features appears in overlay but not in the base package; use <add-resource> to add

i am building DU for harpia
[Android] quake73:
Either follow the instructions here:

https://stackoverflow.com/questions/26878628/what-does-add-resource-in-android-resource-xml-file-do

or simply remove line 3 from that config.xml file and the build will continue.
[Android] Roybabu:
there is only this line

<?xml version="1.0" encoding="utf-8"?>

<resources>

<bool name="disable_non_aosp_bt_features">false</bool>

</resources>

i tried to remove it but i got some other error related to bluetooth
[Android] xenreon:
Post the error here
[Android] w1ll1m:
Can someone help me with this issue?

Thanks in advance.
[Android] neonkat:
disable/delete that overlay.it is not found in the base rom(weird,never saw anything as such).
[Android] somadsul:
Sorry for late reply, you need to add this files in kernel directory
[Android] xenreon:
Setup the build environment properly, a quick Google will give plenty of answers. Also learn to use a paste service instead of posting screenshots
[Android] Abdullah786$ultan:
I have problems in downloading device tree kernel and vendor if i manually download them in which folder should i put them???
[Android] neonkat:
follow the name of the device repo.

for example if device repo is android_device_oemname_devicename or device_oemname,devicename(depends),put that in:

device/oemname/devicename

folder.same goes for kernel(kernel/oemname/devicename) and the vendor.you can look into any manifest to understand it.(project name and the paths accordingly).
[Android] Abdullah786$ultan:
I don't see any folder having oem or device name do i have to create these folders manually?
[Android] neonkat:
yeah.

i will recommend you going through the guide first.i maybe wrong but seems you didn't went through the guide,have a read first,you will understand.
[Android] xenreon:
As what neonkat said, check these local manifests for a reference if you still don't get it

In short device(where device trees are placed)/*the name of the manufacturer of your device*/*the codename of your device*

So the redmi note 4 from xiaomi that has the codename mido will go to:

device/xiaomi(the manufacturer name)/mido(the codename)

Alternatively you can also check the BoardConfig.mk of the device tree you're going to sync and check for the path there like in the attached image
[Android] -gloim-:
Hey,

I'm having some trouble while building AOSPA.

I already successfully compiled the rom but it didn't boot. So I changed some sources but now I'm getting some errors from these.

The Erros (log)

hardware/qcom/audio

My pa.dependencies file
[Android] xenreon:
Not seeing any new error there, rather the same old unsupported overlay. Go to device/motorola/msm8916-common/overlay/packages/apps/Bluetooth/res/values/config.xml and simply remove the line, disabling/removing overlays not present in roms from devices trees have been discussed here myriad of times I believe.

Also, a tiny bit of logical sense and xml/markup knowledge will probably be needed for that and at least for the latter of the two Google is you buddy (if you end up needing it that is).
[Android] Roybabu:
i did that i just deleted that overlay but then i got some other error related that.
[Android] spookcity138:
You can't delete the whole config.xml file. You simply delete the problematic lines within that file.

Edit:

Or perhaps that's not what you mean. If you did just delete the lines causing issues,you may have formatted it wrong. Perhaps that's your new errors. Obviously only a guess.
[Android] spookcity138:
You should really post your logs on hastebin. But your error is a missing file:

system/vold/cryptfs.c:74:10: fatal error: 'cryptfs_hw.h' file not found
[Android] Roybabu:
Any possible way to fix it....
[Android] spookcity138:
Yeah,get the file [emoji4]

Just do a google search for cryptfs_hw.h and you'll find what you're looking for.
[Android] Roybabu:
I managed to build the rom but it stucked in bootloader unlocked screen
[Android] -gloim-:
bump:good:
[Android] Abdullah786$ultan:
I have two problems in building lineage OS 15 for Galaxy J7(2015 J700F):crying::

1-I dont have any cm.mk file in my device tree,so i skipped it and done work with next two files.

2-After ". build/envsetup.sh" when i run "time brunch j7eltexx" i get following error

abdullah@DELL:~$ time brunch j7eltexx

including vendor/lineage/vendorsetup.sh

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

Device j7eltexx not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).

Repository for j7eltexx not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.

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

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

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

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

real	0m5.100s

user	0m0.308s

sys	0m0.032s

Please help me what to do??? :confused::(:crying:
[Android] Roybabu:
Did you modify your device tree
[Android] Abdullah786$ultan:
I did everything according to post number 9 (there was no cm.mk file so i skipped it and done work to next two files)
[Android] YedanyXD:
From where do you get the three? Lineage?
[Android] Roybabu:
Show me the device tree link

[

---------- Post added at 09:32 PM ---------- Previous post was at 09:31 PM ----------

https://hastebin.com/dexuvavifo.coffeescript

Any idea about this error and how can i fix it ?
[Android] YedanyXD:
Someone know how to fix this

https://hastebin.com/yicunejuxo.go

Thanks

---------- Post added at 11:51 PM ---------- Previous post was at 11:19 PM ----------

I found the solution thanks anyway
[Android] neonkat:
once again,please use hastebin,don't post logs here.

you need https://github.com/LineageOS/android_vendor_qcom_opensource_cryptfs_hw

sync it the given location(vendor/qcom/opensource/cryptfs_hw) or add in the device tree itself.

---------- Post added at 12:30 PM ---------- Previous post was at 12:27 PM ----------

you are missing caf hals(display,audio,media).take them from lineageos or citrus-caf git.
[Android] Abdullah786$ultan:
I synced Lineage OS 15 from this command

repo init -u git://github.com/LineageOS/android.git -b lineage-15.0

And got device tree from this link

https://github.com/Exynos7580/android_device_samsung_j7eltexx
[Android] mukesh22584:
[MENTION=5991747]neonkat[/MENTION] Need help, I've build ColtOS for my OP5 using official lineage device tree and kernel, Everything has gone fine, Built successfully many time but I've lost colour profile that should be present in display>Live display, While I've checked sync repo it is present under cm parts...
[Android] xenreon:
That repo haven't been updated to support building Oreo, so you got 2 choices now:

1. Wait for someone to do it.

2. Study other repos, learn+try and diy.

There's no set guide for such as it'll differ device to device, so check the sources of the other devices that have been brought up to Oreo and have similar hw as yours.

Does your device ships livedisplsy? Check the device.mk
[Android] Roybabu:
https://hastebin.com/isoropunel.makefile

how can i fix this.
[Android] GReaper-DEV:
It gives me error when i try to install The required installation tools!

Even when i followed the steps below it.

What should i do?!
[Android] spookcity138:
Just skip the packages mentioned as they're not available in your distro. No big deal. Shouldn't cause problems and if it does you'll know when you start a build and get an error that's related to a needed package.
[Android] dungphp:
Help me when i re-compiling:

ninja: no work to do.

ninja: no work to do.

vendor/xiaomi/hydrogen/hydrogen-vendor.mk was modified, regenerating...

[2/1020] including ./Link ...

/media/root/x/lineageos/out/soong/Android-lineage_hydrogen.mk:133128: error: ./Link: No such file or directory

06:45:53 ckati failed with: exit status 1

build/core/main.mk:21: recipe for target 'run_soong_ui' failed

make: *** [run_soong_ui] Error 1

make: Leaving directory '/media/root/x/lineageos'
[Android] Arjun KalyanRam:
the repo sync stuck here for the past 1hr help plz !!
[Android] YedanyXD:
someone can help with this? i tried to fix it but didnt work

https://hastebin.com/wocobukeku.cs

5.1.1
[Android] neonkat:
crtl+ Z to stop the sync.

do

repo sync -j1

you will probably see the repo causing the issue.
[Android] DiamondJohn:
I have found the trace option very useful as well

repo --trace sync -l -fc --force-sync --force-broken
[Android] Roybabu:
Disabling ART_BUILD_TARGET_DEBUG

Disabling ART_BUILD_HOST_DEBUG

build/core/binary.mk:1267: external/deqp/Android.mk: libdeqp: Unused source files: \

build/core/binary.mk:1267: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc

frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0

build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets

find: ‘/home/roybabu/jf/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory

build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets

Starting build with ninja

ninja: Entering directory `.'

ninja: error: 'vendor/aosp/.keys/release.x509.pem', needed by '/home/roybabu/jf/out/target/product/harpia/obj/PACKAGING/ota_keys_intermediates/keys', missing and no known rule to make it

make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1

how to fix this error
[Android] Xaif:
How to fix this error. Please help me out

https://hastebin.com/ihagolavuh.cs
[Android] mukesh22584:
Will anyone help me to find out "Maxwen's fix for FP lag (Delay) commit..

[MENTION=5991747]neonkat[/MENTION] ...
[Android] Nonta72:
In device/xiaomi/mido/consumerir/consumerir.c at line 23,

Change #include <linux/lirc.h>

To

#include "linux/lirc.h"
[Android] Xaif:
Hey bro,

This didn't fixed the issue.
[Android] NepoRood:
Do you have that file? At the root of your build directory, enter

mgrep lirc.h
[Android] Nonta72:
Follow what [MENTION=7237874]NepoRood[/MENTION] suggested above.

Maybe the file is in another directory (or doesn't exist at all).

I thought these errors only happen in MTK!
[Android] xenreon:
What? Check his GitHub and do a general search there...
[Android] nicesoni_ash:
Check omnirom/frameworks_base repo.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] mukesh22584:
Is this correct...

https://github.com/omnirom/android_frameworks_base/commit/4086660243e15d18328b931c3f5a28d0a7a8009a
[Android] nicesoni_ash:
There are couple of fp related commits in it, this looks like one of them.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] mukesh22584:
I believe in this repo sultan commit is also good,

https://github.com/mukesh22584/test