Android Manifest权限清单

Android权限部分可分为安装权限、运行时权限、特殊权限。

其中安装权限分普通权限和签名权限:普通权限安装后就有,无需重新授权;签名权限则需要系统签名才有的权限;

特殊权限则需要打开指定的系统页面进行授权,当然使用AppOpsManager也能打到静默授权的功效。

下面就列举一下我们需要额外处理的一些权限:

##特殊权限

除了第一个以外,其他也都是签名权限。如果你有系统签名,签名权限的会自动授权。

xml 复制代码
    <uses-permission
        android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.INSTANT_APP_FOREGROUND_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.LOADER_USAGE_STATS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.MANAGE_MEDIA"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.MANAGE_ONGOING_CALLS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.PACKAGE_USAGE_STATS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.SCHEDULE_EXACT_ALARM"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.SMS_FINANCIAL_TRANSACTIONS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.SYSTEM_ALERT_WINDOW"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.WRITE_SETTINGS"
        tools:ignore="ProtectedPermissions" />

##签名权限

系统签名安装就有相应的权限

xml 复制代码
    <uses-permission
        android:name="android.permission.BIND_ACCESSIBILITY_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_CALL_REDIRECTION_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_CARRIER_SERVICES"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_CHOOSER_TARGET_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_CONDITION_PROVIDER_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BATTERY_STATS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_AUTOFILL_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_CARRIER_MESSAGING_CLIENT_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_DEVICE_ADMIN"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_DREAM_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_INCALL_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_INPUT_METHOD"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_MIDI_DEVICE_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_NFC_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_PRINT_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_QUICK_ACCESS_WALLET_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_REMOTEVIEWS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_SCREENING_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_TEXT_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_TV_INPUT"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_TV_INTERACTIVE_APP"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_VISUAL_VOICEMAIL_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_VOICE_INTERACTION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_VPN_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_VR_LISTENER_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BIND_WALLPAPER"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.CHANGE_CONFIGURATION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.CLEAR_APP_CACHE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.DELETE_CACHE_FILES"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.GET_ACCOUNTS_PRIVILEGED"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.GLOBAL_SEARCH"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.PROVIDE_REMOTE_CREDENTIALS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="com.android.voicemail.permission.READ_VOICEMAIL"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.REQUEST_INSTALL_PACKAGES"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.START_VIEW_APP_FEATURES"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.START_VIEW_PERMISSION_USAGE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE"
        tools:ignore="ProtectedPermissions" />

##运行时权限

运行时需要动态申请权限

xml 复制代码
    <uses-permission
        android:name="android.permission.ACCEPT_HANDOVER"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.ACCESS_BACKGROUND_LOCATION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.ACCESS_COARSE_LOCATION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.ACCESS_FINE_LOCATION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.ACCESS_MEDIA_LOCATION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.ACTIVITY_RECOGNITION"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="com.android.voicemail.permission.ADD_VOICEMAIL"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.ANSWER_PHONE_CALLS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BLUETOOTH_ADVERTISE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BLUETOOTH_CONNECT"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BLUETOOTH_SCAN"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BODY_SENSORS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.BODY_SENSORS_BACKGROUND"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.CALL_PHONE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.CAMERA"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.GET_ACCOUNTS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.PROCESS_OUTGOING_CALLS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.NEARBY_WIFI_DEVICES"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.POST_NOTIFICATIONS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_CALENDAR"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_CALL_LOG"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_CONTACTS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_EXTERNAL_STORAGE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_MEDIA_AUDIO"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_MEDIA_IMAGES"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_MEDIA_VIDEO"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_PHONE_NUMBERS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_PHONE_STATE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.READ_SMS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.RECEIVE_MMS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.RECEIVE_SMS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.RECEIVE_WAP_PUSH"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.RECORD_AUDIO"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.SEND_SMS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.USE_SIP"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.UWB_RANGING"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.WRITE_CALENDAR"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.WRITE_CALL_LOG"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.WRITE_CONTACTS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        tools:ignore="ProtectedPermissions" />
相关推荐
e***87702 小时前
windows配置永久路由
android·前端·后端
fouryears_234173 小时前
现代 Android 后台应用读取剪贴板最佳实践
android·前端·flutter·dart
YF02114 小时前
Frida for MacBook/Android 安装配置
android·前端
雨白5 小时前
Android实战:构建高可维护的日志系统
android
茄子凉心6 小时前
android 开机启动App
android·java·开发语言
2501_937193148 小时前
神马影视 8.8 版源码:4K 播放优化体验测评
android·源码·源代码管理·机顶盒
修炼者9 小时前
Kotlin中的Flow流
android·kotlin
洞见不一样的自己9 小时前
Android studio 编译问题
android
j***63089 小时前
SpringbootActuator未授权访问漏洞
android·前端·后端
YJlio10 小时前
进程和诊断工具学习笔记(8.29):ListDLLs——一眼看清进程里加载了哪些 DLL,谁在偷偷注入
android·笔记·学习