Fix repackaging

This commit is contained in:
topjohnwu
2018-02-13 03:27:27 +08:00
parent b9e7d0faea
commit bffa837825
3 changed files with 30 additions and 15 deletions
@@ -130,12 +130,13 @@ public class HideManager extends ParallelTask<Void, Void, Boolean> {
}
// Install the application
if (ShellUtils.fastCmdResult(Shell.getShell(), "pm install " + repack))
if (!ShellUtils.fastCmdResult(Shell.getShell(), "pm install " + repack))
return false;
repack.delete();
mm.suDB.setStrings(Const.Key.SU_REQUESTER, pkg);
mm.suDB.flush();
Utils.dumpPrefs();
Utils.uninstallPkg(Const.ORIG_PKG_NAME);