Xml文件  |  39行  |  1.45 KB

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="foo.bar.testback"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-permission android:name="android.permission.CAN_REQUEST_TOUCH_EXPLORATION_MODE"/>
    <uses-permission android:name="android.permission.CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY"/>

    <uses-sdk
        android:minSdkVersion="JellyBeanMR2" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:allowBackup="false" >
        <service
            android:name=".TestBackService"
            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
          <intent-filter>
            <action android:name="android.accessibilityservice.AccessibilityService" />
          </intent-filter>
          <meta-data
              android:name="android.accessibilityservice"
              android:resource="@xml/accessibilityservice" />
        </service>
        <receiver
            android:enabled="true"
            android:exported="true"
            android:name=".IdleMaintenanceReceiver">
            <intent-filter>
                 <action android:name="FOO" />
                 <action android:name="android.intent.action.ACTION_IDLE_MAINTENANCE_START" />
                 <action android:name="android.intent.action.ACTION_IDLE_MAINTENANCE_END" />
            </intent-filter>
        </receiver>
    </application>

</manifest>