yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] x10forevers:
you need to add three lines at (your working directory)/vendor/pac/products/AndroidProducts.mk

put your device name instead of ****

put this three lines at the end of the that files....

ifeq (pac_****,$(TARGET_PRODUCT))
PRODUCT_MAKEFILES += $(LOCAL_DIR)/pac_****.mk
endif

and let me know...

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

Setup your device for the PAC-man for non-supported device

Follow this directions

1. Set up device dependency files for your device i will put **** for the name of your device and u need to edit it for yourself

go to vendor/pac/dependencies

make new documents and give it a name

****.dependencies

and open one of the dependency file present in that folder and copy everything which is in there to match your device dependency

2. than go to the vendor/pac/products

open AndroidProducts.mk and add following lines at the end of the file

ifeq (pac_****,$(TARGET_PRODUCT))
PRODUCT_MAKEFILES += $(LOCAL_DIR)/pac_****.mk
endif

>>> at vendor/pac/products

create a document name it as

pac_****.mk

and put following in that file

# Check for target product
ifeq (pac_[COLOR="Blue"]****,[/COLOR]$(TARGET_PRODUCT))

# OVERLAY_TARGET adds overlay asset source
OVERLAY_TARGET := [COLOR="Red"]pa_hdpi (set according to your device : hdpi or xhdpi or mdpi)[/COLOR]

# AOKP device overlay
PRODUCT_PACKAGE_OVERLAYS += [COLOR="Green"]vendor/pac/overlay/aokp/device/****[/COLOR]

# PAC device overlay
$(shell cp -f vendor/pac/overlay/pac/[COLOR="Blue"](manufacturer : sony/samsung)[/COLOR]/hdpi/frameworks/base/core/res/assets/images/android-logo-mask.png frameworks/base/core/res/assets/images/android-logo-mask.png)

# PAC boot logo
PRODUCT_COPY_FILES += \
vendor/pac/prebuilt/common/bootlogo/[COLOR="blue"](manufacturer)-p[/COLOR]ac_480x854[COLOR="green"](your device resolutioin)[/COLOR].rle:root/logo.rle

# include ParanoidAndroid common configuration
include vendor/pac/config/pac_common.mk

# Inherit CM device configuration
$(call inherit-product, device/[COLOR="blue"](manufactur)/****[/COLOR]/cm.mk)

PRODUCT_NAME := pac_[COLOR="blue"]****[/COLOR]

endif

Wherever i put green color make sure that directory is present to that location otherwise it will give you error

After set-up you need to build through following command

cd (your working_directory)
build-pac.sh [COLOR="Blue"](your-device-name)[/COLOR] --true

you need to change whatever is in color
[Android Q&A, Help & Troubleshooting] InfinityFTW:
Thanks a lot for that! I followed all your steps, and I run the build script, and these are the errors:

Building P A C v18.0.0

Looking for PAC product dependencies
Check for PAC-man/android_device_htc_pyramid in local_manifest
PAC-man/android_device_htc_pyramid already in local_manifest
Check for PAC-man/android_device_htc_msm8660-common in local_manifest
PAC-man/android_device_htc_msm8660-common already in local_manifest
Check for PAC-man/android_device_htc_msm8660-common in local_manifest
PAC-man/android_device_htc_msm8660-common already in local_manifest
Check for PAC-man/android_vendor_htc_pyramid in local_manifest
PAC-man/android_vendor_htc_pyramid already in local_manifest

Downloading prebuilts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 142 100 142 0 0 179 0 --:--:-- --:--:-- --:--:-- 273
100 320k 100 320k 0 0 253k 0 0:00:01 0:00:01 --:--:-- 253k
Archive: ./proprietary/Term.apk
inflating: ./proprietary/lib/armeabi/libjackpal-androidterm4.so

Setting up environment
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pac/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash

Lunching device
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:199: *** vendor/pac/products/pac_pyramid.mk: malformed COPY_FILE "vendor/pa/prebuilt/pa_hdpi". Stop.
Device pyramid not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_htc_pyramid
CyanogenMod/android_device_htc_pyramid already exists
Syncing repository to retrieve project.
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:199: *** vendor/pac/products/pac_pyramid.mk: malformed COPY_FILE "vendor/pa/prebuilt/pa_hdpi". Stop.

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

Starting compilation
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:199: *** vendor/pac/products/pac_pyramid.mk: malformed COPY_FILE "vendor/pa/prebuilt/pa_hdpi". Stop.
Device pyramid not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_htc_pyramid
CyanogenMod/android_device_htc_pyramid already exists
Syncing repository to retrieve project.
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:199: *** vendor/pac/products/pac_pyramid.mk: malformed COPY_FILE "vendor/pa/prebuilt/pa_hdpi". Stop.

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

No such item in brunch menu. Try 'breakfast'

Total time elapsed: 0 minutes (47.468614233 seconds)
[Android Q&A, Help & Troubleshooting] x10forevers:
Check step 2 that's the problem your build is saying
[Android Q&A, Help & Troubleshooting] InfinityFTW:
In my AndroidProducts.mk I have added:

ifeq (pac_pyramid,$(TARGET_PRODUCT))
PRODUCT_MAKEFILES += $(LOCAL_DIR)/pac_pyramid.mk
endif

Is it wrong?
[Android Q&A, Help & Troubleshooting] x10forevers:
U need to put it under the location I have mention
[Android Q&A, Help & Troubleshooting] InfinityFTW:
Where is that?

I have mine in /vendor/pac/products.

Where should I put it then?
[Android Q&A, Help & Troubleshooting] szl.kiev:
2 mistakes you made in 2 files,

1. In your pyramid.dependencies

2. In your androidproduct.mk

Try to figure it out by yourself first
[Android Q&A, Help & Troubleshooting] InfinityFTW:
I found the error in pyramid.dependencies.

[
{
"account": "PAC-man",
"repository": "android_device_htc_pyramid",
"target_path": "device/htc/pyramid",
"revision": "jellybean"
},
{
"account": "PAC-man",
"repository": "android_device_htc_msm8660-common",
"target_path": "device/htc/msm8660-common",
"revision": "jellybean"
},
{
"account": "PAC-man",
"repository": "android_device_htc_msm8660-common",
"target_path": "device/htc/msm8660-common",
"revision": "jellybean"
},
{
"account": "PAC-man",
"repository": "android_vendor_htc_pyramid",
"target_path": "vendor/htc/pyramid",
"revision": "jellybean"
}
]

Segment 2 and 3 are the same, I am no sure what to put in segment 3.

Here is the anzu.dependencies:

[
{
"account": "n1kolaa",
"repository": "android_device_semc_anzu",
"target_path": "device/semc/anzu",
"revision": "jellybean"
},
{
"account": "PAC-man",
"repository": "android_device_semc_mogami-common",
"target_path": "device/semc/mogami-common",
"revision": "jellybean"
},
{
"account": "PAC-man",
"repository": "android_device_semc_msm7x30-common",
"target_path": "device/semc/msm7x30-common",
"revision": "jellybean"
},
{
"account": "PAC-man",
"repository": "semc-kernel-msm7x30",
"target_path": "kernel/semc/msm7x30",
"revision": "jellybean"
},
{
"account": "TheMuppets",
"repository": "proprietary_vendor_semc",
"target_path": "vendor/semc",
"revision": "jellybean"
}
]

What I think is the culprit is the account, because all of those files are not in the PAC-Man repo. I'll tinker around and see what I can find
[Android Q&A, Help & Troubleshooting] x10forevers:
You need to change the account according to the source you are using from github

for example if you are using android_device_htc_pyramid from Cyanogenmod source on github than you need to write cyanogenmod in account value

for example
{
"account": "Cyanogenmod",
"repository": "android_device_htc_pyramid",
"target_path": "device/htc/pyramid",
"revision": "jellybean"
}

and if you don't have any common dependency for your device than just erase that segment and if you have more dependency you need to add segments according to it....

Got it ???
[Android Q&A, Help & Troubleshooting] cbucz24:
Hey infinity, still plugging away at it huh....

I decided to give it a try a well with you and I didn't get very far myself...had an oddity??

From terminal, under the directory I wanted this in...I started the repo init...took a while, I did some yard work. Came back and it was finished.

Now, I've tried compiling from source a few times and this hasn't happened yet....

It threw all the files and folders on my root?? The folder that I was still in was completely empty?

Did I somehow direct that in that manner? I compared what I entered vs say other options for building from sources and it seemed the same?? Or what should I have typed?

If I did it, oh well...but here's the question, can I enter a command and it relocate all files? Or do I have to manually delete all of them and start the init all over?

Edited: I checked my bash log and I ran the command correctly, but something else had gone wrong. I deleted all instances and reinitialized the repo using the same command. It worked fine. ??
[Android Q&A, Help & Troubleshooting] dohclude:
http://xdaforums.com/showthread.php?t=2037559
[Android Q&A, Help & Troubleshooting] InfinityFTW:
DragunKorr!!!!!! Why?!?!!?!??!!!

Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] DragunKorr:
Oops didn't know sorry! Need help let me know!

Don't just give up!
[Android Q&A, Help & Troubleshooting] InfinityFTW:
It's okay man ! I will be leaving the senny for a note II in less than a week, but I still have a tablet to build for :)

EDIT: The Galaxy Tab 2 7.0 have an official cm10. Will that make the build proccess easier?

Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] DragunKorr:
Nice need any pointers let me know I am truly sorry didn't know about your thread here!:(
[Android Q&A, Help & Troubleshooting] InfinityFTW:
It's totally okay, man! One thing that is for sure: I've learned a lot! :)

Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] DragunKorr:
Yes and keep going!
[Android Q&A, Help & Troubleshooting] InfinityFTW:
One quick question before I start: Did you do about everything described in this thread, or did you just init, sync and build?

Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] DragunKorr:
Honestly I never saw this thread until today

---------- Post added at 08:02 PM ---------- Previous post was at 08:02 PM ----------

I build pa remember

So no I did nothing from this thread
[Android Q&A, Help & Troubleshooting] InfinityFTW:
Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] cbucz24:
So you still going to keep building?
[Android Q&A, Help & Troubleshooting] InfinityFTW:
For a different device, who has official cm10

Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] speed_bot:
cyanogenmod forum has intructions for how to build on official devices its same init sync compile
[Android Q&A, Help & Troubleshooting] cbucz24:
so....it took a bunch of trying, but its compiling :fingers-crossed:

i did have an initial error that it seemed to get past this last time..

*** vendor/pac/products/pac_supersonic.mk: malformed COPY_FILE "vendor/pa/prebuilt/pa_hdpi". Stop.

is this from the pa overlay? when I had assigned hdpi it already had a different size than my screen. mine is 480x800 and i believe the overlay was like 320x480?

does this need to be resized to match?
[Android Q&A, Help & Troubleshooting] cbucz24:
ok, so Ive taken on your project as well...it actually built, fully installed, but was in a loop...

i think it has to do with the dependencies. it says it cant find any and bails out.

[
{
"account": "jmztaylor",
"repository": "android_device_htc_supersonic",
"target_path": "device/htc/supersonic",
"revision": "jellybean"
},
{
"account": "Evervolv",
"repository": "android_device_htc_qsd8k-common",
"target_path": "device/htc/qsd8k-common",
"revision": "jellybean"
},
{
"account": "Evervolv",
"repository": "android_kernel_htc_qsd8k",
"target_path": "kernel/htc/qsd8k",
"revision": "jellybean"
},
{
"account": "Evervolv",
"repository": "android_vendor_htc",
"target_path": "vendor/htc/qsd8k-common",
"revision": "jellybean"
},
]

this is in the supersonic.dependencies i made...so, I dont know if its building the rom right and using my vendor files?

edited: so I manually edited the local_manifest.xml and added all of these to it and now it seems to be closer
[Android Q&A, Help & Troubleshooting] DragunKorr:
I build all the time without dependencies
[Android Q&A, Help & Troubleshooting] InfinityFTW:
How the hell did you do that? The dependencies was the culprit in my pyramid build (i think)

Emmmmmm..... Derp?
[Android Q&A, Help & Troubleshooting] DragunKorr:
Dependencies are nothing more than device folders which you should already have msm8660-common & proprietary vendor htc
[Android Q&A, Help & Troubleshooting] cbucz24:
well, it was mostly from me entering the command to sync sources before building..it got all bent outta shape on me..

its progressed further though, its looking for resources that im trying to find.

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
packages/apps/Gallery2/AndroidManifest.xml:256: error: Error: No resource found that matches the given name (at 'theme' with value '@style/ThemeCamera').
packages/apps/Gallery2/AndroidManifest.xml:285: error: Error: No resource found that matches the given name (at 'theme' with value '@style/ThemeCamera').
packages/apps/Gallery2/AndroidManifest.xml:302: error: Error: No resource found that matches the given name (at 'theme' with value '@style/ThemeCamera').
make: *** [/home/bucz/android/system/out/target/common/obj/APPS/Gallery2_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs..

im trying to track down where they are supposed to be...lol
[Android Q&A, Help & Troubleshooting] cbucz24:
So, I'm not sure if it didn't sync properly or not, but I'm having issues with two items.

Gallery2 is broken( either missing files or not initialized)

Bluetooth also broken

I saw I can download parts separate on git, but when I tried replacing the sections it states items are not initialized.

Can anyone point me in the direction to maybe merge in say 4.2 apps? I figure if I have to rebuild them, I may as well update them too
[Android Q&A, Help & Troubleshooting] speed_bot:
just remove compilation of gallery and use cm10's repo maybe
[Android Q&A, Help & Troubleshooting] cbucz24:
Ya know, I was thinking of that last night as I was trying to sleep. Except I couldn't get the building terminal to stop running in my head.

So, if I mkdir anything an download a working (for my phone) cm10 repo there...then delete an swap out it may work??
[Android Q&A, Help & Troubleshooting] speed_bot:
just download the cm10 repo as a zip and delete all contents in the gallery folder replace it with cm10 ones

do make clobber and make clean before rebuilding
[Android Q&A, Help & Troubleshooting] cbucz24:
Its getting closer. I can see bluetooth errors in the build as its compiling.

Anyways, I did what you said. It partially worked, then I also fixed the error I had, since its still had the missing resource.

I fixed it by adding

<style name="ThemeCamera" parent="android:Theme.Holo.NoActionBar.Fullscreen">
<item name="android:windowBackground">@android:color/black</item>
<item name="android:colorBackground">@android:color/black</item>
<item name="android:colorBackgroundCacheHint">@android:color/black</item>
</style>

to my styles.xml file...sooo much to learn, im just glad its so readily available online :D
[Android Q&A, Help & Troubleshooting] speed_bot:
good debugging ..
[Android Q&A, Help & Troubleshooting] cbucz24:
so, looks like I fully got past the Gallery2 errors but now im on to a new one...and it seems like it "should" have been fixed back in September except its not.

im having the doclava errors that PA says they fixed by adding an external doclava repo. which I did a meld and compared all files inside, and their all identical. So mine says it has the updated fix...

I tried adding a $(hide) in front of the offending apicheck.mk and that didnt help.
[Android Q&A, Help & Troubleshooting] speed_bot:
doclava is a os specific file so why not git checkout with the pa's source?
[Android Q&A, Help & Troubleshooting] cbucz24:
Sorry Im asking so many questions...i usually wont ask something more than once so please bear with me..how would I sync or checkout with just the pa source??

so...im a bit confused?? the repo sync has 100% completed...yet when i tried git checkout it states its not a git repository?

bucz@bucz-Inspiron-5520:~/android/system$ git checkout
fatal: Not a git repository (or any of the parent directories): .git
bucz@bucz-Inspiron-5520:~/android/system$ repo sync
Fetching projects: 100% (322/322), done.

bucz@bucz-Inspiron-5520:~/android/system$ git checkout
fatal: Not a git repository (or any of the parent directories): .git
bucz@bucz-Inspiron-5520:~/android/system$

my only thoughts from here....like you mentioned before...mkdir anything and do a full repo init from pa...then copy over the files/directories that are the offending ones???
[Android Q&A, Help & Troubleshooting] speed_bot:
forget all this do a pastie of the error that you are getting
[Android Q&A, Help & Troubleshooting] cbucz24:
Thanks, I'm at work now. I'll run it again tonight when I get home.

Your help has been awesome!
[Android Q&A, Help & Troubleshooting] speed_bot:
until i help u get a build my help isnt done
[Android Q&A, Help & Troubleshooting] speed_bot:
its one of the weirdest errors that i have ever seen ..btw u said pac added some repo to fix this where excatly did u get this info?
[Android Q&A, Help & Troubleshooting] cbucz24:
When I did a search for that doclava error one thread here pointed out out, it was one of the supported device threads and The guy was one of the PA team members.

On the paranoid github it has a external_doclava link. Like I said, I supposedly synced 100% so it should be right.

That's why I thought of doing a full repo for PA and copy/paste?

That's how I ended up getting rid of the gallery2 errors. I downloaded a cm10 repo and cut/paste. But cm10 doesn't do a special doclava.

here is the link to the thread I found here http://xdaforums.com/showthread.php?p=31026449

i mistyped...the link is a PA link, not pac...
[Android Q&A, Help & Troubleshooting] cbucz24:
bucz@bucz-Inspiron-5520:~$ adb logcat
--------- beginning of /dev/log/main
D/AK8973 ( 97): AK8973 daemon 1.3.4 Start
D/AK8973 ( 97): (Library version : 1.2.1.620)
I/DEBUG ( 88): debuggerd: Dec 11 2012 22:46:15

well...im sure you saw that using the suggestions i finally got the rom to finish compiling without any errors...but this is as far as it gets, not much room to debug from there?

any suggestions as where to start?
[Android Q&A, Help & Troubleshooting] speed_bot:
so that's all that what you got in logcat sir?
[Android Q&A, Help & Troubleshooting] cbucz24:
Lmao....you sir'd me...

Yea that's all the output I got. I had read from a aosp thread reply that its possible there was a kernel mismatch would cause that output. I tried playing with the kernel but it didn't help.

So last night I swapped out some vendor files in my manifest.

Lol got a new error.

Sensorservice in base and native error.

I hate that one, I can never find where its defined
[Android Q&A, Help & Troubleshooting] TroNit:
Hello there XDA well im been trying to build PACman for my device but i came with this error and im kinda stuck so if some one can give me a hand that would be awesome

Thanks

target thumb C++: libmedia <= frameworks/av/media/libmedia/IDirectTrack.cpp
target thumb C++: libmedia <= frameworks/av/media/libmedia/IDirectTrackClient.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ExtendedExtractor.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ExtendedWriter.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/TunnelPlayer.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/LPAPlayer.cpp
device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:120: error: Resource does not already exist in overlay at 'config_locationProviderPackageNames'; use <add-resource> to add.
device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:122: error: Resource at config_locationProviderPackageNames appears in overlay but not in the base package; use <add-resource> to add.
device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:124: error: Resource at config_locationProviderPackageNames appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/home/tronit/PACman/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/home/tronit/PACman/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: *** Waiting for unfinished jobs....
target SharedLib: libssl (/home/tronit/PACman/out/target/product/supersonic/obj/SHARED_LIBRARIES/libssl_intermediates/LINKED/libssl.so)

Total time elapsed: 13 minutes (784.981850799 seconds)
[Android Q&A, Help & Troubleshooting] InfinityFTW:
Just a little update from my side: Someone else built PAC for Sensation. Got a Note II, already has Pac :winning:. Just today I started building for the Galaxy Tab 2 7.0, which already has official CM support. Cloned the device repo, lunched and builded. It's building now, and it seems to run well. Gonna leave it overnight, will report back later :)
[Android Q&A, Help & Troubleshooting] cbucz24:
Who built for note2? Which provider?
[Android Q&A, Help & Troubleshooting] InfinityFTW:
International unbranded. It has both pac and JellyBam
[Android Q&A, Help & Troubleshooting] cbucz24:
what's up bro??

copy the overlay folder into somewhere safe, then delete it.
[Android Q&A, Help & Troubleshooting] speed_bot:
well this is just a simple overlay problem

device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:120: error: Resource does not already exist in overlay at 'config_locationProviderPackageNames'; use <add-resource> to add.
device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:122: error: Resource at config_locationProviderPackageNames appears in overlay but not in the base package; use <add-resource> to add.
device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:124: error: Resource at config_locationProviderPackageNames appears in overlay but not in the base package; use <add-resource> to add.

this is where the problem is

device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:120: error: Resource does not already exist in overlay at 'config_locationProviderPackageNames'; use <add-resource> to add.

it says that

'config_locationProviderPackageNames'

doesnt exist in overlay you can ignore this ..

device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:122: error: Resource at config_locationProviderPackageNames appears in overlay but not in the base package; use <add-resource> to add.

this says that

config_locationProviderPackageNames

if defined in overlay but not in the original source remove the reference to

config_locationProviderPackageNames

in

device/htc/supersonic/overlay/frameworks/base/core/res/res/values/config.xml:122

(line 122 of config.xml)

same for the next one too remove the reference
[Android Q&A, Help & Troubleshooting] speed_bot:
ok guys i have made a general thread for this purpose feel free to ask doubts there

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