yashsingh1/xdaforums huggingface dataset:
[Android] vleonidov:
Oneplus 5T target user build

Hi guys,

could you please help me with strange issue during building Lineage OS 15.1 for Oneplus 5T with user build target?

I'd like to build LineageOS, downloaded github code, themuppets proprietart blobs and build user debug target without any issues through the brunch dumpling command. After that, I've created vendorsetup.sh file in devuce/oneplus/dumpling directory with the following content:

add_lunch_combo lineage_dumpling-user
add_lunch_combo lineage_dumpling-userdebug

and after that when I try to use lunch I've seen these targets. After choosing user build I try to build the LineageOS with the following command:

make -j 4 dist DIST_DIR=dist_directory_v1

but during the make process around 2 or 3 minutes I've facing a problem:

build/core/Makefile:34: warning: overriding commands for target `/home/user/android-oneplus5T-lineage/lineage/out/target/product/dumpling/system/vendor/etc/gps.conf'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/user/android-oneplus5T-lineage/lineage/out/target/product/dumpling/system/vendor/etc/gps.conf'
[ 99% 1455/1456] glob vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.bp
ninja: error: '/home/user/android-oneplus5T-lineage/lineage/out/target/common/obj/JAVA_LIBRARIES/qcnvitems_intermediates/classes.jar', needed by '/home/user/android-oneplus5T-lineage/lineage/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp', missing and no known rule to make it
00:46:02 ninja failed with: exit status 1

Could anyone help me with figuring out this issue?

Thank's in advance.
[Android] FSadino:
Missing sources on your local manifest. Try to run "brunch" instead of "make"
[Android] vleonidov:
Yep. Brunch with userdebug target works fine. But I would like to build user target... Don't understand what happens. :(

How can I do it?
[Android] nicolosponziello:
I'm tryng to build for Gemini, i've strictly followed the guide but when i hit "brunch gemini" it says that

"vendor/xiaomi/msm8996-common/proprietary/vendor/etc/lm/ReferenceFeature.xml" is missing

Any help?
[Android] svprm:
You have to include this proprietary file from this repo:

https://github.com/TheMuppets/proprietary_vendor_xiaomi

Add this line to .repo/local_manifests/roomservice.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
....
<project path="vendor/xiaomi" name="TheMuppets/proprietary_vendor_xiaomi" />
...
</manifest>
[Android] svprm:
Hi,

I tried to compile LOS for my Oneplus 3 and compilation went successfully.Then i flashed and booted. It stuck at bootloop. Not Exactly bootloop because sometimes it goes upto Account Setup screen ant It stays there for 1 or 2 seconds and get restarted to bootloader.

I tried to get log by getting into recovery and running dmesg > /sdcard/kernel_boot_log.txt. (I don't know whether its correct or not) Link: https://pastebin.com/SqKE4mrH

Then i downloaded boot.img from working lineage zip and flashed it alone. Now my rom boots up fine. So it seems like issue with my boot.img.

Any idea? Why my build gets into bootloop? Any help?

Attached Full Compilation Log: https://xdaforums.com/attachment.php?attachmentid=4519902&stc=1&d=1528309381

Thanks.
[Android] FSadino:
It seems Selinux AVC denials

Read here: https://source.android.com/security/selinux/validate
[Android] svprm:
You are right. Issue with selinux. I compiled boot image with permissive mode and flashed. Then it booted.

But thing is i didn't change anything in the lineage sources. I compiled as it is. Then how there is an issue with selinux? Do you think that maintainer didn't push code to github related to selinux issue?

I don't know what are the denied msg should I have to add to selinux policy.

Thanks for your help
[Android] FSadino:
Does official runs permissive or enforce? If it runs enforce, try to contact official maintainer
[Android] svprm:
Issue get resolved. I have deleted all the folders except .repo and re synced. Rebuilded and tested now it's working fine.

Thanks.
[Android] Nαi:
Hi,

I tried to compile LOS 15.1 for my device and compilation went successfully. Then i flashed archive and get error:

script aborted: set_metadata_recursive: Error on lstat of "/tmp/install": No such file or directory
set_metadata_recursive: Error on lstat of "/tmp/install": No such file or directory
E:unknown command [log]
E:unknown command [log]
The Updater process completed with ERROR: 7

How to add directory install during assembly build?
[Android] vleonidov:
LineageOS Recovery

Hello, guys!

I've built LineageOS and flashed lineage os recovery for my Oneplus 5T.

But there are two issues in default LineageOS recovery:

1. ADB sideload doesn't work at all. When I open LineageOS recovery and try `Apply from ADB` and run `adb devices` on my terminal it doesn't show anything.

2. When I choose "Choose from emulated" I see following messages:

E:Failed to mount /cache: No such file or directory

E:Can't open /cache/recovery/last_install: No such file or directory

Please take a look at the attached screenshot. Unfortunately, I can't load full log file.

https://www.dropbox.com/s/fhbd6tzwyef41eq/2018-06-26 00.17.00.jpg?dl=0

Could you please help me with that issue?

Thank you in advance!
[Android] Droid King:
Can you tell me where lockscreen lock/unlock sound file exist in source i mean in which repo ?
[Android] tech927:
Building for voice over LTE

Hello,

There's a magisk module called VO enabler that works with at least tw roms. I was wondering if this would also work with building lineage and if so what build options or settings I would need to employ?

Thanks.

Dave.
[Android] pranjalm:
hey yo , i am building for x2

i get this msg. please anyone have fix

[1068/1071] including ./vendor/qcom/opensource/cryptfs_hw/Android.mk ...

[1069/1071] including ./vendor/qcom/opensource/dataservices/Android.mk ...

[1070/1071] including ./vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.mk ...

[1071/1071] including ./vendor/qcom/opensource/rcs-service/Android.mk ...

packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm64) missing sap-api-java-static (JAVA_LIBRARIES android-arm64)

You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

build/core/main.mk:732: error: exiting from previous errors.

12:18:23 ckati failed with: exit status 1

#### failed to build some targets (01:00 (mm:ss)) ####
[Android] Nαi:
You can add in BoardConfig.mk, but then probably there will be problems (after).

ALLOW_MISSING_DEPENDENCIES=true

Or add dependencies on hardware/qcom/bt.
[Android] pranjalm:
undeclared identifier

thanks ,

when i am 72% of build this happens

error at line 187 in ril.cpp

make.log ril.cpp ril_commands.h

my device le max 2
[Android] pranjalm:
Hii, can anyone helpe with this. My log make.log
[Android] Creater0822:
Not to sound mean, but isn't the breakfast "DEVICE" a little bit meaningless?

If anybody strives to create their own LineageOS, then you can bet that there are absolutely no specifications available, which means that command will always fail to get anything useful anyway.
[Android] sada23:
I have gcc 5.4. I changed the linker from ld.bfd to ld.gold and I am past that error. The build is going on.

will have to wait for it to complete.

Thanks
[Android] dmbardal:
How do I use the files from github.com/lineageos/android_device_xiaomi_capricorn/ and not my own blobs?

I can't seem to figure this one out.
[Android] FSadino:
Did you already repo sync source and built your custom successfully?
[Android] dmbardal:
I did a repo sync over the night, and now successfully got the proprietary blobs from a pre-built custom LineageROM (older build),

but I got an error.

I'm retrying everything now to see where it went wrong.

Question: Do I HAVE to do repo sync, or can I do repo sync -c to get only the current branch?
[Android] FSadino:
To get proper blobs you have two options:

1. Read this guide and jump to Extract proprietary blobs

OR

2. Search for proper blobs on https://github.com/TheMuppets and add it to your android/system/.repo/local_manifests/roomservice.xml

You have talked about github.com/lineageos/android_device_xiaomi_capricorn, this is not device blobs, this is your device tree.

Blobs are placed on android/system/vendor/...
[Android] dmbardal:
Aah, that makes more sense.

I extracted the blobs from an older (a few weeks) .zip that I flashed.

Will it make a difference if I use that over if I get it from https://github.com/TheMuppets for example?

Are proper blobs updated so it will change things? Camera-quality, WiFi etc. etc.?

Or is all this in github.com/lineageos/android_device_xiaomi_capricorn when they update it?

Also, since I build it for "capricorn" (Mi5s) - Can I just keep github.com/lineageos/android_device_xiaomi_capricorn open, and then repo sync when I see there are changes there, and then rebuild again?

Edit:

"Looking for dependencies in device/xiaomi/capricorn

Looking for dependencies in device/xiaomi/msm8996-common

Looking for dependencies in device/qcom/common

Dependencies file not found, bailing out."

This ends with an error (make failed to build some targets), and this is the only thing I can find that might be wrong.

Would this be my fault with the blob I extracted from the .zip ?
[Android] micku7zu:
Hi guys, I have a similar problem with xiaomi capricorn.

I followed the guide step by step and replaced device name with "capricorn" and I got this error:

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/android/lineage/out/target/product/capricorn/obj/STATIC_LIBRARIES/libinit_msm8996_intermediates/export_includes', needed by '/root/android/lineage/out/target/product/capricorn/obj/EXECUTABLES/init_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/android/lineage'

#### make failed to build some targets (33 seconds) ####

Do you know what I missed or what I need to do? I checked every step from the build guide and I did it exactly the same...

Here is the full output: https://pastebin.com/Qt8EPEq2

Thanks guys
[Android] FSadino:
Yes, if you use blobs from TheMuppets you will have them updated every time you sync/build

What you mean by "keep github.com/lineageos...... open"?

This error is because lineageos does not have built for capricorn yet.
[Android] paultsr:
I had deleted the following folders :

rm -rf external/gello-build/

rm -rf packages/apps/Browser/

rm -rf packages/apps/Gello

After deleting the folder Gello using " rm -rf packages/apps/Gello" and typing repo sync, i got the following errors(check the attachment for more details) :

Shared project LineageOS/android_hardware_ril found, disabling pruning.
error: Your local changes to the following files would be overwritten by checkout:
default.xml
snippets/cm.xml
Please, commit your changes or stash them before you can switch branches.
Aborting
error: Your local changes to the following files would be overwritten by checkout:
runtime/arch/arm/instruction_set_features_arm.cc
Please, commit your changes or stash them before you can switch branches.
Aborting
error: Your local changes to the following files would be overwritten by checkout:
libc/Android.bp
libc/NOTICE
libc/arch-arm/arm.mk
Please, commit your changes or stash them before you can switch branches.
Aborting
........................
Aborting
error: Your local changes to the following files would be overwritten by checkout:
app/src/main/res/values-fr/strings.xml
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 100% (603/603), done.

external/ahbottomnavigation/: discarding 14 commits
external/chromium-webview/: discarding 1 commits
error: android/: LineageOS/android checkout f9ffaa13831a339482c2520eb03e8f9d0d17e3d6
error: art/: LineageOS/android_art checkout 8b0b7302c8c24e12a840de15f0c8b7b95d42ab6b
.............................
error: vendor/cmsdk/samples/weatherproviderservice/WundergroundWeatherProvider/: LineageOS/android_packages_apps_WundergroundWeatherProvider checkout 5de40fe35de6495525a42132aa2aef44b340b802

http://6052.kissr.com/LineageOS/e0.png

http://6052.kissr.com/LineageOS/e1.png

http://6052.kissr.com/LineageOS/e2.png

http://6052.kissr.com/LineageOS/repo_sync_error.txt

What should i do now??Help me.I have been spending alot of time just to compile and build a ROM.
[Android] FSadino:
[MENTION=5868500]paultsr[/MENTION] don't quote entire OP when ask for help. Edit your post, let's keep this thread clean! Thank you
[Android] satcom886:
Hey, I would like to ask a question. One LOS builder just stopped maintaining Samsung Galaxy S2 Plus (GT-I9105P, also known as s2vep). He has complete device tree, kernel sources and compatibility patches. I have access to a device running his latest build 14.1-20170118-UNOFFICIAL-i9105p (which is pretty old, but it is still LOS 14.1). I would like to know if I can use his device tree and kernel source to build up-to-date LOS builds. I have successfully built LOS for kccat6 (SM-G901F), but that device is officially supported, the S2 is not. I asked him for build guide already, but he does not respond and I don't know if it is because it's too difficult to build for an unofficial device or because he simply doesn't use XDA anymore...

Can you help me, please?

Link to the thread: https://xdaforums.com/galaxy-s2-plus/orig-development/rom-cyanogenmod-14-1-t3524368
[Android] FSadino:
Yes, if you have device tree and supported kernel to your device, you can sync lineage source and add device tree and kernel to your local manifests
[Android] satcom886:
I am new to this stuff, can you please specify how can i do this? Btw, you saved my day by saying, that it is possible...
[Android] FSadino:
I suggest you to follow my tutorial and sync lineage source first. Try to understand all steps and then we can continue when it comes to build for a especific device
[Android] sm_adil:
[MENTION=4315132]FSadino[/MENTION]:victory:

Thanks for the awsome guide:o
[Android] mrllvllinh:
LineageOS does not support note 4 n9100. this guide will help me build a ROM for n9100??? Im a new member!
[Android] paultsr:
can i emulate or run my ROM in laptop before flashing it to my phone?

i had built the ROM using the following commands :

breakfast surnia user
brunch surnia user

I tried to run it on my laptop using the command "emulator", but i got the following error :

emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /home/paul/android/lineage/out/target/product/surnia/kernel

can i emulate or run my ROM in laptop before flashing it to my phone?
[Android] infixremix:
No
[Android] FSadino:
Yes you can. I dont have information about that but you can search about it.
[Android] FSadino:
Just because you don't know how it doesn't mean that is not possible.
[Android] FSadino:
What you mean by "their own lineageos"?
[Android] Creater0822:
Oh well, I just failed in my articulation: I should've said "build LineageOS on their own" instead.

Did those three words hinder you from understanding my question?
[Android] FSadino:
I can't understand what you are trying to ask. Are you referring to "Build LineageOS for unsupported device"?
[Android] Creater0822:
Yes, does it not converge to the verge of pointless to build LineageOS on a device that is already supported by a team of developers? I would be surprised if even 10% of this thread's viewers were building on a supported device.
[Android] FSadino:
No if you want to learn and to improve it

All ROM teams that share their work on XDA are based on AOSP or LineageOS. Even "self builders" base their work on it so I assume 100% of ROMs that we have available today born from this 2 sources (even LineageOS born from AOSP)

This thread is not for unsupported devices (although we can talk about it) cos this subject involves a lot of work and requires a good development skills and it's very different between devices.
[Android] ganeshbiyer:
Error building Lineage Dumpling

Non-symlink /out/target/product/dumpling/system/vendor detected!

You cannot install files to /out/target/product/dumpling/system/vendor while building a separate vendor.img

what could be the possible reason
[Android] Mixterix Se7en:
The source of the device is not mine and it is not official in lineageos, but I am trying to build the rom, I saw tutorials, I saw the guide, I added the repository to file roomservices.xml and I can not continue

I'm missing something? did I do something wrong?
[Android] eccko:
This error means that LineageOS don't have your device in repository.

Also you don't have this https://github.com/LineageOS/android_device_samsung_qcom-common

Git clone it to device/samsung/qcom-common with specific "-b" and your branch what you want to build for example. lineage-15.1 or cm-14.1\

Full command for example to git clone it should be look like this

git clone https://github.com/LineageOS/android_device_samsung_qcom-common -b lineage-15.1 device/samsung/qcom-common
[Android] bassbounce:
There is no mention in the op, what to do with the kernel source provided by the manufacturer?
[Android] harkaman:
hi please help me with this. i face this error:

When I Extracting proprietary blobs from LineageOS zip files, i use this command:

mkdir ~/android/system_dump/

cd ~/android/system_dump/

unzip path/to/lineage-*.zip system.transfer.list system.new.dat (I had to use sysytem.new.br because system.new.dat is not found)

git clone https://github.com/xpirt/sdat2img

python sdat2img/sdat2img.py system.transfer.list system.new.dat system.img (I had to use sysytem.new.br because system.new.dat is not found)

mkdir system/

sudo mount system.img system/ ( i cannot mount)

---------- Post added at 10:42 AM ---------- Previous post was at 10:42 AM ----------

hi please help me with this. i face this error:

When I Extracting proprietary blobs from LineageOS zip files, i use this command:

mkdir ~/android/system_dump/

cd ~/android/system_dump/

unzip path/to/lineage-*.zip system.transfer.list system.new.dat (I had to use sysytem.new.br because system.new.dat is not found)

git clone https://github.com/xpirt/sdat2img

python sdat2img/sdat2img.py system.transfer.list system.new.dat system.img (I had to use sysytem.new.br because system.new.dat is not found)

mkdir system/

sudo mount system.img system/ ( i cannot mount)
[Android] tomasz0702:
I am trying to compile lineageOS 15.1 on xperia z2

But there is an error

Can anyone help ?
[Android] SnowFuhrer:
A device (supported by LineageOS)

[MENTION=4315132]FSadino[/MENTION], Would this work for a supported phone, like say lineageos 14.1 updating to 15?(even tho 15 wasn't made for it?)
[Android] FSadino:
If lineageos supports 15.1 branch on that device, yes
[Android] SnowFuhrer:
There is no 15.1 rom for it, but there was a 14.1
[Android] oF2pks:
[MENTION=4315132]FSadino[/MENTION] , can you tell why aapt & curl are not build (in /system/bin) anymore since N ? They can be useful on non-rooted devices, with Terminal.

Also Exchange2(code Aurora) did built fine with 15 until https://github.com/LineageOS/androi...77e#diff-49c5526178769900c7250eb42c984fd8L129 ; is it possible to revert

private

int mSyncInterval on repo ?

EDIT btw is there a (simple) way to push patches on LineageOS gerrit code review, with an email other than a ...@ gmail account?
[Android] zogthegreat:
Hi everyone!

I'm trying to build LOS 15.1 for my Samsung S5 - klte. These are the steps that I'm taking:

## Initialize the source repository

cd ~/work/los

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

## Download the source code

repo sync -f --force-sync -j8 -c

## Prepare the device-specific code

source build/envsetup.sh

breakfast klte

## Start the build

croot

brunch klte

However, my build fails with:

ninja: error: 'vendor/samsung/klte-common/proprietary/vendor/firmware/audience-es705-fw.bin', needed by '/home/zog/work/los/out/target/product/klte/system/vendor/firmware/audience-es705-fw.bin', missing and no known rule to make it

10:45:36 ninja failed with: exit status 1

#### failed to build some targets (02:33 (mm:ss)) ####

I've tried to use the "./extract-files.sh" in ~/work/los/device/samsung/klte, however, it gives an error:

- /system/vendor/firmware/audience-es705-fw.bin ..

!! file not found in source

- /system/vendor/firmware/audience-es705-vs.bin ..

!! file not found in source

- /system/vendor/firmware/cpp_firmware_v1_1_1.fw ..

!! file not found in source

- /system/vendor/firmware/cpp_firmware_v1_1_6.fw ..

!! file not found in source

- /system/vendor/firmware/cpp_firmware_v1_2_0.fw ..

!! file not found in source

- /system/vendor/firmware/bcm4350_V0395.0797_murata.hcd ..

!! file not found in source

- /system/vendor/firmware/bcm4350_V0395.0797_semco.hcd ..

!! file not found in source

- /system/vendor/firmware/bcm4350_V0395.0797_semcosh.hcd ..

!! file not found in source

- /system/vendor/firmware/bcm4350_V0395.0797_semcove.hcd ..

!! file not found in source

- /system/vendor/firmware/bcm4350_V0395.0797.hcd ..

!! file not found in source

- /system/vendor/firmware/bcm4350_V0395.0798_wisol.hcd ..

!! file not found in source

When I try to add blobs from "The Muppets" to my /.repo/local_manifests/roomservice.xml, I get the same error.

Does anyone have any suggestions on what I'm doing wrong?

Thanks!

zog
[Android] FSadino:
Hi zog,

Try adding TheMuppets/proprietary_vendor_qcom_binaries to roomservice.xml
[Android] zogthegreat:
Hi FSadino,

I added the source as you suggested, but I got the following error when I tried to sync the repo:

From https://android.googlesource.com/platform/tools/external/gradle

* [new tag] android-8.1.0_r50 -> android-8.1.0_r50

Fetching projects: 100% (653/653)

error: Exited sync due to fetch errors

Here is how my roomservice.xml looks:

zog@X220:~/work/los$ cat .repo/local_manifests/roomservice.xml

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

<manifest>

<project name="LineageOS/android_device_samsung_klte" path="device/samsung/klte" remote="github" />

<project name="LineageOS/android_device_samsung_klte-common" path="device/samsung/klte-common" remote="github" />

<project name="LineageOS/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" />

<project name="LineageOS/android_kernel_samsung_msm8974" path="kernel/samsung/msm8974" remote="github" />

<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />

<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />

<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="TheMuppets/proprietary_vendor_qcom_binaries" path="device/samsung/proprietary_vendor_qcom_binaries" remote="github" />

</manifest>
[Android] FSadino:
Run branch command with -j1
[Android] zogthegreat:
Thanks FSadino, but I'm unsure what you mean.
[Android] FSadino:
not brunch sorry. Run: repo sync -j1
[Android] zogthegreat:
Running repo sync -j1 gave me the following:

Fetching project device/generic/x86_64

Fetching project TheMuppets/proprietary_vendor_qcom_binaries

fatal: Couldn't find remote ref refs/heads/lineage-15.1

When I look at "TheMuppets/proprietary_vendor_qcom_binaries/Android.mk: it seems that the the source is depreciated:

$(error This repo is now deprecated. Move your blobs to your device's vendor repo.)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

ifeq ($(BOARD_USES_QCOM_HARDWARE),true)

include $(call all-makefiles-under,$(LOCAL_PATH)/$(TARGET_BOARD_PLATFORM))

endif
[Android] FSadino:
Remove first line inside:

"TheMuppets/proprietary_vendor_qcom_binaries/Android.mk"
[Android] FSadino:
sudo apt-get install libncurses5:i386
[Android] Shreehari_karanth:
Thanks

it helped me ... to solve some of my problems