Merge "Revert "Tempoarily allow priv-apps access to device identifiers"" into qt-dev am: 7abba0a4bc

am: 0c107d5ce8

Change-Id: Ib645447343d9d4bca6d182c8651c80645b8150ae
This commit is contained in:
Michael Groover
2019-05-01 18:02:16 -07:00
committed by android-build-merger

View File

@@ -419,7 +419,8 @@ public final class TelephonyPermissions {
// settings to individually disable the new restrictions for privileged, preloaded
// non-privileged, and non-preinstalled apps.
if (!isIdentifierCheckDisabled() && (
(!isPreinstalled && !relax3PDeviceIdentifierCheck)
(isPrivApp && !relaxPrivDeviceIdentifierCheck)
|| (!isPreinstalled && !relax3PDeviceIdentifierCheck)
|| (isPreinstalled && !isPrivApp && !relaxNonPrivDeviceIdentifierCheck))) {
// The current package should only be reported in StatsLog if it has not previously been
// reported for the currently invoked device identifier method.