Songchun Fan 3e5d384cd0 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
2021-08-25 17:00:12 +00:00

16 lines
751 B
XML

<?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#getString()` called from system process. Please call `android.provider.Settings.Secure#getStringForUser()` instead. "
errorLine1=" String setting = Settings.Secure.getString(getContext().getContentResolver(),"
errorLine2=" ~~~~~~~~~">
<location
file="frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"
line="590"
column="14"/>
</issue>
</issues>