yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] ktempleton:
OK I'll do that when i get home
[Android Q&A, Help & Troubleshooting] speed_bot:
gimme the specs of your device then i can give a base to start off with..
[Android Q&A, Help & Troubleshooting] joshdsy:
Hey speed_bot how difficuilt would it be to.build cm9 for a device that uses a qualcomm proc but i have no sources.
[Android Q&A, Help & Troubleshooting] ktempleton:
Here's a link for the specs

http://m.gsmarena.com/samsung_exhilarate_i577-4415.php
[Android Q&A, Help & Troubleshooting] speed_bot:
afaik most of qualcomm's chipsets already have cm
[Android Q&A, Help & Troubleshooting] ktempleton:
I'm wanting cm10.1
[Android Q&A, Help & Troubleshooting] joshdsy:
This is a china phone dual sim it 95% stock android . Has a msm7627a

Actually i want more of cm 10 cm10.1
[Android Q&A, Help & Troubleshooting] speed_bot:
these are the devices with same soc..

edit

the only reason for concern is dual sim
[Android Q&A, Help & Troubleshooting] krille_java:
That path is also identical to my local folder,, when i put "SamsungExynos4RIL" in android_frameworks_base_telephony_java_com_android_telephony i get a lot of build errors (275).:confused:
[Android Q&A, Help & Troubleshooting] cbucz24:
# The special value "EXTERNAL" means that we will sign it with the
# default devkey, apply predexopt, but then expect the final .apk
# (after dexopting) to be signed by an outside tool.
LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE)
PACKAGES.$(LOCAL_PACKAGE_NAME).EXTERNAL_KEY := 1
endif

# If this is not an absolute certificate, assign it to a generic one.
ifeq ($(dir $(strip $(LOCAL_CERTIFICATE))),./)
LOCAL_CERTIFICATE := $(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))$(LOCAL_CERTIFICATE)
endif
private_key := $(LOCAL_CERTIFICATE).pk8
certificate := $(LOCAL_CERTIFICATE).x509.pem

$(LOCAL_BUILT_MODULE): $(private_key) $(certificate) $(SIGNAPK_JAR)
$(LOCAL_BUILT_MODULE): PRIVATE_PRIVATE_KEY := $(private_key)
$(LOCAL_BUILT_MODULE): PRIVATE_CERTIFICATE := $(certificate)

PACKAGES.$(LOCAL_PACKAGE_NAME).PRIVATE_KEY := $(private_key)
PACKAGES.$(LOCAL_PACKAGE_NAME).CERTIFICATE := $(certificate)

# Define the rule to build the actual package.
$(LOCAL_BUILT_MODULE): $(AAPT) | $(ZIPALIGN)
ifdef LOCAL_DEX_PREOPT
# Make sure the boot jars get dexpreopt-ed first
$(LOCAL_BUILT_MODULE): $(DEXPREOPT_BOOT_ODEXS) | $(DEXPREOPT) $(DEXOPT)
endif
$(LOCAL_BUILT_MODULE): PRIVATE_JNI_SHARED_LIBRARIES := $(jni_shared_libraries)
$(LOCAL_BUILT_MODULE): PRIVATE_JNI_SHARED_LIBRARIES_ABI := $(jni_shared_libraries_abi)
ifneq ($(TARGET_BUILD_APPS),)

I grabbed a little extra lines just in case. I grabbed lines 358-387

its soo odd, it compiled before but now its that stupid error?? granted it wasnt a working build, but at least it finished...
[Android Q&A, Help & Troubleshooting] wilfredcool007:
What are the erros.... If any error that shows Samsung STK bla bla thn u hav to make more changes to the directory .... :)

---------- Post added at 11:52 PM ---------- Previous post was at 11:44 PM ----------

afaik this isnt a problem with the products.mk file ... Link me to your device tree !!
[Android Q&A, Help & Troubleshooting] krille_java:
No Samsung STK,,, but a lot of these "^ ^ ^" under the errors in the SamsungExynos4RIL file. But i made a "make clobber" and it compiled but no luck,, still "unknown baseband" and error when i try to search mobile network.
[Android Q&A, Help & Troubleshooting] krille_java:
Btw thank you for all your help so far.:)
[Android Q&A, Help & Troubleshooting] ktempleton:
Just going to throw this out there but can you find a flash able zip of your radio and flash it to see if that works. That's what i so when something like that happens to me
[Android Q&A, Help & Troubleshooting] speed_bot:
nothing's wrong here.. what changes did u make to your tree?
[Android Q&A, Help & Troubleshooting] speed_bot:
yes you can extract only the radio and flash it (baseband)
[Android Q&A, Help & Troubleshooting] cbucz24:
I must have either had a left over bad file or missing something. I deleted some of the folders and resynced the repo. It's building again. Had some new errors im working through now. But its going in the right direction.

I think this is a key point, that files can be missing and unless you know whats missing you could never find it.

So if the manifest is set up correctly, you can always delete an start over. Lol
[Android Q&A, Help & Troubleshooting] wilfredcool007:
WTH... 249 erros :eek: :eek: :eek:

Looks like " SamsungExynos4RIL.java" is corrupted :p would find u an updated file asap.... :fingers-crossed:
[Android Q&A, Help & Troubleshooting] lordcheeto03:
I've already posted my problem in my device's forum and Chef Central and have received a pretty good bit of views, but no real help. It's not a build error exactly because I can get the device to boot, and almost every aspect of the build works. I assume this would be an acceptable thread to post this question in as I am building from source... An overview of my problem can be found here: http://xdaforums.com/showthread.php?t=2104978

I can provide more info if needed. If this question doesn't really belong in this thread, please let me know. I'll try somewhere else.

Also, one question that I know would be on topic: when building, I have to build libwebcore separately else I'll get a [segmentation fault] core dumped error. I've read that it means that I have insufficient system resources, but I'm using a quad core 1.6ghz cpu, 8GB of ram, and my build partition is 150GB formatted ext4. During the build, my used memory never goes beyond 3.5-4GB, although CPU 1-8 are all at 100%. Building libwebcore.so by itself, I can use "mka libwebcore," "make j8 libwebcore" etc and it builds with no problems. When including libwebcore in the build though, I can "make -jx otapackage" (where x=any number between 1 and 8) and I get the segmentation fault every single time; always on libwebcore.so.
[Android Q&A, Help & Troubleshooting] sevenup30:
i can't find this in /system/lib/modules :(
[Android Q&A, Help & Troubleshooting] wilfredcool007:
If i'm not wrong the "ar6000.ko" will be in system-->wifi--> :good:
[Android Q&A, Help & Troubleshooting] krille_java:
Success!!:victory: I now have mobile network up and running! I downloaded the "android_frameworks_base-cm-10.1" and replaced everything again and clobbered it and now it works! Thank you sir :highfive:
[Android Q&A, Help & Troubleshooting] wilfredcool007:
Good to hear... I told u to replace everythin if u get errors :D congrats btw :good:
[Android Q&A, Help & Troubleshooting] sevenup30:
Dont have wifi folder neither :p

for module i just have /system/lib/modules

and wifi /system/etc/wifi but nothing about ar6000.ko.

i found into sources:

find . | grep ar6000
./external/wpa_supplicant_6/wpa_supplicant/src/drivers/driver_ar6000.h
./external/wpa_supplicant_6/wpa_supplicant/src/drivers/driver_ar6000.c
./kernel/samsung/espresso10/drivers/staging/ath6kl/os/linux/ar6000_pm.c
./kernel/samsung/espresso10/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c
./kernel/samsung/espresso10/drivers/staging/ath6kl/os/linux/ar6000_drv.c
./kernel/samsung/espresso10/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
./kernel/samsung/espresso10/drivers/staging/ath6kl/include/ar6000_diag.h
./kernel/samsung/espresso10/drivers/staging/ath6kl/include/ar6000_api.h

seems that it's include into kernel and wpa_supplicant which i have as a lib. But already try to replace this one and no luck.
[Android Q&A, Help & Troubleshooting] cbucz24:
Oddly im having similar segmentation faults too and I seem to have plenty of ram, etc to build.

How do you build it separately and combine it afterwards?

Anyway one issue your having with the play store has to do with the model of phone your stating you have in your build. You may need to spoof as something else to get all the programs to work. If its thinking you have a different model or unknown model then it wont install...its a built in protection
[Android Q&A, Help & Troubleshooting] lordcheeto03:
I just "mka libwebcore" and once that's finished, mka bacon. It gets integrated.

My problem with the play store though, why would the same exact values work for my cm10 build? All I did with cm.mk was change the location of the vendor files and add the boot animation. My build.prop shows the same model, brand, device, build, etc.

EDIT: An AOSP and AOKP build for my device says ro.product.model=LG-IPROJ.. while other CM10 variants including CM10 that I built myself and the build I'm working on currently, all CM9 variants, and official ICS build reports: ro.product.model=LG-P930. Out of these, the current build is the only one that has any sort of problems with the play store.
[Android Q&A, Help & Troubleshooting] cbucz24:
So I upped my swap partition. Apparently when I originally set it up I only allotted 8gb.

I have 8gb ram and 1tb hard drive. So I upped it to 20gb since I read it should be 2x your ram. Haven't retried it yet. File I was having issues with is framework-res.

I know im getting closer, errors are finally changing. It would be nice to have a 4.2 build for my phone since nobody has it yet ;)
[Android Q&A, Help & Troubleshooting] speed_bot:
i dont use swap ... but still all the best
[Android Q&A, Help & Troubleshooting] lordcheeto03:
I found my problem and I'm almost embarrassed to admit what it was... my DPI was set differently than my phone's default. It was that simple. I spent all that time searching for and asking other people about a non-existent glitch in the code! I do appreciate the assistance though.
[Android Q&A, Help & Troubleshooting] speed_bot:
even i too had got pissed with the rom not booting as i messed the dpi.. .
[Android Q&A, Help & Troubleshooting] speed_bot:
ya change the name to match the aokp build and build.prop and your product makefile
[Android Q&A, Help & Troubleshooting] cbucz24:
Ehh it happens...I didn't even think of suggesting that as I didn't know it would effect playstore.

I was able to finish building mine...I had to comment out parts from the overlay. When I added them it killed the build. First time yet seeing the boot animation :)

But its erroring on audio libs...

Glad you got yours working, sorry we weren't any help. Lol
[Android Q&A, Help & Troubleshooting] lordcheeto03:
Hey, I appreciate it anyway!

I got it working now, all I had to do was change the DPI in build.prop to 320 instead of 241 and it worked perfect. I was able to find a multi-DPI play store though which removes any need to change the build.prop DPI.
[Android Q&A, Help & Troubleshooting] federivas:
Error compiling CM-10.1 for LG P350

Installed sources of CM-10.1, device_lge_p350, vendor_lge and kernel. When compiling CM-10.1, got this error:

target thumb C++: gralloc.msm7x27 <= hardware/qcom/display-legacy/libgralloc/gralloc.cpp

hardware/qcom/display-legacy/libcopybit/copybit.cpp: In function 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)':

hardware/qcom/display-legacy/libcopybit/copybit.cpp:430:25: error: 'GRALLOC_USAGE_PRIVATE_ADSP_HEAP' was not declared in this scope

make: *** [/home/fede/cm10.1/out/target/product/p350/obj/SHARED_LIBRARIES/copybit.msm7x27_intermediates/copybit.o] Error 1

Tried twice on diferent directories, no way...

Any help?

Thanks.
[Android Q&A, Help & Troubleshooting] cbucz24:
with a lot of devices there is not only the device and vendor repo, but you also need the common repo for your device and it looks like your missing yours.

your device also needs the msm7x27-common repo. make sure the repos you are using are from a fully working source. and grab the common and add it to your local_manifest.xml this should get you moving forward
[Android Q&A, Help & Troubleshooting] cbucz24:
my build is progressing and i figure i have to remove some references in the frameworks/base but i cant find where they are from..

W/Zygote (17188): Class not found for preloading: android.server.BluetoothA2dpService
W/Zygote (17188): Class not found for preloading: android.server.BluetoothEventLoop
W/Zygote (17188): Class not found for preloading: android.server.BluetoothServiceW/Zygote
(17188): Class not found for preloading: android.view.ViewRootImplResizedInfo
W/Zygote (17188): Class not found for preloading: android.view.Window$LocalWindowManager
W/Zygote (17188): Class not found for preloading: android.view.WindowManagerImpl$CompatModeWrapper
W/Zygote (17188): Class not found for preloading: java.util.concurrent.FutureTask$Sync
W/Zygote (17188): Class not found for preloading: java.util.concurrent.atomic.UnsafeAccess
W/Zygote (17188): Class not found for preloading: java.util.concurrent.locks.UnsafeAccess
W/Zygote (17188): Class not found for preloading: libcore.icu.ErrorCode
W/Zygote (17188): Class not found for preloading: java.text.DecimalFormat$1

http://pastebin.com/PfCGJjt1

heres the whole link...i know there are more errors, but i figured this may be a place to start..then work on removing one error at a time..

so, where in the frameworks/base does it try and add these??
[Android Q&A, Help & Troubleshooting] cbucz24:
ok...so I found their listing in the preloaded-classes file.

will it effect the end result if i remove their listing in this file? is it better to add these references in to the rom or remove them?
[Android Q&A, Help & Troubleshooting] speed_bot:
use the sources from androidarmv6 github
[Android Q&A, Help & Troubleshooting] djmatt604:
Hi there:

Just posted this and then saw your thread talking about how things get buried so quickly...sooo true. LOL

Link to my thread

Hope there's enough information there to describe my problem! Thx in advance for anyone who can suggest anything for me to check next...
[Android Q&A, Help & Troubleshooting] cbucz24:
Ok so now ive got to ask, how do I go about to fixing those lib errors?

Does it mean the vendor files im using are not set up right?

Like ive got conflicting source an its faulting?
[Android Q&A, Help & Troubleshooting] ktempleton:
im compieing aokp 4.2 and i get this anyone know how to fix it?

File "./device/samsung/galaxys2-common/releasetools/galaxys2_ota_from_target_files", line 118, in

main(sys.argv[1:])

File "/home/ken/android/4.2/aokp/build/tools/releasetools/ota_from_target_files", line 824, in main

WriteFullOTAPackage(input_zip, output_zip)

File "./device/samsung/galaxys2-common/releasetools/galaxys2_ota_from_target_files", line 66, in WriteFullOTAPackage

if OPTIONS.backuptool:

AttributeError: 'Options' object has no attribute 'backuptool'

make: * [/home/ken/android/4.2/aokp/out/target/product/d710/aokp_d710-ota-eng.ken.zip] Error 1

ken@ken:~/android/4.2/aokp$

The problem solution is to use the s2 common file from aokp because they don't use the backup tool sh and they fixed it on their repo
[Android Q&A, Help & Troubleshooting] cbucz24:
Well, just a thought but when I can't find something I'll do a search an compare it against another file.

In your device folder the file in question line 66 has an issue.

So Google the exact file name. Usually you can pull up another version of the file.

Compare it first against the repo one on github. Then try another one.

One will usually be different than yours. Change yours an see if the error goes away.
[Android Q&A, Help & Troubleshooting] jrongi1:
AOKP 4.2.1?

Anyone have any Ideas as to where I need to add the missing file to get the complation to start?

AOKP4.2 I expct to have build errors, but I am looking to at least get things started.

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

jason@jason-desktop:~/android/aokp$ . build/envsetup.sh && breakfast
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/aokp/vendorsetup.sh

You're building on Linux

Breakfast menu... pick a combo:
1. full-eng
2. aokp_d2att-userdebug
3. aokp_d2tmo-userdebug
4. aokp_d2usc-userdebug
5. aokp_d2vzw-userdebug
6. aokp_maguro-userdebug
7. aokp_mako-userdebug
8. aokp_manta-userdebug
9. aokp_toro-userdebug
10. aokp_grouper-userdebug
11. aokp_tilapia-userdebug
12. aokp_vibrantmtd-userdebug
... and don't forget the bacon!

Which would you like? [full-eng] 12
build/core/product_config.mk:211: *** No matches for product "aokp_vibrantmtd". Stop.

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

jason@jason-desktop:~/android/aokp$
[Android Q&A, Help & Troubleshooting] ktempleton:
OK I'm not at the house and there are a few files you need to add and create you can use this tut here

http://xdaforums.com/showthread.php?t=1863547

Just apply the changes to the vendor/aokp/products/android.mk

Vendor/aokp/products. Them create an mk file for your phone add the changes to the vendor setup.sh the tut is for pa but it will give you an idea of what you need to do:cool:
[Android Q&A, Help & Troubleshooting] jrongi1:
Did all that Yet there is still some thing missing. except aokp doesn't have vendor.proporties there?

I actully used that TUT.

It is somewhere in the the change from 4.1 to 4.2

thanks
[Android Q&A, Help & Troubleshooting] ktempleton:
I'll be home in a while I'll help you figure it out then
[Android Q&A, Help & Troubleshooting] djmatt604:
Another super quick one. The 'retouch_binaries' command in updater scripts.

I've noticed in an ICS build i did that this command was dropped into the script. However, a jellybean build did not have this. What dictates when this appears in a script? Further, what would be the impact of removing it from a script if the compiler placed it there, just out of curiosity?

Been doing some googling and not finding tons of stuff so far...Thx for your perspectives!

Sent from my Infamous Tab.
[Android Q&A, Help & Troubleshooting] cbucz24:
Did you ever figure it out? Let us know if your still having issues an we'll see what we can do
[Android Q&A, Help & Troubleshooting] jrongi1:
No luck yet.

thanks

PA_Vibrant 360° Productions
[Android Q&A, Help & Troubleshooting] cbucz24:
Ehh its aight, have you gotten past the initial build command yet?

Its going to be a matter of adding your phone in to the right places and making sure you have created the .mk files to match.
[Android Q&A, Help & Troubleshooting] jrongi1:
any chance you have a list of the right places?

I have looked and added to all the places know of.

Thanks to All who help us try to get our brains wraped around this stuff.

Jason
[Android Q&A, Help & Troubleshooting] joshdsy:
building cm9 for the i9003

Hello

Could some one help me out with this error

http://pastebin.com/FG95nidT

I am using this guide

http://xdaforums.com/showthread.php?t=1788694
[Android Q&A, Help & Troubleshooting] cbucz24:
ok, looking at the output you had here you did add your phone to the aokp/vendorsetup.sh

now, you also need to edit in the aokp/products/AndroidProducts.mk and add your phone there as well.

then create aokp/products/vibrantmtd.mk

this should be enough to get it moving forward:eek:
[Android Q&A, Help & Troubleshooting] speed_bot:
nothing to worry
[Android Q&A, Help & Troubleshooting] jrongi1:
I have both of those already.

Anywhere else?

If you need I can post the contents of each file.

PA_Vibrant 360° Productions
[Android Q&A, Help & Troubleshooting] speed_bot:
ok is vendorsetup.sh thr in your device tree ..and post the text in vendor products aokp androidproducts.mk

...
[Android Q&A, Help & Troubleshooting] cbucz24:
So, since im sure this has happened to many individuals i figured I would ask this and see if we can get it figured out...

first part was from a post i had and ive seen that more than any on roms that ive played with..

W/Zygote (17188): Class not found for preloading: android.server.BluetoothA2dpService
W/Zygote (17188): Class not found for preloading: android.server.BluetoothEventLoop
W/Zygote (17188): Class not found for preloading: android.server.BluetoothService

when you have these errors....what is the best way to actually fix them? remove their references? or where does the file/folder/etc go and how do we correctly access it if we have to pull it from another repo?

In a log i had posted, speed_bot referenced that my issue was with libandroid_servers.so

my question is one of many,,,lol

How does one fix an error with libandroid_servers.so? .so files are driver files right? and these cannot be edited, so their being accessed wrong? wrong permissions? etc

So, if we can figure out how to fix these..then the next error questions are with say the surface flinger or sensor service...ive seen these also pop up a lot and I was wondering the same...
[Android Q&A, Help & Troubleshooting] djmatt604:
Those all sound like critical concerns. Are you certain you have the right device tree(s) in place? Have you extracted proprietary files from the device prior to building? I would recommend fully retracing your steps.

Sent from my Infamous Tab.
[Android Q&A, Help & Troubleshooting] jrongi1:
It was there but I think I just need to run lunch combo then full_vibrantmtd

but it is starting now Thanks

now when I have Time again I can delve into the errors.

thanks Again and I plan to need to pick your brains again I the future.
[Android Q&A, Help & Troubleshooting] speed_bot:
first of all tell me your device and android version which oem gave you and the rom which you are building.. i will type out a parah to explain stuff.
[Android Q&A, Help & Troubleshooting] cbucz24:
Lol....

Currently im attempting to build on a note2 sph-l900. Rom is baked 7 which is a 4.2 hybrid off cm10.1 and aokp...

https://github.com/sbrissen

Here is the source im using. In the device git there's a proprietary-files.sh but it makes a new vendor file thats incorrect. Ive attempted changing the reference to the correct device but it didn't work...

There is also a vendor proprietary git for my device as well...

Like ive stated, when I tried pulling my specific files it created a completely new device n7100 which is a dif version of note2. Im a bit lost as to where to go from here. Ive built it successfully now 6 different ways and it won't boot so I'm obviously missing a step or two.
[Android Q&A, Help & Troubleshooting] :
cyanmobile

When i try to build cyanmobile from source i get this error

. build/envsetup.sh

brunch tass

ERROR: could not set PID 3329 to nice 1 - Permission denied

ERROR: could not set PID 3329 to nice 1 - Permission denied

ERROR: could not set PID 3329 to nice 1 - Permission denied

ERROR: could not set PID 3329 to nice 1 - Permission denied

ERROR: could not set PID 3329 to nice 1 - Permission denied

when i try as root it works normal

here is http://pastebin.com/hJiwF7zR

if someone can find what line is trying to change PID
[Android Q&A, Help & Troubleshooting] muk12:
I m having trouble on building the ROM on mac too, Were you able to build any ROM sucessfully?

error

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

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Waiting for unfinished jobs..
[Android Q&A, Help & Troubleshooting] speed_bot:
is this running exynos?
[Android Q&A, Help & Troubleshooting] speed_bot:
more log please
[Android Q&A, Help & Troubleshooting] muk12:
Fixed

cp /Volumes/Android/CM/external/elfutils/libelf/elf.h /usr/local/include

My build is ready to flash

Running releasetool...
MODVERSION: 10.1-20130130-UNOFFICIAL-i9300

Package complete: /Volumes/Android/CM/out/target/product/i9300/cm-10.1-20130130-UNOFFICIAL-i9300.zip
md5: MD5
[Android Q&A, Help & Troubleshooting] speed_bot:
then whats the problem now?