diff options
| author | 2021-04-15 01:02:53 +0000 | |
|---|---|---|
| committer | 2021-04-15 01:02:53 +0000 | |
| commit | 59b33dfc77f668805ddc9a1de2d69f49a3129cec (patch) | |
| tree | 0a12f706d8d1ec5db36927fda7a1eb007a50077a | |
| parent | 4e96d2af6a397efd0dd7b13926b734de5f099034 (diff) | |
| parent | 162be8a14025fe0f0424854f9cf641918e2e7ad7 (diff) | |
Merge "Don't read or persist historical registry on the critical path" into sc-dev
| -rw-r--r-- | services/core/java/com/android/server/appop/AppOpsService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/appop/AppOpsService.java b/services/core/java/com/android/server/appop/AppOpsService.java index 419e686e237d..3f075724662f 100644 --- a/services/core/java/com/android/server/appop/AppOpsService.java +++ b/services/core/java/com/android/server/appop/AppOpsService.java @@ -1827,7 +1827,8 @@ public class AppOpsService extends IAppOpsService.Stub { } } - mHistoricalRegistry.clearHistory(uid, packageName); + mHandler.post(PooledLambda.obtainRunnable(HistoricalRegistry::clearHistory, + mHistoricalRegistry, uid, packageName)); } public void uidRemoved(int uid) { |