Pro Android with Kotlin


Table 7-2. Permissions That Imply Feature Requirements Category


Download 5.42 Mb.
Pdf ko'rish
bet101/223
Sana04.11.2023
Hajmi5.42 Mb.
#1746807
1   ...   97   98   99   100   101   102   103   104   ...   223
Bog'liq
@de android telegram Pro Android with Kotlin Developing Modern Mobile

Table 7-2. Permissions That Imply Feature Requirements
Category
Permission...
...Implies Feature
Bluetooth
BLUETOOTH
android.hardware.bluetooth
BLUETOOTH_ADMIN
android.hardware.bluetooth
Camera
CAMERA
android.hardware.camera and android.hardware.
camera.autofocus
Location
ACCESS_MOCK_LOCATION
android.hardware.location
ACCESS_LOCATION_EXTRA_COMMANDS android.hardware.location
INSTALL_LOCATION_PROVIDER
android.hardware.location
ACCESS_COARSE_LOCATION
android.hardware.locationandroid.hardware.
location.network (API level < 21)
ACCESS_FINE_LOCATION
android.hardware.locationandroid.hardware.
location.gps (API level < 21)
Microphone
RECORD_AUDIO
android.hardware.microphone
(continued)


113
CHAPTER 7: Permissions
Permissions Handling Using a Terminal
To see the permissions you have registered on your device, you can scan through the apps 
list in the system settings app or, more easily, use the ADB shell to get various permission-
related information in a terminal.
For that aim, connect the hardware-device via USB to your laptop or PC, open a terminal, cd 
to the platform-tools folder in your SDK installation, find your device in ./adb devices, and 
then enter the following:
./adb shell -s
If there is only one device, you can omit that -s switch.
Once inside the shell, you can use a couple of commands to get permission information. 
First you can list all packages installed via this:
cmd package list package
To show all Dangerous permissions, to see the permission state for a certain package, or to 
grant or revoke one or more permissions, you can use the following:
cmd package list permissions -d -g
dumpsys package
pm [grant|revoke]
...

Download 5.42 Mb.

Do'stlaringiz bilan baham:
1   ...   97   98   99   100   101   102   103   104   ...   223




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling