Lecture 6: Permissions Flashcards
What do permissions in android define?
Which interfaces the app is allowed to use
What shared data the app may access
What is the permissions flow?
- Do I need permissions?
- Is the permission a runtime permission?
When determining what permissions to request we should ___ the requests to the __ of the permission required to __
- limit
- minimal amount
- perform the task
What are the 2 types of Geolocation permissions?
- ACCESS_COARSE_LOCATION
- ACCESS_FINE_LOCATION
What are the 2 ways permissions can be declared?
Install-time permissions:
Prompts the user when they install the app
Run-time permissions:
Will prompt the user during execution to allow or deny the requested permission
What determines which permissions are available as install time permissions?
The value of the protection level
Permissions must have a protection level of normal
What type of permission is known as dangerous permission?
Run-time permissions
What type of permission is known as low risk permission?
Install-time permissions
What determines which permissions are available as run time permissions?
The value of the protection level
Permissions must have a protection level of dangerous
Dangerous permissions typically include anything that will __ or access ___
- transmit data
- shared filespace or storage
Where are permissions declared?
app manifest file
Android assumes permissions are __ unless specified otherwise?
required
Not all permissions are available on all __
devices
What does failing gracefully mean?
An app should carry on best it can with the permissions it has available to it
Apps shouldnt crash, stop or close if a user declines a run-time permission
If your dealing with a run-time permission, youll need to request the __ from the ___ during the __
- permission
- user
- execution of your activity code