yashsingh1/xdaforums huggingface dataset:
[Android] fgl27:
your commit link doesn't work.

I already try add this (androidboot.selinux=permissive) to the end kernel BOARD_KERNEL_CMDLINE.

and I try to force it on the kernel tree:

https://github.com/bhb27/android_ke...mmit/cc154bd292d0ba4903973622d0e38552bb0f7ef3

I both cases I try to build only the kernel and flash it over my already build ROM, I believe this changes only affect the kernel, or I'm wrong? they affect the ROM?

:good:
[Android] nitin.chobhe:
Actually that is not my commit. Check it here

I don't know if this is only related to kernel. If we look at the name androidboot, then it seems that it sets the pemissions when the phone is booting. But as I said I really don't know :confused:
[Android] vuvkar:
Repo Sync

Hi guys, I have problem like this it seems the file is only 23 MB. but yesterday it downloaded over 2 GB and did nothing. Can anyone help? I'm stuck at this.
[Android] magdeoz:
Deleted
[Android] ganesh varma:
I cant find device tree,vendor and kernel for my device anywhere... ?

Plz hlp me..i really wanna build a rom
[Android] KeTuRr74:
Device ?
[Android] ganesh varma:
samsung galaxy J5(SM-J500F)
[Android] istperson:
It's a Snapdragon 410 Samsung phone. First steps, try to find a model with this soc that has official cyanogenmod, and if there isn't then try to find one with unofficial cm build. It's a good starting point.

You can then download from sammobile the same version roms fo both j5 and the one you found a device tree for, and compare the shared libraries on both, search for differences.
[Android] ganesh varma:
hey ya...thx for ur suggestion :)

actually after a lot of searching i managed to find a device tree here https://github.com/aapav01/android_device_samsung_j5nlte

is this a correct one for my device??

And as u hav said can i use the vendor tree of a similar device for building a cm12.1 rom?

thnx :)
[Android] zeetroman:
Can anyone help? I try to build cm13 for oneplus one bacon.

I tried to download the bootable recovery from CM13 and replace it but doesn't work.

Everytime I get an error with recovery as follows:

Traceback (most recent call last):

File "./build/tools/releasetools/make_recovery_patch", line 53, in <module>

main(sys.argv[1:])

File "./build/tools/releasetools/make_recovery_patch", line 49, in main

common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)

File "/home/jens/CM/cm13.0/build/tools/releasetools/common.py", line 1443, in MakeRecoveryPatch

_, _, patch = d.ComputePatch()

File "/home/jens/CM/cm13.0/build/tools/releasetools/common.py", line 1131, in ComputePatch

p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

File "/home/jens/CM/cm13.0/build/tools/releasetools/common.py", line 87, in Run

return subprocess.Popen(args, **kwargs)

File "/usr/lib/python2.7/subprocess.py", line 710, in __init__

errread, errwrite)

File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory

build/core/Makefile:1047: recipe for target '/home/jens/CM/cm13.0/out/target/product/bacon/system/bin/install-recovery.sh' failed

make: *** [/home/jens/CM/cm13.0/out/target/product/bacon/system/bin/install-recovery.sh] Error 1

#### make failed to build some targets (02:48:32 (hh:mm:ss)) ####
[Android] istperson:
It very much looks like the correct one. And yes, get a similar source for cm12.1 and add this device tree to it.

Here's cm's porting guide: https://wiki.cyanogenmod.org/w/Doc:_porting_intro
[Android] ganesh varma:
All the custom rom's building instruction say that "Your device should already be running the branch of CyanogenMod you wish to build your own version of for the extract-files.sh script to function properly. If you are savvy enough to pull the files yourself off the device by examining the script, you may do that as well without flashing CyanogenMod first."

But where is the first proprietary blobs came from??

How can we get the proprietary blobs for other devices for the first time build?

I dnt understand anything...I'm trying to build a fresh cm12.1 rom for my device galaxy j5..plz guide me in ryt way if am wrong
[Android] istperson:
That's part 8 of the above porting guide: https://wiki.cyanogenmod.org/w/Doc:_porting_intro#Add_the_blobs_to_the_vendor.2F_directory

But for the question where the proprietary blobs come from, it's the question of the chicken and the egg. These are the non open source parts of Android, and you can't submit into your source, since it's not yours. So how you get it to your build directory? You either extract it from you phone, or from a downloaded image.

But since it's you who makes the first ever port for this device, you have to acquire from a Samsung factory rom. Then if they don't match then you have to check how they made it on a similar device, that already has cm12.1.

And then hope you can find everything, and don't have to check the shared libraries (.so files) for exported functions and make adapters for cm, like those who finally ported cm to the exynos phones.
[Android] mohamed786:
Edit :

This Has Been Fixed by Myself

make: *** bionic/libc/arch-arm/generic: Is a directory. Stop.

What I Have Done ! To fix this Build Error
Run This Command : repo forall -c git reset --hard
Then Run This Command : repo sync -f

Edit :

This Has Been Fixed by Myself

Fix :

To Sync armv6 Sources Just Supply the Init Command

For Example If you are Building [cm11] :

Just Go that Build folder and "cd" it like this [cd Cm11 "In terminal"] the supply the command Without "Dollar symbol"

$ repo init -u git://github.com/androidarmv6/android.git -b cm-11.0
[Android] rqmok:
Hello. Were you able to fix this error?

If yes, then how? I am stuck at the same error and don't know what to do.

Thanks
[Android] TuxThePenguin76:
I'm having issues building Temasek's ROM.

Last night I spent about 3 hours and I've tried a number of build environments

I have used the guide in this thread and also looked at the official aosp site.

I have tried using VM's of Ubuntu 13.10, Ubuntu 14.04LTS, gentoo and Fedora 23

I have also tried building using my Native Fedora 23 system.

Each time it fails with

target thumb C++: libdeqp <= external/deqp/modules/glshared/glsLongStressTestUtil.cpp
external/deqp/modules/glshared/glsFragOpInteractionCase.cpp: In member function 'virtual tcu::TestNode::IterateResult deqp::gls::FragOpInteractionCase::iterate()':
external/deqp/modules/glshared/glsFragOpInteractionCase.cpp:623:1: internal compiler error: in decompose_normal_address, at rtlanal.c:5788
}
......
build/core/binary.mk:706: recipe for target '/home/arthur/BUILD/out/target/product/hlte/obj/SHARED_LIBRARIES/libdeqp_intermediates/modules/glshared/glsFragOpInteractionCase.o' failed

Given the disparate build environments and it failing at the same point on each I can only assume that I am doing something wrong with the code. I was wondering if you could spot anything obvious with my process.

repo init -u https://github.com/temasek/android.git -b cm-13.0

then adding

this as a local repository

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TuxThePenguin76/android_device_samsung_hlte/" path="device/samsung/hlte" remote="github" revision="cm-13.0" />
<project name="TuxThePenguin76/android_device_samsung_hltespr/" path="device/samsung/hltespr" remote="github" revision="cm-13.0" />
<project name="temasek/android_device_samsung_hlte-common/" path="device/samsung/hlte-common" remote="github" revision="cm-13.0" />
<project name="temasek/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" revision="cm-13.0" />
<project name="temasek/android_kernel_samsung_hlte/" path="kernel/samsung/hlte" remote="github" revision="m" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-13.0" />
<project name="temasek/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" revision="cm-13.0" />
</manifest>

I then do a "repo sync" which works without reporting any issues.

. build/envsetup.sh

breakfast cm_hlte-userdebug

(though I have tried equivalent "lunch" and "brunch" commands)

make -j24

and then it fails with the above error.

Can anyone suggest where I might be going wrong?
[Android] Frostyagent:
Thanks man for response and I followed all the steps that you have written, but it doesn't help me because the error is continuing to show itself. I don't know what the problem it is, i really need your help
[Android] Syl157:
Trying to build AICP but error after 2 hours of building.

Error : packages/providers/MediaProvider/src/com/android/providers/media/MediaScannerReceiver.java:60: error: cannot find symbol

Settings.System.MEDIA_SCANNER_ON_BOOT, 0);

^

symbol: variable MEDIA_SCANNER_ON_BOOT

location: class System

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 error

make: *** [/home/sylvain/dev/AICP/out/target/common/obj/APPS/MediaProvider_intermediates/classes-full-debug.jar] Error 41

make: *** Waiting for unfinished task...***

Help please , thanks in advance.
[Android] nitin.chobhe:
What device are you building for?

I was able to build till yesterday but it's broken today...
[Android] Syl157:
i'm trying to build for Xiaomi Redmi Note 2 (hermes) (I have fully fuctionnaly Device tree and vendor , CM is working on it).
[Android] nitin.chobhe:
Sync the repo again and make a clean build. It should work. I built for nexus 4 before an hour :thumbup:
[Android] xdaq:
Can anyone point me to the right direction on how to fix the proximity sensor on my PAC-MAN [5.1] custom ROM for Samsung Tab S T705?

Thanks! :)
[Android] transi1:
hi,

any suggestion for this error?

Warning: could not find SYSTEM/build.prop in <built-in function zip>

using prebuilt recovery.img from BOOTABLE_IMAGES...

using prebuilt boot.img from BOOTABLE_IMAGES...

Traceback (most recent call last):

File "./build/tools/releasetools/make_recovery_patch", line 53, in <module>

main(sys.argv[1:])

File "./build/tools/releasetools/make_recovery_patch", line 49, in main

common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)

File "/home/transi/CM/build/tools/releasetools/common.py", line 1443, in MakeRecoveryPatch

_, _, patch = d.ComputePatch()

File "/home/transi/CM/build/tools/releasetools/common.py", line 1131, in ComputePatch

p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

File "/home/transi/CM/build/tools/releasetools/common.py", line 87, in Run

return subprocess.Popen(args, **kwargs)

File "/usr/lib/python2.7/subprocess.py", line 710, in __init__

errread, errwrite)

File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory

build/core/Makefile:1047: recipe for target '/home/transi/CM/out/target/product/umts_spyder/system/bin/install-recovery.sh' failed

make: *** [/home/transi/CM/out/target/product/umts_spyder/system/bin/install-recovery.sh] Error 1

make: Leaving directory '/home/transi/CM'

#### make failed to build some targets (03:40:20 (hh:mm:ss)) ####
[Android] spezi77:
Do you still have this problem? Could you post a link to your device repo?
[Android] transi1:
yes, i have suggestion to delete line that create recovery ota in makemain, but i will do that today

https://github.com/CyanogenMod/android_device_motorola_omap4-common/tree/cm-13.0

ps. early i had delete install-recovery.sh entry in makemain, trouble done, but i had got another error with boot.img then its paking result zip file.
[Android] spezi77:
Did you try to revert this? Not sure if this is actually related.. https://github.com/CyanogenMod/andr...mmit/3c54ce57cdfa54fe0944166bee84fc1cb1ceb6d6
[Android] transi1:
thnx, i will check, but i created new repo from github day ago, and this commit from Oct 13
[Android] spezi77:
Do you refer to this line?

RECOVERY_PATCH_INSTALL := $(TARGET_OUT)/bin/install-recovery.sh

Section in Makefile:

ifdef TARGET_RECOVERY_FSTAB
recovery_fstab := $(TARGET_RECOVERY_FSTAB)
else
recovery_fstab := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery.fstab))
endif
# Named '.dat' so we don't attempt to use imgdiff for patching it.
RECOVERY_RESOURCE_ZIP := $(TARGET_OUT)/etc/recovery-resource.dat
RECOVERY_PATCH_INSTALL := $(TARGET_OUT)/bin/install-recovery.sh

ifeq ($(recovery_resources_private),)
$(info No private recovery resources for TARGET_DEVICE $(TARGET_DEVICE))
endif

ifeq ($(recovery_fstab),)
$(info No recovery.fstab for TARGET_DEVICE $(TARGET_DEVICE))
endif
[Android] transi1:
yes, but i didn`t deleted code reference to RECOVERY_PATCH_INSTALL
[Android] caragon:
Hi I'm still receiving this error... Any suggestions?

i'm trying to build cm13 for a droid maxx (obake) but i keep running into this error when i run brunch obake:

make: *** No rule to make target '/home/chuck/cm13/out/target/product/obake/obj/STATIC_LIBRARIES/libunz_intermediates/export_includes', needed by '/home/chuck/cm13/out/target/product/obake/obj/EXECUTABLES/charge_only_mode_intermediates/import_includes'. Stop.

make: *** Waiting for unfinished jobs....

Export includes file: frameworks/native/cmds/bugreport/Android.mk -- /home/chuck/cm13/out/target/product/obake/obj/EXECUTABLES/bugreport_intermediates/export_includes

make: Leaving directory '/home/chuck/cm13'

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

I'm completely new to all this so any help would be greatly appreciated!
[Android] GreekDragon:
Go to /home/chuck/cm13/out/target/product/obake/obj/STATIC_LIBRARIES path and delete folder.

And then run the code below. You did some changes and thats why your out folder was "confused".

. build/envsetup.sh
brunch
(select your device from the list)
[Android] skipkou:
hi,

any suggestion for this error?

cm13 device：zte s291

Install: /home/skipkou/android/cm/out/host/linux-x86/bin/checkpolicy

/home/skipkou/android/cm/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/skipkou/android/cm/out/target/product/msm8974/obj/ETC/sepolicy_intermediates/policy.conf

libsepol.report_failure: neverallow on line 462 of external/sepolicy/domain.te (or line 5718 of policy.conf) violated by allow netd shellrocess { transition };

libsepol.report_failure: neverallow on line 441 of external/sepolicy/domain.te (or line 5699 of policy.conf) violated by allow mm-qcamerad system_data_file:file { write create };

libsepol.report_failure: neverallow on line 280 of external/sepolicy/domain.te (or line 5546 of policy.conf) violated by allow mm-qcamerad device:chr_file { read write open };

libsepol.report_failure: neverallow on line 254 of external/sepolicy/domain.te (or line 5520 of policy.conf) violated by allow shell system_file:file { entrypoint };

libsepol.check_assertions: 4 neverallow failures occurred

Error while expanding policy

make: *** [/home/skipkou/android/cm/out/target/product/msm8974/obj/ETC/sepolicy_intermediates/sepolicy] error 1
[Android] quanganh2627:
your BoardConfig.mk must have to declare "BOARD_FLASH_BLOCK_SIZE := " , and depends on your device, but must divide to 2048, equivalent to 512, 1024, 2048, 4096, 8192, 16384...and in most cases it is 131072.
[Android] hroen_al:
jdk6 for kitkat, jdk7 for lollipop

do I need to install jdk8?

I want to try to build marshmallow rom :)
[Android] neonkat:
jdk 7
[Android] cezer kiran:
target StaticLib: skia_skia_chrome_gyp (/home/kiran/omni5.1/out/target/product/wukong_dsds/obj/STATIC_LIBRARIES/skia_skia_chrome_gyp_intermediates/skia_skia_chrome_gyp.a)

mkdir -p /home/kiran/omni5.1/out/target/product/wukong_dsds/obj/GYP/shared_intermediates/blink/core; cd external/chromium_org/third_party/WebKit/Source/core; python ../build/scripts/rule_bison.py css/parser/CSSGrammar.y "/home/kiran/omni5.1/out/target/product/wukong_dsds/obj/GYP/shared_intermediates/blink/core" bison

Traceback (most recent call last):

File "../build/scripts/rule_bison.py", line 82, in <module>

returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])

File "/usr/lib/python2.7/subprocess.py", line 522, in call

return Popen(*popenargs, **kwargs).wait()

File "/usr/lib/python2.7/subprocess.py", line 710, in __init__

errread, errwrite)

File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory

make: *** [/home/kiran/omni5.1/out/target/product/wukong_dsds/obj/GYP/shared_intermediates/blink/core/CSSGrammar.cpp] Error 1

make: *** Waiting for unfinished jobs....

warning: string 'accessibility_search_button' has no default translation.

warning: string 'accessibility_voice_search_button' has no default translation.

warning: string 'all_apps_cling_add_item' has no default translation.

warning: string 'all_apps_cling_title' has no default translation.

warning: string 'chooser_wallpaper' has no default translation.

warning: string 'custom_workspace_cling_description_1' has no default translation.

warning: string 'custom_workspace_cling_description_2' has no default translation.

warning: string 'custom_workspace_cling_title_1' has no default translation.

warning: string 'custom_workspace_cling_title_2' has no default translation.

warning: string 'folder_cling_move_item' has no default translation.

warning: string 'market' has no default translation.

warning: string 'menu_add' has no default translation.

warning: string 'menu_help' has no default translation.

warning: string 'menu_manage_apps' has no default translation.

warning: string 'menu_notifications' has no default translation.

warning: string 'menu_search' has no default translation.

warning: string 'menu_settings' has no default translation.

warning: string 'menu_wallpaper' has no default translation.

warning: string 'workspace_cling_open_all_apps' has no default translation.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

any help guys ?
[Android] ayazm.140895:
Hey guys trying to compile cm 12.1 for tomato. [MENTION=5091819]spezi77[/MENTION] can you help me out with these errors.

target thumb C++: libRSCpuRef_32
[Android] PipoPT:
Hello. Been reading the thread and I'm very interested in trying to develop a custom rom, based on cyanogenmod, for my new phone Xiaomi Redmi Note 3. What do you think about this? Any special advice? My coding skills are not that good.
[Android] rohit1521:
Need some help

A frnd gave me a source file which contain .repo folder...how can i use it?....i am on ubuntu14
[Android] neonkat:
*from post #5,install jdk 7(if lollipop or marshmallow) or jdk 6 for lower os and all other stuffs like the building tools(in short,follow all steps in post #5).

*from post #6,make directories,and put .repo folder right there(where it will be downloaded),initialise github.

*from post #7,follow every step.
[Android] ayazm.140895:
[MENTION=5091819]spezi77[/MENTION] sorry, here is the log.

target thumb C++: libRSCpuRef_32 <= frameworks/rs/cpu_ref/rsCpuIntrinsicResize.cpp
target thumb C++: libRSCpuRef_32 <= frameworks/rs/cpu_ref/rsCpuIntrinsicLUT.cpp
target thumb C++: libRSCpuRef_32 <= frameworks/rs/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp
make: *** No rule to make target `/home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libtime_genoff_intermediates/export_includes', needed by `/home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libandroid_servers_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libRSDriver_intermediates/import_includes

#### make failed to build some targets (01:22:11 (hh:mm:ss)) ####

ayazm_140895@instance-1:~/cm12.1$
ayazm_140895@instance-1:~/cm12.1$
[Android] hroen_al:
it's not finished yet :eek:
[Android] ayazm.140895:
Wait for some more time. It is almost done. Look at line fetching projects 99% so only 1% left. Wait for sometime.

EDIT: Wait for 3-4 hours
[Android] hroen_al:
yaaa, I just wait it and finished, 40GB now :laugh:
[Android] Blackko:
question

with this guide i can port cm to any device or do i need to follow a guide of cm or aosp guide? i want cm 13 o my device..i have 2 years of programming so maybe it will help
[Android] neonkat:
yeah,any device.
[Android] spezi77:
You are missing a part which is needed by the make file. Try to update your manifest and sync your repo, to see whether this solves the error.

Best of luck!
[Android] odyss199:
hey guys how can you activate -o flags for optimization ?

thnx :D
[Android] spezi77:
Read this guide: http://xdaforums.com/showthread.php?t=2754997
[Android] odyss199:
i've read this before and still couldn't figure it out... :/

edit:

i think i figured it out a bit (sry i am so new to this :D)

so i took a look at the commit here https://github.com/ArchiDroid/android_build/commit/f9b983e8e11624b48ae575da206f1baf6979772c

and realized where the flags where (in the past i though that you put the -o3 at the end of the brunch command)

but is there any other way tou activate the flags? i want to try and build MM for S3 using a custom toolchain

thanks in advance :D
[Android] spezi77:
U could have a look into the source of uber rom or liquid smooth rom. They are fond of using -o3. Have fun.. :D
[Android] ayazm.140895:
@spezi77 The same error is occurring again. I tried repo sync.

make: *** No rule to make target `/home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libtime_genoff_intermediates/export_includes', needed by `/home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libandroid_servers_intermediates/import_includes'. Stop.make: *** Waiting for unfinished jobs....make: Leaving directory `/home/ayazm_140895/cm12.1'#### make failed to build some targets (39:26 (mm:ss)) ####ayazm_140895@instance-1:~/cm12.1$
[Android] odyss199:
jeez thanks :D
[Android] spezi77:
Did you compare your local manifest file with the remote one? I suspect that a project was missed out.

CM repo is frequently updated. U need to check that all projects are in sync.

Please post the output of: repo status
[Android] nabil9506:
Help Developing CM13 for htc one x+ enrc2b

Hi! I'm new to android development and was wondering if someone could answer my bleeding question. Let's say the most recent cyanogenmod for my device is cm 12.1 and I wanted to start work on cm13. The most recent branch in github for my device ( htc one x+ enrc2b) is 12.1. How do make the device tree for cm 12.1 compatible with cm 13? Again I'm new to this and am willing to learn.

The reason I ask is because in this guide, the cm branch was already available. [MENTION=5091819]spezi77[/MENTION]
[Android] spezi77:
My advice for you is to start with a cm-12.1 for your device. This allows you to learn the basics and have a success story.

Afterwards you should be able to get to know what has changed in Android 6..

The device tree itself shouldn't be the big challenge. Mostly the kernel needs to be updated too.

Have fun! ;)
[Android] nabil9506:
Thanks so much for the reply! So just to clarify can I compile cm 13 from source and in the local manifest.xml file point to the device, vendor and kernel locations for cm 12.1 and see if it builds and hopefully boots on the device without a bootloop?

Thanks again, your and anyone else's input is invaluable to me

Happy New Year!
[Android] neonkat:
nope.you need to update the device tree to marshmallow.
[Android] nabil9506:
Any advice on how to do that? Sorry for all the questions, I'm just really eager to get started.