Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83b54f5b authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Add new util for IS_DEBUGGABLE"

am: f8b87bf1

Change-Id: Ie3307385cbbedf59fc55b62779b167e926728e75
parents 484be23d f8b87bf1
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.internal.telephony.util;

import android.annotation.Nullable;
import android.os.SystemProperties;

/**
 * This class provides various util functions
@@ -25,4 +26,7 @@ public final class TelephonyUtils {
    public static String emptyIfNull(@Nullable String str) {
        return str == null ? "" : str;
    }

    public static boolean IS_DEBUGGABLE =
            SystemProperties.getInt("ro.debuggable", 0) == 1;
  }