public class RootUtils
extends java.lang.Object
RootManager.| Constructor and Description |
|---|
RootUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkUIThread()
To check if the caller is on the ui thread, throw exception if it calls
on UI thread.
|
static int |
generateCommandID()
Get a command Id for each
Command. |
static boolean |
isKitKatUpper()
Check if Android 4.4 and upper.
|
static boolean |
isNeedPathSDK()
Check if command need patch.
|
static void |
Log(java.lang.String message)
Output log to logcat as the debug level.
|
static void |
Log(java.lang.String extendTag,
java.lang.String message)
Output log to logcat as the debug level with extend log tag.
|
public static void checkUIThread()
public static void Log(java.lang.String message)
message - The message will be printed.public static void Log(java.lang.String extendTag,
java.lang.String message)
The example: LibTag::YourExtendTag, Log Message.
extendTag - Your extend tag.message - The message will be printed.public static int generateCommandID()
Command.public static boolean isNeedPathSDK()
public static boolean isKitKatUpper()