yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M8)] cntryby429:
I just responded to your other post then saw this one. If you're unlocked and flashed su through recovery then you should remove weak sauce but leave su.

More importantly, you have a lot of reading to do. It's great that you're getting into ROMs, rooting, flashing, etc but once you turned s-off you opened up your phone to all sorts of user-error-created problems (including bricks). Read read read. Read every sticky in the m8 forums, read up on fastboot/adb commands, read about root access and /system R/W. Read read read. There are smart people (I am not one of them) who will help you if you get into trouble but you will save yourself a lot of time and frustration if you learn what you can before you need it. Also, nandroid now and often.
[Verizon HTC One (M8)] steezy123:
Alright will do, thank you for the reply!
[Upgrading, Modifying and Unlocking] Adidre:
I have a GPS PNA with Windows CE 4.2 on it.

There is a method to upgrade to Windows Mobile 2003?

Thank you
[Android] F-L-Y-E-R:
Is this tutorial only for officially supported devices that are/will be running 'lollipop'? Will I be able to build lollipop on other device from this source? The thing is that I need to encode the device so it is compatible with 'lollipop'. I'm not really sure how it's done but if it's possible can you explain how or direct me in the right direction? Thanks.
[Android] GROGG88:
You have to have a device tree for your product. You must then select that device and build type using 'lunch'.
[Android] navendugoyal:
Device tree is there

Thanks for replying buddy, highly appreciate it.

Device tree is present.

Infact I have tried multiple device tree setups - but get the same error everytime

I have tried

CM

Oneplusaosp

TheUnas

but the same error

Also why after the sudo make command it should be changing the target product to a generic ?
[Android] navendugoyal:
screenshots - device tree

here is the device tree screenshot
[Android] GROGG88:
I do not have a solid answer regarding why 'sudo' would change your target. That truly is odd, but at the same time there is no reason why you should need sudo since your build did not fail due to permissions.

I'm curious... Where exactly did you fetch your device tree from? I do not see it in googlesource.com. Seeing as you're building for the OnePlusOne, I must ask if you're attempting to build AOSP or CM?
[Android] navendugoyal:
Here are the 2 places I have tried my device tree form

https://github.com/OnePlusAosp/android_device_oneplus_bacon.git

Also

https://github.com/TheUnas - they have forked lot of things for OneplusOne lollipop.
[Android] rocksyjj:
great guide i'am doing mt first build fingures crossed it works thanks again buddy
[Android] GROGG88:
Do you have a copy of '../device/oppo/common/common.mk' ?

I'm trying to duplicate your condition against my source, but I need to know exactly what you've added to your tree. So far I'm coming up with this:
[Android] navendugoyal:
Yes I have

See the screenshot

You can get them from here

https://github.com/TheUnas
[Android] aazzam16661:
No File or Directory

Ok, I'm building Android 5.0 Lollipop Aosp Tag= Android-5.0.0_r2

The problem is that some files cannot be found normally and need some editing

For example:

device/htc/leo/custom_libraries/libsensors/AkmSensor.cpp:25:27: fatal error: linux/akm8973.h: No such file or directory

The file "akm8973.h" can be found in "kernel/htc/leo/include/linux" But, nope, the compiler can't find it

One workaround is that I edit it to find the file like this

Before:

#include <linux/akm8973.h>

to

#include <akm8973.h>

and then put the file in the same dir as the file asking for it "device/htc/leo/custom_libraries/libsensors/"

Please, help, I know this is not normal and if there is a fix, please tell me
[Android] andrea9293:
I have an oppo find 7

folder in the device there is not oppo/find7 so I created me, this folder now is empty, for proprietary file I can use the script "extract-files.sh" present in the source CM11 ? I have an oppo find 7

EDIT: i take device tree and proprietary files (already extracted to a compilation of a cyanogenmod) from cyanogenmod's github but that device tree is for android kitkat, not for lollipop, then i have this error:

http://pastebin.com/HhNGmFS2

after this problem i try this: i take the product_config.mk from cyanogen source but the problem is still there.

sorry for my bad english :(
[Android] YudmudTR:
Hey, trying to build L for HTC One M7,

this is my rom source : https://github.com/disco2

and this is my device tree : https://github.com/lollipop-m7

After selecting my device on lunch, it says

build/core/envsetup.mk:157: *** No config file found for TARGET_DEVICE m7. Stop.

** Don't have a product spec for: 'aosp_m7'
** Do you have the right repo manifest?

I have no idea why I get this error, there is no missing files or inaccurate names, but I keep getting this. Any idea?
[Android] andrea9293:
I have the same problem. Searching the internet I realized that you have to edit the manifest file . Go to the root of the repo and hit ctrl + h , then you'll see the folder .repo, inside there is manifest file to edit. You must add lines to your device by putting the directory of vendors and devices belonging to your phone ( if you see how add the other devices you'll understand better)

Although I added my device to Maifest I can not compile the AOSP for more error. I am currently compiling the generic and then virtualize just to try Lollipop
[Android] xperiafan13:
Any help please??
[Android] x10forevers:
Please use pastebin for the errors and give a brief output to see the whole code of error...

From given picture i can say that it is showing an error in file_contexts, but I can't say it for sure until looking at whole code of error...

thanks
[Android] coolswap11:
Trying to build for Xperia L taoshan

Hi there,

I was wondering whether i would be able to build a lollipop build for Xperia L device which is not included in official device list. If i am to develop then which code should i consider as a base to start..... Some steps for the same would be really appreciated...
[Android] lozohcum:
Looks like I just need to turn off Java check right?

Checking build tools versions...
************************************************************
You asked for an OpenJDK 7 build but your version is
java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode).
************************************************************

I put "$(error stop)" into a comment.
[Android] spezi77:
I am trying to build 5.0.0_r5 for htc bravo and no matter what I do, I get this error:

hardware/qcom/audio-legacy/qsd8k/AudioHardware.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
hardware/qcom/audio-legacy/qsd8k/AudioHardware.cpp:2020:30: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardware'
return new AudioHardware();
^
In file included from hardware/qcom/audio-legacy/qsd8k/AudioHardware.cpp:37:0:
hardware/qcom/audio-legacy/qsd8k/AudioHardware.h:165:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardware':
class AudioHardware : public AudioHardwareBase
^
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20:0,
from hardware/qcom/audio-legacy/qsd8k/AudioHardware.h:26,
from hardware/qcom/audio-legacy/qsd8k/AudioHardware.cpp:37:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:255:29: note:	virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStreamWithFlags(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
virtual AudioStreamOut* openOutputStreamWithFlags(
^
hardware/qcom/audio-legacy/qsd8k/AudioHardware.cpp:2021:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: some warnings being treated as errors

Only commenting out 'createAudioHardware' allows to proceed with the build:

hardware/qcom/audio-legacy/qsd8k/AudioHardware.cpp

extern "C" AudioHardwareInterface* createAudioHardware(void) {
return new AudioHardware();
}

hardware/libhardware_legacy/audio/audio_hw_hal.cpp

ladev->hwif = createAudioHardware();

Here is my manifest.

Anyone else with this?
[Android] ROM-PacMe:
I Have The Same Problem...

[/CODE]

Checking build tools versions...

************************************************************

You asked for an OpenJDK 7 build but your version is

java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode).

************************************************************

build/core/main.mk:195: *** stop. Alto.

[/CODE]

please help us :(
[Android] c0d3r!pp3r:
201

Neat & clean instruction... awesome guide OP...

thanks for this, thanks added
[Android] jukiewalsh:
here's my error, any help would be greatly appreciated. libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1

system: ubuntu 14.10 building lollipop cm

I'm building for oneplus which i know for a fact is already compilable
[Android] DJPS1:
:/

Notice file: system/core/libutils/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libutils.a.txt

Notice file: bionic/libc/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstdc++.a.txt

Notice file: external/sepolicy/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//root/seapp_contexts.txt

Notice file: external/sepolicy/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//root/selinux_version.txt

Notice file: external/sepolicy/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//root/sepolicy.txt

Notice file: external/sepolicy/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//root/service_contexts.txt

Target buildinfo: out/target/product/mako/root/default.prop

Export includes file: bootable/recovery/minzip/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libminzip_intermediates/export_includes

Export includes file: bootable/recovery/mtdutils/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libmtdutils_intermediates/export_includes

build/tools/post_process_props.py out/target/product/mako/root/default.prop

Export includes file: bootable/recovery/minadbd/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libminadbd_intermediates/export_includes

Export includes file: bootable/recovery/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libfusesideload_intermediates/export_includes

Import includes file: out/target/product/mako/obj/STATIC_LIBRARIES/libsparse_static_intermediates/import_includes

Import includes file: out/target/product/mako/obj/STATIC_LIBRARIES/libminzip_intermediates/import_includes

Import includes file: out/target/product/mako/obj/STATIC_LIBRARIES/libmtdutils_intermediates/import_includes

Import includes file: out/target/product/mako/obj/STATIC_LIBRARIES/libminadbd_intermediates/import_includes

Import includes file: out/target/product/mako/obj/STATIC_LIBRARIES/libfusesideload_intermediates/import_includes

Export includes file: bootable/recovery/Android.mk -- out/target/product/mako/obj/EXECUTABLES/recovery_intermediates/export_includes

Target buildinfo: out/target/product/mako/system/build.prop

make: *** No hay ninguna regla para construir el objetivo 'frameworks/base/packages/services/PacProcessor/com/android/net/IProxyService.aidl', necesario para 'out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/packages/services/PacProcessor/com/android/net/IProxyService.java'. Alto.

make: *** Se espera a que terminen otras tareas....

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

Help me :(
[Android] andr0id3r:
Cool tutorial...

Thanks a lot!
[Android] artikkk:
Go to build/core/main.mk and add # before $(error stop) at line 195 .

If it doesn't work, compare your code before ifndef BUILD_EMULATOR with mine

ifeq ($(strip $(java_version)),)
$(info ************************************************************)
$(info You are attempting to build with the incorrect version)
$(info of java.)
$(info $(space))
$(info Your version is: $(java_version_str).)
$(info The required version is: $(required_version))
$(info $(space))
$(info Please follow the machine setup instructions at)
$(info $(space)$(space)$(space)$(space)https://source.android.com/source/initializing.html)
$(info ************************************************************)
#$(error stop)
endif

# Check for the current JDK.
#
# For Java 1.7, we require OpenJDK on linux and Oracle JDK on Mac OS.
# For Java 1.6, we require Oracle for all host OSes.
requires_openjdk := false
ifeq ($(LEGACY_USE_JAVA6),)
ifeq ($(HOST_OS), linux)
requires_openjdk := true
endif
endif

# Check for the current jdk
ifeq ($(requires_openjdk), true)
# The user asked for java7 openjdk, so check that the host
# java version is really openjdk
ifeq ($(shell echo '$(java_version_str)' | grep -i openjdk),)
$(info ************************************************************)
$(info You asked for an OpenJDK 7 build but your version is)
$(info $(java_version_str).)
$(info ************************************************************)
#$(error stop)
endif # java version is not OpenJdk
else # if requires_openjdk
ifneq ($(shell echo '$(java_version_str)' | grep -i openjdk),)
$(info ************************************************************)
$(info You are attempting to build with an unsupported JDK.)
$(info $(space))
$(info You use OpenJDK but only Sun/Oracle JDK is supported.)
$(info Please follow the machine setup instructions at)
$(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
$(info ************************************************************)
#$(error stop)
endif # java version is not Sun Oracle JDK
endif # if requires_openjdk

# Check for the correct version of javac
ifeq ($(strip $(javac_version)),)
$(info ************************************************************)
$(info You are attempting to build with the incorrect version)
$(info of javac.)
$(info $(space))
$(info Your version is: $(javac_version_str).)
$(info The required version is: $(required_javac_version))
$(info $(space))
$(info Please follow the machine setup instructions at)
$(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
$(info ************************************************************)
#$(error stop)
endif

and copy it :p
[Android] Flyhalf205:
Was getting same error

You asked for an OpenJDK 7 build but your version is java version ....... blah blah blah.... I finally fixed it on my end...

sudo update-alternatives --config java

sudo update-alternatives --config javac

sudo update-alternatives --config jar

sudo update-alternatives --config javadoc

Set all to 0 for automatic mode.

Pretty much removed every java version off my ubuntu machine.

sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*

sudo apt-get remove openjdk-7-jdk

Edited my .bashrc to make sure I had no ANDROID_JAVA_HOME= custom dir

sudo apt-get install openjdk-7-jdk

and everything started working fine again.
[Android] ROM-PacMe:
thanks

Thanks for Help ;)
[Android] ps2chiper:
Could someone help me get past this build error for SElinux. I am building on Ubuntu 14.10 for Lollipop.

host Prebuilt: insertkeys.py (out/host/linux-x86/obj/EXECUTABLES/insertkeys.py_intermediates/insertkeys.py)
Invalid policyvers specified: 26
usage: out/host/linux-x86/bin/checkpolicy [-b] [-d] [-U handle_unknown (allow,deny,reject)] [-M][-c policyvers (15-29)] [-o output_file] [-t target_platform (selinux,xen)][input_file]
target Prebuilt: AndroidClock.ttf (out/target/product/generic/obj/ETC/AndroidClock.ttf_intermediates/AndroidClock.ttf)
external/sepolicy/Android.mk:149: recipe for target 'out/target/product/generic/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery' failed
make: *** [out/target/product/generic/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (42:01 (mm:ss)) ####
[Android] yogeshkotadiya:
Nice tutorial but i am looking Tutorial for openSUSE.
[Android] bhanusur:
not able to pass through "./extract-files.sh"

not able to pass ./extract-files.sh

i just wanted to rebuild Rom , But getting following errors ,

Followed all the steps as mentioned, Only Diff. is Downloaded hammerhead rom image from google, extracted the same to folder /original and trired to rum above script ....Not getting what to do . (I dont have the nexus phone, Wanted to run this rom in emmulator )

sur@sur-desktop:~/WORKING_DIRECTORY/device/lge$ cd hammerhead
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ ./extract-files.sh ~/original
bash: ./extract-files.sh: No such file or directory
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ ./extract-files.sh ~/original
bash: ./extract-files.sh: No such file or directory
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ sudo ./extract-files.sh ~/original
[sudo] password for sur:
sudo: ./extract-files.sh: command not found
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ sudo ./extract-files.sh /original
sudo: ./extract-files.sh: command not found
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ ./proprietary-files.sh ~/original
bash: ./proprietary-files.sh: No such file or directory
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ sudo ./proprietary-files.sh ~/original
sudo: ./proprietary-files.sh: command not found
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ sudo ./extract-files.sh /original
sudo: ./extract-files.sh: command not found
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ sudo ./extract-files.sh ~/original
sudo: ./extract-files.sh: command not found
sur@sur-desktop:~/WORKING_DIRECTORY/device/lge/hammerhead$ sudo ./extract-files.sh ~/Home/original
sudo: ./extract-files.sh: command not found

/home/sur/Pictures/Screenshot from 2014-11-24 14:59:50.png

/home/sur/Pictures/3.png
[Android] usopjidin:
Problem compiling

Anyone here, please help me or lead me to something.

I am having a trouble compiling the cm12 source.

Here is the output

target thumb C: libcompiler_rt-extras <= external/compiler-rt/lib/builtins/mulodi4.c

clang: error: the clang compiler does not support '-mfpu=neon-vfpv4'

make: *** [/home/usopjidin/android/system/out/target/product/i9500/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 1

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

GEN /home/usopjidin/android/system/out/target/product/i9500/obj/KERNEL_OBJ/Makefile

#

# configuration written to .config

#

make[1]: Leaving directory `/home/usopjidin/android/system/kernel/samsung/exynos5410'
[Android] kldoc:
I have exactly the same issue building Omnirom for Mako on Ubuntu 14.10 64, didn't find the reason yet, but it's environment related, that's all i could figure out. If anyone have a solution (missing dependecy ? Declaration ? Path ?)
[Android] bangle86:
thanks

Good job, thanks
[Android] spezi77:
Guys, regardless which LP ROM i try to compile, i cannot use "make bacon" or "make otapackage". I always get: no rule to make target " bacon" or "otapackage".

I tried it with both, omnirom and slimrom.

What's wrong here?

Sent from my Nexus™4 ?
[Android] Amosthecoolboy:
I think its internel error from file
[Android] spezi77:
Solved it. "Make recovery" was disabled through a setting in board.config for my device.
[Android] Amosthecoolboy:
:thumbup:
[Android] willianalberto:
Hi guys,

I'm with the same problem. I've tried all previous responses but yet I can't pass the error.

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: ** [/home/cid/CM12/out/host/linux-x86/obj32/lib/libjavacore.so] Erro 1
make: ** Esperando que outros processos terminem.

I've reinstalled Java, installed additional packages... everything, but same error on the same file. Any other suggestion?

Thanks
[Android] Hai96:
Error while building LiquidSmooth for ville

Merry Christmas !!:)

Iam trying to build LiquidSmooth LP for ville(HTC One S) but i get the following error:

http://pastebin.com/zG77KJ4g

can somebody help me with this, with google i found no solution...
[Android] chopt51:
Did you find the solution? I have the same problem.

Sent from my Galaxy Note ll
[Android] Hai96:
I deleted my frameworks folder and resynced. For me that solved the problem.
[Android] argon9898:
Need help!

Let just say that i'm going to build a rom for a device that isn't supported on any pages(Asus Zenfone 5 [T00J]), meanwhile the manufacturer has made the device's kernel availabile for download. So how should i compile it? :confused:
[Android] slebit:
I have had a problem i have not been able to solve. I have searched a lot but i have not found anything that can help me solve this. Maybe someone on xda can help me. This is my error trying to compile euphoria rom:

device/qcom/sepolicy/common/netd.te:5:ERROR 'unknown type wfd_app' at token ';' on line 13894:
allow netd wfd_app:fd use;
allow netd netd:packet_socket { create bind setopt read ioctl };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/name/android/euphoria/out/target/product/v500/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
[Android] spezi77:
I don't have the proper solution for you. What I did, is simply to put those se policy files on the ignore list to continue compiling..

https://github.com/spezi77/android_device_htc_bravo/commit/fe75716d6abe354d37b327cad930675f9b6ed4e0

Sent from my Nexus™4 ?
[Android] slebit:
Thanks! I will try that later today.
[Android] aazzam16661:
EGL error

Okay, i have now manage to compile A rom but I'm getting this errors in Logcat

http://pastebin.com/AJNdMEKW

Help please :fingers-crossed:
[Android] spezi77:
Aazzam, for solving the EGL_BAD_SURFACE error use my solution, which is to revert one or two commits in frameworks_native.

Sent from my Nexus™4 ?
[Android] aazzam16661:
Umm, which commit should i revert?
[Android] bhaismachine:
How did you fix it eventually ? [MENTION=5091819]spezi77[/MENTION] suggested ignore to files to the ignore list. I am getting exact error while building Euphoria OS
[Android] spezi77:
See here https://github.com/spezi77/android_frameworks_native/commits/cm-12.0

Sent from my Nexus™4 ?
[Android] slebit:
I haven't had time to look at it yet. I will do that now!
[Android] bhaismachine:
Thanks for replying. I figured it out by commenting lines of netd.te files which were giving build errors. I also had to completely comment another file which was giving build errors. Eventually the compilation was complete and it generated a zip file. Installed it on my LG G2 but it kept going to a screen saying fastboot which is weird because as far as I knew LG G2 doesn't have fast boot. At this moment I don't know how to proceed but I am going to investigate soon.
[Android] Andromendous:
hey all im getting an error when trying to install the SDK, this is what i get when i install platform-tools, then if i run "adb" in terminal, it says "no such file or directory" ive checked all the paths and adapted them to my own, I even checked the folders and adb is present in that folder. i am stumped.

this is what it says after installing platform-tools from the manager

"Stopping ADB server failed (code -1).

Installed Android SDK Platform-tools, revision 21

Stopping ADB server failed (code -1).

Unable to run 'adb': Cannot run program "/home/androblu/SDK/platform-tools/adb": error=2, No such file or directory.

Starting ADB server failed (code -1).

EDiT: as soon as i posted this, i cd'd into the platform-tools folder, and ran adb, it told me to install it with apt-get and it worked.
[Android] Lordomn:
you have to be in the directory its installed into. in order for adb to work