Lecture 6: Permissions Flashcards

1
Q

What do permissions in android define?

A

Which interfaces the app is allowed to use

What shared data the app may access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the permissions flow?

A
  • Do I need permissions?
  • Is the permission a runtime permission?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When determining what permissions to request we should ___ the requests to the __ of the permission required to __

A
  • limit
  • minimal amount
  • perform the task
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 2 types of Geolocation permissions?

A
  • ACCESS_COARSE_LOCATION
  • ACCESS_FINE_LOCATION
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 2 ways permissions can be declared?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What determines which permissions are available as install time permissions?

A

The value of the protection level

Permissions must have a protection level of normal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What type of permission is known as dangerous permission?

A

Run-time permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What type of permission is known as low risk permission?

A

Install-time permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What determines which permissions are available as run time permissions?

A

The value of the protection level

Permissions must have a protection level of dangerous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Dangerous permissions typically include anything that will __ or access ___

A
  • transmit data
  • shared filespace or storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where are permissions declared?

A

app manifest file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Android assumes permissions are __ unless specified otherwise?

A

required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Not all permissions are available on all __

A

devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does failing gracefully mean?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If your dealing with a run-time permission, youll need to request the __ from the ___ during the __

A
  • permission
  • user
  • execution of your activity code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the steps of requesting a permission?

A

-check if permissions been granted
- call launch() on a predefined ActivityResultLauncher() object and request the specified permission