Revert "Revert "[lint] treat non-user getter calls as lint errors with baselines to exempt existing failures""
This reverts commit 88dd20e6d4b1e5ebde4c106bd8075ea583bf4d1a.
Reason for revert: Found the root cause, will fix it and try submit again
BUG: 195968932
Test: manual
Change-Id: I4a45ab4eb44756f4aec17fe938cfe53fc73c94cb
diff --git a/services/backup/lint-baseline.xml b/services/backup/lint-baseline.xml
new file mode 100644
index 0000000..28bb937
--- /dev/null
+++ b/services/backup/lint-baseline.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="6" by="lint 7.1.0-dev" type="baseline" client="" dependencies="true" name="" variant="all" version="7.1.0-dev">
+
+ <issue
+ id="NonUserGetterCalled"
+ message="`android.provider.Settings.Secure#getInt()` called from system process. Please call `android.provider.Settings.Secure#getIntForUser()` instead. "
+ errorLine1=" return Settings.Secure.getInt(mContext.getContentResolver(), SKIP_USER_FACING_PACKAGES,"
+ errorLine2=" ~~~~~~">
+ <location
+ file="frameworks/base/services/backup/java/com/android/server/backup/UserBackupManagerService.java"
+ line="3702"
+ column="16"/>
+ </issue>
+
+</issues>