Compatible with directory

This commit is contained in:
wangyupeng1-iri 2017-07-10 21:48:15 +08:00
parent 32919676e9
commit 10c612abca

View File

@ -82,8 +82,16 @@ class PluginDebugger {
return false return false
} }
//"/"
String apkPath = "${config.phoneStorageDir}"
if (!apkPath.endsWith("/")) {
//
apkPath += "/"
}
apkPath += "${apkFile.name}"
//广 //广
String installBrCmd = "${adbFile.absolutePath} shell am broadcast -a ${config.hostApplicationId}.replugin.install -e path ${config.phoneStorageDir}${apkFile.name} -e immediately true " String installBrCmd = "${adbFile.absolutePath} shell am broadcast -a ${config.hostApplicationId}.replugin.install -e path ${apkPath} -e immediately true "
if (0 != CmdUtil.syncExecute(installBrCmd)) { if (0 != CmdUtil.syncExecute(installBrCmd)) {
return false return false
} }