Merge "Fix error response handling for RIL request"
diff --git a/ecc/input/OWNERS b/ecc/input/OWNERS
new file mode 100644
index 0000000..d9ecbb7
--- /dev/null
+++ b/ecc/input/OWNERS
@@ -0,0 +1,5 @@
+set noparent
+
+djkrause@google.com
+satk@google.com
+somakala@google.com
\ No newline at end of file
diff --git a/ecc/output/OWNERS b/ecc/output/OWNERS
new file mode 100644
index 0000000..d9ecbb7
--- /dev/null
+++ b/ecc/output/OWNERS
@@ -0,0 +1,5 @@
+set noparent
+
+djkrause@google.com
+satk@google.com
+somakala@google.com
\ No newline at end of file
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 46d6463..c4a669d 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -116,6 +116,7 @@
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;
@@ -2507,12 +2508,21 @@
.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) {