Permissions Flashcards

(9 cards)

1
Q

Why require permissions in Android?

A

To support user privacy by informing users about app capabilities and giving them control to restrict capabilities.

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

What are install-time permissions?

A

Permissions granted at the time of app installation, allowing access to less sensitive data outside the app’s sandbox, e.g., internet access.

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

What are runtime permissions?

A

Permissions requested while the app is running, controlling access to restricted/private data, e.g., camera access.

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

What are dangerous permissions?

A

Permissions related to user privacy, such as access to microphone, contacts, and external storage.

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

What is an example of a dangerous permission?

A

Access to the microphone or contacts.

Examples include access to WIFI, Bluetooth, and NFC operations.

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

How to request special permissions?

A

By using an intent to direct the user to the corresponding settings page, requiring user action to grant permission.

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

What are best practices for requesting permissions?

A

Require minimal permissions, use coarse location instead of fine location, and implement alternative behavior if permission is not granted.

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

What happens during app hibernation?

A

All runtime permissions are reset to DENY, and background jobs, alerts, and push notifications are disabled on Android 12.

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

How to deal with permissions in tests?

A

Permission dialogs can’t be scripted with Espresso; use androidx.test.GrantPermissionRule and grantRuntimePermission for newer Androids.

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