diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2020-06-11 07:26:59 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-06-11 07:26:59 +0000 |
| commit | 55bb01a5567cc71c4401110cf8556bc6a4b81d3f (patch) | |
| tree | f9be36af37c158f451fbfa4591ef4a00698b6c33 | |
| parent | 85e5bde7c39db9448b712fee1bffa52b65eb7ea2 (diff) | |
| parent | eef2302264259472bca5591b73224a9fe99b593f (diff) | |
| download | platform_packages_services_Telephony-android10-d4-release.tar.gz platform_packages_services_Telephony-android10-d4-release.tar.bz2 platform_packages_services_Telephony-android10-d4-release.zip | |
Merge cherrypicks of [11834993, 11835120, 11834645, 11834934, 11834935, 11834936, 11834646, 11834647, 11834648, 11834649, 11834650, 11834651, 11834652, 11834653, 11834970, 11834857, 11835121, 11835122, 11835158] into qt-d4-releaseandroid-10.0.0_r45android-10.0.0_r44android10-d4-release
Change-Id: Ia6ad75bcd604fb22469097bcbfb4dc561e7884ea
| -rwxr-xr-x | src/com/android/phone/PhoneInterfaceManager.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index 31eea789b..768e868e0 100755 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java @@ -108,6 +108,7 @@ import android.telephony.ims.stub.ImsConfigImplBase; import android.telephony.ims.stub.ImsRegistrationImplBase; import android.text.TextUtils; import android.util.ArraySet; +import android.util.EventLog; import android.util.Log; import android.util.Pair; import android.util.Slog; @@ -2187,12 +2188,21 @@ public class PhoneInterfaceManager extends ITelephony.Stub { .setCallingPid(Binder.getCallingPid()) .setCallingUid(Binder.getCallingUid()) .setMethod("requestCellInfoUpdate") - .setMinSdkVersionForFine(Build.VERSION_CODES.Q) + .setMinSdkVersionForCoarse(Build.VERSION_CODES.BASE) + .setMinSdkVersionForFine(Build.VERSION_CODES.BASE) .build()); switch (locationResult) { case DENIED_HARD: + if (getTargetSdk(callingPackage) < Build.VERSION_CODES.Q) { + // Safetynet logging for b/154934934 + EventLog.writeEvent(0x534e4554, "154934934", Binder.getCallingUid()); + } throw new SecurityException("Not allowed to access cell info"); case DENIED_SOFT: + if (getTargetSdk(callingPackage) < Build.VERSION_CODES.Q) { + // Safetynet logging for b/154934934 + EventLog.writeEvent(0x534e4554, "154934934", Binder.getCallingUid()); + } try { cb.onCellInfo(new ArrayList<CellInfo>()); } catch (RemoteException re) { |
