静态 Public 成员函数 | |
| static void | installApk (Context context, File file) |
| static void | uninstallApk (Context context, String packageName) |
| static boolean | isServiceRunning (Context context, String className) |
| static boolean | stopRunningService (Context context, String className) |
| static int | getNumCores () |
| static boolean | isNetworkAvailable (Context context) |
| static boolean | isGpsEnabled (Context context) |
| static boolean | isMobile (Context context) |
| static boolean | importDatabase (Context context, String dbName, int rawRes) |
| static DisplayMetrics | getDisplayMetrics (Context context) |
| static void | showSoftInput (Context context) |
| static void | closeSoftInput (Context context) |
| static PackageInfo | getPackageInfo (Context context) |
| static List< AbAppProcessInfo > | getRunningAppProcesses (Context context) |
| static ApplicationInfo | getApplicationInfo (Context context, String processName) |
| static void | killProcesses (Context context, int pid, String processName) |
| static List< AbPsRow > | ps () |
| static AbPsRow | getPsRow (String processName) |
| static AbProcessInfo | getMemInfo (String processName) |
| static AbProcessInfo | getMemInfo (int pid) |
| static String | runCommand (String[] command, String workdirectory) |
| static String | runScript (String script) |
| static boolean | getRootPermission (Context context) |
| static List< String[]> | getProcessRunningInfo () |
| static String | runCommandTopN1 () |
| static AbCPUInfo | getCPUInfo () |
| static List< String[]> | parseProcessRunningInfo (String info) |
| static AbCPUInfo | parseCPUInfo (String info) |
| static long | getAvailMemory (Context context) |
| static long | getTotalMemory (Context context) |
静态 Public 属性 | |
| static List< String[]> | mProcessList = null |
© 2012 amsoft.cn 名称:AbAppUtil.java 描述:应用工具类.
|
inlinestatic |
关闭键盘事件.
| context | the context |
|
inlinestatic |
描述:根据进程名返回应用程序.
| context | |
| processName |
|
inlinestatic |
描述:获取可用内存.
| context |
|
inlinestatic |
描述:获取进程运行的信息.
|
inlinestatic |
获取屏幕尺寸与密度.
| context | the context |
|
inlinestatic |
描述:根据进程名获取CPU和内存信息.
| processName |
|
inlinestatic |
描述:根据进程ID获取CPU和内存信息.
| pid |
|
inlinestatic |
Gets the number of cores available in this device, across all processors. Requires: Ability to peruse the filesystem at "/sys/devices/system/cpu"
|
inlinestatic |
获取包信息.
| context | the context |
|
inlinestatic |
描述:获取进程运行的信息.
|
inlinestatic |
描述:获得这个进程的ps信息.
| processName |
|
inlinestatic |
应用程序运行命令获取 Root权限,设备必须已破解(获得ROOT权限)
|
inlinestatic |
描述:获取运行的进程列表.
| context |
|
inlinestatic |
描述:总内存.
| context |
|
inlinestatic |
导入数据库.
| context | the context |
| dbName | the db name |
| rawRes | the raw res |
|
inlinestatic |
描述:打开并安装文件.
| context | the context |
| file | apk文件路径 |
|
inlinestatic |
Gps是否打开 需要<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />权限
| context | the context |
|
inlinestatic |
判断当前网络是否是移动数据网络.
| context | the context |
|
inlinestatic |
描述:判断网络是否有效.
| context | the context |
|
inlinestatic |
用来判断服务是否运行.
| context | the context |
| className | 判断的服务名字 "com.xxx.xx..XXXService" |
|
inlinestatic |
描述:kill进程.
| context | |
| pid |
|
inlinestatic |
描述:解析数据.
| info | User 39%, System 17%, IOW 3%, IRQ 0% |
|
inlinestatic |
描述:解析数据.
| info | User 39%, System 17%, IOW 3%, IRQ 0% PID PR CPU% S #THR VSS RSS PCY UID Name 31587 0 39% S 14 542288K 42272K fg u0_a162 cn.amsoft.process 313 1 17% S 12 68620K 11328K fg system /system/bin/surfaceflinger 32076 1 2% R 1 1304K 604K bg u0_a162 /system/bin/top |
|
inlinestatic |
描述:执行PS.
|
inlinestatic |
描述:执行命令.
| command | |
| workdirectory |
|
inlinestatic |
描述:top -n 1.
|
inlinestatic |
描述:运行脚本.
| script |
|
inlinestatic |
打开键盘.
| context | the context |
|
inlinestatic |
停止服务.
| context | the context |
| className | the class name |
|
inlinestatic |
描述:卸载程序.
| context | the context |
| packageName | 包名 |
|
static |
1.8.8