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

Skip to content
Commit 3a05659d authored by Lyn's avatar Lyn Committed by Lyn Han
Browse files

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
parent c59405e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment