Question about Android runtime permissions. AFAIK, android grant dangerous permission at runtime. I reset my phone, then adb pull /data/system/users/0/runtime-permissions.xml, I found android.ui.system has already granted many dangerous permissions. can anybody tell me how it does?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
The mechanism to insert Runtime permission into the
/data/system/users/0/runtime-permissions.xml
file by user confirmation dialog for Dangerous permission level, is for third party applications, and This is not relevant for built-in applications.You can see the AndroidManifest.xml from AOSP, where all types of required permissions are written for system components.
For third party apps, when User grants any runtime permission, it gets added into the file /data/system/users/0/runtime-permissions.xml, and gets removed when you revoke permission of any third party app, whereas after full factory reset, runtime permission of all the third party apps is removed, as /data/system/users/0/runtime-permissions.xml gets deleted (data partition wipe).
But even after factory reset,
/data/system/users/0/runtime-permissions.xml
contains runtime permissions(Even dangerous level) for system apps, see the default permissions: runtime-permissions.xml.And it happens because: