yashsingh1/xdaforums huggingface dataset:
[Android] bootslag:
Can someone help me with a CarbonROM build error? I got this log (https://hastebin.com/oyofivetid.lua) but I cant determine what's the error.

Is it either this:

--- can't determine the cache partition size ---

Or this:

KeyError: '/boot'
[Android] DiamondJohn:
Your problems you need to sort out first is why the following files trigger differences, how the changes are happening? are YOU manually modifying these files? someone elses suggestion?

[COLOR="Red"]project build/make/ (*** NO BRANCH ***)
-m core/combo/javac.mk
project device/samsung/ks01ltexx/ (*** NO BRANCH ***)
-- vendorsetup.sh
project external/proguard/ (*** NO BRANCH ***)
[B] -m bin/proguard.sh
-m build/makefile[/B]
project frameworks/base/ (*** NO BRANCH ***)
-m api/current.txt
-m api/system-current.txt
-m api/test-current.txt[/COLOR]

i NEVER get differences on these files. Do you get a clear report straight after a repo sync? And to add to that, your build errors are occurring on "proguard":confused: Until these are sorted, its a waste of both our time to give you my copy of the requested files. Sort the above files out, and try to work out why when and how these files are changing, then you can move onto the next step. The above files are part of RR ROM source, and not specific to the device (except for vendor_setup.sh) I do not change these files, and I have not suggested you change these files, so why are they coming up as modified?:confused:
[Android] eccko:
Umm.. I fix it. I mean, I forward your steps and my repo now is:

"project device/samsung/ks01ltexx/ (*** NO BRANCH ***)

-m	BoardConfig.mk

-d	lineage.dependencies

-d	lineage.mk

-- vendorsetup.sh

--	rr.dependencies

--	rr.mk

project system/core/ (*** NO BRANCH ***)

-m	libcutils/include/private/android_filesystem_config.h"​

BUT.. I don't have any change in rootdir/Android.mk like you, I have to modify this file ? What should I change there? Because I see that you have changed something ? :confused:

Anyway this command:

WITH_DEXPREOPT := false

USE_DEX2OAT_DEBUG := false

Not working

.. I put it before last line like this:

# inherit from the proprietary version

WITH_DEXPREOPT := false

USE_DEX2OAT_DEBUG := false

-include vendor/samsung/ks01ltexx/BoardConfigVendor.mk

Last thing is after - repo sync -fc --force-sync --force-broken --no-clone-bundle My vendorsetup.sh does not exist. I have to create them.

Also when I start the building My build stopped at 89 or 90% with the same error - https://pastebin.com/EvYZ8AF6

Please help to fix this :confused::confused:
[Android] RGlestman:
Did you make a mistake?

Enviado de meu NX551J usando o Tapatalk
[Android] eccko:
Try this: repo sync -fc --force-sync --force-broken --no-clone-bundle

OR Try: repo sync -f -j10
[Android] RGlestman:
Our God cost put it to synchronize yesterday and now it is saying that it does not find the repository

Enviado de meu NX551J usando o Tapatalk
[Android] eccko:
1. sudo apt-get update

2. sudo apt-get upgrade

3. sudo apt-get install repo

4. sudo apt-get install git-repo

Did you downloaded the source ? What rom you wanna build ?
[Android] RGlestman:
Thanks

Enviado de meu NX551J usando o Tapatalk
[Android] aala27:
Can anyone please help me with this error??

https://hastebin.com/nuyukayipe.sm

Let me know if more info is needed

Cheers,
[Android] bootslag:
Can anyone help me with this error: https://pastebin.com/DCwcq9gX

I really dont know what is the error but I think it's got something to do with KeyError: '/boot' or --- can't determine the cache partition size --- during building.
[Android] DiamondJohn:
There is NO vendorsetup.sh in the source or in any instructions I gave you. It should not make a difference, but do NOT create it and remove it. see https://github.com/kyasu/android_device_samsung_ks01ltexx its not there.

Ignore that, it must of been a WIP on my local file, where I saved it without any changes, thereby triggering a "diff" that doesn't exist.

You cannot say if it worked or not, as it did not trigger an error, and will only make a difference at about 99% which you are not reaching. By saying such you are simply adding to the confusion. Do not do that.

Actually, to simplify things, do not make/include that change at all, its not required.

Its is NOT the same error. Its an error in the same component, but a different error.

I have asked this question before, but you ignored it.

Are you building in a virtual machine?
[Android] eccko:
I don't building on virutal machine, installed system on the hard disk

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

UPDATE

Building coming to 93% but again with error.

"Building with Jack: /home...rovider_intermediates/with-local/classes.dex

FAILED: /home/eccko/android/rr/out/target/common/obj/APPS/WeatherProvider_intermediates/with-local/classes.dex "

FULL ERROR - https://pastebin.com/mE02eH64

REPO STATUS - https://pastebin.com/Cs8dftA9
[Android] DiamondJohn:
Thats good. I was concerned you were trying a virtual machine with only 8GB RAM.

TURN JACK OFF. I suggested this previously, and you obviously chose not to pay attention. I also noticed you still have vendorsetup.sh. Read on...

You have the following line in your error log

Connection to the Jack server timeout, retrying with debug

Read your error logs, don't depend on others to do it for you because they (eg me) will just give up.

And find out how to turn jack off searching this thread, or the whole web. The answer is there, please don't ask it again.
[Android] RGlestman:
I am following the tutorial of this forum ... But when I open in my Linux directory android / system where I am doing the procedures does not appear the folder. Repo among others like the folder Out .... I already put to appear hidden folder but even then it does not appear

Enviado de meu NX551J usando o Tapatalk
[Android] eccko:
Okay, thanks. I will try to build.
[Android] Immortalis:
Hi guys, I'm trying to build omniROM (Android 8.1) for OnePlus 3 on my own, but I'm getting an error

ninja: error: '/home/user/android/system/out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar', needed by '/home/user/android/system/out/target/product/oneplus3/dex_bootjars/system/framework/arm64/boot.art', missing and no known rule to make it

Full log - https://pastebin.com/MZAXpLvH

How do I fix it? I'm working on Ubuntu 18.04.

I have installed all packages as written here and openjdk-8-jdk.
[Android] DiamondJohn:
Iam trying to add another device (Hammerhead, Nexus 5) to a crDroid Oreo ROM that I already build for another device.However, when I add the kernel aource using the Unlegacy source, I get errors saying the branch does not exist.

...snip...
<remote name="unlegacy"
fetch="https://github.com/"
review="gerrit.unlegacy-android.org" />

<project name="Unlegacy-Android/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="unlegacy" revision="stable" />
...snip...

However, I can see it on GitHub as https://github.com/Unlegacy-Android/android_kernel_lge_hammerhead/tree/stable which I would of thought aligned exactly to my manifest file.

Where am I going wrong?
[Android] NepoRood:
fetch="https://github.com/Unlegacy-Android"

EDIT:

And remove "Unlegacy-Android" from project name...
[Android] DiamondJohn:
Are you sure about that, or have I misunderstood?

Are you saying change

...snip...
<remote name="unlegacy"
fetch="https://github.com/"
review="gerrit.unlegacy-android.org" />

<project name="[COLOR="Red"]Unlegacy-Android/android_kernel_lge_hammerhead[/COLOR]" path="kernel/lge/hammerhead" remote="unlegacy" revision="stable" />
...snip...

to

...snip...
<remote name="unlegacy"
fetch="https://github.com/"
review="gerrit.unlegacy-android.org" />

<project name="[COLOR="red"]android_kernel_lge_hammerhead[/COLOR]" path="kernel/lge/hammerhead" remote="unlegacy" revision="stable" />
...snip...

?:confused:

I would of thought the full path would of been the fetch="https://github.com/" in my remote, plus the name="Unlegacy-Android/android_kernel_lge_hammerhead" in the project element?

now, I have to admit its a baAAad naming convention calling it "unlegacy" :o when really its a simple "gerrit", but I was trying all sorts of stuff to get it to work, including going to simplicity.

PS; it removed the error with your first post ie doing the "fetch"
[Android] NepoRood:
There's a few ways to do this ;) See above in your quote the changes I made.

With Example 1, we are creating a remote name called "Unlegacy", where the fetch URL points to their account on GitHub. We refer to it by using "remote=Unlegacy", therefore, we don't have to add it in the project name element.

In Example 2, we just call directly to the account in the project name element as the fetch URL is likely already defined in the default manifest, "remote=github".

Example 1 is handy if you are calling in a lot of projects, like with AOSP or LOS. If you only want 1 or 2 projects, use Example 2, that's how I do it any way.

BTW, the "review" flag is for using repo to upload to Gerrit, not download (AFAIK)
[Android] DiamondJohn:
Example 2 (ie "unlegacy"="https://github.com") was my "hack" way I did to simplify it while I was trying to work out why it was failing; not that it helped:silly:. I have now changed to example 1 (ie "unlegacy"="https://github.com/Unlegacy-Android") to be more logical and "correct" with aligning to the name I gave it. I have to go away and learn a little more about the git fetch command; initial search results are not clear:mad: ie dont tell me i'll do the research;)

Thats what I assumed, but left it there for the "just in case" aspect; I wont be committing any changes.

Thanks for your help.:good:
[Android] quake73:
I have this line in my local_manisfests: <remote name="git" fetch="git://github.com/" />

Try replacing the prefix "https" with "git".
[Android] DiamondJohn:
Thanks, but its all good now.:good:
[Android] bunnyy:
[MENTION=7237874]NepoRood[/MENTION] Brother please help me fix button backlight for RR. Same device tree works fine with the Aokp sources as button light feature code is disabled in the RR sources.

Is there a any way to enable the button light alternatively. Please help me searching for fixes for months.
[Android] NepoRood:
Not sure why RR wouldn't have it, but I can't check because I don't have their source downloaded, but, AOKP has this commit in frameworks/base, check the same files in RR, if it's not there, cherry pick from AOKP

It could be as simple as just adding or adjusting an overlay
[Android] bunnyy:
I tried but rom compiled too but the buttons didn’t light up. I did cheery pick from aokp and tried it on rr.

---------- Post added at 04:13 PM ---------- Previous post was at 04:05 PM ----------

https://github.com/ResurrectionRemi...ageparts/input/ButtonBacklightBrightness.java

Here is the link
[Android] Hlcpereira:
Have you added the string below in overlay/frameworks/base/core/res/res/values/config.xml to make buttons backlight work?

<bool name="config_button_brightness_support">true</bool>
[Android] bunnyy:
But there nothing similar to this in the AOKP sources for the same.... I'll try this though :P
[Android] Hlcpereira:
Doesn't means that the implementation for button backlight work is the same on both.
[Android] bunnyy:
<bool name="config_cameraDoubleTapPowerGestureEnabled">true</bool>

every bool eq is written like this how should i add it to the file the same way you've sent or either way??
[Android] NepoRood:
Depends on how it's written in frameworks, what device are you building for, got a link to your tree?
[Android] bunnyy:
https://github.com/Exynos7580/android_device_samsung_a5xeltexx

Here is the device tree...

I’m building for Samsung A5 2016.
[Android] NepoRood:
I believe you need to add this:

<!-- Button illumination -->
<bool name="config_deviceHasVariableButtonBrightness">true</bool>

To your device overlay, here, just add it to the bottom and rebuild.
[Android] bunnyy:
Okay will try and revert you back. Thank you so much [emoji1317][emoji1317]

---------- Post added at 09:55 PM ---------- Previous post was at 09:51 PM ----------

Do I have to uncomment the code which i sent you ealier also??
[Android] NepoRood:
No, keep in the bool that [MENTION=7838323]Hlcpereira[/MENTION] told you to use, what he suggested may be all you need. Still added to same config.xml though, in your device overlay folder
[Android] bunnyy:
It worked you are the saviour brother thank you so much:D:good::D:good:
[Android] bunnyy:
hardware/samsung/mkbootimg.mk:54: warning: ignoring old commands for target `out/target/product/a5xeltexx/dt.img'

[ 66% 2/3] glob device/*/*/Android.bp

ninja: error: 'out/target/product/a5xeltexx/ramdisk-recovery.img', needed by 'out/target/product/a5xeltexx/recovery.img', missing and no known rule to make it

14:51:49 ninja failed with: exit status 1

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

make: *** [run_soong_ui] Error 1

Help please [MENTION=7237874]NepoRood[/MENTION] [MENTION=7838323]Hlcpereira[/MENTION] I'm getting this error when trying to build AOSPA for samsung a5 2016.
[Android] hunfatal:
Hello guys,

I'm trying to make an unofficial ResurrectionRemix oreo for One Plus X (onyx). I'm using the aosip device-tree and the kernel for base. Everything good, except that the notification led doesn't work during charge (for missed calls and other stuff its working fine). Any idea where to look at?
[Android] faiyneen:
Android ROM Development

Best information for beginners.
[Android] matteo0026:
Hi guys, I have this problem while compiling Discovery ROM:

ninja: error: 'INSTALLED_KERNEL_HEADERS', needed by '/home/matteo/rom/out/target/product/kuntao/obj/EXECUTABLES/ebtables_intermediates/ebtables-standalone.o', missing and no known rule to make it
23:27:17 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
matteo@matteo-Lenovo-ideapad-310-15ISK:~/rom$

I tried yet to change all the things where there was written $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr with INSTALLED_KERNEL_HEADERS, as log told. But the error was on some ebtables file, and I didn't find anything there.

What can I do? I leave you the sources too. https://github.com/kuntao-development/android_device_lenovo_kuntao
[Android] Kaustubhx:
Error : NoneType

Hi guys.. I was actually building AOKP nougat ROM for Galaxy Grand 2.. It gave me error type NoneType any ways to solve it?
[Android] pix106:
"make: command not found"

3 times :)
[Android] rahul1892:
Hello everyone. I'm trying to build AEX 5.6 for Falcon. I've successfully synced the source as well as other required repository. When i try lunch aosp_falcon-userdebug, i get the following error:

Device falcon not found. Attempting to retrieve device repository from AospExtended-Devices Github (http://github.com/AospExtended-Devices).

Found repository: device_motorola_falcon

Checking branch info

Calculated revision: 8.1.x

Branches found:

7.x

Following are the links to device tree, kernel and manifest

Kernel

Device

Manifest

Thanks for the help.
[Android] quake73:
Try adding the vendorsetup.sh file in your device folder, take a look at this:

https://github.com/AospExtended-Devices/device_motorola_falcon/blob/7.x/vendorsetup.sh
[Android] rahul1892:
Thank you for the quick reply but i've already tried that with no success. Please see the attached screenshots.
[Android] rahul1892:
Delete
[Android] quake73:
I start my builds with this line:

. build/envsetup.sh && lunch

It lists all possible options. Try running 'lunch' and see if you at least get 'falcon' in the list.
[Android] rahul1892:
Yes, i get the option to choose from and when i choose, i get the above mentioned error. :rolleyes:
[Android] quake73:
Then i'm out of ideas. The 3 important files are androidproducts.mk, the name of aosp_falcon.mk and vendorsetup. Everything seems correct.

I now took a look at another device, https://github.com/AospExtended-Devices/device_motorola_sanders, the only thing different is: AndroidProducts.mk file is missing. Try deleting it on your pc and then attempt 'lunch' again.
[Android] NepoRood:
What is the output of

make --version
[Android] rahul1892:
It says Unknown option: --version

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

Edit: Build started successfully. The problem was that i didn't installed the required packages. I'm so dumb. Thank you everyone.
[Android] matteo0026:
Up...
[Android] bunnyy:
Please help[emoji1317][emoji1317]
[Android] Hlcpereira:
AOSPA Oreo? If so give up. Github source is not complete (Oreo one). You can try build Nougat then...
[Android] bunnyy:
Thank you so much[emoji1303][emoji1303]
[Android] quake73:
Try changing WITH_DEXPREOPT (for my device it was in BoardConfig.mk) from true to false.
[Android] harshwardhanmehrotra:
i am having this error trying to port halium onto kenzo

mka systemimage

make: Entering directory '/root/halium'

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=7.1.1

LINEAGE_VERSION=14.1-20180614-UNOFFICIAL-kenzo

TARGET_PRODUCT=lineage_kenzo

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=generic

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a53.a57

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.15.0-kali2-amd64-x86_64-with-Kali-kali-rolling-kali-rolling

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=NOF27B

OUT_DIR=/root/halium/out

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

Running kati to generate build-lineage_kenzo.ninja...

No need to regenerate ninja file

Starting build with ninja

ninja: Entering directory `.'

ninja: error: '/root/halium/out/target/product/kenzo/obj/SHARED_LIBRARIES/libcryptfs_hw_intermediates/export_includes', needed by '/root/halium/out/target/product/kenzo/obj/EXECUTABLES/vold_intermediates/import_includes', missing and no known rule to make it

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/root/halium'

I guess I dont have some file but I dont know where to get that files from
[Android] quake73:
Add this repo: https://github.com/LineageOS/android_vendor_qcom_opensource_cryptfs_hw

to your local_manifest
[Android] harshwardhanmehrotra:
nothing changed this just added a new folder in my directory
[Android] matteo0026:
Up another time...

A guy told me to replace package external/ebtables of the ROM with the Lineage one, but it didn't work. So, how can I fix it?

Thanks for any reply.
[Android] darkness:
Hi

compile Android with the Snapdragon LLVM Compiler

Can anyone please help me with this error :confused:

https://hastebin.com/xosevedife.vbs
[Android] LilBlinx:
I am trying to add Custom QS tiles to my Lineage 14.1 but I am getting this error. I've added [MENTION=278736]hide[/MENTION] comments, removed them, updated the api. Nothing worked.

FAILED: /bin/bash -c "(( /home/david/android/lineage/out/host/linux-x86/bin/apicheck -JXmx1024m -J\"classpath /usr/lib/jvm/java-8-openjdk-amd64/bin/../lib/tools.jar:/home/david/android/lineage/out/host/linux-x86/framework/doclava.jar:/home/david/android/lineage/out/host/linux-x86/framework/jsilver.jar\" -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 -error 25 -error 26 -error 27 vendor/cmsdk/api/cm_current.txt /home/david/android/lineage/out/target/common/obj/PACKAGING/cm_public_api.txt vendor/cmsdk/api/cm_removed.txt /home/david/android/lineage/out/target/common/obj/PACKAGING/cm_removed.txt || ( cat vendor/cm/build/core/apicheck_msg_current.txt ; exit 38 ) ) ) && (mkdir -p /home/david/android/lineage/out/target/common/obj/PACKAGING/ ) && (touch /home/david/android/lineage/out/target/common/obj/PACKAGING/checkpublicapi-cm-current-timestamp )"
vendor/cmsdk/api/cm_current.txt:1229: error 10: Removed field cyanogenmod.providers.CMSettings.System.QS_ROWS_PORTRAIT
vendor/cmsdk/api/cm_current.txt:1230: error 10: Removed field cyanogenmod.providers.CMSettings.System.QS_ROWS_LANDSCAPE
vendor/cmsdk/api/cm_current.txt:1231: error 10: Removed field cyanogenmod.providers.CMSettings.System.QS_COLUMNS

******************************
You have tried to change the API from what has been previously approved.

STOP.
Read this:
https://github.com/LineageOS/cm_platform_sdk/wiki/Creating-an-API-for-the-SDK#updating--verifying-the-api

To make these errors go away, you have two choices:
1) You can add [MENTION=278736]hide[/MENTION]" javadoc comments to the methods, etc. listed in the
errors above.

2) You can update current.txt (locally) by executing the following command:
make update-cm-api

^^^^^^^^^^^^^^^^^^
CONGRATS YOU EARNED A STINKEYE FROM CID!
[Android] NepoRood:
In my limited experience, those "stink eyes" pop up because everything hasn't been merged yet. What works for some devices, doesn't for others, once Lineage knows about it, they'll fix it.

Give it a day or 3, then re-sync
[Android] LilBlinx:
To be honest, I gave it a month of waiting. :D
[Android] NepoRood:
Oh Sh!t, yeah, your wait should be over, lol

What QS tiles are you trying to add?
[Android] LilBlinx:
This is the commit part I am having trouble with. Custom QS rows/colums

Frameworks/CMParts part were implemented without a problem. After running make update-cm-api the lines were deleted from cm_current.txt. I am compiling right now so I will upload a log when CMParts fails to compile

EDIT: Seems like deleting those lines did the job. Compiles fine.