diff options
| author | 2023-02-17 02:37:59 +0000 | |
|---|---|---|
| committer | 2023-02-22 02:17:11 +0000 | |
| commit | 3a05659d05ab6ce8601a2fe26291a09d2ef19b81 (patch) | |
| tree | d71c6ea0b7a252618fcaa8808630b5a2bb2025d4 /libs/androidfw/ApkParsing.cpp | |
| parent | c59405e7ed7c9f06947d4291e750bd2e511c7b7d (diff) | |
Update USER_SET flag when user toggles FSI permission
Grant test apk GRANT_RUNTIME_PERMISSIONS so that
tests can call PackageManager#updatePermissionFlags
Fixes: 269689524
Test: AppOpsControllerTest, AppOpPermissionAppListTest
Test: make SettingsGoogle -j40
adb install -r out/target/product/$TARGET_PRODUCT/system_ext/priv-app/SettingsGoogle/SettingsGoogle.apk
Go to Settings > Apps > Special app access
> Manage full screen intents > Notify
Toggle permission, then run:
adb shell dumpsys package [test_app_package]
See that USER_SET flag is set:
android.permission.USE_FULL_SCREEN_INTENT: granted=true, flags=[ USER_SET]
Change-Id: Iab258eaa05c9bf82b9ff4b7167016aa44ac26868
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions