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

Commit 9330151b authored by Jayachandran C's avatar Jayachandran C
Browse files

Add new util for IS_DEBUGGABLE

Bug: 142573851
Test: make
Change-Id: Ied3b22ec133a525d3158c57e55388b72f8c913d8
parent faef6697
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;
  }