Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: add stub for ActivityManager.addOnUidImportanceListener()
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