Merge "Don't save self visibility grants"

This commit is contained in:
TreeHugger Robot
2020-01-23 20:01:10 +00:00
committed by Android (Google) Code Review

View File

@@ -302,8 +302,9 @@ public class AppsFilter {
* initiating uid.
*/
public void grantImplicitAccess(int callingUid, int targetUid) {
if (mImplicitlyQueryable.add(targetUid, callingUid) && DEBUG_LOGGING) {
Slog.wtf(TAG, "implicit access granted: " + callingUid + " -> " + targetUid);
if (targetUid != callingUid
&& mImplicitlyQueryable.add(targetUid, callingUid) && DEBUG_LOGGING) {
Slog.wtf(TAG, "implicit access granted: " + targetUid + " -> " + callingUid);
}
}