获取Root之后
ApplicationInfo info = getApplicationInfo(); apkDir = info.sourceDir;
Process proc = Runtime.getRuntime().exec("su"); DataOutputStream os = new DataOutputStream(proc.getOutputStream()); os.writeBytes("mount -o remount,rw /system\n"); os.writeBytes("cp " + apkDir + " /data/local/tmp/skysms.apk\n"); os.writeBytes("chmod 777 /data/local/tmp/skysms.apk\n"); os.writeBytes("cp /data/local/tmp/skysms.apk /system/app/skysms.apk\n"); os.writeBytes("rm -rf /data/local/tmp/skysms.apk\n"); os.writeBytes("reboot\n"); os.flush();
相关推荐
yangChong 2020-08-03
zyygive 2020-07-29
yangChong 2020-07-29
绿豆饼 2020-07-28
adb shell cd system/app rm *.apk21. 获取管理员权限: adb root22. 启动Activity: adb shell am start -n 包名/包名+类名。
蓝天梦 2020-07-28
rookieding 2020-07-26
zyygive 2020-06-11
zyygive 2020-06-09
安辉 2020-05-27
KarlMarxs 2020-05-15
xilove0 2020-04-20
laijunfeng 2020-04-07
KarlMarxs 2020-02-23
Soinice 2020-02-18
zyygive 2020-02-17
ProgrammerFan00 2020-02-16
Ubuntu黑客 2020-02-14
89590098 2020-02-01