Remove usages of Slog.wtf

This change makes better use of logging in AppsFilter by logging warning
or info as appropriate.

Fixes: 156863453
Test: atest AppEnumerationTests
Change-Id: Icf4952f179aa63b29932d56414cb328a088adbe9
This commit is contained in:
Patrick Baumann
2020-05-18 10:34:58 -07:00
parent c12ddbbc06
commit 5de8369e20

View File

@@ -417,7 +417,7 @@ public class AppsFilter {
public void grantImplicitAccess(int recipientUid, int visibleUid) {
if (recipientUid != visibleUid
&& mImplicitlyQueryable.add(recipientUid, visibleUid) && DEBUG_LOGGING) {
Slog.wtf(TAG, "implicit access granted: " + recipientUid + " -> " + visibleUid);
Slog.i(TAG, "implicit access granted: " + recipientUid + " -> " + visibleUid);
}
}
@@ -720,7 +720,7 @@ public class AppsFilter {
return false;
}
if (callingSetting == null) {
Slog.wtf(TAG, "No setting found for non system uid " + callingUid);
Slog.w(TAG, "No setting found for non system uid " + callingUid);
return true;
}
final PackageSetting callingPkgSetting;
@@ -760,7 +760,7 @@ public class AppsFilter {
final AndroidPackage targetPkg = targetPkgSetting.pkg;
if (targetPkg == null) {
if (DEBUG_LOGGING) {
Slog.wtf(TAG, "shouldFilterApplication: " + "targetPkg is null");
Slog.w(TAG, "shouldFilterApplication: " + "targetPkg is null");
}
return true;
}