Tempoarily allow priv-apps access to device identifiers

Bug: 123646983
Test: Manually verified priv-apps could access identifiers
Change-Id: Ie39391a72202faf12c7b025006fab456e5231055
This commit is contained in:
Michael Groover
2019-02-08 12:42:43 -08:00
parent 699905e5c7
commit 6e96da2927

View File

@@ -334,8 +334,7 @@ public final class TelephonyPermissions {
// settings to individually disable the new restrictions for privileged, preloaded
// non-privileged, and non-preinstalled apps.
if (!isIdentifierCheckDisabled() && (
(isPrivApp && !relaxPrivDeviceIdentifierCheck)
|| (!isPreinstalled && !relax3PDeviceIdentifierCheck)
(!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.