android开发之卸载app会调用哪个方法
1个回答
展开全部
清楚应用数据和裂拦卸载应用,直接执行命令:
*
String
cmd
=
"肆樱胡pm
clear
"
+
packageName;
或者
*
String
cmd
=
"pm
clear
"
+
packageName
+
"
HERE";
*
String
cmd
=
"pm
uninstall
"
+
packageName;
或者
*
String
cmd
=
"pm
uninstall
"
+
packageName
+
"
HERE";
*
String
cmd
=
"pm
install
"
+
apk_path;
或者
*
String
cmd
=
"pm
uninstall
"颂宏
+
apk_path+
"
HERE";
*
String
cmd
=
"肆樱胡pm
clear
"
+
packageName;
或者
*
String
cmd
=
"pm
clear
"
+
packageName
+
"
HERE";
*
String
cmd
=
"pm
uninstall
"
+
packageName;
或者
*
String
cmd
=
"pm
uninstall
"
+
packageName
+
"
HERE";
*
String
cmd
=
"pm
install
"
+
apk_path;
或者
*
String
cmd
=
"pm
uninstall
"颂宏
+
apk_path+
"
HERE";
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询