> ## Documentation Index
> Fetch the complete documentation index at: https://committ.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# usePermissions

> 8-point permission audit state and deep-link triggers.

# usePermissions

The usePermissions hook (hooks/usePermissions.ts) checks all 8 required Android permissions and returns their grant status.

***

## Permission Map

| Key           | Android Permission             | Check Method                     |
| :------------ | :----------------------------- | :------------------------------- |
| camera        | CAMERA                         | expo-camera API                  |
| location      | ACCESS\_FINE\_LOCATION         | expo-location API                |
| notifications | POST\_NOTIFICATIONS            | expo-notifications API           |
| alarms        | SCHEDULE\_EXACT\_ALARM         | enforcement-module native bridge |
| battery       | IGNORE\_BATTERY\_OPTIMIZATIONS | enforcement-module native bridge |
| overlay       | SYSTEM\_ALERT\_WINDOW          | enforcement-module native bridge |
| accessibility | AccessibilityService           | enforcement-module native bridge |
| admin         | DevicePolicyManager            | enforcement-module native bridge |

***

## Refresh

The hook provides a refresh() function that re-checks all permissions. This is called when the user returns from Android Settings after granting a permission.
