Adding temporary logging to debug CTS failure (for CellLocationTest).
Bug: 21209629
Change-Id: Ic99cf02f26d3cca7260a3a0141ce13eff9a885bc
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 41699cc..59c68fe 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1223,6 +1223,7 @@
// OP_COARSE_LOCATION controls both fine and coarse location.
if (mAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, Binder.getCallingUid(),
callingPackage) != AppOpsManager.MODE_ALLOWED) {
+ log("getCellLocation: returning null; mode != allowed");
return null;
}
@@ -1233,7 +1234,7 @@
phone.getCellLocation().fillInNotifierBundle(data);
return data;
} else {
- if (DBG_LOC) log("getCellLocation: suppress non-active user");
+ log("getCellLocation: suppress non-active user");
return null;
}
}