2026-11-28 00:25:22 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
|
|
|
<!-- 计时在前台服务里跑,需要常驻通知;精准唤醒用不到 AlarmManager 级别,
|
|
|
|
|
只靠 WAKE_LOCK 保证息屏后 Handler 仍能按时间点结算。 -->
|
|
|
|
|
<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" />
|
|
|
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
|
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
|
|
|
|
|
|
<application
|
|
|
|
|
android:name=".App"
|
|
|
|
|
android:allowBackup="true"
|
|
|
|
|
android:fullBackupContent="true"
|
|
|
|
|
android:icon="@mipmap/ic_launcher"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:roundIcon="@mipmap/ic_launcher"
|
|
|
|
|
android:supportsRtl="true"
|
|
|
|
|
android:theme="@style/AppTheme">
|
|
|
|
|
|
|
|
|
|
<activity
|
|
|
|
|
android:name=".ui.MainActivity"
|
2026-11-28 10:39:57 +08:00
|
|
|
android:configChanges="orientation|screenSize|keyboardHidden"
|
2026-11-28 00:25:22 +08:00
|
|
|
android:exported="true"
|
|
|
|
|
android:launchMode="singleTask"
|
|
|
|
|
android:screenOrientation="portrait"
|
|
|
|
|
android:windowSoftInputMode="adjustResize">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
<service
|
|
|
|
|
android:name=".service.TimerService"
|
|
|
|
|
android:exported="false"
|
|
|
|
|
android:foregroundServiceType="dataSync" />
|
|
|
|
|
</application>
|
|
|
|
|
|
|
|
|
|
</manifest>
|