diff options
| -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) { |
