Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6520c1d3 authored by vaibsinghal's avatar vaibsinghal
Browse files

Add preloaded fallback for App Functions agent allowlist.

Introduces a fallback mechanism for loading the App Functions agent allowlist. The allowlist is now determined with the following order of precedence:

1.  The value from the `allowlisted_app_functions_agents` DeviceConfig flag.
2.  If the DeviceConfig value is invalid, the last known valid allowlist from storage is used.
3.  If DeviceConfig is not set, or is invalid and there is no stored value, a new preloaded static allowlist from the `config_defaultAppFunctionAgentAllowlist` resource is used as a fallback.

Tests are updated to reflect this new loading logic.

Test: atest FrameworksAppFunctionsTests
Flag: android.permission.flags.app_function_access_service_enabled
Flag: android.permission.flags.app_function_access_api_enabled
Bug: 439532525
Change-Id: I364844d68dc5d4e7dbadac0e1f48b3cdc126cedd
parent 9c4fe474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment