From de186b8cb7a7457b531ed7e20e697f4b4fff4d2a Mon Sep 17 00:00:00 2001 From: Michael Groover Date: Tue, 30 Apr 2019 16:00:01 -0700 Subject: [PATCH] Revert "Tempoarily allow priv-apps access to device identifiers" This reverts commit 6e96da2927da7442bb067453a244ad0ceeefc13e. Reason for revert: Play and MTP/PTP issues have been resolved, restoring device identifier access restrictions for priv apps. Bug: 117781266 Test: cts-tradefed run cts-dev -m CtsTelephony3TestCases Change-Id: I7ab432cfa92b6da65137608fc9d435d8296ffb84 --- .../com/android/internal/telephony/TelephonyPermissions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telephony/java/com/android/internal/telephony/TelephonyPermissions.java b/telephony/java/com/android/internal/telephony/TelephonyPermissions.java index 80fb58d450785..707856281d104 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyPermissions.java +++ b/telephony/java/com/android/internal/telephony/TelephonyPermissions.java @@ -407,7 +407,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.