Xml文件  |  65行  |  2.69 KB

<?xml version="1.0" encoding="utf-8"?>

<manifest package="com.android.voicedialer"
        xmlns:android="http://schemas.android.com/apk/res/android" >

    <original-package android:name="com.android.voicedialer" />

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.READ_CALL_LOG" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
  
    <application android:theme="@android:style/Theme.Dialog"
        android:label="@string/voiceDialer"
        android:icon="@drawable/app_voicedialer">
        <!--  Initial Page -->
        <activity android:name="VoiceDialerActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter android:priority="10">
                <action android:name="android.intent.action.VOICE_COMMAND"/>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

    <receiver android:name="VoiceDialerReceiver">
      <!-- Voice Dialer clears compiled grammar file on boot -->
      <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
      </intent-filter>
      
      <!-- VoiceDialer clears compiled grammar if apps change -->
      <intent-filter>
        <action android:name="android.intent.action.PACKAGE_ADDED" />
        <action android:name="android.intent.action.PACKAGE_CHANGED" />
        <action android:name="android.intent.action.PACKAGE_REMOVED" />
        <data android:scheme="package" />
      </intent-filter>
      
      <!--  Voice Dialer Logging Enabled, *#*#VDL1#*#* -->
      <intent-filter>
        <action android:name="android.provider.Telephony.SECRET_CODE" />
        <data android:scheme="android_secret_code" android:host="8351" />
      </intent-filter>
      
      <!--  Voice Dialer Logging Disabled, *#*#VDL0#*#* -->
      <intent-filter>
        <action android:name="android.provider.Telephony.SECRET_CODE" />
        <data android:scheme="android_secret_code" android:host="8350" />
      </intent-filter>
      
    </receiver>
      
    </application>

</manifest>