Temporary fix for QXDM crashes.
Bug: 26971038
Change-Id: I59efbdec11ca8d9a0b640c092402091d66b220a0
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index 02b94de..1aa4321 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -4945,7 +4945,11 @@
* This is what ultimately throws {@link FileUriExposedException}.
*/
if (data.appInfo.targetSdkVersion >= Build.VERSION_CODES.N) {
- StrictMode.enableDeathOnFileUriExposure();
+ if ("com.android.qxdmlogger".equals(data.appInfo.packageName)) {
+ // STOPSHIP: Fix security on this logger tool
+ } else {
+ StrictMode.enableDeathOnFileUriExposure();
+ }
}
NetworkSecurityPolicy.getInstance().setCleartextTrafficPermitted(