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

Commit e26e1d91 authored by Jayachandran Chinnakkannu's avatar Jayachandran Chinnakkannu Committed by Android (Google) Code Review
Browse files

Merge "Add new util for IS_DEBUGGABLE"

parents 708d7326 9330151b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.annotation.Nullable;
import android.content.pm.ComponentInfo;
import android.content.pm.ResolveInfo;
import android.os.RemoteException;
import android.os.SystemProperties;

/**
 * This class provides various util functions
@@ -41,4 +42,7 @@ public final class TelephonyUtils {
        if (resolveInfo.providerInfo != null) return resolveInfo.providerInfo;
        throw new IllegalStateException("Missing ComponentInfo!");
    }

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