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

Commit 79b80c34 authored by Anthony Stange's avatar Anthony Stange
Browse files

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
parent 2dfcb94d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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(