Commit a5996cfa by pye52

静默安装命令加"-r",保证是reinstall,避免报INSTALL_FAILED_ALREADY_EXISTS

parent 9e2aa3c6
......@@ -110,7 +110,7 @@ public class DangerousUtils {
final boolean isRooted) {
if (!isFileExists(file)) return false;
String filePath = '"' + file.getAbsolutePath() + '"';
String command = "LD_LIBRARY_PATH=/vendor/lib*:/system/lib* pm install " +
String command = "LD_LIBRARY_PATH=/vendor/lib*:/system/lib* pm install -r " +
(params == null ? "" : params + " ")
+ filePath;
ShellUtils.CommandResult commandResult = ShellUtils.execCmd(command, isRooted);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment