yashsingh1/xdaforums huggingface dataset:
[Android] MarkG_108:
Thanks. Here's the result:

mark@newlaptop:~/android/lineage$ make bacon -j3 | tee ~/android/lineage/build.log.txt
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.10.0-10-amd64-x86_64-with-debian-11.2
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/mark/android/lineage/out
============================================
Running kati to generate build-aosp_arm.ninja...
Environment variable PATH was modified (/home/mark/platform-tools:/home/mark/.local/bin:/home/mark/bin:/home/mark/.local/bin:/home/mark/platform-tools:/home/mark/.local/bin:/home/mark/bin:/home/mark/.local/bin:/home/mark/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games => /home/mark/platform-tools:/home/mark/.local/bin:/home/mark/bin:/home/mark/.local/bin:/home/mark/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.10.0-10-amd64-x86_64-with-debian-11.2
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/mark/android/lineage/out
============================================
find: ‘/home/mark/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
vendor/cm/build/tasks/kernel.mk:186: **********************************************************
vendor/cm/build/tasks/kernel.mk:187: * Kernel source found, but no configuration was defined *
vendor/cm/build/tasks/kernel.mk:188: * Please add the TARGET_KERNEL_CONFIG variable to your *
vendor/cm/build/tasks/kernel.mk:189: * BoardConfig.mk file *
vendor/cm/build/tasks/kernel.mk:190: **********************************************************
Starting build with ninja
ninja: Entering directory `.'
ninja: warning: phony target '-*-' names itself as an input; ignoring [-w phonycycle=warn]
ninja: error: unknown target 'bacon', did you mean 'racoon'?
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
mark@newlaptop:~/android/lineage$
[Android] DiamondJohn:
This appears like your device tree is borked. Check that you have the make file to build for the device "bacon"
[Android] MarkG_108:
Here's what I see when I search for bacon:

mark@newlaptop:~/android/lineage$ locate bacon
/home/mark/android/lineage/lineage/wiki/_data/devices/bacon.yml
/home/mark/android/lineage/lineage/wiki/images/devices/bacon.png
/home/mark/android/lineage/lineage/wiki/images/devices/small/bacon.png
/home/mark/android/lineage/lineage/wiki/pages/build/bacon.md
/home/mark/android/lineage/lineage/wiki/pages/info/bacon.md
/home/mark/android/lineage/lineage/wiki/pages/install/bacon.md
/home/mark/android/lineage/lineage/wiki/pages/update/bacon.md
/home/mark/android/lineage/lineage/wiki/pages/upgrade/bacon.md
mark@newlaptop:~/android/lineage$
[Android] DiamondJohn:
I would expect bakon to appear in your device make files. WIKI refs are not part of the build. Maybe give your roomservice file to allow people to check you have the correct device tree,
[Android] DiamondJohn:
Actually, just after I walked away it occurred to me. Your make statement is missing the rom and build variant. This can be sourced from your device make files.

To kick off my builds, I have used the following.

lunch los_xt897-userdebug;
[Android] namhoang235:
first try rm -rf out (delete old run file and generate new one)

do you edit this file? vendor/cm/build/tasks/kernel.mk,

give me link to your kernel source please.
[Android] MarkG_108:
Here's the roomservice file (/home/mark/android/lineage/.repo/local_manifests/roomservice.xml ):

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_broadcom" path="vendor/broadcom" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_device_lge_hammerhead" path="device/lge/hammerhead" remote="github" />
<project name="LineageOS/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" />
<project name="LineageOS/android_device_motorola_xt897" path="device/motorola/xt897" remote="github" />
<project name="LineageOS/android_device_motorola_msm8960_jbbl-common" path="device/motorola/msm8960_jbbl-common" remote="github" />
<project name="LineageOS/android_device_motorola_qcom-common" path="device/motorola/qcom-common" remote="github" />
<project name="LineageOS/android_kernel_motorola_msm8960-common" path="kernel/motorola/msm8960-common" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" />
<project name="LineageOS/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
</manifest>
[Android] MarkG_108:
I tried that, but got the same result.

No, I did not edit this file.

I simply follow the directions here: https://wiki.lineageos.org/devices/hammerhead/build

I was also trying to install some of the patches, via using this script (that I recently learned about), lineageos-gerrit-repopick-topic.sh, and issuing commands like "repopick_topic n-asb-2021-09", since some security patches aren't available (specifically those for July and August; my phone is currently at "Android security patch level June 5, 2021" -- so I was trying to get as many security patches as possible -- that said, even without running this script, I'm no longer able to make a build for my phone.) Otherwise, I'm not sure what my kernel source is.
[Android] DiamondJohn:
Your building for "bacon"? By chance, your room service is VERY similar to what I use to build. I use to build for The Nexus 5 (ie "hammerhead") and the XT907 (using the XT897 device tree). So, I do not see how you could build for a "bacon" device when you only have the device trees for "hammerhead" and "XT897". Your roomservice appears to be for these two other devices, NOT for a "bacon" device.

EDIT: I checked, and the device tree is here https://github.com/LineageOS/android_device_oneplus_bacon
[Android] MarkG_108:
I am building for a Nexus 5 (hammerhead), as I specified in the initial post I made in this thread.
[Android] DiamondJohn:
Sorry, I was confusing you with the person who posted right after you.
[Android] MarkG_108:
Regarding my attempt to make a build for Nexus 5, I tried on a different computer and received some different errors.

/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x50): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:127: scripts/dtc/dtc] Error 1
make[2]: *** [/home/mark/Templates/Lineage2/android/lineage/kernel/lge/hammerhead/scripts/Makefile.build:443: scripts/dtc] Error 2
make[1]: *** [/home/mark/Templates/Lineage2/android/lineage/kernel/lge/hammerhead/Makefile:510: scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL /home/mark/Templates/Lineage2/android/lineage/kernel/lge/hammerhead/scripts/checksyscalls.sh
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/home/mark/Templates/Lineage2/android/lineage/kernel/lge/hammerhead'
[ 6% 2295/34233] Compiling SDK Stubs: /home/mark/Templates/Lineag...obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/mark/Templates/Lineage2/android/lineage'
[Android] namhoang235:
device_xiaomi_ginkgo/BoardConfig.mk at 11.0 · LeCmnGend/device_xiaomi_ginkgo

Device 🌲 For Xiaomi Redmi Note 8/8T (\nMatched with SuperiorOS, you have to small config for match with your rom) - device_xiaomi_ginkgo/BoardConfig.mk at 11.0 · LeCmnGend/device_xiaomi_ginkgo

github.com

find my TARGET_KERNEL_CONFIG variable (ginkgo), hope it give you the hint
[Android] Blue_Monk:
Hi guys, Sorry if this is a dumb question.

I'm trying to build LineageOS 18.1 for OP9Pro. The rom builds fine and all but I can't seem to be able to add extra 3rd party apps to the build after finding a way on xda.

Any idea what I'm doing wrong?

What I tried (a few times):

1. created the app directory in ~/android/lineage/packages/apps/

copy the apk with META-INF deleted (to resign with platform key)

create a file called "Android.mk" with the contents below.

2. edited ~/android/lineage/device/oneplus/lemonadep/device.mk to add

# NebulaUniv
PRODUCT_PACKAGES += \
NebulaUniv

Android.mk contents:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := NebulaUniv
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_CERTIFICATE := platform
LOCAL_MULTILIB := both
#LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)
[Android] NepoRood:
Need to add a blueprint file (Android.bp) with something along the lines of this in it:

soong_namespace {
}

android_app_import {
name: "NebulaUniv",
apk: "path/to/NebulaUniv.apk",
presigned: true,
dex_preopt: {
enabled: false,
},
}

Hope that helps...
[Android] Blue_Monk:
Thank you very much for the tip. I still couldn't get it to bake the app the at least now I'm looking in the right place. I'll get back to googling maybe I find a few examples to inspire from. Either way, a big thank you for putting me on the right track.
[Android] NepoRood:
No worries, all you really need in your Android.mk is the first line:

LOCAL_PATH := $(call my-dir)

Then, you want to add your package to the lineage common.mk file, located here:

vendor/lineage/config/common.mk

If you look through the file, I'm sure you'll find a good place to add
[Android] moj.enjoy:
hello i want to build havoc os 11 for canro (mi4). i synced source codes with "repo sync -j1" or "repo sync -j4"...

after brunch command. i saw this error...i think that i shoud sync some other repo but i dont know exactly ... pls help me . thnaks alot.
[Android] fabian_screta:
Is there a current YouTube guide (step by step) I would like to make Pixel Exp. for my Mi Mix 2...
[Android] rdanielk:
hello all, I am trying to add apks to my system/app folder in the SYSTEM.PARTITION

is there a specific way to do that? or anyone could point me to guide with step by step process?

I tried to add two apks in there. FX File Explorer and Youtube.

I can repack the rom and flash to the device, The two apps seems to be installed, but only the FX File Explorer works.

The Youtube apps open a black screen, and goes back to main screen, if I try to open it.

Also, I would like to try to port my rom to android tv, if there is anyone here that would be willing to help in exchange of financial help, please send me a PM.

Any help would be much appreciated.
[Android] DiamondJohn:
Thee are two different cases here, and you seemed to have gotten the FX File explorer correct. However, I think the latest YouTube releases will not be the exact same, as its a multi-part APK. And isnt YouTube installed as a part of GApps? If not, i would check other GitHub RPOM repositories to see how they did it. Sorry I cant be more helpful.

Now from my opinion / point of view. A few years back I used to build & dist ROMs. I replaced a few of the default apps in the custom ROMs with improved APK's. After a while I reaslised the negatives of doing such. Whenever you add an app to the ROM, chances are that it will be updated, and possibly by the time the ROM actually gets first installed. Therefore, the APK I had installed on the system partition, will be replaced by the update which gets installed to the data partition, leaving the APK on the system partition. If the app is not taking any advantages of being installed as a system app, then its a waste. The only benefit would be to others in that they get my personal recommendation of a specific app or dont need to think about what they should install as a minimum.

On another opinion, I would look into MiX by @HootanParsa, distributed here on XDA, as a file explorer ovcer FX Explorer. A few years back I checked with him and he gave the ok for me to include it in my ROMs.
[Android] rdanielk:
Thank you for the explanation... I actually downloaded the Youtube Apk from apkmirror... If I install that same apk after flashing with the app installer, all works fine, I just cannot understand why if I put into the system/app folder it won't install properly.

I was thinking that was something regarding to other files in the rom, maybe a script or something like it...

Thanks again
[Android] DiamondJohn:
Try installing the APK to your device, and check what files ares being created. Maybe the YT APK must be ODEXed to run. IDK.

One idea I would try, is to convert your /data/app YT files to a magisk module, which would then appear as being on your system partition on the next boot.
[Android] Zentriks:
Hey guys, I need some help with building ROM for S5 Mini. As of right now I'm trying to build LineageOS 16 to get to know it. I followed your guide and even looked at other guides. My problem is even if I apply

git clone https://github.com/LineageOS/android_hardware_samsung -b lineage-16.0 hardware/android_hardware_samsung

I get this error

root@ubuntu:/home/marcus/android/lineageos16# make clean-apache-xml
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20220811-UNOFFICIAL-kminilte
TARGET_PRODUCT=lineage_kminilte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.18.16-zen1-1-zen-x86_64-Ubuntu-22.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3A.190801.002
OUT_DIR=/home/marcus/android/lineageos16/out
============================================
[1/1] /home/marcus/android/lineageos16/out/soong/.min.../android/lineageos16/out/soong/.bootstrap/build.ninja
[61/62] glob prebuilts/ndk/stl.bp
[80/80] /home/marcus/android/lineageos16/out/soong/.b...home/marcus/android/lineageos16/out/soong/build.ninja
/home/marcus/android/lineageos16/out/build-lineage_kminilte-cleanspec.ninja is missing, regenerating...
/home/marcus/android/lineageos16/out/build-lineage_kminilte.ninja is missing, regenerating...
[113/1035] including device/samsung/kminilte/Android.mk ...
YD>>LOCAL_MODULE=sensors.universal3470, LOCAL_SRC_FILES=sensors.cpp HeartRateSensor.cpp LightSensor.cpp Proxim
itySensor.cpp, LOCAL_SHARED_LIBRARIES=libinvensense_hal libcutils libutils libdl liblog libmllite libhardware_
legacy
[265/1035] including frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver.
This is weakening security measures introduced in 7.0
[1035/1035] including vendor/qcom/opensource/dataservices/Android.mk ...
hardware/ril/reference-ril/Android.mk: error: "libreference-ril (SHARED_LIBRARIES android-arm) missing libril
(SHARED_LIBRARIES android-arm)"
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer rea
l problems until later in the build.
hardware/ril/rild/Android.mk: error: "rild (EXECUTABLES android-arm) missing libril (SHARED_LIBRARIES android-
arm)"
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer rea
l problems until later in the build.
build/make/core/main.mk:844: error: exiting from previous errors.
14:31:27 ckati failed with: exit status 1

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

I'm using Ubuntu 22.04 via Distrobox. Thanks for your help in advance!
[Android] NepoRood:
For one, change your clone line to this:

git clone https://github.com/LineageOS/android_hardware_samsung -b lineage-16.0 hardware/samsung

Repos rarely have an underscore "_" in the name, some do, but not the one for Samsung hardware
[Android] NepoRood:
Sure, as long as it has the needed hardware requirements. Depending on Android version, you'll need around 150-200Gb of free space, at least 16Gb RAM (the more the better on this one, although, I know people that build with half that) and a lot of patience...
[Android] ObsidianMaximus:
oh ok, thanks for the reply.
[Android] DiamondJohn:
Is anyone here building the A11 version of Bliss ROM? The current version is for A12.1.
[Android] Bloodstalker82:
Hi everyone. So I currently have a Motorola Edge + (Burton) that is currently running Android 12 and I want to update it to Android 13 (Was gonna try LineageOS, but that seemed more complicated since there is no version for my device).

However, my device will no longer receive updates to newer versions of Android and therefore I have decided to try and build it myself.

Now I have already done a bunch of research and learned alot of what I need to do, but I do have a few questions.

1) When I am building my project, do I need to get the device tree and kernel source from Motorola's Github? Or can I extract it from the stock firmware? The reason I ask is because on Github it is S1PB32.41-10-17 where as on my phone and the stock firmware that I have downloaded it is S1PB32.41-10-19-2.

2) If I don't need to pull the files from Github and can use the stockfirmware that I have backed up, what commands do I need to enter during the build process (I'm new to Linux commands) to get these files I have?

3) Now this question I believe only needs to be answered if I have to use Github, but when I have the proprietary device blobs (Using CRB Android Kitchen), will there be a conflict when building (because the kernel/device tree is a different version)

I apologize if I may have misunderstood some things, but I basing my knowledge on various tutorials I have found.

Also, I apologize if this question has already been answered in this thread, I just couldn't find it yet.

Finally thank you to Diamondjohn for their help and referring me here.
[Android] ip-drop:
Hi guys!!! I want porting hostapd in my lineage... Can anyone suggest how to do this?
[Android] NepoRood:
I've answered in the same order you asked:

1) Yes, you will need a device tree for certain, if there's one on GitHub for your device, start with it. You cannot extract a device tree from your firmware, AFAIK anyway.

2) IF you're talking about extracting specific files from the device, for example to create a vendor tree, then yes, there are several ways to extract from stock firmware.

3) It is highly likely you will encounter conflicts. Not only are you new to Linux, you're adding in building AOSP for the first time, possibly bringing up a device, vendor and having a build-able and bootable kernel...

There's a lot to building your own firmware (ROM), even more so for devices that haven't been brought to custom before. I'm not saying you can't do it, I'm saying it's a process, lol

My advice:

* Try and build Lineage, they accommodate the most devices and have the largest knowledge base

* I also advise to not go straight for Android 13, try 12.1 (lineage-19.1) first, since that is what the device is currently running

* Depending on your device (I didn't do much research), look at similar devices that have the same SoC, display size, hardware, etc

I did happen across an Unofficial TWRP, you decide what to do with that. Probably be helpful if it works right.

Feel free to post again if you have any more questions.

Best of Luck,

Nepo
[Android] Bloodstalker82:
Hey there, thanks for your reply, I am definitely going to take your suggestions to heart. But first I do have a few more questions.

1)I found a guide on how to compile a kernel from source and then on how to add it to your stock rom. By following this guide, can I use it to update my devices kernel to the newer version on Github? I'm just talking about updating my current rom to a slightly newer kernel, not the Android version itself or to a custom rom.

2)If I'm successful in updating the firmware in my current stock rom, is there still alot to it to port my device to LineageOS 19.1? Even if I have access to all the device files?

3)If I do attempt to build Lineage, do the device tree, kernel and proprietary blobs need to be on Github, or can I build Lineage with them on my computer? This will be a major factor for me, as I am not 100% if any or all of proprietary device blobs are on Motorola's Github, and the only way I know to get these for sure is with CRB Android Kitchen.

Based on my research and your advice, I'm thinking I may be in over my head. I'm probably going to still follow some of the guides I have found and see what I can accomplish.

Brad
[Android] NepoRood:
Same deal:

1) You can certainly try, I am not familiar with your device and therefore really can't say, but I'm sure its "possible"

2) You're not going to be building a "stock" firmware update, your only option for building is a custom variation of AOSP (ie, LineageOS)

3) No, you are not "required" to push anything to an online git service, it is highly recommended though.

3.1) Lineage has some handy scripts and tools for extracting files from factory firmware.

Building a custom ROM not only requires a lot of patience, it also requires determination. You keep bringing up that kitchen (CRB) have you tried modifying your factory firmware in any way?

Kitchens can be a fun learning experience and there are several available, just want to make sure that the developer hasn't retired or something, lol.

Personally, I use the Pro version of SuperR Kitchen (Linux)

Regards,

Nepo
[Android] Bloodstalker82:
I haven't actually used CRB yet, but it looked like it would probably be a good program and it looked like it has a user friendly interface. Also, I'm pretty sure it is still being maintained. I plan to use it soon to attempt to merge the updated kernel for my device with my stock rom.

I appreciate all the advice you have given me, and I think I am going to take it slow.

Starting to get a headache from all the info required lol.

Brad
[Android] Oscarplopes:
I am translated by these methods but I have no knowledge and time to experiment, beautiful see an explanation of the whole procedure, I am looking for a translation for the Brazilian Portuguese of the Chinese ROM of the Legion y90, I searched in millions from nowhere can you guide me in some solution? From now on your availability!🙏🙏🙏

Sou tradução por esses métodos mas não tenho conhecimento e tempo para experimentar, lindo ver uma explicação de todo o procedimento, estou procurando uma tradução para o português brasileiro da ROM chinesa do Legion y90, eu procurei em milhões de nenhum lugar você pode me orientar em alguma solução? Desde já a sua disponibilidade!🙏🙏🙏
[Android] :
did this ever get sorted ? I'm having the same issue
[Android] aala27:
Hi all,

Been trying to build crDroid rom (Android 12L) for the HTC One m8 but can't get it to boot. See below last_kmsg from the kernel panic.

https://hastebin.com/share/pulaneloga.yaml

Let me know if more info is needed.

Thanks,