yashsingh1/xdaforums huggingface dataset:
[Android] DiamondJohn:
I have attempted to build a LineageOS 15.1, for a Galaxy S4, based on a working build by another user https://xdaforums.com/galaxy-s4/i9506-develop/rom-lineageos-15-1-unofficial-galaxy-s4-t3747831. The thread has his device tree's, which I have added to my roomservice.xml file. However, the builds I do. bootloop :mad: but his do not :confused:

I built my environment using the steps from the LineageOS wiki, and it builds the ROM without issues.

I have synched LineageOS:

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

and added his device specific sources to my local manifest (ie roomservice.xml)

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
[COLOR="Blue"]
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />

<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="LineageOS/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" />
[/COLOR]
[COLOR="Green"] <project name="kyasu/android_kernel_samsung_msm8974" path="kernel/samsung/msm8974" remote="github" />
<project name="kyasu/android_device_samsung_ks01ltexx" path="device/samsung/ks01ltexx" remote="github" />
<project name="kyasu/android_vendor_samsung_ks01ltexx" path="vendor/samsung/ks01ltexx" remote="github" />[/COLOR]

</manifest>

The top 6 lines were added by the lunch/brunch process. I also set it to permissive in the BopardConfig.mk for the device.

I also posted a question on his thread, but I do not expect too much response as its really off-topic on his ROM thread.

As far as I understand, my build should also boot like his build. Am I missing something? or a specific step? If he can build a bootable ROM, what am I doing different?

---edit---

Here is also the last_kmsg file from the boot. https://www.hastebin.com/hexaditeyu.vbs

---edit2---

I got some help from the device tree maintainer, and with his help, I now have a bootable ROM, but the modem (ie cell connection) does not work :mad:
[Android] FoBo725:
Hi I have a small request

:)

https://googleweblight.com/i?u=http...uide-rom-t3757722&grqid=ApWIfluC&s=1&hl=en-IN

A request for the high profile members in XDA to make a guide for ROM development with Oreo go source code for beginners. :)
[Android] p32929:
Today I compiled RR for my phone but my phone is not booting. Got bootloops. Tried flashing multiple times, Tried clearing cache, data, dalvic cache etc but still getting bootloops. any solutions?

Thanks in advance...
[Android] DiamondJohn:
For starters look into your last_kmsg for possible clues.
[Android] aoleary:
Fatal exception in system process:

Hi guys.

I'm getting loads of reboots in an unofficial build of DU12 (o8x-caf) for my LG-G3 D855.

Checking the logcats, I have quite a lot of FATAL EXCEPTIONs..

Full logs here: https://drive.google.com/open?id=1c0iKrZzfwW3-O9Cz24EvCFDYffCxdo28

https://drive.google.com/open?id=1p8Fdhcby4sdT3ktrLlZCWKTeEGyOidZG

Manifest

https://github.com/aoleary/Manifest/blob/master/DU

My device/common trees

https://github.com/aoleary/android_device_lge_d855_m/tree/du

https://github.com/aoleary/android_device_lge_g3-common/tree/8.1
[Android] j1gga84:
Hello my friends,

I also tried to build ResurrectionRemix 5.8.5 for my device (Samsung Galaxy S5 - klte) but when trying to build I got some errors and I don't know what could cause them.. Any ideas?

I followed the OP's description how to setup a build machine and I followed the guide from here:

https://github.com/ResurrectionRemix/platform_manifest/tree/nougat

When trying to build I got this error:

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

/home/stefan/RR/out/build-lineage_klte.ninja is missing, regenerating...

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

PLATFORM_VERSION=7.1.2

RR_VERSION=RR-N-v5.8.5-20180311-klte-Unofficial

RR_BUILDTYPE=Unofficial

DEVICE=klte

WITH_ROOT_METHOD=rootless

TARGET_BUILD_VARIANT=userdebug

TARGET_ARCH=arm

BUILD_ID=NJH47F

OUT_DIR=/home/stefan/RR/out

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

Checking build tools versions...

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

find: "/home/stefan/RR/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Datei oder Verzeichnis nicht gefunden

cp: Aufruf von stat für '/home/stefan/RR/ota_conf' nicht möglich: Datei oder Verzeichnis nicht gefunden

build/core/Makefile:34: warning: overriding commands for target `/home/stefan/RR/out/target/product/klte/system/etc/clatd.conf'

build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/stefan/RR/out/target/product/klte/system/etc/clatd.conf'

Starting build with ninja

ninja: Entering directory `.'

ninja: error: '/home/stefan/RR/out/target/product/klte/obj/lib/libtime_genoff.so.toc', needed by '/home/stefan/RR/out/target/product/klte/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it

build/core/ninja.mk:151: die Regel für Ziel „ninja_wrapper“ scheiterte

make: *** [ninja_wrapper] Fehler 1

make: Verzeichnis „/home/stefan/RR“ wird verlassen

#### make failed to build some targets (01:09 (mm:ss)) ####

No Jack server running. Try 'jack-admin start-server'

Any ideas what could cause this and how I can fix it :confused:

regards
[Android] Ololoev9999:
Hi, guys. Need help

Trying to build android Oreo on 4gb server and have some issues.

When I allocate 4gb to jack build stops at ~70% with memory error. If I allocate less than 4gb( for instance 3072mb) I have error that says that I should try increasing this value.

Tried all availieable build methods.

Brunch, mka, make -j1.

Tried Ubuntu server 14.04 and 16.04
[Android] :
[MENTION=7930778]Black_J[/MENTION] I am having the same errors when compiling for my nexus 6. Anyone give u any advice?
[Android] Black_J:
Check if your kernel source and branch is correct.
[Android] unknown:
Did you try ****jack by mikecriggs ? ? ( Xda doesnt allow type bad word so i cant paste the link :laugh::laugh: )

I have also faced that problem and fix by using my modified of ****jack : https://github.com/namdeptrai2003/jack_scripts

Hope it will help you :)

I dont think 4gb ram is enough . Create 20-40 gb ram swap and maybe you can build oreo ... :) . And use 16.04 instead of 14.04 . I also want to build oreo but have no server . You're lucky :)
[Android] Black_J:
Your device tree is not compatible with the ROM.

edit AndroidProducts.mk lineage.mk lineage.dependencies vendorsetup.sh

Read post #9.
[Android] mike2587:
Hi all, I need some help, I'm trying to build DU 12 for my phone (z2_row), I already added the caf-vendorsetup in my device tree and in vendor/du with inside the lines:

add_lunch_combo du_z2_row-userdebug

add_lunch_combo du_z2_row-eng

I added the du.mk in my device tree with "PRODUCT_NAME := du_z2_row"

When I use lunch or breakfast and i pick "du_z2_row-userdebug" I have this:

build/core/product_config.mk:240: *** _nic.PRODUCTS.[[device/zuk/z2_row/du.mk]]: "frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk" does not exist.

Device z2_row not found. Attempting to retrieve device repository from DU Github (http://github.com/DirtyUnicorns).

Repository for z2_row not found in the DU Github repository list. If this is in error, you may need to manually add it to .repo/local_manifests/du_manifest.xml

build/core/product_config.mk:240: *** _nic.PRODUCTS.[[device/zuk/z2_row/du.mk]]: "frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk" does not exist.

build/core/product_config.mk:240: *** _nic.PRODUCTS.[[device/zuk/z2_row/du.mk]]: "frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk" does not exist.

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

** Do you have the right repo manifest?

Can someone give me an hint? I really don't know how to solve this
[Android] gauravnandan881:
Thanx 4 ur help,

now I am getting this error

build/core/product_config.mk:242: *** _nic.PRODUCTS.[[device/yu/tomato/lineage_tomato.mk]]: "device/cyanogen/msm8916-common/msm8916.mk" does not exist. Stop.

There is no directory named cyanogen or lineage in device directory neither is msm8916.mk file anywhere
[Android] quake73:
I guess you need to get this: https://github.com/LineageOS/android_device_cyanogen_msm8916-common
[Android] NepoRood:
This is your issue, notice it says: does not exist

To fix it, you need to change it to what does exist. DU uses this:

phone-xhdpi-2048-dalvik-heap.mk

That line is likely in your "device.mk" file...
[Android] mike2587:
Thanks man i will take a look

EDIT: [MENTION=7237874]NepoRood[/MENTION] I looked at the oneplus3 device.mk and I added this to mine

$(call inherit-product, vendor/extras/configs/phone-xxhdpi-3072-dalvik-heap.mk)

$(call inherit-product, vendor/extras/configs/phone-xxhdpi-3072-hwui-memory.mk)

but I get the same error, I also tried with 2048 or 4096, no changes, onestly I don't know if it's the right way to call these mk files

EDIT2: don't consider the previous edit, I found the phone-xxhdpi-3072-dalvik-heap.mk call in my device.mk that had target to frameworks/native/build, so i changed it to vendor/extras/configs, now it starts to build, and gives other error for duplicated calls, so I guess that I will have to configure my device tree for good removing duplicated or useless calls
[Android] NepoRood:
yes, that's exactly what you need to do. You're getting there...
[Android] mike2587:
Ok, I'm close, failed at 99% 30657/30658

"ERROR: couldn't find ro.mod.version in build.prop"

This is how DU reads this values, in vendor/du/config/branding.mk

PRODUCT_PROPERTY_OVERRIDES += \

BUILD_DISPLAY_ID=$(BUILD_ID) \

ro.du.version=$(DU_VERSION) \

ro.mod.version=$(DU_BUILD_TYPE)-$(DU_BASE_VERSION)-$(DATE)

But something prevents it from reading it. I searched everywhere for this, but no luck. Do you have any clues?
[Android] quake73:
Have you tried adding ro.mod.version to system.prop in your device tree?
[Android] mike2587:
No I haven't, but looking at the oneplus3 system.prop in the DU repo, I don't see it, so I don't get it...
[Android] GReaper-DEV:
Is OP outdated? Or i am ok to use this method?
[Android] NepoRood:
Do you have your tree on GitHub? If so, provide a link

OP contains good information, but it is for building an older version of Android. Depending on what you want to build, packages have changed some for newer versions.

For setting up Ubuntu 16.04 to build Marshmallow or later, you can use this Guide
[Android] mike2587:
Here it is

https://github.com/mike2587/android_device_zuk_msm8996-common/tree/o8x

Inviato dal mio Z2 Pro utilizzando Tapatalk
[Android] NepoRood:
You are using both trees right? The common tree and the device tree? You need to "DUify" the device tree as well...
[Android] mike2587:
Yea DUified both of them

I'll take a look at the build tree

Inviato dal mio Z2 Pro utilizzando Tapatalk
[Android] mike2587:
I reverted this commit in build tree

https://github.com/DirtyUnicorns/android_build/commit/139295dda85ce64c4bc21849af5a69c4057f00fd

Then the build succeed, but it doesn't boot, the phone died after the brand logo and had to boot into recovery with buttons combo. It seemed too easy, i knew it :D

Inviato dal mio Z2 Pro utilizzando Tapatalk
[Android] NepoRood:
Getting the build to complete is the easiest part, lol, trying to figure out why it won't boot is a different ball game.
[Android] mike2587:
Absolutely lol but it's a little step forward

I will do some other checks, thank you for the support anyway ;)

Inviato dal mio Z2 Pro utilizzando Tapatalk
[Android] gauravnandan881:
need help

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

7. aosp_car_emu_arm-userdebug

8. aosp_car_emu_arm64-userdebug

9. aosp_car_emu_x86-userdebug

10. aosp_car_emu_x86_64-userdebug

11. mini_emulator_arm64-userdebug

12. m_e_arm-userdebug

13. mini_emulator_x86_64-userdebug

14. mini_emulator_x86-userdebug

15. uml-userdebug

16. lineage_tomato-userdebug

Which would you like? [aosp_arm-eng] 16

Trying dependencies-only mode on anon-existing device tree?

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=8.1.0

RR_VERSION=RR-O-v6.0.0-20180321--Unofficial

TARGET_PRODUCT=lineage_tomato

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_PLATFORM_VERSION=OPM1

TARGET_BUILD_APPS=

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=cortex-a53

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a53

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.13.0-37-generic-x86_64-with-Ubuntu-17.10-artful

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=OPM1.171019.021

OUT_DIR=/home/deadpool/rrmix/out

AUX_OS_VARIANT_LIST=

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

deadpool@DEADPOOL:~/rrmix$ brunch tomato

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

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

Repository for tomato not found in the ResurrectionRemix-Devices Github repository list.

If this is in error, you may need to manually add it to your .repo/local_manifests/roomservice.xml

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

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

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

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

issues in lunch is solved but in brunch command this error orrurs

this is the content of roomservice.xml file

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

<manifest>

<project name="device_motorola_potter" path="device/motorola/potter" remote="rr-devices" revision="oreo" />

</manifest>

what should I edit in this file

my device is tomato and manufacturer is yu
[Android] albertoduqe:
Hi everybody!

Isn't it annoying when you have been building and maintaining a nice oreo rom for your device for a while with no issues and then, suddenly, after a sync, you get building errors?

But what's really, really annoying is when the error in particular MAKES NO SENSE!

I get this now building XenonHD oreo for Lithium

Error while processing /home/albertoduqe/xenon/system/vold/cryptfs.cpp.
/home/albertoduqe/xenon/system/vold/cryptfs.cpp:68:10: error: 'cryptfs_hw.h' file not found [clang-diagnostic-error]
#include <cryptfs_hw.h>
^
Suppressed 6 warnings (5 in non-user code, 1 with check filters).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
[B]system/vold/cryptfs.cpp:68:10: [COLOR="Red"]fatal error:[/COLOR] 'cryptfs_hw.h' file not found[/B]
#include <cryptfs_hw.h>
^~~~~~~~~~~~~~
1 error generated.

Thing is: the file is there, in vendor/qcom/opensource/cryptfs_hw where it's been since I first got the rom source for building.

How do you solve something like this? Why doesn't it suddenly find it??

THANKS!
[Android] pranavaryans:
Trying to compile CypherOS for MI MAX 2 (Oxygen). Reached 47% in compiling but got errors about

assembler.o

api.o

Full Error Code :

https://pastebin.com/bu89DGFc

Please help.
[Android] albertoduqe:
Your error has nothing to do with those files. It is right after the red part actually:

"fatal error: error in backend: IO failure on output stream."

First result searching google:

https://cs50.stackexchange.com/ques...n-backend-io-failure-on-output-stream-signify

Seems that your disk might be full my friend :)
[Android] pranavaryans:
Thanks bro, solved my problem. Compiling again 61% and counting, fingers crossed.
[Android] pranavaryans:
compiled my 1st ROM successful.

2 bugs are there

1. No AUDIO (not even on headphone)

2. Google Force Close.

Need suggestions please..
[Android] ahmed gamal 1m:
[No message]
[Android] pix106:
adb shell

logcat

And find the errors : missing file/symbol, permission...
[Android] b50corei5:
Thanks so much for the guide. I'm getting this error when compiling. Any help would be appreciated. Thanks :)

https://hastebin.com/uyumeselom.vbs
[Android] NepoRood:
Line 33

Link your tree on GitHub
[Android] b50corei5:
How do I do that?

Sorry, still at noob status
[Android] NepoRood:
No worries, everyone was a "noob" at one point. Signup for a GitHub account, and whoever's tree you're using, fork it. Push your local changes, and give a link.

Line #33 from your error shows that there is a missing comma, "," somewhere. If we can't look at what you're working with, it's hard to help you out
[Android] b50corei5:
Fork it?

---------- Post added at 11:18 PM ---------- Previous post was at 11:16 PM ----------

Do you have telegram or something so it's easier to ask for help?

---------- Post added at 11:26 PM ---------- Previous post was at 11:18 PM ----------

Do you have telegram or something so it's easier to ask for help?
[Android] nummer:
Hello,

I have gotten to the process of brunching, but when I type in brunch this happens:

https://pastebin.com/cu93Lcyn

Help with this would be appreciated :p
[Android] ahmed gamal 1m:
I want to know how to make kernel source compatible with higher Android version

I've searched and didn't get anything

Can anyone help I'm still nope :confused:
[Android] DiamondJohn:
[REFERENCE] How to get an Android kernel up to date with linux-stable
[Android] gauravnandan881:
anyone ??:(
[Android] NepoRood:
You're not building Moto, so delete the file.

If you don't have your device and dependencies in your own manifest, edit the roomservice.xml to pull in all your stuff; device, vendor, kernel and anything else you need for building

Then lunch and make bacon
[Android] pranavaryans:
Hello sir i have compiled crDroid 7.1.2 for oxygen successfully but having 1 strange issue.

During call no voice (if i use headphone or speaker then works perfect)

Dont know what the issue is, please help
[Android] NepoRood:
I can't just guess at what's wrong, lol

Get yourself a logcat and look it over, look at this Guide. Some key words in a log are: error, failed, denied, fatal, etc...
[Android] alphamale:
I'm getting following error. Trying to build aosip for taimen.
[Android] dianxxyyzz:
If you do not know this , is better you to to do not lose time for trying cause is too hard to do it . Sorry ..
[Android] DiamondJohn:
It doesn't sound like an easy job, but this thread is about updating your kernel which I would guess would mean being able to run updated versions of android also. https://xdaforums.com/android/software-hacking/reference-how-to-upstream-android-kernel-t3626913
[Android] Infinity:
I think no space in the hard disk

Tip: you can use hastebin or pastebin to log your errors and paste here
[Android] nithin chandra:
comment the line here https://github.com/DirtyUnicorns/an...ls/releasetools/ota_from_target_files.py#L499
[Android] quake73:
in this case i'd modify the damn line like this :

buildid = "DU_HACK_XY" ?
[Android] Jamie_oppo:
deleted. Trying new device tree
[Android] EndLess:
Brother u won my heart really <3 There are many devs who show there attitude to noobs and even dont rply if they ask any noobie questions, but u help the guy . Salute you My friend :good: :fingers-crossed:
[Android] Chickenzzz29:
I'm trying building Aosp Extended for the oneplus 3t.

This is my first time building a rom and I'm not sure what to do with this error

https://pastebin.com/4dEXgZEH

Hope someone can help.
[Android] pranavaryans:
check your device tree

telegram : [MENTION=5581790]pranavaryans[/MENTION]
[Android] GamingDevilsCC:
I am currently building NitrogenOS for Tissot, however it's not being able to find the boardconfig.mk thats inside of the device source.

ubuntu@Compiler:~/nitrogen$ . build/envsetup.sh && lunch nitrogen_tissot-userdebug

including device/oneplus/oneplus3/vendorsetup.sh

including device/xiaomi/kenzo/vendorsetup.sh

including device/xiaomi/tissot/vendorsetup.sh

including sdk/bash_completion/adb.bash

build/core/envsetup.mk:223: *** No config file found for TARGET_DEVICE tissot generic. Stop.

ubuntu@Compiler:~/nitrogen$

Inside of the code for envsetup.mk:223

SDK_HOST_ARCH := x86

# Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)
# or under vendor/*/$(TARGET_DEVICE). Search in both places, but
# make sure only one exists.
# Real boards should always be associated with an OEM vendor.
board_config_mk := \
$(strip $(sort $(wildcard \
$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
$(shell test -d device && find -L device -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
$(shell test -d vendor && find -L vendor -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
)))
ifeq ($(boardconfig_mk),)
$(error No config file found for TARGET_DEVICE $(TARGET_DEVICE))
endif

Help?
[Android] Black_J:
I am trying to build DotOS 2.1 oreo for the device Lenovo Vibe K5 plus. The build gets successful but after flashing the sim card is not getting detected.

Please, someone help.

Device Tree - https://github.com/Black-J88/device_lenovo_A6020

Kernel - https://github.com/Black-J88/kernel_lenovo_msm8916

Vendor - https://github.com/Black-J88/vendor_lenovo
[Android] darjwx:
In order to help you we may need some kind of log.

Also, if you want to fork a device tree, there's a button for that in GitHub. What you have done is considered a Kang. Try to always keep the commit history :P

---------- Post added at 01:49 PM ---------- Previous post was at 01:21 PM ----------

Which repo are you using for oppo/common? The slim ROM one according to the path?

It may be outdated or it may need support in your ROM to work.

A temp solution would be to remove the calls to oppo/common in your tree (oneplus3.mk and aex_obeplus3.mk or whatever you have named them).

That repo just has offscreen gestures and device specific features. Is not critical for the functioning of the device.

---------- Post added at 01:50 PM ---------- Previous post was at 01:49 PM ----------

Could you link your device tree?
[Android] alphamale:
I'm trying to build screwd rom for taimen. The rom builds fine, but after flashing it boots back to twrp. I can't even get to google splash screen it boot animation. I've tried different kernel trees, with the same result. Currently using trees from dui. Upon reading I noticed I'm missing sys/fs/pstore directory. I'm assuming this is why rom won't boot. Does anyone know how to enable or add pstore