yashsingh1/xdaforums huggingface dataset:
[Android] Kayant:
At the end of the repo init command change -b cm-10.1 to -b jellybean

Let's Go ^_^
[Android] GhostIsBaked:
Running into this when trying to compile, any help?

PRODUCT_COPY_FILES device/samsung/d2-common/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/idc/qwerty.idc:system/usr/idc/qwerty.idc ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/idc/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
No private recovery resources for TARGET_DEVICE d2tmo
No recovery.fstab for TARGET_DEVICE d2tmo
make: *** No rule to make target `out/target/common/obj/PACKAGING/public_api.txt', needed by `out/target/common/obj/PACKAGING/checkapi-last-timestamp'. Stop.
[Android] dastin1015:
Key thing is missing recovery.fstab
[Android] GhostIsBaked:
Isn't it supposed to be included with the device tree android_device_Samsung_d2tmo? Any idea why the other things are being ignored?
[Android] dastin1015:
Being overridden by specific device tree
[Android] TeckDude:
Fixed needed to update to latest Ubuntu 12.04
[Android] THEindian:
sudo apt-get install -f (or it might be -F) will grab the dependencies
[Android] TeckDude:
i have another question,

is the tutorial section (6.1) Another way to add the device without plugging it in? Cant figure out how to set up ADB
[Android] Lordomn:
to get adb & fastboot-

sudo apt-get install android-tools-adb android-tools-fastboot

"We are the fire that will consume them, belly and bowel, head and heart, many flames of us, but one fire."
[Android] skywalker1162:
Hello

I have been trying to sync my repo for compiling aokp from source but after some time the syncing hangs. Can anyone tell me how to solve this problem or if there is no solution I have a follow up question, for restarting the repo do I need to set the executable file in the correct directory or do I just do it the normal way ? Any help will be greatly appreciated .

Sent from my HTC One X
[Android] Kayant:
Try this $ sudo sysctl -w net.ipv4.tcp_window_scaling=0

then repo sync again

And for restarting the repo what do you mean??

Repo sync is used to download the latest changes from source is that what you mean?
[Android] TeckDude:
got ADB, Now getting this error

Pulling device specific files...
489 KB/s (46924 bytes in 0.093s)
1092 KB/s (80156 bytes in 0.071s)
67 KB/s (5372 bytes in 0.077s)
130 KB/s (10396 bytes in 0.077s)
remote object '/system/bin/ppd_runner' does not exist
123 KB/s (9872 bytes in 0.077s)
42 KB/s (3368 bytes in 0.077s)
1662 KB/s (223425 bytes in 0.131s)
174 KB/s (13684 bytes in 0.076s)
249 KB/s (21884 bytes in 0.085s)
662 KB/s (38204 bytes in 0.056s)
514 KB/s (49492 bytes in 0.093s)
1201 KB/s (162152 bytes in 0.131s)
1787 KB/s (386828 bytes in 0.211s)
173 KB/s (13768 bytes in 0.077s)
927 KB/s (61886 bytes in 0.065s)
3113 KB/s (2065736 bytes in 0.647s)
426 KB/s (40956 bytes in 0.093s)
./extract-files.sh: 110: ./extract-files.sh: ./../../../device/samsung/galaxys2-common/extract-files.sh: not found
[Android] Kayant:
For the first error like it says place your local_manifest.XML file in the local_manifests folder if its not present create the folder.... to see the .repo folder use Ctrl + h...

The second could mean to two things either the squisher command `bacon` is not supported in PA or its a different name...

Edit - its supported but as your device tree is not present I think that why you're getting the error

Let's Go ^_^
[Android] Chromium:
i already had my local_manifest.xml in the local_manifests folder, and im still getting the error about that.

How can i fix the second error that is stopping it from compiling?
[Android] Kayant:
Are you using the build script to compile it that's probably why the error is there..... it should be something like this instead of using lunch .build/envsetup.sh etc.

./rom-build.sh bravo true

Remove j and the brackets and replace it with double the number of CPU cores your computer has....

Also have you make a make file in vendor pa for your device?? If not then make one or it wouldn't be able to find your device.

Let's Go ^_^
[Android] Chromium:
i already use this command: ./rom-build.sh bravo to build and its giving me the error.

also i have added the device to the vendorsetup.sh file in vendor/pa

still getting the error :mad:
[Android] Kayant:
Did you also add your device here?? ---> https://github.com/ParanoidAndroid/...009ecc7984f712254/products/AndroidProducts.mk

That's probably why it's not finding your mk file for pa
[Android] Chromium:
Yes my device has been added there aswell.
[Android] Kayant:
Sorry I don't see it early but I think the problem is due to something about GPS from the error you posted..... so in your device tree look for your device.mk file and see if there is any lines relating to the folder from the error you posted.... the device common GPS one

Let's Go ^_^
[Android] Black_Prince:
First of all mate are you root , if yes then did you made modification in build directory , if no then pm me you complete error I will give you dirty but working solution ... :D
[Android] Chromium:
ok ive gotten past that error and its building for a bit longer now but its stopping at this error:

device/htc/bravo/camera/QcomCamera.cpp:26:26: fatal error: gralloc_priv.h: No such file or directory
compilation terminated.
make: *** [/home/priyesh/android/system/out/target/product/bravo/obj/SHARED_LIBRARIES/camera.qsd8k_intermediates/QcomCamera.o] Error 1
make: *** Waiting for unfinished jobs....

Total time elapsed: 15 minutes (902.290245518 seconds)
priyesh@priyesh-VirtualBox:~/android/system$

any help would be great
[Android] cj360:
device/htc/bravo/camera/QcomCamera.cpp:26:26: fatal error: gralloc_priv.h

Check to see if gralloc_priv.h is some where else or if a file in your device folder is looking for it in the wrong spot & compare it to the github repo you pulled it from.
[Android] Chromium:
ok i found the gralloc_priv.h in a different directory. Should i just copy it into device/htc/bravo/camera/?
[Android] dastin1015:
No. You have a legacy device, therefore you need to be calling in legacy display repos which PA doesn't have. Evervolv does use it. Also PA already has support for the Bravo

私のEVO 4G LTEから送信される。
[Android] Chromium:
so what do i do?

All of the device specific files for the bravo were automatically added when did repo sync(ive added seperatly aswell evervolv kernel and vendor)

Btw im now getting this error:

device/htc/bravo/power/power.c: In function 'qsd8k_power_hint':
device/htc/bravo/power/power.c:186:10: error: 'POWER_HINT_CPU_BOOST' undeclared (first use in this function)
device/htc/bravo/power/power.c:186:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/home/priyesh/android/system/out/target/product/bravo/obj/SHARED_LIBRARIES/power.qsd8k_intermediates/power.o] Error 1
make: *** Waiting for unfinished jobs....

Total time elapsed: 15 minutes (915.518714668 seconds)
priyesh@priyesh-VirtualBox:~/android/system$

Thanks again
[Android] dastin1015:
You only need what PA called in. Nothing else
[Android] Chromium:
but when i did it without the evervolv stuff (only using PA repo) i was getting errors about kernel.

do you know how i can fix this error?:

device/htc/bravo/power/power.c: In function 'qsd8k_power_hint':
device/htc/bravo/power/power.c:186:10: error: 'POWER_HINT_CPU_BOOST' undeclared (first use in this function)
device/htc/bravo/power/power.c:186:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/home/priyesh/android/system/out/target/product/bravo/obj/SHARED_LIBRARIES/power.qsd8k_intermediates/power.o] Error 1
make: *** Waiting for unfinished jobs....

Total time elapsed: 15 minutes (942.600848994 seconds)
priyesh@priyesh-VirtualBox:~/android/system$
[Android] ridobe:
So, I've been able to sync properly and I get a proper zip file created. However, I can't get past the Google logo. Blank screen. I can't get a logcat since it never really boots. It sure seems like it is the kernel but I have a proper boot image in the out folder.

The embarrassing part is I'm compiling aosp for the mako, so I don't have to jump through all of the extractions, etc hoops that many of you are dealing with.

Now for my questions. I have all four of the img files in the out folder as well as the zip. First, is the boot.img properly created or do I need a zimage as well? Is the boot image incomplete? Second, do I need the recovery.img? Will this override the custom recovery?

I really appreciate this thread and any help I may receive.
[Android] dastin1015:
You are missing the proprietary binaries.

Download them to the root of your source tree, extract the sh files from the tgz file, then execute the file.

Example for the Qualcomm binaries: Download, extract and execute with:

$ ./extract-qcom-mako.sh

Grab them here: https://developers.google.com/android/nexus/drivers
[Android] GhostIsBaked:
Could it be the qcom-common tree?
[Android] deathblade:
hey i was just starting to try to repo sync but before i got to i got this error while trying to repo init any clue on how to fix this?:

Traceback (most recent call last):

File "/home/xeres/.repo/repo/main.py", line 40, in <module>

from subcmds.version import Version

File "/home/xeres/.repo/repo/subcmds/__init__.py", line 36, in <module>

['%s' % name])

File "/home/xeres/.repo/repo/subcmds/status.py", line 29, in <module>

from color import Coloring

ImportError: No module named color
[Android] SMillerNL:
That seems like missing installed packages to me
[Android] deathblade:
It stated coming up after I updated git to 1.8.2 which I've done before without the errors.. Any clue on what might be able to be done?
[Android] ktempleton:
Did you try cd .repo/repo and then git pull
[Android] deathblade:
ok ill try that today and report back thanks :)
[Android] deathblade:
Just tried git pull got a this is not a git repository
[Android] ktempleton:
Hold on let me look

---------- Post added at 12:53 PM ---------- Previous post was at 12:51 PM ----------

Did you cd into .repo/repo from your root dir of your source
[Android] deathblade:
No can do, I'm trying to get the init command working so I can get the source files.., I think if I could just get back to git version 1.7.2 i should be good
[Android] evol4g:
http://paste.ubuntu.com/5651646/

this is a really weird error that i've been stuck on for a minute any help would be greatly appreciated
[Android] SMillerNL:
Did you run extract-files.sh?
[Android] evol4g:
no i just used the proprietary files that i use in all my other roms
[Android] SMillerNL:
Try extracting that file too
[Android] evol4g:
K will try
[Android] untz1456:
i got this error can someone help me

target SharedLib: libwebcore (/home/edgar1456/android/system/out/target/product/d710/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)

collect2: ld terminated with signal 9 [Killed]

make: *** [/home/edgar1456/android/system/out/target/product/d710/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1
[Android] SMillerNL:
Are you using some sort of process cleaner?
[Android] untz1456:
no why
[Android] mattboy9921:
I followed all the steps for adding a new device exactly up until the lunch command. When I run it, the D710 isnt an option. Is there something I missed??
[Android] evol4g:
Vendor/romname/products/androidproducts.mk make sure your device is listed there..

Also device/brand/codename/vendorsetup.sh needs to match the ROM and device
[Android] mattboy9921:
In vendor, theres only one folder called samsung...

And I'm using the E4GT, so in device/samsung/d710, there is no vendorsetup.sh
[Android] evol4g:
What ROM?

Go to a device tree that has been included in the source and grab the vendorsetup.sh and edit it for your device
[Android] mattboy9921:
I assume its just AOSP...I just followed the steps and downloaded the stuff it told me to.

I coppied the vendorsetup.sh file into the d710 folder and ran the lunch command and it gave me this:

Which would you like? [full-eng] 12

build/core/product_config.mk:228: *** _nic.PRODUCTS.[[device/samsung/d710/full_d710.mk]]: "hardware/samsung/exynos4210.mk" does not exist. Stop.

** Don't have a product spec for: 'full_d710'

** Do you have the right repo manifest?
[Android] Kayant:
The folder hardware/samsung/ is missing..... am not sure what source you should use am not familiar with samsung devices by probably cm's one am guessing.

You need to either add it to your manifest and repo sync or download the source and extract the contents to hardware/samsung
[Android] ktempleton:
Since it's aosp you would be better of using Evervolv they have all of the stuff you need and they are aosp also means less errors
[Android] mattboy9921:
Where would I find that samsung folder to download?

There's a samsung_slsi folder in the hardware folder if that helps...
[Android] ktempleton:
On github look up Evervolv
[Android] mattboy9921:
Alright I've downloaded the folder and put it into hardware and it seems to be working...
[Android] ktempleton:
You might want to use evervolvs d710 galaxys2 common device trees the kernel and vendor files something to keep in mind if you run into a lot of errors

And don't forget to v get the SamsungServiceMode that goes in packages/apps
[Android] dastin1015:
Just need to remove all the evervolv defines and proper credit
[Android] mattboy9921:
I ran make -j4 and it says I need sun/oracle java, not openjdk..
[Android] dastin1015:
Read the entire OP
[Android] mattboy9921:
Ok, I fixed java and ran make -j4 again and got this:

Checking build tools versions...

bionic/libc/Android.mk:426: TARGET_CPU_VARIANT is not defined

bionic/libc/arch-arm/arm.mk:33: *** "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a9, cortex-a15, krait. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.". Stop.
[Android] evol4g:
I'm guessing you didn't pull the kernel either
[Android] untz1456:
can any one help me with this ?

using device-specific extensions in device/samsung/common
unable to load device-specific module; assuming none
Traceback (most recent call last):
File "./device/samsung/galaxys2-common/releasetools/galaxys2_ota_from_target_files", line 118, in <module>
main(sys.argv[1:])
File "/home/edgar1456/android/system/build/tools/releasetools/ota_from_target_files", line 807, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./device/samsung/galaxys2-common/releasetools/galaxys2_ota_from_target_files", line 64, in WriteFullOTAPackage
AppendAssertions(script, input_zip)
File "/home/edgar1456/android/system/build/tools/releasetools/ota_from_target_files", line 312, in AppendAssertions
device = GetBuildProp("ro.product.device", info_dict)
File "/home/edgar1456/android/system/build/tools/releasetools/ota_from_target_files", line 471, in GetBuildProp
return info_dict.get("build.prop", {})[prop]
AttributeError: ZipFile instance has no attribute 'get'
make: *** [/home/edgar1456/android/system/out/target/product/d710/pa_d710-ota-eng.edgar1456.zip] Error 1
[Android] mattboy9921:
How would I do that?
[Android] Adreaver:
Quoting you because I'm having a similar issue. Attached are screenshots of my /vendor/cm/ folder, and my /device/ folder.

I think I nested the folders incorrectly, because I have ~/WORKING_DIRECTORY/d710/ , but even that folder doesn't have the vendorsetup.sh

I'm just gonna follow the guide from the beginning again, it should skip (or go super fast for things like repo sync) what's already done correct?
[Android] ktempleton:
One thing I don't see is device/samsung then you put your d710 folder under the Samsung directory also just find a different device either DL it from cm or find one that was DL with your source copy the vendorsetup.sh from that into your d710 folder open the file and edit it to say d710
[Android] Adreaver:
so i do this

~ cd WORKING_DIRECTORY/device
mkdir samsung

then cut & paste /d710/ from /WORKING_DIRECTORY/ to /WORKING_DIRECTORY/device/samsung/

Then copy the vendorsetup.sh from say /device/ti/panda/ to /device/samsung/d710/ , and just edit it there?

Shouldn't it have made it's own when I cloned dastin's device trees? Edit2: It would have, if I had followed the instructions properly. I skipped the above code in the initial setup.

EDIT: I just discovered I misspelled one of the libs way in the beginning. So it never got added. Running through the entire thing again, if it isn't working after that I'll edit my edit.

EDIT3: after copying/modifying the panda vendorsetup.sh to d710, it shows in $lunch as expected. But now I get this

Which would you like? [full-eng] 9
build/core/product_config.mk:234: *** Cannot locate config makefile for product "d710". Stop.
Device d710 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for d710 not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:234: *** Cannot locate config makefile for product "d710". Stop.

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

which I think means it isn't finding the manifest? So it can't figure out what to include for device trees?

I'm incredibly confused now >.<
[Android] ktempleton:
You can do it that way I use the desktop for all that do it like I'm working in a windows enviorment for creating files and folder manipulating the source etc but you've got the idea

When you cloned the trees it copied them to whatever directory you were in ie if you were in working directory which I would have named cm10.1 when you typed in git clone <URL here> then that's where it would have put the device tree. Once you set up your local manifest xml you specify the path in that as to where you want the folder to go
[Android] Adreaver:
So I got it to build, but despite using

make -j5 otapackage

i get tiered folder output, not a flashable zip.

Am I doing something wrong?

Alternately, is there an easy way to pack it into a zip after the fact?

Edit: I must have done something wrong, because despite the lack of errors and the fact that the build appears to complete, all the folders in /out/product/d710/root are empty. My brain is melting.
[Android] ktempleton:
make bacon -j4
[Android] Adreaver:
make: *** No rule to make target `/home/user/cm10.1/out/host/linux-x86/bin/dx', needed by `/home/user/cm10.1/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes-with-local.dex'. Stop.

To my understanding, this means im missing a dependency, or it isnt in the right directory, or something in the dependency is misspelled, causing the makefile to throw the error.

But this raises additional questions:

first, how can anything have something in /out/ as a dependency, if /out/ is the directory where it is building to?

second, how can I be missing a dependency when I haven't modified the source at all? I could see this error had I specified an additional dependency, but I haven't.
[Android] sjoerd0301:
Maybe you can trie to change the LOGW, LOGD, LOGE and LOGV to ALOGW, ALOGD, ALOGE and ALOGV.. i had it too, i had to change them, i don't know if the alog.. Is right or wrong, but the functions are undeclared, so you have to use another, or create them yourself..

Good luck.

Edit:

According to https://github.com/CyanogenMod/android_system_core/blob/cm-10.1/include/cutils/log.h

Alog.. Is correct. Edit the files using the wrong functions to use the correct ones..
[Android] DeathArrow:
Thanks, I fixed that. Now I'm stuck at this:
[Android] sjoerd0301:
Can you copy your framebuffer.cpp to pastebin?

I never had this error..
[Android] DeathArrow:
Here is framebuffer.cpp: http://pastebin.com/kh47cvy0

I don't know if this is relevant but before that I changed cm10/device/lge/e400/libcamera with another libcamera because the old one was not compiling. The old libcamera folder had gralloc_priv.h header and new one doesn't.

edit:

Must be related to device/lge/e400/libcamera somehow. After make clean:

If I use old libcamera folder from CM9 I get:

If I remove that folder I get:

And that's weird because e400 has HI351 camera sensor not hi542.
[Android] sjoerd0301:
Including that can't hurt.

you can also try to comment the

#ifndef NO_HW_VSYNC
struct msmfb_metadata metadata;

metadata.op = metadata_op_base_blend;
metadata.flags = 0;
metadata.data.blend_cfg.is_premultiplied = 1;
if(ioctl(fd, MSMFB_METADATA_SET, &metadata) == -1) {
ALOGW("MSMFB_METADATA_SET failed to configure alpha mode");
}
#endif

from line 281 to 290 like so

/* #ifndef NO_HW_VSYNC
struct msmfb_metadata metadata;

metadata.op = metadata_op_base_blend;
metadata.flags = 0;
metadata.data.blend_cfg.is_premultiplied = 1;
if(ioctl(fd, MSMFB_METADATA_SET, &metadata) == -1) {
ALOGW("MSMFB_METADATA_SET failed to configure alpha mode");
}
#endif */

try to include the gralloc_priv.h header first to see if that works,

if NOT, try the hard way and comment the code-section as shown above.
[Android] TeckDude:
get this error when i do this command: ./extract-files.sh (My phone model is SPH-D710)(Epic 4g touch)
[Android] Black_Prince:
Just enable USB debugging from development option in you device ...

And look for pop up for always to this computer option ...

And make sure you have cm installed for extracting proprietary files ...
[Android] TeckDude:
I did. Its not an adb issue that works fine.
[Android] ktempleton:
Did you set the root access to apps and adb