benjymous / MWM-for-Android

Meta Watch Manager Android SDK project for watch wrangling, remote protocol handling and notification routing for the Meta Watch wearable development systems. Includes an Intents based API for quick experiments.
www.metawatch.org
Apache License 2.0
59 stars 30 forks source link

Permissions #88

Open sdemills opened 11 years ago

sdemills commented 11 years ago

This is a request for help rather than a fault...

From the Manifest, the following permissions...

    <uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />

Eclipse won't compile this for me because it errors those permissions saying that they are only granted to System Apps.

For now, I have commented them out.

What needs to be done to get Eclipse to accept these permissions?

Cheers Steve

benjymous commented 11 years ago

You could try targeting an older Android version - it's possible your environment has automatically targeted the later one (or you haven't downloaded the sdk data for the version that the project is set to target)

sdemills commented 11 years ago

Hi Richard. Thanks for the reply.

Which do you target? The project properties says Android 4.2 API Level 17 which matches the targetSdkVersion given in the manifest.

Steve.