#PackageHelperPackageUtil.installSilent(Context, String)
else see PackageUtil.installNormal(Context, String)
#INSTALL_ALLOW_TEST flag.ListUtil.DEFAULT_JOIN_SEPARATOR
join(null, "#") = "";
join({}, "#$") = "";
join({a,b,c}, null) = "a,b,c";
join({a,b,c}, "") = "abc";
join({a,b,c}, "#") = "a#b#c";
join({a,b,c}, "#$") = "a#$b#$c";
PackageUtils#installNormal(Context, String)
PackageUtils#installSilent(Context, String)
PackageUtils#install(Context, String)
Uninstall package
PackageUtils#uninstallNormal(Context, String)
PackageUtils#uninstallSilent(Context, String)
PackageUtils#uninstall(Context, String)
Is system application
PackageUtils#isSystemApplication(Context)
PackageUtils#isSystemApplication(Context, String)
PackageUtils#isSystemApplication(PackageManager, String)
Others
PackageUtils#getInstallLocation() get system install location
PackageUtils#isTopActivity(Context, String) whether the app whost package's name is packageName is on the
top of the stack
PackageUtils#startInstalledAppDetails(Context, String) start InstalledAppDetails Activity
PreferencesUtil.PREFERENCE_NAME
Put Value
put string PreferencesUtil.putString(Context, String, String)
put int PreferencesUtil.putInt(Context, String, int)
put long PreferencesUtil.putLong(Context, String, long)
put float PreferencesUtil.putFloat(Context, String, float)
put boolean PreferencesUtil.putBoolean(Context, String, boolean)
Get Value
get string PreferencesUtil.getString(Context, String), PreferencesUtil.getString(Context, String, String)
get int PreferencesUtil.getInt(Context, String), PreferencesUtil.getInt(Context, String, int)
get long PreferencesUtil.getLong(Context, String), PreferencesUtil.getLong(Context, String, long)
get float PreferencesUtil.getFloat(Context, String), PreferencesUtil.getFloat(Context, String, float)
get boolean PreferencesUtil.getBoolean(Context, String), PreferencesUtil.getBoolean(Context, String, boolean)
RandomUtil.shuffle(Object[]) Shuffling algorithm, Randomly permutes the specified array using a default source of
randomness
RandomUtil.shuffle(Object[], int) Shuffling algorithm, Randomly permutes the specified array
RandomUtil.shuffle(int[]) Shuffling algorithm, Randomly permutes the specified int array using a default source of
randomness
RandomUtil.shuffle(int[], int) Shuffling algorithm, Randomly permutes the specified int array
get random int
RandomUtil.getRandom(int) get random int between 0 and max
RandomUtil.getRandom(int, int) get random int between min and max
get random numbers or letters
RandomUtil.getRandomCapitalLetters(int) get a fixed-length random string, its a mixture of uppercase letters
RandomUtil.getRandomLetters(int) get a fixed-length random string, its a mixture of uppercase and lowercase letters
RandomUtil.getRandomLowerCaseLetters(int) get a fixed-length random string, its a mixture of lowercase letters
RandomUtil.getRandomNumbers(int) get a fixed-length random string, its a mixture of numbers
RandomUtil.getRandomNumbersAndLetters(int) get a fixed-length random string, its a mixture of uppercase, lowercase
letters and numbers
RandomUtil.getRandom(String, int) get a fixed-length random string, its a mixture of chars in source
RandomUtil.getRandom(char[], int) get a fixed-length random string, its a mixture of chars in sourceChar
ShellUtils#checkRootPermission()
Execte command
ShellUtils#execCommand(String, boolean)
ShellUtils#execCommand(String, boolean, boolean)
ShellUtils#execCommand(List, boolean)
ShellUtils#execCommand(List, boolean, boolean)
ShellUtils#execCommand(String[], boolean)
ShellUtils#execCommand(String[], boolean, boolean)
ShellUtil.CommandResult.result means result of command, 0 means normal, else means error, same to excute in
linux shell
ShellUtil.CommandResult.successMsg means success message of command result
ShellUtil.CommandResult.errorMsg means error message of command result
PackageUtil.uninstallSilent(Context, String)
else see PackageUtil.uninstallNormal(Context, String)