做一下记录:
find /sdcard/log/crash/ -mtime +30 | xargs rm -rf
……继续阅读 »
sharezer
6年前 (2017-08-10) 2288浏览 0评论
0个赞
pm dump【包名】| grep -A 1 android.intent.action.MAIN: | tail -1
PS:windows貌似不能使用tail
……继续阅读 »
sharezer
6年前 (2017-07-03) 2300浏览 0评论
1个赞
/**
* 通过包名获取task id,不存在为-1
*
* @param packageName
* @return
*/
public int getTaskId(String packageName) {
String result = execRootCmd("dumpsys activity | grep " + packageName);
int start = result.indexOf("TaskRecord{");
if(start > 0){
int end = result……继续阅读 »
sharezer
6年前 (2017-07-03) 3270浏览 0评论
0个赞
步骤:
root权限
解除目录权限
拷贝更新文件
赋值644权限给安装的文件
重启
su
mount -o remount/system/app
cp mnt/sdcard/sda1/DanceDemp.apk /system/app //app下有时候不行,改到/system下
chmod 644 /system/app/DanceDemp.apk
reboot
……继续阅读 »
sharezer
7年前 (2016-07-27) 2316浏览 0评论
0个赞