I'm just trying to make happen what is described here, with the custom
permission:

http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms

i.e. I want my activities (I'm only showing one below) and
ContentProvider to not be accessible from other applications, because
they hold the user's personal medical data.


Here is my AndroidManifest.xml. I can't figure out what is wrong. My
main activity gets a permission denial like this:

ActivityManager: java.lang.SecurityException: Permission Denial:
starting Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.eyebrowssoftware.bptracker/.BPRecordList } from null (pid=-1,
uid=-1) requires com.eyebrowssoftware.BPTracker.permission.MEDICAL

--- ANDROID MANIFEST.xml ---

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
        package="com.eyebrowssoftware.bptracker"
        android:versionCode="1"
        android:versionName="1.0"
>
        <permission
                android:name="com.eyebrowssoftware.BPTracker.permission.MEDICAL"
                android:permissionGroup="android.permission-group.PERSONAL_INFO"
                android:label="@string/bp_permission_label"
                android:description="@string/bp_permission_description"
                android:protectionLevel="normal"
        />
        <uses-permission
                android:name="com.eyebrowssoftware.BPTracker.permission.MEDICAL"
        />
    <application
        android:name=".BPTracker"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:debuggable="true">

        <activity
            android:name=".BPRecordList"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Light"
 
android:permission="com.eyebrowssoftware.BPTracker.permission.MEDICAL"
        >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <!-- only showing launcher activity, others omitted for
clarity -->

        <provider
                android:name=".BPProvider"
                android:authorities="com.eyebrowssoftware.bptracker.bp"
                android:label="@string/title_provider"
                android:icon="@drawable/icon"
        
android:permission="com.eyebrowssoftware.BPTracker.permission.MEDICAL"
        />
    </application>
    <uses-sdk
        android:targetSdkVersion="4"
        android:minSdkVersion="3"
    />
    <supports-screens
                android:largeScreens="true"
                android:smallScreens="true"
                android:anyDensity="true"
                android:resizeable="true"
                android:normalScreens="true"
    />
</manifest>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to