yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] winxuser:
U can also try

. build/envsetup.sh && aokp_yourdevice-userdebug -jx

That will do everything in one go
[Android Q&A, Help & Troubleshooting] tecno789:
i had always done that command, but never a file .zip as output. i don't know why
[Android Q&A, Help & Troubleshooting] winxuser:
Not sure. But that's what I use to compile lollipop Roms.
[Android Q&A, Help & Troubleshooting] tecno789:
thanks to u i could compile and install my ROM. but i have a question... Are root permissions already built in the ROM or not? 'cause they aren't... do i add them? or they would be already inside?
[Android Q&A, Help & Troubleshooting] winxuser:
yes they should always be built in, go to settings, tap on build number about 7 times to enable developers, then going in and enable root access
[Android Q&A, Help & Troubleshooting] tecno789:
There isn't.. I don't know why
[Android Q&A, Help & Troubleshooting] tecno789:
How to add root permission before building?
[Android Q&A, Help & Troubleshooting] Slimegod:
Can someone take a look at this log http://pastebin.com/ztpzjptT. I know where the error is in line 203, but I've decompiled framework.jar, framework2.jar and services.jar and all the smalis are identical. I can't find this error.

Edit: link was deleted
[Android Q&A, Help & Troubleshooting] eray0687:
Whats the problem_ cm 12.1 for i9100g samsung.

target thumb C++: libRSCpuRef <= frameworks/rs/cpu_ref/rsCpuIntrinsicResize.cpp
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1429: Error: unexpected end of file in irp or irpc
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
make: *** [/home/ylmz/android/system/out/target/product/i9100g/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Hata 1
make: *** Bitmemiş işler için bekliyor....
[Android Q&A, Help & Troubleshooting] djmatt604:
Edit: Solved.

---------- Post added at 11:03 PM ---------- Previous post was at 11:02 PM ----------
[Android Q&A, Help & Troubleshooting] DamienRushe:
I have this same issue. How do i fix it . really sorry for the NOOB question. first time building and really no little or nothing about linux so trying to find my way here. I undertsand the problem with the fact its declared twice but have no idea how/where i fix this.
[Android Q&A, Help & Troubleshooting] rodman01:
delete the referent lines in vendor/samsung/smdk4412-common/proprietary->Android.mk or vendor/samsung/i9300...usually also that for libump and libfimc, if also declared twice.
[Android Q&A, Help & Troubleshooting] rodman01:
Hope someone can help me too :) or can pinpoint me to the right direction:

I am compiling AOSP roms(s) for i9305 but cannot get sim card to work. What ever I tried i am getting: no sim card - emergency calls only. Modem is not recognized, will say unknown. I have this on 3 different AOSP roms and no matter what vendor/samsung/blobs I am using, nor what ril sources. Also when I am flashing a modem on top, there is no difference. So I am sure I missed something general, such as a different path or different permission, or what ever....would be glad if someone has an idea, what I can try. All others beside that is working well with all 3 roms, but without sim card detection, the phone is useless :)...
[Android Q&A, Help & Troubleshooting] winxuser:
Just having a think bro have you made sure the sepolicy is inline with t0lte. I did notice there was a update for ril denial. I tried cm sources (sim not recognised in sim status but has baseband) tried nameless sources (optimising android bootloop)

---------- Post added at 12:32 AM ---------- Previous post was at 12:30 AM ----------

I think its got to do with the ril changes they made in hardware_samsung since the changes have been made ril has been broken on i9305 but works fine on i9300 and t0lte and there variants
[Android Q&A, Help & Troubleshooting] rodman01:
I tried it also with exactly the same device sources as I have in RR, which are working on RR (Sammy blobs as well as smdk blobs) very well, but with AOSP they don't. So I am also sure that there is a difference between AOSP and CM/RR ril sources and maybe selinux too;). But what and where? Anyone has an idea? I doubt, that the rom is even not recognizing the modem. I think that there is no connection between rom, modem and sim card....regardless which modem I flash: "no sim card - only emergency calls". Does anybody knows, where this "connection" is administrated or managed? Is it in hardware/samsung/ril? Or frameworks/opt/telephony? In hardware/ril? Or in device/samsung/i9305/rootdir? Or somewhere else?
[Android Q&A, Help & Troubleshooting] DamienRushe:
THANK YOU !!!! BACK IN BUSINESS!!! :silly::good::p:o
[Android Q&A, Help & Troubleshooting] DamienRushe:
I have successfully completed the build and have tried to flash the zip. unfortunatley when i do it tells me in TWRP that the flash was successful but when i reboot the phone does not go past the samsung logo

(this is a build of CM11 for Galaxy s3 i9300)

I dont know how or where to debug this. Anyone got any ideas?
[Android Q&A, Help & Troubleshooting] rodman01:
Which TWRP version are you using and from which rom do you want to update? But I am not sure about the i9300, because I have the i9305 ;), but in your device section there are several threads where you will get the info about how to flash cm11 or else....
[Android Q&A, Help & Troubleshooting] Slimegod:
How do I add a github SDK firmware to a built stock base ROM?
[Android Q&A, Help & Troubleshooting] DamienRushe:
Its something in the rom i have built that id the problem. I can download and flash the official zip from cm for my phone but the one i have made refuses to boot. I only updated my TWRP about a week ago to the latest version
[Android Q&A, Help & Troubleshooting] rodman01:
Then I think its a kernel problem...have you tried to flash a working kernel for cm11 and your device on top of your rom.zip?
[Android Q&A, Help & Troubleshooting] DamienRushe:
No i can try that now. I have boeffla

---------- Post added 19th May 2015 at 12:16 AM ---------- Previous post was 18th May 2015 at 11:27 PM ----------

Nope. Still the same . doesn't get past the Samsung logo. Im thinking maybe its an issue with the boot.img but again have no idea how to debug/fix this
[Android Q&A, Help & Troubleshooting] koolkunz:
Hi everyone i am building BlissPop rom for S2 and have already succesfully compiled a build...but now when i do repo sync i get this error..any help please?

Fetching project CyanogenMod/android_hardware_qcom_audio
Fetching projects: 98% (588/599) Fetching project CyanogenMod/android_hardware_qcom_audio
Fetching projects: 99% (594/599) Fetching project CyanogenMod/android_hardware_qcom_audio
Fetching project CyanogenMod/android_hardware_qcom_audio
fatal: Couldn't find remote ref refs/heads/lp5.1
fatal: Couldn't find remote ref refs/heads/lp5.1
error: Cannot fetch TeamBliss-Devices/android_device_samsung_galaxys2-common
warn: --force-broken, continuing to sync
error: Cannot fetch TeamBliss-Devices/android_kernel_samsung_smdk4412
warn: --force-broken, continuing to sync
Fetching projects: 100% (599/599), done.
Syncing work tree: 5% (30/599) error: in `sync -f`: revision lp5.1 in TeamBliss-Devices/android_device_samsung_galaxys2-common not found
[Android Q&A, Help & Troubleshooting] winxuser:
Yes I have been getting some repo sync errors too. Mine is at tvsettings though.
[Android Q&A, Help & Troubleshooting] Jaskaran498:
Trying to port halo into cm11. Everything ok for now except this error->

frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java:1270: cannot find symbol
symbol : class Resources
location: class com.android.systemui.statusbar.BaseStatusBar
Resources res = mContext.getResources();
^

Wasnt resources class auto added by compiler?

Here's complete code->

http://pastebin.com/hX8yF2mM

I ported halo from a repository. And here's the same file in that respository->

https://github.com/jabzaVR/aospa_fr...android/systemui/statusbar/BaseStatusBar.java

Cant see any special imports or something.... any help would be appreciated.

EDIT: NVM, solved the issue by manually importing android.content.res.Resources;. Strange though, they should have been auto imported... but whatever the build is complete :D
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
Delete.

Reason: Fixed the error.
[Android Q&A, Help & Troubleshooting] :
I was trying to build cm12.1 for moto g. Used cm's own device specifics. I tried building and got this error:

Export includes file: external/e2fsprogs/lib/blkid/Android.mk -- /home/yeshwanthvshenoy/cm/out/target/product/fa
lcon/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/uuid/Android.mk -- /home/yeshwanthvshenoy/cm/out/target/product/fal
con/obj/STATIC_LIBRARIES/libext2_uuid_static_intermediates/export_includes
Export includes file: external/lz4/Android.mk -- /home/yeshwanthvshenoy/cm/out/target/product/falcon/obj/STATIC_
LIBRARIES/liblz4-static_intermediates/export_includes
Export includes file: system/core/libsparse/Android.mk -- /home/yeshwanthvshenoy/cm/out/target/product/falcon/ob
j/STATIC_LIBRARIES/libsparse_static_intermediates/export_includes
Export includes file: external/zlib/Android.mk -- /home/yeshwanthvshenoy/cm/out/target/product/falcon/obj/STATIC
_LIBRARIES/libz_intermediates/export_includes
make: *** No rule to make target `/home/yeshwanthvshenoy/cm/out/target/product/falcon/obj/STATIC_LIBRARIES/libin
it_msm_intermediates/export_includes', needed by `/home/yeshwanthvshenoy/cm/out/target/product/falcon/obj/EXECUT
ABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/compiler-rt/Android.mk -- /home/yeshwanthvshenoy/cm/out/target/product/falcon/obj
/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
yeshwanthvshenoy@falcon:~/cm$

Can anyone help me with this?
[Android Q&A, Help & Troubleshooting] martinusbe:
If you are using motorola_qcom_common, get rid of it

only use device_qcom_common
[Android Q&A, Help & Troubleshooting] :
It seems i never had a device/qcom folder. It was missing in the manifest. I added manually and synced. Now rebuilding. Will keep u posted soon bro. Thanks for ur time!
[Android Q&A, Help & Troubleshooting] speed_bot:
re run repo init and use repo sync -j1
[Android Q&A, Help & Troubleshooting] Art Vanderlay:
I'm trying to compile cm12.1 with the linaro 5.1 toolchain and I'm running into this error

target thumb C++: libLLVMARMCodeGen <= external/llvm/lib/Target/ARM/ARMISelLowering.cpp
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC init/initramfs.o
CC init/calibrate.o
CC init/version.o
LD init/mounts.o
arm-eabi-ld: error: init/do_mounts_rd.o: multiple definition of 'return_address'
arm-eabi-ld: init/do_mounts.o: previous definition here
arm-eabi-ld: error: init/do_mounts_initrd.o: multiple definition of 'return_address'
arm-eabi-ld: init/do_mounts.o: previous definition here
/home/tom/android/system/kernel/oneplus/msm8974/scripts/Makefile.build:429: recipe for target 'init/mounts.o' failed
make[3]: *** [init/mounts.o] Error 1
/home/tom/android/system/kernel/oneplus/msm8974/Makefile:950: recipe for target 'init' failed
make[2]: *** [init] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tom/android/system/kernel/oneplus/msm8974'
build/core/tasks/kernel.mk:229: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (57:55 (mm:ss)) ####

I'm building on ubuntu 15.04 for the oneplus one. Any help will be appreciated.
[Android Q&A, Help & Troubleshooting] lifehacker69:
I am getting this error. I have searched google but couldn't find any solution.

In file included from hardware/qcom/display-caf-new/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display-caf-new/libhwcomposer/hwc_utils.h:34,
from hardware/qcom/display-caf-new/libqdutils/cb_utils.h:33,
from hardware/qcom/display-caf-new/libqdutils/cb_utils.cpp:28:
hardware/qcom/display-caf-new/liboverlay/mdpWrapper.h:72:36: error: 'mdp_overlay_list' has not been declared
In file included from hardware/qcom/display-caf-new/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display-caf-new/libhwcomposer/hwc_utils.h:34,
from hardware/qcom/display-caf-new/libqdutils/cb_utils.h:33,
from hardware/qcom/display-caf-new/libqdutils/cb_utils.cpp:28:
hardware/qcom/display-caf-new/liboverlay/mdpWrapper.h:180:43: error: 'mdp_overlay_list' has not been declared
hardware/qcom/display-caf-new/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::validateAndSet(const int&, int&)':
hardware/qcom/display-caf-new/liboverlay/mdpWrapper.h:182:19: error: 'MSMFB_OVERLAY_PREPARE' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/sauron/android/kitkat/aokp/out/target/product/w6ds/obj/SHARED_LIBRARIES/libqdutils_intermediates/cb_utils.o' failed

I have tried using gcc-4.7, linaro-4.8 and linaro-4.9 toolchains.

It gives the same error on cm as well as aokp.

I once tried to comment out these lines but it further gives error on media-caf-new.

My device is LG l80. It has no device trees but I ported from l70. It builds recovery well.

Please help.
[Android Q&A, Help & Troubleshooting] Gamersab:
Resync android build, you're missing a commit.
[Android Q&A, Help & Troubleshooting] Slimegod:
How can i compile a kernel with a AOSP build. I get lost with that.
[Android Q&A, Help & Troubleshooting] lifehacker69:
But I have run repo sync around two to three times. What must I have been missing.
[Android Q&A, Help & Troubleshooting] Slimegod:
What is this error from http://pastebin.com/MS6G7R4E
[Android Q&A, Help & Troubleshooting] Uzumaki99:
I'm trying to build the dirty unicorns for maguro, however, I receive during the build process this error:

http://pastebin.com/s5QFxgRq

This is the makefile of the pvrsrvinit: https://github.com/Ziyann/android_hardware_ti_omap4/blob/ifdefs/pvrsrvinit/Android.mk

I alredy have the right vendor, I'm sure, here it is: https://github.com/ZMoD-R/proprietary_vendor_samsung

the files:

/lib/libsrv_init_SGX540_120.so

/lib/libsrv_um_SGX540_120.so

there are, so, what could be the problem and of course the resolution?
[Android Q&A, Help & Troubleshooting] Slimegod:
Anyone
[Android Q&A, Help & Troubleshooting] MasterAwesome:
cp */home/slimegod/AOSP/out/target/product/d2lte/kernel

Is a wrong syntax, you need to check one of the makefiles. Run a make -j1 and you'll figure out which makefile is calling calling the wrong syntax
[Android Q&A, Help & Troubleshooting] Slimegod:
This is my makefile. Kinda weird cause I've never seen this.
[Android Q&A, Help & Troubleshooting] MasterAwesome:
Not this dude... It's in the device tree.
[Android Q&A, Help & Troubleshooting] Slimegod:
D2lte is my device tree:

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

<manifest>

*<remote name="github" fetch="git://github.com/"/>

*<project name="Hrubak/d2spr-tools.git" path="d2spr-tools" remote="github" revision="cm-11.0" />

*<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-11.0" />

*<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-11.0" />

*<project name="CyanogenMod/android_device_samsung_msm8960-common" path="device/samsung/msm8960-common" remote="github" revision="cm-11.0" />

*<project name="CyanogenMod/android_device_samsung_d2-common" path="device/samsung/d2-common" remote="github" revision="cm-11.0" />

*<project name="CyanogenMod/android_kernel_samsung_d2" path="kernel/samsung/d2" remote="github" revision="cm-11.0" />

*<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-11.0" />

*<project name="CyanogenMod/android_device_samsung_d2lte" path="device/samsung/d2lte" remote="github" revision="cm-11.0" />

</manifest>

I create a local_manifest file and a room.service.xml within that.

Edit: did what you said and still got that error.
[Android Q&A, Help & Troubleshooting] :
For some reason, I cant get repo into my system. Here is my terminal output:

yeshwanthvshenoy@falcon$ mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
&& chmod a+x ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:06 --:--:-- 0curl: (7) Failed to connect to commondatastorage.googleapis.com port 80
: Connection timed out
yeshwanthvshenoy@falcon$

No matter how many times I try, I get the same response.
[Android Q&A, Help & Troubleshooting] trevd:
Ay, sent to patch to someone at google as i couldn't find the gerrit project for repo because it's not in the "public" facing repository and instead is located here https://gerrit-review.googlesource.com , it's the git-repo project. they had already sorted it 2 days ago, it just needs to be merged https://gerrit-review.googlesource.com/#/c/40792/ . Anyways.....

The short answer to your question is I don't know! I'm no repo expert :D. there's some documentation in .repo/repo/docs/manifest-format.txt and I'd have a read of the source file .repo/repo/manifest_xml.py to see what it can do. However as already suggested the sensible approach would be to maintain your own device & vendor trees.
[Android Q&A, Help & Troubleshooting] cbucz24:
ok, ill try that first...is it possible to "plug" in too many files and break the original dev's work? I ask lots of questions, i know..but if one of my questions ends up helping someone it evens out....maybe :fingers-crossed:
[Android Q&A, Help & Troubleshooting] DNRDustin:
.ccache usage. I believe its setup and linked properly, but when i prebuilt/linux-x86/ccache/ccache -s it doesn't appear to be caching my build. Firstly, does it need to be included ie. "make -j# ccache". Secondly, if that's the case, if i run the build again without make clean/clobber will it cache out?
[Android Q&A, Help & Troubleshooting] ktempleton:
Put your device tree in device/samsung /device

You're kernel source goes in kernel/samsung/sdmk4412 or whatever it is vendor in

Vendor/Samsung

Then any dependency's put them where they go not sure what or if your phone has them an example is hardware/samsungservicemode make sure you get the proprietary vendor files and give it a shot then make sure you add your phone into the baked build.. Ie vendor/baked/product android mk also baked_i577.mk copy a phone that's close to yours and change everything to your phone etc

Also don't forget to add your phone to the vendor setup. sh

---------- Post added at 08:12 PM ---------- Previous post was at 08:10 PM ----------

Did you add it to your bash and profile
[Android Q&A, Help & Troubleshooting] cbucz24:
also, once its set, it doesnt need to be declared in the make statement...

just to be clear, your not actually typing in "make -j#" are you?

actual command should be "make -j4" or "make otapackage -j4" or something like that if you intend on flashing it in recovery

the cache directory is persistent. its saved in a different place, when you make clean/clobber it wont effect this.
[Android Q&A, Help & Troubleshooting] DNRDustin:
No, I'm not using the # sign as a variable. Yes, I modified .bashrc and created the profile. When i view ccache from my build environment everything looks proper, but it doesn't seem be taking in files. Also, I am aware that the cache will persist through make clean/clobber, that's why I'm trying to set it up. 12+ hour builds are getting on mine and my hp minis nerves ;) maybe its not working because i set it up after i started the build, which should explain the second part of my previous question
[Android Q&A, Help & Troubleshooting] chaosdarky:
Does anyone know what and where is usr/local?
[Android Q&A, Help & Troubleshooting] Aquethys:
O__O Didn't see this dedicated thread...

Hi everyone,

I'm finally set up and everything with Mac OS X for building but I'm still running into one error when I

brunch

.

I get an error as seen here

If anyone could help that would be appreciated. Thanks!
[Android Q&A, Help & Troubleshooting] speed_bot:
usr is in root of file system..
[Android Q&A, Help & Troubleshooting] speed_bot:
dude you wont need ccache ..its used when building for many devices at once ... instead of make clean which deletes all the compiled files use make installclean this will remove all device specific files compiled..
[Android Q&A, Help & Troubleshooting] speed_bot:
your sdk isnt setup properly...check this page to set your envirnoment up

source.android.com
[Android Q&A, Help & Troubleshooting] Aquethys:
I thought that was the problem too but apparently it is because whenever I type android into a blank terminal it yields the opening of the SDK Window...
[Android Q&A, Help & Troubleshooting] chaosdarky:
do you mean the root of the connected devices?

I'm trying to build on Linux but I got an error when I executed cd /usr/local/

There's no such directory exists.
[Android Q&A, Help & Troubleshooting] DNRDustin:
cd /usr/local unless you're in /
[Android Q&A, Help & Troubleshooting] chaosdarky:
I'm getting 'No Directory Exists' when executing that command.
[Android Q&A, Help & Troubleshooting] speed_bot:
that sdk terminal opens because the path to sdk is set in .bashrc ... read your log properly bro...

edit

build/core/combo/HOST_darwin-x86.mk:62: *****************************************************

build/core/combo/HOST_darwin-x86.mk:63: * Cannot find SDK 10.6 at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk

build/core/combo/HOST_darwin-x86.mk:65: * If you wish to build using higher version of SDK,

build/core/combo/HOST_darwin-x86.mk:66: * try setting BUILD_MAC_SDK_EXPERIMENTAL=1 before

build/core/combo/HOST_darwin-x86.mk:67: * rerunning this command

build/core/combo/HOST_darwin-x86.mk:69: *****************************************************

build/core/combo/HOST_darwin-x86.mk:70: *** Stop.. Stop.

Device d2att not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Found repository: android_device_samsung_d2att

Default revision: cm-10.1

Checking branch info

CyanogenMod/android_device_samsung_d2att already exists

Syncing repository to retrieve project.

Repository synced!

Looking for dependencies

Done

build/core/combo/HOST_darwin-x86.mk:62: *****************************************************

build/core/combo/HOST_darwin-x86.mk:63: * Cannot find SDK 10.6 at build/core/combo/HOST_darwin-x86.mk:63: * Cannot find SDK 10.6 at

build/core/combo/HOST_darwin-x86.mk:65: * If you wish to build using higher version of SDK,

build/core/combo/HOST_darwin-x86.mk:66: * try setting BUILD_MAC_SDK_EXPERIMENTAL=1 before

build/core/combo/HOST_darwin-x86.mk:67: * rerunning this command

build/core/combo/HOST_darwin-x86.mk:69: *****************************************************

build/core/combo/HOST_darwin-x86.mk:70: *** Stop.. Stop.

as the error says try this

build/core/combo/HOST_darwin-x86.mk:66: * try setting BUILD_MAC_SDK_EXPERIMENTAL=1 before

its not finding sdk at

build/core/combo/HOST_darwin-x86.mk:63: * Cannot find SDK 10.6 at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk

see if it exists manually.
[Android Q&A, Help & Troubleshooting] mikrotik:
building done

building done..

thanks for speed_bot :good:

This thread is very useful.. :)
[Android Q&A, Help & Troubleshooting] speed_bot:
rate the thread.. press the button ..give the link to this thread is someone is in need of help..
[Android Q&A, Help & Troubleshooting] mikrotik:
ok...

rate done brow..