Baseline remaining SimpleManualPermissionEnforcement lint errors
The subject linter catches cases that would be trivial to
migrate from manual permission checks to the @EnforcePermission
annotation. The linter will soon raise an error in the
errorprone build if such a change would be completely
behavior preserving, and thus the manual permission check
should be replaced by the annotation.
Baseline the remaining sites that would raise such an error
so that the linter can be updated accordingly.
Bug: 265014041
Test: TH, manually tested with local changes to linter
Change-Id: I7932f75b2dbd96944fee63d36e15529df3219d3a
diff --git a/services/print/lint-baseline.xml b/services/print/lint-baseline.xml
new file mode 100644
index 0000000..1bf031a
--- /dev/null
+++ b/services/print/lint-baseline.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="6" by="lint 8.1.0-dev" type="baseline" client="" dependencies="true" name="" variant="all" version="8.1.0-dev">
+
+ <issue
+ id="SimpleManualPermissionEnforcement"
+ message="IPrintManager permission check should be converted to @EnforcePermission annotation"
+ errorLine1=" mContext.enforceCallingOrSelfPermission("
+ errorLine2=" ^">
+ <location
+ file="frameworks/base/services/print/java/com/android/server/print/PrintManagerService.java"
+ line="401"
+ column="13"/>
+ </issue>
+
+</issues>