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

Commit 413926ab authored by Jayachandran C's avatar Jayachandran C Committed by Jack Yu
Browse files

Add new util for IS_DEBUGGABLE

Bug: 142573851
Test: make
Merged-In: Ied3b22ec133a525d3158c57e55388b72f8c913d8
Change-Id: Ied3b22ec133a525d3158c57e55388b72f8c913d8
(cherry picked from commit 9330151b)
parent c70a3bb9
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;
  }