Merge "Revert "Tempoarily allow priv-apps access to device identifiers"" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-01 09:05:42 +00:00
committed by Android (Google) Code Review

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.