2026-07-20 19:01:03 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
|
|
|
<!-- 网络权限(连接 TeamSpeak 服务器) -->
|
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
|
|
|
|
|
|
|
|
<!-- 录音权限(语音功能) -->
|
|
|
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
|
|
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
|
|
|
|
|
|
|
|
<!-- 震动权限(Poke 通知反馈) -->
|
|
|
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
|
|
|
|
|
|
|
|
<!-- 前台服务保活(防止锁屏/后台时断连) -->
|
|
|
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
|
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
|
|
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
|
|
|
|
2026-07-24 00:25:52 +08:00
|
|
|
<!-- 保活:防止 CPU 休眠导致 UDP socket 无法收发包 -->
|
|
|
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
|
|
|
|
|
|
<!-- 电池优化豁免:防止息屏后 Doze 模式限制网络 -->
|
|
|
|
|
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
|
|
|
|
|
2026-07-20 19:01:03 +08:00
|
|
|
<application
|
|
|
|
|
android:name=".App"
|
|
|
|
|
android:allowBackup="true"
|
|
|
|
|
android:icon="@mipmap/ic_launcher"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:supportsRtl="true"
|
|
|
|
|
android:theme="@style/Theme.TSMobile"
|
|
|
|
|
android:usesCleartextTraffic="true">
|
|
|
|
|
|
|
|
|
|
<activity
|
|
|
|
|
android:name=".MainActivity"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:theme="@style/Theme.TSMobile"
|
|
|
|
|
android:windowSoftInputMode="adjustResize">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
<!-- 前台服务:保持 TeamSpeak 连接 -->
|
|
|
|
|
<service
|
|
|
|
|
android:name=".ConnectionService"
|
|
|
|
|
android:foregroundServiceType="dataSync"
|
|
|
|
|
android:exported="false" />
|
|
|
|
|
</application>
|
|
|
|
|
|
|
|
|
|
</manifest>
|