MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

[DEV][ROM][CM10+AOKP+PA] PAC-man ROM v19.3.0 (updated 16/7/13)

86 posts in this topic

Posted · Report post

Thanks for your help KonstaT

strange I tried to rebuild my CM10 version of pacman with the updated manifest and patches and it seemed to be working until I received the below error


Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make[1]: Leaving directory `/home/rob/android/pacman/kernel/zte/zte-kernel-msm7x27a'
mdpath=`find /home/rob/android/pacman/out/target/product/atlas40/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do mv $i /home/rob/android/pacman/out/target/product/atlas40/system/lib/modules/; done; fi
mdpath=`find /home/rob/android/pacman/out/target/product/atlas40/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi

Done a quick search and people who had it were building on VMs which i am not. Never mind will get to the bottom of it later on...
0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, I pushed some sources. Your device manifest needs to look like this:
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- ZTE Blade III -->
<project path="device/zte/atlas40" name="KonstaT/android_device_zte_atlas40" revision="jellybean" />
<project path="kernel/zte/msm7x27a" name="KonstaT/android_kernel_zte_msm7x27a" revision="rb1" />
<project path="vendor/zte" name="KonstaT/proprietary_vendor_zte" revision="jellybean" />
<!-- FM Radio -->
<project path="hardware/qcom/fm" name="legaCyMod/android_hardware_qcom_fm" revision="jellybean" />
<project path="packages/apps/FM2" name="legaCyMod/android_packages_apps_FM2" revision="jellybean" />
</manifest>
[/CODE]

And you need these three patches ([url="https://github.com/KonstaT/android_device_zte_atlas40/blob/jellybean/patches/android_system_core/0001-system-fm-Provide-permission-for-FM-to-set-get-prope.patch"]1[/url],[url="https://github.com/KonstaT/android_device_zte_atlas40/blob/jellybean/patches/android_frameworks_base/0001-qcom-fm-add-support-for-mr1-based-fm-solution.patch"]2[/url],[url="https://github.com/KonstaT/android_device_zte_atlas40/blob/jellybean/patches/android_frameworks_base/0002-qcom-fm-audio-enable-fm-radio.patch"]3[/url]).

It seems that you still have the old kernel source (kernel/zte/zte-kernel-msm7x27a). New kernel source lives in kernel/zte/msm7x27a. It also good practice to 'make clobber' before you make builds.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Thanks KonstaT, seemed to working got nearly all the way through the build until near the end got the following error

make: *** [/home/rob/android/pacman/out/target/common/obj/APPS/FM2_intermediates/classes-full-debug.jar] Error 41

when I try to build pacman 4.2 I get stuck at the below error


frameworks/base/libs/androidfw/AssetManager.cpp: In member function 'bool android::AssetManager::detachThemePath(const android::String8&, void*)':
frameworks/base/libs/androidfw/AssetManager.cpp:2065:9: error: 'class android::ResTable' has no member named 'removeAssetsByCookie'
frameworks/base/libs/androidfw/AssetManager.cpp: In member function 'void android::AssetManager::addRedirections(android::PackageRedirectionMap*)':
frameworks/base/libs/androidfw/AssetManager.cpp:2074:9: error: 'class android::ResTable' has no member named 'addRedirections'
frameworks/base/libs/androidfw/AssetManager.cpp: In member function 'void android::AssetManager::clearRedirections()':
frameworks/base/libs/androidfw/AssetManager.cpp:2081:9: error: 'class android::ResTable' has no member named 'clearRedirections'
make: *** [/home/rob/android/pacman4.2/out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/AssetManager.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/base/libs/androidfw/PackageRedirectionMap.cpp: In member function 'uint32_t android::PackageRedirectionMap::lookupRedirection(uint32_t)':
frameworks/base/libs/androidfw/PackageRedirectionMap.cpp:133:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/base/libs/androidfw/PackageRedirectionMap.cpp:141:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Edited by robt77
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='robt77' timestamp='1373145774' post='2139225']
Thanks KonstaT, seemed to working got nearly all the way through the build until near the end got the following error

make: *** [/home/rob/android/pacman/out/target/common/obj/APPS/FM2_intermediates/classes-full-debug.jar] Error 41

when I try to build pacman 4.2 I get stuck at the below error
[/quote]
Actual error message is somewhere before. That doesn't tell much. ;)

Error in 4.2 doesn't seem to be related to FM.
0

Share this post


Link to post
Share on other sites

Posted · Report post

I will get more of the error when I try to rebuild later on thanks. I know can' seem to build 4.2 at all. I might delete entirely and start from scratch. Thanks
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi

this is the full error i received for compiling pacman cm10

target Java: services (/home/rob/android/pacman/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/classes)
packages/apps/FM2/src/com/caf/fmradio/FMRadio.java:280: cannot find symbol
symbol : variable STREAM_FM
location: class android.media.AudioManager
setVolumeControlStream(AudioManager.STREAM_FM);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:223: cannot find symbol
symbol : variable STREAM_FM
location: class android.media.AudioManager
audioManager.setStreamMute(AudioManager.STREAM_FM,false);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:682: cannot find symbol
symbol : variable STREAM_FM
location: class android.media.AudioManager
audioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_FM,
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:704: cannot find symbol
symbol : variable ACTION_FM
location: class android.content.Intent
Intent intent = new Intent(Intent.ACTION_FM);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:718: cannot find symbol
symbol : variable ACTION_FM
location: class android.content.Intent
Intent intent = new Intent(Intent.ACTION_FM);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:732: cannot find symbol
symbol : variable ACTION_FM
location: class android.content.Intent
Intent intent = new Intent(Intent.ACTION_FM);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:780: cannot find symbol
symbol : variable FM_RX
location: class android.media.MediaRecorder.AudioSource
mRecorder.setAudioSource(MediaRecorder.AudioSource.FM_RX);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:853: cannot find symbol
symbol : variable FM_RX_A2DP
location: class android.media.MediaRecorder.AudioSource
mA2dp.setAudioSource(MediaRecorder.AudioSource.FM_RX_A2DP);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:2037: cannot find symbol
symbol : variable STREAM_FM
location: class android.media.AudioManager
audioManager.setStreamMute(AudioManager.STREAM_FM,true);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:2057: cannot find symbol
symbol : variable STREAM_FM
location: class android.media.AudioManager
audioManager.setStreamMute(AudioManager.STREAM_FM,false);
^
packages/apps/FM2/src/com/caf/fmradio/FMRadioService.java:2997: cannot find symbol
symbol : variable STREAM_FM
location: class android.media.AudioManager
audioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_FM,
^
packages/apps/FM2/src/com/caf/fmradio/FMTransmitterService.java:520: cannot find symbol
symbol : variable ACTION_FM_TX
location: class android.content.Intent
Intent intent = new Intent(Intent.ACTION_FM_TX);
^
packages/apps/FM2/src/com/caf/fmradio/FMTransmitterService.java:556: cannot find symbol
symbol : variable ACTION_FM_TX
location: class android.content.Intent
Intent intent = new Intent(Intent.ACTION_FM_TX);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
13 errors
make: *** [/home/rob/android/pacman/out/target/common/obj/APPS/FM2_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='robt77' timestamp='1373195163' post='2139304']
Hi

this is the full error i received for compiling pacman cm10
[/quote]
It seems that you are still missing the necessary patches for FM. There's three patches that you need. One for system/core and two for frameworks/base. You also find these in your device/zte/atlas40/patches directory.

system/core
[url="https://raw.github.com/KonstaT/android_device_zte_atlas40/jellybean/patches/android_system_core/0001-system-fm-Provide-permission-for-FM-to-set-get-prope.patch"]https://raw.github.c...get-prope.patch[/url]

frameworks/base
[url="https://raw.github.com/KonstaT/android_device_zte_atlas40/jellybean/patches/android_frameworks_base/0001-qcom-fm-add-support-for-mr1-based-fm-solution.patch"]https://raw.github.c...-solution.patch[/url]
[url="https://raw.github.com/KonstaT/android_device_zte_atlas40/jellybean/patches/android_frameworks_base/0002-qcom-fm-audio-enable-fm-radio.patch"]https://raw.github.c...-fm-radio.patch[/url]

Copy patches to system/core and frameworks/base directories. Change into directories and apply patches.
[CODE]git am -3 patchname.patch[/CODE]

Or create a separate branch first so you don't need to re-apply patches after every repo sync. E.g.[CODE]
cd pac-cm10-workdir
repo start branchname ./frameworks/base
cd frameworks/base
git am -3 patchname.patch[/CODE]
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Thanks KonstaT. I will try that this evening.

edit when trying to apply the patches for cm10.1 I get the following error

fatal: sha1 information is lacking or useless (core/java/android/provider/Settings.java).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 add option to display navbar (1/2) Edited by robt77
0

Share this post


Link to post
Share on other sites

Posted · Report post

Patches are made against CyanogenMod and should apply cleanly to CM. I don't know about other projects. You can try merging them as normal diff patches as well. I think that let's you resolve conflicts but I haven't used it that much. Sometimes you just have to resort to manual gediting and copy&paste. ;)

There's three patches for CM10 and four patches for CM10.1 that you [b]must[/b] have for current functionality. I've included this in the build instructions in the third posts of both threads. I've also open sourced additional features I've done for my ROMs but you don't need to have those patches unless you want of course.
0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks KonstaT, don't worry, there is one thing I can do, it is copy n paste :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

new build up, based on latest KonstaT CM10 build, so working FM Radio and new Kernel. If you install, coming from CM10.1 remember to format system as well as data wipe otherwise keyboard will fc. Am still trying to build pacman 4.2 but still running into errors but hopefully should get there eventually..
0

Share this post


Link to post
Share on other sites

Posted · Report post

hello, I would like to know if this rom works well?
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='mimmo89' timestamp='1373534628' post='2140214']
hello, I would like to know if this rom works well?
[/quote]

Yes, it does. It even makes the phone faster than other ROMs (I think it's because of some AOKP improvements) but I miss very little featurs but that's just me... It has everything I ever needed on this phone :D
0

Share this post


Link to post
Share on other sites

Posted · Report post

Is this ROM much stable for daily use, like cm10?
0

Share this post


Link to post
Share on other sites

Posted · Report post

new build up, only changes to base CM10 as per KonstaT update yesterday.
0

Share this post


Link to post
Share on other sites

Posted · Report post

I hope you can build PAC-man on CM 10.1 thats what i waiting for. I have test this one and it's great
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

help. keyboard is not working :/ Edited by RandomShape
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='RandomShape' timestamp='1374055924' post='2141494']
help. keyboard is not working :/
[/quote]Just read topic, there was solution on page 2 or something, you need to install alternatuve keyboard.
0

Share this post


Link to post
Share on other sites

Posted · Report post

If you have come from CM10.1 based ROM to this one you will need to format system as well as the normal wipes
0

Share this post


Link to post
Share on other sites

Posted · Report post

Why are hybrid properties missing from Latest release?
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='robt77' timestamp='1374080285' post='2141577']
If you have come from CM10.1 based ROM to this one you will need to format system as well as the normal wipes
[/quote]

why is that necessary? sometimes i see it listed under the flashing instructions, but never knew why. i thought cwm automatically does that when you flash a new rom.. just asking.
0

Share this post


Link to post
Share on other sites

Posted · Report post

no idea why but when ii installed this ROM after being on CM10.1 my keyboard fc all the time, but after I formatted system and re wiped it worked fine
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='bamdad' timestamp='1374096666' post='2141645']
why is that necessary? sometimes i see it listed under the flashing instructions, but never knew why. i thought cwm automatically does that when you flash a new rom.. just asking.
[/quote]
Because CM ROMs have a backup tool ([url="https://github.com/CyanogenMod/android_vendor_cm/blob/cm-10.1/prebuilt/common/bin/backuptool.sh"]/system/bin/backuptool.sh[/url]) that runs on ROM install. It runs scripts on /system/addon.d/ directory. Usually there's one for hosts file and another one for gapps. In some cases this results in you ending up with gapps from wrong Android version if you don't format /system partition first.

There's is no justification for wiping dalvik cache and cache like sometimes instructed. These are already removed when you do a factory reset.
1

Share this post


Link to post
Share on other sites

Posted · Report post

Yeah i noticed that every instruction for flashing sez do factory reset, wipe cache wipe dalvic but when you do factory reset you can see that it wipes cache and dalvic...
stoped doing it manually first time i saw that :D .... But this is the first post i saw that someone said that it is double work
0

Share this post


Link to post
Share on other sites

Posted · Report post

It's not bad, it's a little hard to working with the UI but this ROMis AWESOME... Keep working ;)
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.