Auto launch new app after repackaging/restoring Manager

This commit is contained in:
topjohnwu
2018-11-27 03:56:14 -05:00
parent e8cba3524e
commit 5fb96cdcf4
4 changed files with 13 additions and 2 deletions
@@ -25,6 +25,10 @@ public class RootUtils extends Shell.Initializer {
Shell.su("db_clean " + Const.USER_ID, "pm uninstall " + pkg).exec();
}
public static void rmAndLaunch(String rm, String launch) {
Shell.su(Utils.fmt("(rm_launch %d %s %s)&", Const.USER_ID, rm, launch)).exec();
}
@Override
public boolean onInit(Context context, @NonNull Shell shell) {
Shell.Job job = shell.newJob();