Skip to content
Commit ac1a15b6 authored by Xiaowen Lei's avatar Xiaowen Lei
Browse files

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
parent bf059af7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment