yashsingh1/xdaforums huggingface dataset:
[Android] vleonidov:
LineageOS and oneplus2

Hello guys!

I'm trying to build LineageOS 14.1 for oneplus2. Sometimes ago I've run repo sync and now boot.img doesn't contain radio module. The device after fastboot couldn't find sim card and wifi and reboot loop after some time.

In logs I see following:

using prebuilt boot.img from BOOTABLE_IMAGES...
boot size (13774848) is 20.53% of limit (67108864)
warning radio-update: no radio image in input target_files; not wiping DDR
warning radio-update: no radio image in input target_files; not flashing radio

Here is my roomservice.xml:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_oneplus_oneplus2" path="device/oneplus/oneplus2" remote="github" />
<project name="LineageOS/android_device_oppo_common" path="device/oppo/common" remote="github" />
<project name="LineageOS/android_kernel_oneplus_msm8994" path="kernel/oneplus/msm8994" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="LineageOS/android_vendor_nxp-nfc_opensource_frameworks" path="vendor/nxp-nfc/opensource/frameworks" remote="github" />
<project name="LineageOS/android_vendor_nxp-nfc_opensource_libnfc-nci" path="vendor/nxp-nfc/opensource/libnfc-nci" remote="github" />
<project name="LineageOS/android_vendor_nxp-nfc_opensource_Nfc" path="vendor/nxp-nfc/opensource/Nfc" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
</manifest>

Could you please help me?

Thanks!
[Android] Elanza_48:
Hello guyz, I've successfully builded RRos for otus. But on testing found out that the sim cards are not detected and also the developer option in settings menu is not responding. Did I do anything wrong ?
[Android] gtpitch:
Check sepolicy changes after lineage rebase. Not sure grarak has updated his device tree yet if that's who you're using.
[Android] nicesoni_ash:
In which tree? Device tree hasnt been changed. Could there be any changes in system/sepolicy?

I am having the reboot loop issue as well.

Could an adb logcat using pc would help to check what sepolicy related stuff is having issues?

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] gtpitch:
My logcat wasn't useful but it's the changes to qcom/sepolicy that caused it.

You have to change some permissions in your tree. Can't link you easily right now but check lineage gerrit for changes on bacon and you'll see it.
[Android] nicesoni_ash:
That file isn't in my device tree and I checked few other dev's op2 device trees and there isn't any sepolicy related commit.
[Android] nicesoni_ash:
This is the denied access I guess in my log. It matches the file los updated for bacon sepolicy but this file doesn't exist for op2 device tree. Any suggestions?

02-20 13:06:19.586: W/rmt_storage(995): type=1400 audit(0.0:8): avc: denied { dac_override } for capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0

I am copying commit for bacon and building again, it's almost confirmed that this is sepolicy issue.

Edit:

Build is at least booting now, but now rebooting after a few seconds once the system boot and no network as other user reported.
[Android] spirto82:
I have built a resurrection remix OS for my device (Huawei p8 lite - no official support). Is there any way to lunch an emulator (with custom hardware) in order to check the functionality of the rom? Thanks in advance!
[Android] gtpitch:
https://github.com/aosp-oneplus2/de...mmit/9cbb36711c44f48f1edc53de1df2e07550e1ff06

That's my device tree for carbon. The sepolicy changes i made in that commit fixed my reboots on my op2

The other option that you have is to swap cm14.1 qcom/sepolicy for the cm14.1_prerebase branch via local manifest for now.
[Android] Vijay chandra:
Bro please tell me how can i modify device tree of another device with my processor and specs to my device .. Im using lenovo k4 note with mtk6753
[Android] TimSchumi:
You could find some device trees to look at in the Lenovo K4 Note forum here at xda.

There should be some stuff you could use. I can't make the device tree for you, because I can't test this stuff properly. Feel free to ask me though when you don't know something
[Android] lazybatman123:
Can't find vendor

Hi so still searching for the vendor for my phone (sm-g530h) can someone please help?
[Android] Elanza_48:
Search in google "the muppets github" goto the github page and search for the brand within which your model will be included.
[Android] Elanza_48:
What should I modify to add the baseband version to my device ?
[Android] Raja_12:
How can I add apk files? is it possible.
[Android] TimSchumi:
Put them into a PRODUCT_COPY_FILES block in your device.mk
[Android] Infinity:
Yes you can add

Just download the source of apk in packages/apps

& Add this apk in your device tree (i think in device.mk)

And it will add in your build...

But if you want to build that specific app then use this command "make settings" (if you want ti build settings app)

Please Correct me if i wrong

Thanks!
[Android] Raja_12:
Yea with source we can easily add by cloning it. what about other apps without source on github.
[Android] Infinity:
Compile full rom then extract it and download that particular apk file and paste it in a right directory

And again make zip of it :p
[Android] NepoRood:
You can add apk files to your vendor, place in "priv-app" if you want to be a system app, or just "app" if you want to allow the user to uninstall it. You'll also need to modify some make files to include the apps, various examples can be found on Github...
[Android] Raja_12:
Thnx will try it soon.

---------- Post added at 02:19 PM ---------- Previous post was at 01:54 PM ----------

javac: file not found: /home/oniv/uos/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java

Usage: javac <options> <source files>

use -help for a list of possible options

[ 2% 1047/48413] target Java: tzdata_update (/home/oniv/uos/out/target/common/obj/JAVA_LIBRARIES/tzdata_update_intermediates/classes)

ninja: build stopped: subcommand failed.

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

make: *** [ninja_wrapper] Error 1

I have installed java 8. Do i have to instal java 7 for this...
[Android] Infinity:
Clone platform-res_intermediates

Into packages/apps
[Android] Arvind7352:
(Applies for any file, pre-built)

For any file to get added in ROM's zip under a particular directory..

PRODUCT_COPY_FILES += \
[SourceFile]:[DestinationFile]

This code can be added in the Device tree (or wherever you wish), a file similar in purpose to that of device.mk

Example,

SourceFile is vendor/foo/bar.apk and DestinationFile is /system/app/bar/bar.apk

The bar.apk under vendor/foo will be transferred under the directory /system/app/bar

EXAMPLE

Whatever app you clone (to whatever directory) must contain an Android Makefile (Android.mk) which specifies the various build parameters for the particular module such as Source Files, Dependencies, Compiler Flags, etc.

EXAMPLE

Now, to get the app built, you need to create this call in any Makefile under Device Tree or ROM vendor tree (vendor/[ROM]/configs/)...

PRODUCT_PACKAGES += <name-of-the-app>

EXAMPLE

name-of-the-app can be determined by searching for the value provided to LOCAL_MODULE or LOCAL_PACKAGE_NAME (for Apps) variable in Android.mk

EXAMPLE

Make it a habit of providing the details of the ROM and Device (and if necessary, some info on System)

Seems like you're building a LP/MM ROM which is AOSP based, CMHW and CMSDK is missing
[Android] nicesoni_ash:
I understand the system part, what about copying to a specific folder on internal sdcard. Putting sdcard/"folder name" didn't work for me. It's that possible?

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] Arvind7352:
PRODUCT_COPY_FILES only works for the vital directories of Android (which are generated On compilation).

Exception is for Storage mounts (/sdcard, /external_sd, etc.) or in other words, Exception is for any Folder whose supposed mount-point is created "on-boot" and not "on-compilation"
[Android] nicesoni_ash:
So if there are exceptions, shouldn't it work if I use this to copy a zip file on internal sdcard?

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] Arvind7352:
That Variable is ONLY for copying files to the "Android System". And SDCard/Internal Storage doesn't have any role in Compilation.

But, You can create a shell script for copying the files to their respective destination (While Flashing). Search for it.

A Good Example is backuptool.sh, it does restoration of files in /system/addon.d after Flashing

Note

: /sdcard OR /external_sd is a Mount-Point, not a Folder
[Android] Raja_12:
Thnks for your time.

Building UOS By UTeam

Device tree-https://github.com/CyanogenMod/android_device_yu_tomato
[Android] DJKristy:
Do I need to know Java for building ROMs.
[Android] Elanza_48:
You need to have the knowledge of git.
[Android] Arvind7352:
For modifying the working of a system, adding features.

ROM developers take enough care of the Source code.

If you just want to build a ROM, then the basic knowledge of Linux and Git (version control), repo (which eases your syncing work), XML (manifests) is enough to "start" with. Knowledge of a programming language is recommended though, as it helps you to interpret other languages in a quicker manner. :)

Other Languages?

Java (Framework), C (Kernel + Core System), Bash (Build Script and some Minor Scripts), Assembly (Kernel), Makefile (BuildSystem), Python (Working with System Images), and possibly many more which I don't know.
[Android] Raja_12:
Device tree-https://github.com/LineageOS/android_device_yu_tomato

citrus-caf qcom/audio-https://github.com/Citrus-CAF/hardware_qcom_audio/blob/n-8952/hal/voice_extn/voice_extn.h

Im stuck in here.

target arm C: audio.primary.msm8916_32 <= hardware/qcom/audio/hal/voice.c

In file included from hardware/qcom/audio/hal/voice.c:32:

hardware/qcom/audio/hal/voice_extn/voice_extn.h:194:71: error: unused parameter 'adev' [-Werror,-Wunused-parameter]

static int voice_extn_compress_voip_set_mic_mute(struct audio_device *adev, bool state __unused)

target arm C: audio.primary.msm8916_32 <= hardware/qcom/audio/hal/audio_extn/audio_extn.c

hardware/qcom/audio/hal/audio_extn/audio_extn.c:70:33: error: unused variable 'aextnmod' [-Werror,-Wunused-variable]

static struct audio_extn_module aextnmod = {

http://pastebin.com/mY6AxDKk

[MENTION=7237874]NepoRood[/MENTION] [MENTION=7159965]Infinity[/MENTION] [MENTION=6049586]Arvind7352[/MENTION]
[Android] Infinity:
No error here full log please
[Android] Raja_12:
its in pastebin link. i already posted abt this but still no luck.
[Android] Infinity:
Did you clone all the dependencies i mean audio , display and media in hardware/qcom/here*

If not then clone it from cirtus-caf

And sorry i didn't check the url in last line
[Android] Raja_12:
yep its present.

root@ubuntu:~/citrus/hardware/qcom# ls

audio bootctrl bt display fm keymaster media wlan
[Android] Infinity:
I passed to [MENTION=6049586]Arvind7352[/MENTION] [MENTION=5991747]neonkat[/MENTION]
[Android] DJKristy:
Is there a thread about how to make device tree.

If so please give link

Thanku
[Android] NepoRood:
Github is loaded with device trees, what device do you have? The most common thing is to find something similar and adapt to your device.
[Android] tribual:
Got this error when trying to add CPU governor to my working kernel:

CC drivers/cpufreq/cpufreq_pegasusq.o

../../../../../../kernel/elephone/p9000/drivers/cpufreq/cpufreq_pegasusq.c: In function 'dbs_check_cpu':

../../../../../../kernel/elephone/p9000/drivers/cpufreq/cpufreq_pegasusq.c:443:3: error: implicit declaration of function '__cpufreq_driver_getavg' [-Werror=implicit-function-declaration]

freq_avg = __cpufreq_driver_getavg(policy, j);

^

cc1: all warnings being treated as errors

make[4]: *** [drivers/cpufreq/cpufreq_pegasusq.o] Error 1

make[3]: *** [drivers/cpufreq] Error 2

make[2]: *** [drivers] Error 2

make[2]: *** Waiting for unfinished jobs....

make[2]: Leaving directory `/home/tribual/aokp-6/out/target/product/p9000/obj/KERNEL_OBJ'

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/tribual/aokp-6/kernel/elephone/p9000'

make: *** [TARGET_KERNEL_BINARIES] Error 2

Gesendet von meinem P9000 mit Tapatalk
[Android] allurba:
I've compiled several releases of resurrection remix and all perfect, but latter gives me many problems, please look at the error having if you can help me!!

https://gist.github.com/allurba/5b2ab4f1dc8eca6811daed729d235722
[Android] allurba:
Fix!!

Enviado desde mi HUAWEI RIO-L01 mediante Tapatalk
[Android] DJKristy:
Samsung galaxy star
[Android] Elanza_48:
I've successfully compiled a rom but on testing I found that the rill starts to work only after setting selinux to permissive. Do i have to modify something ?
[Android] nicesoni_ash:
Sepolicy stuff in your device tree.

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] Infinity:
sepolicy error

stucked here from long time

i tried removing sepolicy line from BoardConfig.mk but still
[MENTION=6049586]Arvind7352[/MENTION] and others

please help

link here => https://hastebin.com/arufusonoj.vbs
[Android] neonkat:
comment out.

---------- Post added at 08:26 AM ---------- Previous post was at 08:24 AM ----------

you will have to define it.

check the git from where you took the governer files.
[Android] Infinity:
What to comment?
[Android] Aditya Kr:
Is it fixed?

I got the same error...
[Android] ace091:
Error during fetching source code from LineageOS

Bro I'm getting this error please can you tell me where I have done the wrong & how could i get rid of this error :

$ repo init -u git://github.com/LineageOS/android.git -b cm-14.1

/home/user/bin/repo: line 2: syntax error near unexpected token `newline'

/home/user/bin/repo: line 2: `<!DOCTYPE html>'﻿
[Android] excelly2k1:
While building Lineage ROM from source for Lenovo K3 Note the following error coming.

Generating /home/lavu/cm/out/target/product/aio_otfp/module-info.json

make: execvp: /bin/bash: Argument list too long

Pl help to overcome the same and thanking you in advance.

Host O.S - Ubunut 16.04 64bit
[Android] NepoRood:
Use:

repo init -u https://github.com/LineageOS/android.git -b cm-14.1
[Android] MSF Jarvis:
http://stackoverflow.com/questions/17871338/keep-getting-implicit-declaration-error

Took me eight seconds on Google to find the link. Please try to help yourself before asking us for it. "implicit declaration of function errors" was the search term I used.
[Android] Swp1996:
Yepz that error was in ringer.java file in dailer.apk
[Android] Aditya Kr:
Hoy you solved it?

I need it urgently :D
[Android] ace091:
Thanks for the reply but still getting same error :( :confused:
[Android] Raja_12:
system/vold/cryptfs.c:74:10: fatal error: 'cryptfs_hw.h' file not found

#include "cryptfs_hw.h"

^

1 error generated.

[ 5% 966/17881] target Unpacked: toybox (/home/oniv/uos/out/target/product/tomato/obj/EXECUTABLES/toybox_intermediates/PACKED/toybox)

ninja: build stopped: subcommand failed.

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

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/home/oniv/uos'
[Android] rocknegi:
Include it or take system/vold from lineage

Or CAF
[Android] Raja_12:
You mean clone system/vold from lineage or Caf...
[Android] rocknegi:
Yes
[Android] DJKristy:
This might seem off topic .

But I need help

Can anyone tell me which is the best fast internet provider.

Lots of GB's of source code need to be downloaded.

So need fast internet connection.
[Android] NepoRood:
There's really no answer to this, lol.

Shop around, for me, in my area, cable internet is best...
[Android] MoazSalem:
Can any one tell me how to solve this please
[Android] Adromir:
Breakfast A7010a48 then brunch A7010a48
[Android] MoazSalem:
same problem
[Android] Adromir:
Do you have a source code somewhere? Is the device supported by the rom you are going to build?
[Android] Milor123:
I dont understand, I want compile CM13 for my device (is a unknow device, azumi a50c+), how could I get the source, kernel and device tree ??

I have all the stock rom compiled.... could someone explain me it? thank you very much

[MENTION=5216756]jackeagle[/MENTION]
[Android] Raja_12:
build/core/Makefile:34: *** Prebuilt apk found in PRODUCT_COPY_FILES: vendor/yu/tomato/proprietary/vendor/app/ims/ims.apk:system/vendor/app/ims/ims.apk, use BUILD_PREBUILT instead!.

build/core/ninja.mk:168: recipe for target '/home/oniv/nexus/out/build-tomato.ninja' failed

make: *** [/home/oniv/nexus/out/build-tomato.ninja] Error 1
[Android] mahmoud_10th:
after compiling from source code of lenovo s860 MT6582 device

i toke the zimage and repack it with a boot.img file

and now i have a contentious reboot i want to know what is reason of that

i tried

nothing work

please note when i repack the boot.img file with serg / stock zimage the device run ok

but when i repack with the generated zimage device reboot

where or how can i find the error causing the reboot

please help me i am stuck here
[Android] TimSchumi:
Looks like they want you to create an Android.mk file for prebuilt APKs. Remove the APK from PRODUCT_COPY_FILES and visit http://android.mk/#prebuiltAPK and follow the instructions there to make a Android.mk for your Prebuilt APK

---------- Post added at 08:50 AM ---------- Previous post was at 08:36 AM ----------

It looks like the base system starts with the repacked Image, but fails on mounting somewhere.

It could be that you are missing some Kernel cmdline stuff, which tells the device which init.<device>.rc it has to include. Try adding androidboot.hardware=<whatever stands between "init." and ".rc"> to it. If that doesn't work, try to change "include init.<ro.hardware>.rc" to "include init.<whatever you added in the cmdline>.rc"
[Android] mahmoud_10th:
[MENTION=7331587]TimSchumi[/MENTION] could you please see the kernel build log and tell me , if all this warning are ok or i have to fix something .:o

thank you for help .
[Android] Raja_12:
[MENTION=7331587]TimSchumi[/MENTION]

Android.mk is present and Prebuilt APK's are entered in my vendor. Im gettng this error only on few Roms.
[Android] TimSchumi:
Prebuilt APKs shouldn't be in your vendor tree's blobs.mk file. Just copy them into a folder in your device tree, together with the Android.mk file and add this to your device.mk:

PRODUCT_PACKAGES += \

Name of the APK

---------- Post added at 09:41 AM ---------- Previous post was at 09:39 AM ----------

Again, this isn't in your kernel build log. You need to change things in the defconfig before building and things in the ramdisk before packing
[Android] Raja_12:
okay i ll try this.
[Android] mahmoud_10th:
[MENTION=7331587]TimSchumi[/MENTION] sorry i couldn't find the files you mentioned

also i don't have device defconfig file

i compiled by the steps in the readme file :

./makeMtk phaeton_row n k ARCH=arm CROSS_COMPILE=arm-linux-androideabi-

also i noticed that the scatter file which is generated not the same as the stock there is deferences
[Android] TimSchumi:
Look inside the makeMtk script which defconfig is used there. Then search for the defconfig in arch/arm/configs. There should be the cmdline
[Android] adarshadhungel1:
How to get device tree, Vendor and Kernel required for building ROM?? If it is not available in github..

I mean how to create them from scratch??
[Android] mahmoud_10th:
[MENTION=7331587]TimSchumi[/MENTION]

sorry but i can't find any defconfig in the file makeMtk but it all about project config

but i see the project config have all the settings

do you want me to see something there

you can check it herehttps://github.com/mahmoud-10th/Lenovo_s860/blob/master/android/mediatek/build/makeMtk
[Android] TimSchumi:
I can't find anything either...
[Android] bartys:
'/home/ciulnwl17/cosmicv2/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/ciulnwl17/cosmicv2/out/target/common/obj/APPS/LibraDoze_intermediates/with-

local/classes.dex', missing and no known rule to make it

Guys Can you help me???? I want to make cosmic os My phone is xiaomi mi4c
[Android] mahmoud_10th:
:o thank you for your time :good:
[Android] a g bell:
Hi please could anyone link or explains how to add a bootloader.img to my ROM build

If it helps l currently build a custom N ROM on a hh but have N style bootloader that l would like to add to the build instead of having to flash a zip

Oops must of posted in wrong thread?
[Android] Infinity:
Building pa wow,

Don't worry its simple error

Are you following any guide for it ?

I will tell you process to lunch afterwards
[Android] XGr7078:
Dear All, I am facing error while compiling lineage OS 13 for my (moto e3 power a.k.a taido). I have all the three required sources (device tree, vendor tree and kernel tree) all for cm 13.0 branch and all library installed but still getting error /bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory. Here you can see my pastebin

Any help is really appreciated.

Thanks XGr7078
[Android] MoazSalem:
im done with this bug sir now i have a problem with kernel here :
[Android] Infinity:
Lunch is not proper i guess (try lunch pa_devicename-userdebug)

But i want full log to know more about it use hastehin.com please
[Android] Rmontoya83:
Any ideas on why this failed?
[Android] Rmontoya83:
Been trying my self for another device

You need to build the tree look for a signal device on git hub and you jackpot clavin blob utility to pull the blobs to add to the directory.
[Android] DJKristy:
I think bison ain't installed in ur PC.

Try install it
[Android] XGr7078:
Thanks for the help. But its already installed. I thing i need to define the path to it:confused:
[Android] optimumpro:
Hello. I am building a custom N rom. As soon as I have disabled jack server building, I get multiple errors 'no rule to make target' for a bunch of intermediaries, such as Bluetooth, BasicDreams and others. The sources for apps with the relevant Android.mk are in place, however, the compiler is behaving, as though they are not there. Am I missing a flag in conjunction with my 'ANDROID_COMPILE_WITH_JACK := false' that I put in device board config? Thanks in advance...
[Android] Raja_12:
PRODUCT_COPY_FILES device/yu/tomato/configs/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml ignored.

build/core/Makefile:159: *** BUILD_FINGERPRINT cannot contain spaces: "YU AOSIP/aosip_tomato/tomato:7.1.1/N6F26Q/root03011658:userdebug/test-keys".

build/core/ninja.mk:166: recipe for target '/home/dragon/aosip/out/build-aosip_tomato.ninja' failed

make: *** [/home/dragon/aosip/out/build-aosip_tomato.ninja] Error 1
[Android] optimumpro:
You have an extra space in your device tree build fingerprint. Just find and remove it...
[Android] DJKristy:
How to install ia32-libs on Ubuntu 16.04 64 bit machine.

ia32-libs is needed for ROM development.
[Android] Rmontoya83:
Anyone?
[Android] MoazSalem:
here sir this is log if i use lunch 14 (number of my device)

https://hastebin.com/hulafojano.sql

there is the same error if i usr lunch pa_A7010a48-userdebug

https://hastebin.com/tolusizayu.sql
[Android] Droidcore:
https://gist.github.com/droidcore/be8f4a7b95f885c60466fcdb36ebe921

??

help
[Android] SlimShady's:
Anyone knows about this error?

I'm trying to build Slim 6.0.1 :)