Fix [AndroidFrameworkRequiresPermission] build warnings for add(remove)KeyguardLockedStateListener.
These warnings triggered on ag/16873530. The warnings are like: [AndroidFrameworkRequiresPermission] Method addKeyguardLockedStateListener() annotated {allOf=[android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE]} but too wide; only invokes methods requiring [none] public void addKeyguardLockedStateListener(@NonNull @CallbackExecutor Executor executor, ^ If calling an AIDL interface, it can be annotated by adding: @JavaPassthrough(annotation="@android.annotation.RequiresPermission(...)") Bug: 216630470 Test: n/a Change-Id: I479063de6b591da44c474e4aa93e0466104d2a9a
Loading
Please register or sign in to comment