android - How to uninstall own app from /system/app? -
android - How to uninstall own app from /system/app? -
i'm able install own application /system/app using adb shell commands. how uninstall it? there commands it? phone rooted.
manual uninstall using adb :
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
programmatically:
public static void deletefromsystem (final string file) { seek { 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(); } } grab (throwable e) {e.printstacktrace();} }
android shell uninstall
Comments
Post a Comment