添加应用电量使用情况报告

This commit is contained in:
ZhanGSKen
2025-10-22 16:56:17 +08:00
parent c3978a1e3c
commit f7b2c0d4c0
4 changed files with 334 additions and 76 deletions

View File

@@ -1,6 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="cc.winboll.studio.powerbell">
<!-- 拍摄照片和视频 -->
@@ -35,7 +36,18 @@
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<!-- 1. 基础应用信息读取权限Android 11 及以下) -->
<uses-permission android:name="android.permission.GET_PACKAGE_SIZE" />
<!-- 2. Android 11+ 应用列表读取权限(必须声明,否则无法获取全部应用) -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<!-- 3. 可选:若需读取系统应用,添加此权限(部分机型需要) -->
<uses-permission android:name="android.permission.ACCESS_PACKAGE_USAGE_STATS"
tools:ignore="ProtectedPermissions" />
<application
android:name=".App"
android:allowBackup="true"