I want to develop an open source app for uninstalling applications. How can I do this?
And how can I uninstall an app that is in /system/app/ after I gain root access?
Thanks
I want to develop an open source app for uninstalling applications. How can I do this?
And how can I uninstall an app that is in /system/app/ after I gain root access?
Thanks
You can execute adb commands
from within your app if you have root
access like this
Process process = Runtime.getRuntime().exec("your command");
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
use try catch
as well for this code
After a little searching on the android developer website I found this package installer which facilitates the installation and removal (amongst other things) of apps.
public class PackageInstaller
void uninstall (String packageName,
IntentSender statusReceiver)
Uninstall the given package, removing it completely from the device.
I hope this covers your requirements.