yashsingh1/xdaforums huggingface dataset:
[Android] dragos281993:
Can anyone tell me what I should do here ? I started compiling Unofficial Pure Nexus from source or my Nexus 4 (on Linux Mint 17.3). I start the compiling process, it works hard, but a little over an hour, it ends with a bunch of errors. What am I doing wrong ? Should I delete everything and start again from scratch (setup environment, repo sync, etc.) ? I'm trying to avoid downloading over 40GB again.

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsState.java:198: OP_WIFI_CHANGE cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsState.java:199: OP_BLUETOOTH_CHANGE cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsState.java:200: OP_NFC_CHANGE cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsState.java:201: OP_DATA_CONNECT_CHANGE cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsState.java:219: OP_BOOT_COMPLETED cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsDetails.java:75: MODE_ASK cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsDetails.java:89: MODE_ASK cannot be resolved or is not a field

ERROR: /home/funny--bunny/PureNexus/packages/apps/Settings/src/com/android/settings/applications/AppOpsDetails.java:206: The method isStrictOp(int) is undefined for the type AppOpsManager

make: *** [/home/funny--bunny/PureNexus/out/target/common/obj/APPS/Settings_intermediates/with-local/classes.dex] Error 41

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

#### make failed to build some targets (01:05:08 (hh:mm:ss)) ####
[Android] Arvind7352:
AppOpsManager.java (located in frameworks/base/core/java/android/app) has all the missing variables. Sync sources again to get the latest commits (repo frameworks_base has to be updated). Don't start over, just do a repo sync on the same location with necessary flags you use.

I_Iz_Sleepy [MENTION=6552280]MSF Jarvis[/MENTION] - done

[MENTION=5796730]dragos281993[/MENTION] - Go for a fresh sync OR Delete .repo/projects/frameworks/base.git and .repo/project-objects/android_frameworks_base.git and repo sync.
[Android] MSF Jarvis:
Atleast you could have skipped the logs in your quote :crying:
[Android] dragos281993:
I did that, 5 times. If finished syncing, successfully. But when trying to compile, it failed with the same errors.
[Android] Droidcore:
[MENTION=6049586]Arvind7352[/MENTION] what make this err ? https://gist.github.com/droidcore/82ba1a91729df6d504ae3e289592d2ad
[Android] skull(nj):
http://hastebin.com/avudejeqoq.mel

error pls help
[Android] MSF Jarvis:
Add TW_THEME=portrait_hdpi to your BoardConfig.mk

---------- Post added at 12:18 PM ---------- Previous post was at 12:13 PM ----------

Error with PureNexus layers, looks like a recovery source issue which I've previously resolved on AOKP by switching to CM recovery but with this neither TWRP nor CM recovery sources have fixed this issue. Logs here : https://roms.technologistguild.com/logs/
[Android] skull(nj):
http://hastebin.com/bewetazaye.pas
[Android] MSF Jarvis:
Device tree link?
[Android] neonkat:
i think you are missing dtbToolCM.get it from here and put in /home/skull/xosp/xosp/out/host/linux-x86/bin/*here*.

(A wild guess,as always)
[Android] skull(nj):
https://github.com/CyanogenMod/android_device_yu_tomato

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

Out directory is fully wiped when I clean make the rom again
[Android] neonkat:
didn't see that.:v

alright,you have device/qcom/common?
[Android] redfeast:
Anyone can help on this
[Android] skull(nj):
I have device/qcom/sepolicy/common
[Android] neonkat:
you need https://github.com/CyanogenMod/android_device_qcom_common/tree/cm-13.0.

clone this to device/qcom/common

or add:

<project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" remote="github" revision="cm-13.0" />

to your localmanifest/roomservices and repo sync.
[Android] MSF Jarvis:
[MENTION=5991747]neonkat[/MENTION], any help with this? I'm dying to test out Substratum :fingers-crossed:
[Android] adityaupreti:
Hello ,

building RR Error

frameworks/base/packages/SystemUI/res/values/styles.xml:303: error: Error retrieving parent for item: No resource found that matches the g
iven name 'card'.
frameworks/base/packages/SystemUI/res/values/styles.xml:321: error: Error retrieving parent for item: No resource found that matches the g
iven name 'card'.
frameworks/base/packages/SystemUI/res/values/styles.xml:330: error: Error retrieving parent for item: No resource found that matches the g
iven name 'card'.
frameworks/base/packages/SystemUI/res/values/styles.xml:337: error: Error retrieving parent for item: No resource found that matches the g
iven name 'card'.
frameworks/base/packages/SystemUI/res/values/styles.xml:353: error: Error retrieving parent for item: No resource found that matches the g
iven name 'card'.
make: *** [/home/RR/out/target/common/obj/APPS/SystemUITests_intermediates/src/R.stamp] Error 1[/HIDE]
[Android] DarkFrenzy:
I remember getting a similar error and solved by removing the recovery related flags.
[Android] MSF Jarvis:
So de-TWRP the BoardConfig?
[Android] zipperX:
Hello i want to cherry picking but i not completely understand that, can you help me?
[Android] MSF Jarvis:
See this guide : http://xdaforums.com/showthread.php?t=2763236

This is as easy as possible.
[Android] zipperX:
Yeah i just found this thread too and i'm to late, i'm so sorry for this dumb question:silly:
[Android] Arvind7352:
Presuming you're using CM Recovery, use system/extras from CM

wipe_block_device is initialized in ext4_utils/wipe.c

[MENTION=6552280]MSF Jarvis[/MENTION] you said that you tried both CM and TWRP Recoveries, so i gave solution for those. If AOSP, then idk...
[Android] Nelson George:
again...

yes you are correct. but i have used ubuntu once, but i dont like that. so i installed arch on my lap.

and i know the procedures are not same in arch like editing repo, apt-get....etc...etc

anyway thank you for your reply
[Android] xenon92:
Very extensive guide indeed. :)

------

You don't need a Github account to set email id and name in Git.

Git is an independent software used for source code management and version control. You can set any email id and any name in there. This configuration comes into play when you start making commits, pushing and using "Git".
[Android] jackeagle:
Thanks [MENTION=5273865]xenon92[/MENTION] for Inspirational Words...:)

Yeah Thanks for pointing i mention that coz once they create the Rom for their Device it will be easy for them to put up their Device Tree for their Compiled Rom :) :D
[Android] saurabh0291:
Nice guide with screenshots is there any guide for kernel development too...

If not I'll wait for yours ;)
[Android] danjuma kolo:
great work

This is a great guide...why didn't you try building from android master branch?..what's your opinion on setting up cache that requires almost 50 yo 100GB?

Would you like to comment on the common errors likefetch errors during the syncing, wrong java versions, curl error and how to instantly write a java script on each error coming up....otherwise I will suggest newbies go the kitchen to cook first
[Android] Nikhil:
[MENTION=5216756]jackeagle[/MENTION] This is unlikely but how about a post with common build errors and their solutions? I recently encountered 2 problems and solved those. This would help new developers to solve errors. :)
[Android] GreyCelt:
This is awesome and gave me the inspiration to try to learn this stuff. I'm using Ubuntu right now on VM VirtualBox!

However, I keep running into this error when trying to install the packages after the JDK install.

The following packages have unmet dependencies:

build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

I tried the following commands as suggested and still got the above error:

sudo apt-get update

sudo apt-get upgrade

Any suggestions? Thanks again!!
[Android] jackeagle:
[MENTION=4867515]Nikhil[/MENTION] yes i will add it too with a FAQ Soon...You can PM Me your Error and your Solution...Since This Guide is Still Work In Progress still lot of stuffs are there to be put forward I along with my Team will post it accordingly...:D:D:)

Thank you for suggestion :)
[Android] jackeagle:
Use the following command and see if it worked to u let me know i will add to FAQ

sudo apt-get install build-essential libxslt1.1 libxslt1-dev libxml2 ruby-full mysql-server libmysqlclient-dev libmysql-ruby libssl-dev libopenssl-ruby libcurl4-openssl-dev imagemagick libmagickwand-dev git-core redis-server libffi-dev libffi-ruby rubygems libsqlite3-dev libpq-dev libreadline5 openjdk-7-jre nodejs libncurses5-dev openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libyaml-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config
[Android] RVR:
thanx for the idea .. .wel try our best ..but cant promise..
[Android] shree_tejas:
I just went a Thank rampage. :D

The best guide i came across till now. All I've been doing till now was read but after this, I'm actually gonna build.

That would be an added bonus!
[Android] bariz143:
Hi man great tutorial. Better than the others out there. But I have a question. I did compile a few months ago and quite because of what I heard when compiling AOSP its not fully functioning and needs more work than just syncing AOSP repo and build it. Do you have something for us who eagerly wanting to build AOSP
[Android] aveulivm:
Thanks for the hard work in creating a starting point for us.
[Android] martinusbe:
This is just what i needed :good:

And judging from the amount of reserved posts, i am going to learn some more....

Thanks ;)
[Android] raore:
Thank you for this guide. It was very informative.
[Android] MrAndroid-HD:
I'm having the same issues, when I am trying to go with what you suggested i got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
Package rubygems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ruby

Package libopenssl-ruby is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libmysql-ruby
E: Package 'libopenssl-ruby' has no installation candidate
E: Unable to locate package libffi-ruby
E: Package 'rubygems' has no installation candidate

In return.. :( Still not working, any idea of what do to? Thank you!
[Android] david makarove:
Thanks for this great guide

hope it complete soon

Because it will hope a lot of people

i have simple questions

What programing languages we should to do some advanced job ?

2. What if device tree written already and we want to compile another roms not support our phone for example i want to compile PAC rom but it didn't support my phone in it's repo (i don't mean porting here ) ?

Thanks a lot

all respect to you
[Android] RVR:
Thanx for showing interest in our guide!

u need to learn java,c, c++(if possible) and xml

....fr pac ..check my guide how to modify the device tree..its the 8th post i think
[Android] MasterX007:
9k
[Android] antarix:
[MENTION=4924398]rutvikrvr[/MENTION] will this work on a 32 bit windows 7 ultimate system with 2gb ram?
[Android] Hashbang173:
Don't run it as sudo
[Android] desalesouche:
does someone know how to fix that? thank you

make: *** No rule to make target '/home/desalesouche/cm12test/out/target/common/obj/JAVA_LIBRARIES/org.codeaurora.Performance_intermediates/classes.jar', needed by '/home/desalesouche/cm12test/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/classes-full-debug.jar'. Stop.

is that a java error from my side?

edit : fix is: adding missing jarjar folder in external/
[Android] henry0504:
can't generate the zip file! also kernel is missing.

now i only get system, obj, recovery and root folders in $OUT directory. any help please?
[Android] clamum:
Wow, great guide. :good:

So I'm trying to build a ROM for my LG Ultimate 2 (LGL41C Straight Talk phone) and have gotten to the point where I need to build the ROM for a particular device (download device identity -- device tree, vendor, kernel). From what I can see, there is no device tree for Cyanogenmod for the LG Ultimate 2. However, I do see a directory for "android_device_lge_lgl55c" on Github (for the LG Optimus Q on Straight Talk). Is there anyway I can use this in my preparation for building a ROM for my phone?

What happens when someone is trying to build a ROM for a phone where the device tree/configs do not exist?

Any help would be much appreciated; thanks guys!

P.S. Sorry if this has been answered in the thread previously, I'm in a bit of a rush at the moment. :o
[Android] desalesouche:
1/ you can use it but you will have to adapt it to your device first

2/if the device tree you created is ok the rom would be builded. after that you will have to check if all is good.

3/ about :" I'm in a bit of a rush at the moment."-----> you will need time to create device tree, compile and fix all errors... :)
[Android] desalesouche:
aicp android L compiled

is that normal rom zip?--->1

usually i have this---->2
[Android] clamum:
Hmmm. So I can use that existing LGL55C device tree for building a rom for my LGL41C? I don't think this guide explains adopting another one for your own, does it? Any help would be appreciated. :)
[Android] kahtan:
The subject of a very sophisticated and important information and useful .. many thanks :good:
[Android] arunmcops:
What will be corresponding files/folders for Pure AOSP ?
[Android] Hashbang173:
Please remove the whole quote from the OP.
[Android] Pump Ac7i0n:
Maybe someone can shed some light for me. I built pac for ls990 and flashing goes fine but it hangs on the boot screen.

I pulled the log in the recovery and it says mount: failed to mount /dev/block/platform/msm_sdcc.1/by-name/system at /system: Device or resource busy. I was told to check my updater script to make sure that the mount system was added and it is. If anyone can help it would be appreciated. My recovery log and updater script is below.

http://pastebin.com/4xBUnvKe

http://pastebin.com/sS8exipu
[Android] yogeshkotadiya:
is there any guide for opensuse

Because some of the packages are not available in Opensuse Repo.
[Android] manask002:
get error when build AOSP KITKAT

when i build AOSP KITKAT to xperia from here http://developer.sonymobile.com/kno...uild-aosp-kitkat-for-unlocked-xperia-devices/

i tpye this """"""""""""sudo apt-get install git gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev""""""" and i get this error

E: Package 'lzop' has no installation candidate

E: Unable to locate package zlib1g-dev

E: Unable to locate package libx11-dev

E: Unable to locate package libreadline6-dev

E: Unable to locate package libgl1-mesa-glx

E: Unable to locate package mingw32

E: Unable to locate package libghc-bzlib-dev

E: Package 'pngcrush' has no installation candidate

E: Unable to locate package schedtool

plz tell me solution.i try on both version 32 bit and 64 bit of ubuntu 14.10...13.10 and also 12.04 but get same error
[Android] erikcas:
https://www.google.nl/?gfe_rd=cr&ei=HrZnVPzlDork-gaR5oGoDw#q=ubuntu 14.10 android build environment
[Android] manask002:
Link cannot open.this link show www.google.co.in
[Android] erikcas:
read the link, it shows the following search terms on google:

ubuntu 14.10 android build environment
[Android] yogeshkotadiya:
Maybe you are compiling ROM with 4.4.4 Kitkat Source code of your device, instead use Lollipop Source

Here you can get: github.com/SlimRoms/device_samsung_d2lte/tree/lp5.0

Then compile again, but clean the out directory before you compile again
[Android] dark_fighter:
I'm trying to compile cm11 for my i9300, but as it seems there are some missing lib files (libTVout.so, liblvverx.so, liblvvetx.so and libaudiosa.so so far) that are not pulled from the device when I run the ./extract-files.sh, in fact on the terminal it states that the lib mentioned above don't exist. Consecuently the building fails because it can't find theese files in the directory (/vendor/samsung/smdk4412-common/proprietary/system/lib). Any ideas why I get that error, or a way to work arround it?

Thanks
[Android] V_v3k:
Hello guys. I'm new to cm development so I'm not quite good at it... And I'm need of all the help I could get. I've attached the log file & I'm running Ubuntu 14.04 LTS x64 on virtualbox I've allocated 100Gib HDD space & 4Gib RAM. The ROM is created i.e. the zip file & is installing but after installing the phone gets bricked i.e. gets stuck at splash screen, that "SAMSUNG GALAXY GRAND DUOS GT-I9082" screen..... So kindly guide me through the procedure... BTW I've followed k2wl's guide.
[Android] MSF Jarvis:
PureNexus tracks AOSP recovery with zero modifications, but I'll give this a shot too. Thanks!

---------- Post added at 04:32 PM ---------- Previous post was at 04:18 PM ----------

That part solved, let's move on to libsquashfs

make: *** No rule to make target `/root/pn-oms/out/target/product/seedmtk/obj/STATIC_LIBRARIES/libsquashfs_utils_intermediates/libsquashfs_utils.a', needed by `/root/pn-oms/out/target/product/seedmtk/obj/EXECUTABLES/init_intermediates/LINKED/init'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /root/pn-oms/out/target/product/seedmtk/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/import_includes

Man, I seriously need to up my AOSP game, CM is a cakewalk compared to AOSP based ROMs :(

But that's what the point is, enjoying and learning at the same time :laugh:

Edit : This issue can be fixed by using TWRP source rather than AOSP, leaving it here for others who care to use the search button :)
[Android] Arvind7352:
Are you using CM Recovery ?

If Yes, then clone system_core from CM

And btw, that Error probably came coz you replaced system_extras of AOSP with CM
[Android] MSF Jarvis:
Just did that xD :)
[Android] MSF Jarvis:
ZIP not building with PureNexus OMS branch, have reproduced this error on temasek's cm13 too, logs at http://roms.technologistguild.com/logs
[Android] skull(nj):
http://hastebin.com/ciwopipane.vbs

error help
[Android] neonkat:
post full log(no error listed in that one)
[Android] MSF Jarvis:
[MENTION=7238955]skull(nj)[/MENTION], to avoid people repeatedly telling you this, add this :

1> >(tee stdout.log) 2> >(tee stderr.log)

To your build command, whether it's brunch or make or mka bacon, with a space of course.

Then upload the contents of stderr.log and stdout.log to hastebin and paste separate links :)
[Android] skull(nj):
deleted
[Android] MSF Jarvis:
Don't delete it even if it feels stupid, someone else may get helped by it

---------- Post added at 03:53 PM ---------- Previous post was at 03:52 PM ----------

This issue can be fixed by removing the /system line in the fstab if it contains file system set as "squashfs". Shout out to akhilnarang for the fix

---------- Post added at 03:55 PM ---------- Previous post was at 03:53 PM ----------

And this one can be fixed by adding

TARGET_USERIMAGES_USE_EXT4 := true

To your BoardConfig.mk

cc [MENTION=6049586]Arvind7352[/MENTION]

Again credits to akhilnarang for the fix :)
[Android] zipperX:
After change toolchain to uber i got this error

/home/ferroz/Projects/cm/kernel/oneplus/msm8974/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed

make[3]: *** [vmlinux.o] Error 1

/home/ferroz/Projects/cm/kernel/oneplus/msm8974/Makefile:938: recipe for target 'vmlinux.o' failed

make[2]: *** [vmlinux.o] Error 2

Makefile:130: recipe for target 'sub-make' failed

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

make[1]: Leaving directory '/home/ferroz/Projects/cm/kernel/oneplus/msm8974'

build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed

make: *** [TARGET_KERNEL_BINARIES] Error 2

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

Copy xml: /home/ferroz/Projects/cm/out/target/product/bacon/system/etc/media_codecs_google_telephony.xml

make: Leaving directory '/home/ferroz/Projects/cm'

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

What's wrong?
[Android] skull(nj):
stderr log

http://hastebin.com/kezuzucaze.pl

stdout log

http://hastebin.com/vomimuzavu.vhdl
[Android] neonkat:
can you post full logs?
[Android] Arvind7352:
Remove this config if present in BoardConfig.mk / BoardConfigCommon.mk

USE_CUSTOM_AUDIO_POLICY=1

This solution was given by neonkat 2-3 times. Just a mention.
[Android] :
Hi, could someone help me with the following error:

/home/yeshwanthvshenoy/CM13/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /tmp/AOSP-toolchain/build/../binutils/binutils-2.25/gold/arm.cc:10404
make[3]: *** [arch/arm/kernel/built-in.o] Error 1
make[2]: *** [arch/arm/kernel] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/yeshwanthvshenoy/CM13/kernel/motorola/msm8952'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....

[MENTION=6552280]MSF Jarvis[/MENTION] [MENTION=4584140]cybojenix[/MENTION]
[Android] zipperX:
I will attach log to you after finish this

Edit : stderr http://hastebin.com/yijegujeja.dos

stdout http://hastebin.com/ijepugosob.dos

---------- Post added at 06:27 AM ---------- Previous post was at 06:24 AM ----------

Are you change your toolchain? Because i had same error like you
[Android] XeniX_Force:
Help with building CM11 for my unsupported device.

Hi.

Im going to build CM 11 for my unsupported device LG Optimus Lte2. I need help with many steps as im a newbie.

1) First of all are these all the steps i need to do or do i have to do some extra steps with my mobile's boot.img as my mobile is an unsupported mobile.

2) i am very confused with making the local manifest for downloading my mobile's device tree, kernel and vendor.

To be honest idk where to get these three files from. I found a link on github but i dont know to recognize a device tree so can someone please tell me if this is a device tree? https://github.com/zcop/android_device_lge_d1lkt?files=1

Please also tell if i download the kernel and vendor file found in that link or any other?

I would be very delighted if someone can make the local manifest file for me using the above link or atleast explain to me in noob-friendly way about how to make it.

3) After that i have to make device tree compatible just by changing the name and some contents of some files as shown in the post. Am i right? But in the post it was shown for slim rom. I replace slim with cm, right?

After that i compile the rom.

Is that all?

Oh and this is a stupid question but i only have to download the cm11 source right? Not the pure aosp fron google?

Sorry for my stupid questions. please respond soon.
[Android] skull(nj):
stedrr log

http://hastebin.com/munonowusu.pl

stdout log

http://hastebin.com/uvumacofip.vhdl

---------- Post added at 12:15 PM ---------- Previous post was at 12:12 PM ----------

this creats new error