Allow downgrade via root installer

This commit is contained in:
Dominik Schürmann 2015-05-10 21:09:38 +02:00
parent 198c9fbaff
commit 9f7536a926

View File

@ -143,7 +143,7 @@ public class RootInstaller extends Installer {
return;
}
rootSession.addCommand("pm install -r \"" + apkFile.getAbsolutePath() + "\"", 0,
rootSession.addCommand("pm install -dr \"" + apkFile.getAbsolutePath() + "\"", 0,
new Shell.OnCommandResultListener() {
public void onCommandResult(int commandCode, int exitCode, List<String> output) {
// close su shell
@ -162,7 +162,7 @@ public class RootInstaller extends Installer {
private void addInstallCommand(List<File> apkFiles) {
List<String> commands = new ArrayList<>();
String pm = "pm install -r ";
String pm = "pm install -dr ";
for (File apkFile : apkFiles) {
// see addInstallCommand()
if (!isValidPackageName(apkFile.getName())) {