Call enforceCallingPermission instead of annotation EnforcePermission
These test cases failed after this change (ag/19194476). It uses @android.annotation.EnforcePermission instead of calling enforceCallingPermission. When using @android.annotation.EnforcePermission, it will trigger noteOP, so we can’t use the noteOp mechanism to fix this bug. After reverting back to use enforceCallingPermission, the test cases will pass. Bug: 242103120 Test: atest HotwordDetectionServiceBasicTest Change-Id: I5cb6a2a33a3fadd2bcbfc6edece80da743684398
Loading
Please register or sign in to comment