:library:feature:permissions
Purpose
Displays a localized explanation of the permissions used by AppToolkit hosts.
Owns
PermissionsScreen, the static permission catalogue and screen tracking.permissionsConfig(), an internal composable that resolves existing resource IDs against the current configuration, andPermissionsContent, the stateless grouped catalogue renderer.permissionsPage(), the registration ofPermissionsRoute.
Does not own
The privacy page that links here, owned by
:library:feature:privacy.The screen Android's permission manager opens, owned by
PermissionUsageActivityin:library:apptoolkit.Runtime grant inspection or system-settings actions. This page is descriptive and does not claim to report current grant state.
Depends on
:library:core:commonand:library:core:uifor presentation models, tracking and shared rows.:library:navigationfor the route and graph builder.No other feature module.
Used by
:library:apptoolkit, which callspermissionsPage()fromtoolkitPages().
Flow chart
flowchart TD
Page[permissionsPage] --> Screen[PermissionsScreen]
Screen --> Resources[Current locale resources]
Resources --> Config[SettingsConfig]
Config --> Content[PermissionsContent]Architectural decisions
The page is
PaneRole.None: opening it from the privacy detail stacks a page rather than replacing the privacy pane.The catalogue is presentation data. No repository, ViewModel, loading state, retry job or dependency-injection module is needed to render fixed resource-backed descriptions.
stringResourceruns in composition, so a configuration change resolves the new language without relying on a retained ViewModel to reload strings.Screen-view tracking and the ready screen-state event keep the existing Permissions identity.
The public
PermissionsContentstill accepts a host-builtSettingsConfig.
Public contracts
PermissionsScreen,PermissionsContent, andpermissionsPage().
Internal implementations
Localized catalogue assembly and grouped row rendering, in
ui/PermissionsScreen.kt.PermissionsLocaleTestin:sample:appverifies English-to-Romanian resource updates without recreating the screen. It passed on the API 37 emulator.
Current risks
The catalogue is descriptive and fixed at build time: adding a manifest permission requires updating its descriptions separately. It is not an inventory of the host's actual manifest.
Migration notes
PermissionsRepository, DefaultPermissionsRepository, PermissionsViewModel, PermissionsUiState, PermissionsEvent and permissionsModule were removed. Hosts using appToolkitModules need no registration change. Hosts assembling the graph manually must remove permissionsModule and call PermissionsScreen() through the existing page registration. See the 3.0 migration guide.