diff options
| author | 2022-07-01 17:34:33 +0000 | |
|---|---|---|
| committer | 2022-07-01 19:26:36 +0000 | |
| commit | 79b80c34cfe34d0d3b5def59b7da994b03c035a6 (patch) | |
| tree | b155ba8d7ccb57cb4ec473a153a292dedc3acefd | |
| parent | 2dfcb94d09d8462400a68f65e820e9a3b8143215 (diff) | |
Add log when denying client authorization state
This log will be printed when a test invokes the CLI command that allows
denying specific packages access to a nanoapp to facilitate debugging.
Bug: 237725362
Test: Load framework onto device and verify log is seen
Change-Id: I04f245ac96e98f765d9f629019cd74838e4c1774
| -rw-r--r-- | services/core/java/com/android/server/location/contexthub/ContextHubService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/location/contexthub/ContextHubService.java b/services/core/java/com/android/server/location/contexthub/ContextHubService.java index 95178f4c7883..524b22ba29c4 100644 --- a/services/core/java/com/android/server/location/contexthub/ContextHubService.java +++ b/services/core/java/com/android/server/location/contexthub/ContextHubService.java @@ -1042,6 +1042,9 @@ public class ContextHubService extends IContextHubService.Stub { } /* package */ void denyClientAuthState(int contextHubId, String packageName, long nanoAppId) { + Log.i(TAG, "Denying " + packageName + " access to " + Long.toHexString(nanoAppId) + + " on context hub # " + contextHubId); + mClientManager.forEachClientOfHub(contextHubId, client -> { if (client.getPackageName().equals(packageName)) { client.updateNanoAppAuthState( |