Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e96da29 authored by Michael Groover's avatar Michael Groover
Browse files

Tempoarily allow priv-apps access to device identifiers

Bug: 123646983
Test: Manually verified priv-apps could access identifiers
Change-Id: Ie39391a72202faf12c7b025006fab456e5231055
parent 699905e5
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -334,8 +334,7 @@ public final class TelephonyPermissions {
        // settings to individually disable the new restrictions for privileged, preloaded
        // settings to individually disable the new restrictions for privileged, preloaded
        // non-privileged, and non-preinstalled apps.
        // non-privileged, and non-preinstalled apps.
        if (!isIdentifierCheckDisabled() && (
        if (!isIdentifierCheckDisabled() && (
                (isPrivApp && !relaxPrivDeviceIdentifierCheck)
                (!isPreinstalled && !relax3PDeviceIdentifierCheck)
                        || (!isPreinstalled && !relax3PDeviceIdentifierCheck)
                        || (isPreinstalled && !isPrivApp && !relaxNonPrivDeviceIdentifierCheck))) {
                        || (isPreinstalled && !isPrivApp && !relaxNonPrivDeviceIdentifierCheck))) {
            // The current package should only be reported in StatsLog if it has not previously been
            // The current package should only be reported in StatsLog if it has not previously been
            // reported for the currently invoked device identifier method.
            // reported for the currently invoked device identifier method.