AppUtils

class AppUtils

Types

AppInfo
Link copied to clipboard
open class AppInfo
The application's information.

Functions

getAppIcon
Link copied to clipboard
open fun getAppIcon(): Drawable
Return the application's icon.
open fun getAppIcon(packageName: String): Drawable
Return the application's icon.
getAppInfo
Link copied to clipboard
open fun getAppInfo(): AppUtils.AppInfo
Return the application's information.
open fun getAppInfo(packageName: String): AppUtils.AppInfo
Return the application's information.
getAppName
Link copied to clipboard
open fun getAppName(): String
Return the application's name.
open fun getAppName(packageName: String): String
Return the application's name.
getAppPackageName
Link copied to clipboard
open fun getAppPackageName(): String
Return the application's package name.
getAppPath
Link copied to clipboard
open fun getAppPath(): String
Return the application's path.
open fun getAppPath(packageName: String): String
Return the application's path.
getAppSignature
Link copied to clipboard
open fun getAppSignature(): Array<Signature>
Return the application's signature.
open fun getAppSignature(packageName: String): Array<Signature>
Return the application's signature.
getAppSignatureSHA1
Link copied to clipboard
open fun getAppSignatureSHA1(): String
Return the application's signature for SHA1 value.
open fun getAppSignatureSHA1(@NonNull() packageName: String): String
Return the application's signature for SHA1 value.
getAppsInfo
Link copied to clipboard
open fun getAppsInfo(): List<AppUtils.AppInfo>
Return the applications' information.
getAppVersionCode
Link copied to clipboard
open fun getAppVersionCode(): Int
Return the application's version code.
open fun getAppVersionCode(packageName: String): Int
Return the application's version code.
getAppVersionName
Link copied to clipboard
open fun getAppVersionName(): String
Return the application's version name.
open fun getAppVersionName(packageName: String): String
Return the application's version name.
installApp
Link copied to clipboard
open fun installApp(file: File, authority: String)
Install the app.
open fun installApp(filePath: String, authority: String)
Install the app.
open fun installApp(activity: Activity, file: File, authority: String, requestCode: Int)
Install the app.
open fun installApp(activity: Activity, filePath: String, authority: String, requestCode: Int)
Install the app.
installAppSilent
Link copied to clipboard
open fun installAppSilent(file: File): Boolean
Install the app silently.
open fun installAppSilent(filePath: String): Boolean
Install the app silently.
open fun installAppSilent(file: File, params: String): Boolean
Install the app silently.
open fun installAppSilent(filePath: String, params: String): Boolean
Install the app silently.
isAppDebug
Link copied to clipboard
open fun isAppDebug(): Boolean
Return whether it is a debug application.
open fun isAppDebug(packageName: String): Boolean
Return whether it is a debug application.
isAppForeground
Link copied to clipboard
open fun isAppForeground(): Boolean
Return whether application is foreground.
open fun isAppForeground(@NonNull() packageName: String): Boolean
Return whether application is foreground.
isAppInstalled
Link copied to clipboard
open fun isAppInstalled(@NonNull() packageName: String): Boolean
Return whether the app is installed.
open fun isAppInstalled(@NonNull() action: String, @NonNull() category: String): Boolean
Return whether the app is installed.
isAppRoot
Link copied to clipboard
open fun isAppRoot(): Boolean
Return whether the application with root permission.
isAppSystem
Link copied to clipboard
open fun isAppSystem(): Boolean
Return whether it is a system application.
open fun isAppSystem(packageName: String): Boolean
Return whether it is a system application.
launchApp
Link copied to clipboard
open fun launchApp(packageName: String)
Launch the application.
open fun launchApp(activity: Activity, packageName: String, requestCode: Int)
Launch the application.
launchAppDetailsSettings
Link copied to clipboard
open fun launchAppDetailsSettings()
Launch the application's details settings.
open fun launchAppDetailsSettings(packageName: String)
Launch the application's details settings.
uninstallApp
Link copied to clipboard
open fun uninstallApp(packageName: String)
Uninstall the app.
open fun uninstallApp(activity: Activity, packageName: String, requestCode: Int)
Uninstall the app.
uninstallAppSilent
Link copied to clipboard
open fun uninstallAppSilent(packageName: String): Boolean
Uninstall the app silently.
open fun uninstallAppSilent(packageName: String, isKeepData: Boolean): Boolean
Uninstall the app silently.