75 lines
2.8 KiB
XML
75 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|||
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|||
|
|
|
|||
|
|
<!-- 网络 -->
|
|||
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|||
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|||
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|||
|
|
|
|||
|
|
<!-- 蓝牙 -->
|
|||
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|||
|
|
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|||
|
|
|
|||
|
|
<!-- NFC -->
|
|||
|
|
<uses-permission android:name="android.permission.NFC" />
|
|||
|
|
|
|||
|
|
<!-- 定位(蓝牙扫描需要) -->
|
|||
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|||
|
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|||
|
|
|
|||
|
|
<!-- 振动 -->
|
|||
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|||
|
|
|
|||
|
|
<!-- 开机自启 -->
|
|||
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|||
|
|
|
|||
|
|
<!-- WakeLock -->
|
|||
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|||
|
|
|
|||
|
|
<!-- 手机状态(获取 IMEI) -->
|
|||
|
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|||
|
|
|
|||
|
|
<!-- 相机(二维码扫描备用) -->
|
|||
|
|
<uses-permission android:name="android.permission.CAMERA" />
|
|||
|
|
|
|||
|
|
<application
|
|||
|
|
android:name=".app.WatchApplication"
|
|||
|
|
android:allowBackup="true"
|
|||
|
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
|||
|
|
android:fullBackupContent="@xml/backup_rules"
|
|||
|
|
android:icon="@mipmap/ic_launcher"
|
|||
|
|
android:label="@string/app_name"
|
|||
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|||
|
|
android:supportsRtl="true"
|
|||
|
|
android:theme="@style/Theme.XqWatch">
|
|||
|
|
|
|||
|
|
<!-- 主 Activity(Launcher 模式) -->
|
|||
|
|
<activity
|
|||
|
|
android:name=".app.MainActivity"
|
|||
|
|
android:exported="true"
|
|||
|
|
android:launchMode="singleTask"
|
|||
|
|
android:screenOrientation="portrait"
|
|||
|
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
|||
|
|
<intent-filter>
|
|||
|
|
<action android:name="android.intent.action.MAIN" />
|
|||
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|||
|
|
<category android:name="android.intent.category.HOME" />
|
|||
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|||
|
|
</intent-filter>
|
|||
|
|
</activity>
|
|||
|
|
|
|||
|
|
<!-- 开机自启广播接收器 -->
|
|||
|
|
<receiver
|
|||
|
|
android:name=".app.BootReceiver"
|
|||
|
|
android:enabled="true"
|
|||
|
|
android:exported="true">
|
|||
|
|
<intent-filter>
|
|||
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|||
|
|
</intent-filter>
|
|||
|
|
</receiver>
|
|||
|
|
|
|||
|
|
</application>
|
|||
|
|
|
|||
|
|
</manifest>
|