diff --git a/lib/common b/lib/common index 689f53d7d2..5e6ac645bf 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 689f53d7d222bf80fa1dbf80ed7053eb68105d7f +Subproject commit 5e6ac645bf45ccf7cd47d002a3a4b3044df5c0ad diff --git a/lib/services/usb-livesync-service.ts b/lib/services/usb-livesync-service.ts index 8005c83002..fb2d542528 100644 --- a/lib/services/usb-livesync-service.ts +++ b/lib/services/usb-livesync-service.ts @@ -30,7 +30,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer public liveSync(platform: string): IFuture { return (() => { - platform = this.initialize(platform).wait(); + platform = platform || this.initialize(platform).wait(); this.$platformService.preparePlatform(platform).wait(); let platformData = this.$platformsData.getPlatformData(platform.toLowerCase()); @@ -107,7 +107,9 @@ export class AndroidUsbLiveSyncService extends androidLiveSyncServiceLib.Android let devicePathRoot = `/data/data/${deviceAppData.appIdentifier}/files`; _.each(localToDevicePaths, localToDevicePath => { let devicePath = this.$mobileHelper.correctDevicePath(path.join(devicePathRoot, localToDevicePath.getRelativeToProjectBasePath())); - commands.push(`mv "${localToDevicePath.getDevicePath()}" "${devicePath}"`); + if(this.$fs.getFsStats(localToDevicePath.getLocalPath()).wait().isFile()) { + commands.push(`mv "${localToDevicePath.getDevicePath()}" "${devicePath}"`); + } }); commands.push(`rm -rf ${this.$mobileHelper.buildDevicePath(devicePathRoot, "code_cache", "secondary_dexes", "proxyThumb")}`);