I'm able to install own application into /system/app using adb shell commands. But how to uninstall it? Is there any commands to do it? My phone is rooted.
我能够使用adb shell命令将自己的应用程序安装到/system/app中。但是如何卸载它呢?有什么命令可以执行吗?我的电话是根深蒂固的。
5 个解决方案
#1
14
Manual uninstall using ADB :
使用ADB进行手动卸载:
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
Programmatically:
编程:
public static void deleteFromSystem (final String file)
{
try
{
if (new File(file).exists())
{
String path = new File(file).getParent();
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("mount -o rw,remount /system; \n");
os.writeBytes("chmod 777 " + path + "; \n");
os.writeBytes("chmod 777 " + file + "; \n");
os.writeBytes("rm -r " + file + "; \n");
os.writeBytes("mount -o ro,remount /system; \n");
os.writeBytes("reboot \n");
os.flush();
os.close();
process.waitFor();
}
}
catch (Throwable e) {e.printStackTrace();}
}
#2
11
adb shell rm /system/app/MyApp*
adb uninstall org.my.app
#3
5
Assuming you have root access to device:
假设您有对设备的根访问权限:
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/myApp.apk
rm -rf /data/data/com.example.myapp
mount -o ro,remount /system
exit
exit
#4
1
Im not sure if you have to do this on every device (may be it can be achieved just by root access on some devices ) but on htc desire you have to reboot to the recovery mode Then you can copy your apk to the sdcard and then using adb shell to the /system/app folder you should create a nandroid backup first
我不确定你要做这个在每一个设备可以实现(可能是通过根访问一些设备)但在htc欲望必须重启恢复模式可以复制你的apk sdcard然后使用adb shell /系统/应用程序文件夹您应该创建一个nandroid先备份
#5
0
Assuming you have root access to device:
假设您有对设备的根访问权限:
adb shell su mount -o rw,remount/system rm -rf /system/app/myApp.apk rm -rf /data/data/com.example.myapp mount -o ro,remount/system exit exit
adb shell su -o rw,remount/system rm -rf /system/app/myApp。com . example。apk rm射频/数据/数据/安装-o ro,重新安装/系统退出
#1
14
Manual uninstall using ADB :
使用ADB进行手动卸载:
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
Programmatically:
编程:
public static void deleteFromSystem (final String file)
{
try
{
if (new File(file).exists())
{
String path = new File(file).getParent();
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("mount -o rw,remount /system; \n");
os.writeBytes("chmod 777 " + path + "; \n");
os.writeBytes("chmod 777 " + file + "; \n");
os.writeBytes("rm -r " + file + "; \n");
os.writeBytes("mount -o ro,remount /system; \n");
os.writeBytes("reboot \n");
os.flush();
os.close();
process.waitFor();
}
}
catch (Throwable e) {e.printStackTrace();}
}
#2
11
adb shell rm /system/app/MyApp*
adb uninstall org.my.app
#3
5
Assuming you have root access to device:
假设您有对设备的根访问权限:
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/myApp.apk
rm -rf /data/data/com.example.myapp
mount -o ro,remount /system
exit
exit
#4
1
Im not sure if you have to do this on every device (may be it can be achieved just by root access on some devices ) but on htc desire you have to reboot to the recovery mode Then you can copy your apk to the sdcard and then using adb shell to the /system/app folder you should create a nandroid backup first
我不确定你要做这个在每一个设备可以实现(可能是通过根访问一些设备)但在htc欲望必须重启恢复模式可以复制你的apk sdcard然后使用adb shell /系统/应用程序文件夹您应该创建一个nandroid先备份
#5
0
Assuming you have root access to device:
假设您有对设备的根访问权限:
adb shell su mount -o rw,remount/system rm -rf /system/app/myApp.apk rm -rf /data/data/com.example.myapp mount -o ro,remount/system exit exit
adb shell su -o rw,remount/system rm -rf /system/app/myApp。com . example。apk rm射频/数据/数据/安装-o ro,重新安装/系统退出