yashsingh1/xdaforums huggingface dataset:
[Android] xenreon:
Yes

The "ingredients" are there, but not in the proper form. Changes needs to be made to the device and kernel sources to make them compatible with target Android version, you can't build lollipop with a KitKat tree for example.

Google is the place where you'll get the info, no sarcasm. You really need to keep on searching/reading/understanding/trying to know. Familiarity will come from experience.

Where's the error? At least read the log first and look for the word ERROR instead of just copy pasting the end of it here.
[Android] threehappypenguins:
There is already a partially working Lollipop CM 12.1 rom. Should I just compile from that? Otherwise, is there a separate guide to make these changes? I thought that these guides for compiling roms would go over something important like that? Or is the assumption in these guides that different "trees" (lollipop, kitkat, marshmallow) would be on github or something for download?

That is why I'm here. To learn. I have been Googling for a week straight. I have been barely sleeping. Last night I dreamt about trying to extract information from an .ext4 on Windows. My stomach is in knots. Trust me. I have been Googling like crazy. I want to learn a good chunk of this before September when my kids start the new school year (I homeschool them). Part of my searching/reading/understanding/trying to know is my being here. I have about 10 tabs open and I'm looking up guide after guide after guide, trying to make sense of this.
[Android] Louis1977:
10 warnings generated.

[ 91% 41475/45317] Aidl: org.cyanogenmod.platform.int...sdk/sdk/src/java/cyanogenmod/app/IProfileManager.aidl

FAILED: /home/louis/cos/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/src/sdk/src/java/cyanogenmod/app/IProfileManager.java

/bin/bash -c "/home/louis/cos/out/host/linux-x86/bin/aidl -d/home/louis/cos/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/src/sdk/src/java/cyanogenmod/app/IProfileManager.P -b -Icm_platform_sdk -Icm_platform_sdk/src -Icm_platform_sdk/sdk/src/java -Iframeworks/base/core/java -Iframeworks/base/graphics/java -Iframeworks/base/location/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 cm_platform_sdk/sdk/src/java/cyanogenmod/app/IProfileManager.aidl /home/louis/cos/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/src/sdk/src/java/cyanogenmod/app/IProfileManager.java"

cm_platform_sdk/sdk/src/java/cyanogenmod/app/IProfileManager.aidl:21: couldn't find import for class android.app.NotificationGroup

[ 91% 41475/45317] -e \033[32mtarget C++:\033[0m lib...s/av/media/libeffects/preprocessing/PreProcessing.cpp

In file included from frameworks/av/media/libeffects/preprocessing/PreProcessing.cpp:28:

external/webrtc/webrtc/modules/audio_processing/include/audio_processing.h:429:68: warning: unused parameter 'handle' [-Wunused-parameter]

virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) {
[Android] Techie Android:
http://www.ext2fsd.com/ Will give you good dreams of accessing all your files without problems on windows, I used it a little before moving completely to Linux. I'll help you out as much as I can with Linux because I've used it for years and know that it can be a very steep learning curve to someone new. I must warn you though the more you use Linux the more you will hate windows. I used to use only windows, then I ditched it completely. Most people instantly think that their favorite .exe will not work in Linux but that is not the case, WineHQ and some other programs emulate programs just fine, I use it quite often for windows only programs that I have to use. Linux is faster and more secure which is another reason you might like it more. It's also free.

10 Tabs is nothing. I have 40+ and constantly go over the point that I cannot see the thumbnails.

I do actually suggest you keep looking into building a ROM yourself. I've always wanted to and ever since I started compiling my current ROM from source I've promised myself that the next step for me is to make one from scratch, so with that being said I want to help you do it. It will give me a major boost me so that I'm ready to do it on multiple devices that I have. As has been stated already you need the source code that's on that page you have. I feel like I'm bleeding out of this thread's topic so we might need to just pm each other about this.

As a last note I would like you to try to memorize a few Linux terminal commands (don't worry they are easy and will help you not be afraid to use the terminal more). I'll be adding "" to them so that you know those are the commands. "cd" means change directory, what you put after this should be the directory that you want to change to ("cd" by itself will take you back to the home directory), and it either need to be in the folder you are currently in or linked completely to it like this /home/username/folder/. "mkdir" stands for make directory and what you write after it will be the name. "ls" stands for list and will tell you what is in the folder you are currently located in inside the terminal. Memorizing these will help you to navigate completely inside a terminal and you will be less worried about messing things up. When in doubt "help" will help you.
[Android] avirk:
device/motorola/clark/overlay/frameworks/base/core/res/res/values got this path and then nano config.xml and then go to the line 436 and remove/comment it.
[Android] Dhinesh1999:
Thuppp
[Android] avirk:
Here is my question guys I ma getting an error and I am unable to sort it out. The error log is here https://pastebin.com/6xWfeDhm

I figured out I need some header files but I am not sure which one, I tried 1/2 header file by comparing the QCamera* files with other repo but same. Any solution for this?

Please use pstebin, or anyother online place to put logs its annoying to read them here and scroll down. Also there is no error in this log just warnings, error must be somewhere more above.
[Android] dev.kasibhatla:
Ram seems less.

You can build it on external drive
[Android] Louis1977:
https://pastebin.com/cTkj5xVt
[Android] avirk:
Nope mate still you are missing the error part, search little deep in the logs their should be word error or fatal and add those logs to pastebin, warnings not gonna help at all.
[Android] Louis1977:
https://paste.ubuntu.com/25348041/;)
[Android] spookcity138:
file '/home/louis/cos/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java' does not exist

file '/home/louis/cos/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/R.java' does not exist

file '/home/louis/cos/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/org/cyanogenmod/platform/internal/Manifest.java' does not exist

file '/home/louis/cos/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/org/cyanogenmod/platform/internal/R.java' does not exist

Not 100% ,but you may be missing this:

https://github.com/CyanogenMod/cm_platform_sdk
[Android] Louis1977:
Already synced .....

<project name="LineageOS/cm_platform_sdk" path="cm_platform_sdk" remote="github" revision="cm-14.1"/>
[Android] quake73:
the error is not always at the bottom....Ctrl+Shift+F in terminal, enter 'failed' and press "backward" 5-6 times until you get to the line that begins with "FAILED"
[Android] xenreon:
Why you're linking him cm repo with los existing?

Don't think that's the right path, platform/sdk it should be.
[Android] Louis1977:
i try with cm an los ,and same error

Enviado desde mi XT1575 mediante Tapatalk
[Android] aoleary:
As xenreon said, your path is incorrect.

The project name relates to github, so has underscores (_), whereas the path variable relates to the physical directory structure on ur filesystem, so should be forward slashes (/) ...
[Android] unknown:
FAILED: /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy
/bin/bash -c "(/home/abod/Atomic/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/policy.conf ) && (/home/abod/Atomic/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (/home/abod/Atomic/out/host/linux-x86/bin/sepolicy-analyze /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ]; then	echo \"==========\" 1>&2;	echo \"ERROR: permissive domains not allowed in user builds\" 1>&2;	echo \"List of invalid domains:\" 1>&2;	cat /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/abod/Atomic/out/target/product/kylepro/obj/ETC/sepolicy_intermediates/sepolicy )"
device/samsung/kylepro/sepolicy/sysinit.te:2:ERROR 'unknown type sysinit' at token ';' on line 21510:
allow sysinit system_file:lnk_file { getattr };
#line 1 "device/samsung/kylepro/sepolicy/sysinit.te"
checkpolicy: error(s) encountered while parsing configuration

Can someone help me :confused::confused::confused:

NOTE :Already delete that files but still failed :(
[Android] YedanyXD:
Is this ok?

I'm triying to port PA for ghost unsupported

https://hastebin.com/doyojutino.sql

It keep compiling but i want to know if this works
[Android] :
ValueError: Expecting , delimiter: line 26 column 3 (char 667)

This means you're missing a comma on line 26 of your dependency file
[Android] :
Thanks bro,

I'm getting this error

build/core/tasks/kernel.mk:65: *** Kernel configuration not defined

I dont know what could be :/
[Android] NepoRood:
Link your device tree, if it's not on Github, put it there :good:
[Android] YedanyXD:
I downloaded it from lineage git
[Android] NepoRood:
Link?
[Android] YedanyXD:
https://github.com/LineageOS/android_kernel_motorola_ghost
[Android] NepoRood:
What branch of Android are you trying to build? Those Lineage trees stop at Marshmallow (CM13), so if you're trying to build PA Nougat branch, you're in for a world of errors. Also, PA is an AOSP based ROM, there will be even more issues dealing with that.

My advice would be to work with a Lineage based ROM first, until you know more about what you are doing.
[Android] YedanyXD:
I'm building aospa MM with cm13 branch from lineage os, i was trying with lineage three because i see in other posts that works

Thanks for your time, it really helps, i Will try with aosp three
[Android] DiamondJohn:
Maybe check/try another MM AOSP based tree like DirtyUniconrns https://github.com/DirtyUnicorns/android_kernel_motorola_ghost I would check their MM based packages maybe over LOS. Just a thought.

---==== EDIT === --------

whoops, theirs is lollipop
[Android] xenreon:
Switch to userdebug or eng.
[Android] YedanyXD:
XD, i compile DU with lineage three And boot but there is no signal (RIL problem)
[Android] DiamondJohn:
I am trying to compile DU and the best I have got was a boot loop before the bootanimation :mad: (Haven't investigated further). But I also compile crDroid, and that boots and works UNTIL I install GApps. Recently I tried changing / adding sepolicy files from another ROM (my device looked pretty thin on the ground, and I was reaching...) And I noticed on that build I actually had no signal, but I was pretty sure I only added sepolicy files :confused: but obviously not.
[Android] YedanyXD:
do you have a register of your changes?
[Android] DiamondJohn:
Its confusing for me as I am trying to build both DU and crDroid in parallel, so I confuse which was which easily. So in case I wasn't clear, the signal loss was on crDroid, which does boot, but FC's after GApps install, and had signal loss after the sepolicy changes

I dont think my "log" of what did to get it to compile will help you much, but attached is a zip of my device/qcom/sepolicy/8960 folder (from memory this is where most were being configured)

For the sepolicy, generally speaking I used a hammerhead sepolicy copied over (ie added to) my device (xt897). The HH builds and boots fine, the xt897 had some serious FC before I made the changes, and lost its signal after; in addition to all the FC's (if GApps were installed)

The original sepolicy for my device can be found at https://github.com/LineageOS/android_device_qcom_sepolicy/tree/cm-14.1/msm8960

remember, I only built and booted once.
[Android] unknown:
Already do it

It is userdebug :eek:
[Android] xenreon:
Can you define the FC eg how and when it occurs?

Looks like sysinit.te is missing from that roms repo, try to pick these commits up. You might be able to use this commit as well that I did while facing that error myself.
[Android] DiamondJohn:
desperately seeking help

=======UPDATE===========

So I looked at my logs ( little more than glace this time):o and compared it to the logs of my daily working phone, which made it even more obvious that "GPU Page Fault" is not normal in the last_kmsg.:silly:

I searched my kernel code, and found the string which was a trapped error state. So I looked at my working crDroid device and the code on the working device seemed a lot more complete (2000 lines compared to 1000 lines also). After updating this code file (and a matching C or H one for ksgl) It compiled a little before it stopped and I needed to update another file, then another, then another dependency etc etc:mad:. Soon it got out of control:eek:. I decided I was not prepared to basically re-write the LOS kernel for my device (xt897) to work with crDroid :(

So I am giving AICP a go....:rolleyes: it builds (after changing the device tree to meet AICP format) will try to flash it tomorrow :fingers-crossed:

===== ORIGINAL POST =================

I am building crDroid for an unofficial device. I am basically using the device tree for an official LOS 14.1 device to build 7.1.2 crDroid.

It builds, it boots, it runs nicely, for about 10 minutes :( and then the FC's start to occur.:(:(:(

I have built it with a permissive kernel, in the hope it was simply a sepolicy permissions thing, but sadly no. (using [MENTION=7065337]spookcity138[/MENTION] post at https://xdaforums.com/showpost.php?p=73445338&postcount=7236)

I have rebuilt it from the latest source, and taken some logs. well beyond me what to do next.:o

dmsg log : https://www.hastebin.com/xavasuhaje.rb

last_knsg log : https://www.hastebin.com/pifihixebi.go

excerpts from logcat : https://www.hastebin.com/udohinuwud.vbs

full logcat (300kb zipped, 5mb unzipped) : http://www.mediafire.com/file/pa2vmu50dti7bqd/logcat4.zip

I would be sooooo happy if anyone could spare the time and work out what is wrong. It seems sooooo close, yet so far.

the first FATAL EXCEPTION in logcat is

08-21 17:36:02.828 8096 8096 E AndroidRuntime: FATAL EXCEPTION: main
08-21 17:36:02.828 8096 8096 E AndroidRuntime: Process: com.android.packageinstaller, PID: 8096
08-21 17:36:02.828 8096 8096 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/packageinstaller/permission/model/AppPermissions;
08-21 17:36:02.828 8096 8096 E AndroidRuntime:	at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.onCreate(GrantPermissionsActivity.java:126)

does that ring any bells of what is wrong with my build? or even where I should maybe start looking?:confused:

---edit---

Forgot to mention, my official device build of crDroid for Nexus 5 boots and runs fine. Also my official device build of LOS for xt897 boots and runs fine.
[Android] xenreon:
I'm not sure, but syncing this might do it.

Also, stop simply posting the logs here. Look for the word error than try to understand what it means and/or Google it first.
[Android] unknown:
OK thanks :o
[Android] DiamondJohn:
Whoops :o, i missed your question. However, my post directly below it should hopefully :fingers-crossed: give you a lot of details.

The FC's appear to start after 10 minutes of the ROM is running, and occur when either something tries to show the keyboard (SystemUI normally) or I start almost any App (calendar appears to be "immune"), however, only AFTER about 10 minutes have passed. Before that they can all start and work without FC's.:(

Then either the app directly FC's, or SystemUI or "Package Installer" FC's. Its such a tease that it all starts and runs so smoothly.:crying:

All the logs and descriptions here and above (https://xdaforums.com/showpost.php?p=73480467&postcount=7317) are without any GApps. With GApps, it fails to finish the registration so I dont get into the launcher.

Oh, please :fingers-crossed:, please:fingers-crossed:, please:fingers-crossed: let this be something that can be fixed.
[Android] aoleary:
You need to sync the "-caf" version of ril to /hardware/ril-caf

Dont remove the original caf. You need both together..

For example, I maintain the D855 Nougat version of DU with:

<project path="hardware/qcom/ril-caf" name="LineageOS/android_hardware_ril" remote="github" revision="cm-14.1-caf" />

or you can remove "TARGET_RIL_VARIANT := caf" flag from your bc.mk.
[Android] YedanyXD:
I do that, but didnt work :/

i added Target RIL variant because there isnt
[Android] aoleary:
Can you post the line in your manifest where you sync the caf version of ril
[Android] unknown:
Is there anyway to edit 7.1 tree to build 8.0 :confused::confused:

I just know update defconfig

Is it enough to boot :confused:
[Android] rajit:
help
[Android] DJKristy:
Do I have to worry about the warnings while building??
[Android] YedanyXD:
No, always appears
[Android] android1111:
Do AOSP roms only support prebuilt kernels?

When trying to build a rom with the kernel declared in the device folder as normal, this happens:
[Android] xenreon:
There's no fixed way to do bringups of a new Android version, it differs from device to device. You'll need quite a lot of experience and understand how the things work to do that, no fixed guide.

There's no error in that log, instead of just copy/pasting the bottom part from the terminal window why don't you actually try to read it and look for the word error?

Yup, no inline kernel building in aosp.
[Android] unknown:
Ok thanks :D
[Android] rajit:
can you elaborate a liitle?

target Pack Relocations: libdl (/home/sandip/RR/out/target/product/a5xeltexx/obj/SHARED_LIBRARIES/libdl_intermediates/PACKED/libdl.so)
acp: file '/home/sandip/RR/out/target/product/a5xeltexx/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so' does not exist
build/core/dynamic_binary.mk:81: recipe for target '/home/sandip/RR/out/target/product/a5xeltexx/obj/SHARED_LIBRARIES/libdl_intermediates/PACKED/libdl.so' failed
make: *** [/home/sandip/RR/out/target/product/a5xeltexx/obj/SHARED_LIBRARIES/libdl_intermediates/PACKED/libdl.so] Error 1
make: *** Waiting for unfinished jobs....

from where to where copy ? it says libdl.so does not exist

sorry this is first try of building
[Android] DiamondJohn:
Look at the post above: https://xdaforums.com/showpost.php?p=73480646&postcount=7317

The log contains the words "error:" and "FAILED". These lines explicitly say why it has failed.

Also, for longer logs you can use hastebin or similar.

---------- Post added at 07:46 PM ---------- Previous post was at 07:19 PM ----------

One of the make files in my device specific build has the following:

[COLOR="Blue"]# Inline kernel building[/COLOR]
TARGET_KERNEL_SOURCE := kernel/motorola/msm8960-common
TARGET_KERNEL_CONFIG := msm8960_mmi_defconfig
BOARD_KERNEL_CMDLINE := console=/dev/null androidboot.hardware=qcom user_debug=31 loglevel=1
BOARD_KERNEL_BASE := 0x80200000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01600000
KERNEL_TOOLCHAIN := $([COLOR="Green"]ANDROID_BUILD_TOP[/COLOR])/prebuilts/gcc/$([COLOR="green"]HOST_OS[/COLOR])-x86/arm/arm-eabi-4.8/bin
TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-eabi-

Its from a device tree taken from LOS. I use the above in a build of DU (an AOSP based ROM).

It builds:) but bootloops:(. Haven't taken a log yet to see why.:confused: But the above would imply it is building a kernel in-line. Changes to the kernel on other builds (eg LOS, crDroid) appear on the final device/build.
[Android] YedanyXD:
Device?
[Android] DiamondJohn:
:o a motorola xt897 (https://github.com/LineageOS/android_device_motorola_xt897). Sorry, thought I would of mentioned it if only in passing.

.----== edit ==--.

Not sure if you are looking at my crDroid errors ( see post https://xdaforums.com/showpost.php?p=73480467 ) or my DirtyUnicorns issues :confused: either way, thanks for taking the time :good:

I actually built a new one for DU, with a permissive Kernel that I plan to flash today and get some actual logs, if possible (at least last_kmsg)
[Android] android1111:
-snip-
[Android] nehalchoy:
Can someone please help me with this

[IMG="Error"]http://imgur.com/a/bMCrI[/IMG]

Why did this happen ? and how do I fix this ?
[Android] YedanyXD:
What?
[Android] xenreon:
The image is broken
[Android] alsor.zhou:
Have you figured out a solution for this problem? same problem here.
[Android] DenZxd:
Add sepolicy rule for audioserver in file device/samsung/mint2g/sepolicy/audioserver.te
[Android] sai2698:
hii devs...............

i am new to build roms...i am trying to make rom for redmi note4 i stuck with a error .can anyone know how to fix this error...

please help me.....

errors are at link below

https://hastebin.com/bocogetole.sql