diff options
author | 2022-03-03 02:16:26 +0000 | |
---|---|---|
committer | 2022-03-04 18:08:45 +0000 | |
commit | ac1a15b69a9d1d03045f4937bc2d628f5aefe62d (patch) | |
tree | 6f60448388e4007defc6c77686e4ee4727e9c021 /tools/aapt2/Resource.cpp | |
parent | bf059af71cd8e671b365993d127ad0d5085732cb (diff) |
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
Diffstat (limited to 'tools/aapt2/Resource.cpp')
0 files changed, 0 insertions, 0 deletions