Xml文件  |  38行  |  1.74 KB

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.unit_tests.enabled_app"
        android:sharedUserId="com.android.uid.test">

    <application>

        <!-- Used to test package component enabling and disabling -->
        <activity android:name=".DisabledActivity" android:enabled="false" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="com.android.unit_tests.enabled_app.TEST_CATEGORY" />
            </intent-filter>
        </activity>
        <service android:name=".DisabledService" android:enabled="false" >
        </service>
        <receiver android:name=".DisabledReceiver" android:enabled="false" >
            <intent-filter>
                <action android:name="android.intent.action.ENABLED_APP_DISABLED_RECEIVER" />
            </intent-filter>
        </receiver>
        <provider android:name=".DisabledProvider" android:enabled="false"
                  android:authorities="com.android.unit_tests.enabled_app.DisabledProvider"
                  android:process=":disabled.provider.process" />
        <activity android:name=".EnabledActivity" >
        </activity>
        <service android:name=".EnabledService" android:enabled="true" >
        </service>
        <receiver android:name=".EnabledReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.ENABLED_APP_ENABLED_RECEIVER" />
            </intent-filter>
        </receiver>
        <provider android:name=".EnabledProvider"
                  android:authorities="com.android.unit_tests.enabled_app.EnabledProvider"
                  android:process=":enabled.provider.process" />
    </application>
</manifest>