Skip to content

Commit

Permalink
config: add stub for ActivityManager.addOnUidImportanceListener()
Browse files Browse the repository at this point in the history
It requires the special access PACKAGE_USAGE_STATS ("Usage access") permission that Play services
usually doesn't have.

removeOnUidImportanceListener() throws an IllegalArgumentException when trying to unregister an
unknown listener, but this is not an issue: app-side mImportanceListeners map is still updated
in addOnUidImportanceListener(), despite the listener registration being skipped.
  • Loading branch information
muhomorr authored and thestinger committed Aug 25, 2023
1 parent 0bd4170 commit f157f90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gmscompat_config
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ finsky.kill_switch_phenotype_gservices_check set-string 0

[[stubs]]

[android.app.ActivityManager]
addOnUidImportanceListener void

[android.app.admin.DevicePolicyManager]
isDeviceProvisioned true
isDeviceProvisioningConfigApplied true
Expand Down

0 comments on commit f157f90

Please sign in to comment.