summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-10-02 11:35:53 -0700
committerElliott Hughes <enh@google.com>2019-10-02 11:40:03 -0700
commite14fa97af99ab81413ed007f308e312243c0ce47 (patch)
tree06ccd5ccafd0b962ef54ee0f0a14478f798a7be0 /core/java
parent5491eb92fc9497c3688c0d2b13effd06c6f175e4 (diff)
Remove a user/userdebug difference.
There isn't much users can do to get app developers to care anyway, so leaving this on just for apps with debuggable="true" should be sufficient. Bug: http://b/141754375 Test: treehugger Change-Id: I3a796f9c4b9358fce499649c3f289e956ee9a97a
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/Activity.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index dc52c52cca1f..fd8d233fdd02 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -76,7 +76,6 @@ import android.os.Process;
import android.os.RemoteException;
import android.os.ServiceManager.ServiceNotFoundException;
import android.os.StrictMode;
-import android.os.SystemProperties;
import android.os.Trace;
import android.os.UserHandle;
import android.text.Selection;
@@ -7833,13 +7832,10 @@ public class Activity extends ContextThemeWrapper
mFragments.dispatchStart();
mFragments.reportLoaderStart();
+ // Warn app developers if the dynamic linker logged anything during startup.
boolean isAppDebuggable =
(mApplication.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
-
- // This property is set for all non-user builds except final release
- boolean isDlwarningEnabled = SystemProperties.getInt("ro.bionic.ld.warning", 0) == 1;
-
- if (isAppDebuggable || isDlwarningEnabled) {
+ if (isAppDebuggable) {
String dlwarning = getDlWarning();
if (dlwarning != null) {
String appName = getApplicationInfo().loadLabel(getPackageManager())