@@ -43,7 +43,7 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe
4343 if ( this . shouldTransferAllFiles ( platform , deviceAppData ) ) {
4444 localToDevicePaths = this . $projectFilesManager . createLocalToDevicePaths ( deviceAppData , projectFilesPath , null , this . liveSyncData . excludedProjectDirsAndFiles ) ;
4545 this . transferFiles ( deviceAppData , localToDevicePaths , this . liveSyncData . projectFilesPath , true ) . wait ( ) ;
46- device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) ) . wait ( ) ;
46+ device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) , appIdentifier ) . wait ( ) ;
4747 }
4848
4949 if ( postAction ) {
@@ -194,7 +194,7 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe
194194 if ( ! afterFileSyncAction ) {
195195 this . refreshApplication ( deviceAppData , localToDevicePaths , isFullSync ) . wait ( ) ;
196196 }
197- device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( device . deviceInfo . platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) ) . wait ( ) ;
197+ device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( device . deviceInfo . platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) , this . liveSyncData . appIdentifier ) . wait ( ) ;
198198 this . finishLivesync ( deviceAppData ) . wait ( ) ;
199199 if ( afterFileSyncAction ) {
200200 afterFileSyncAction ( deviceAppData , localToDevicePaths ) . wait ( ) ;
@@ -219,10 +219,7 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe
219219 }
220220
221221 private getLiveSyncInfoFilePath ( deviceAppData : Mobile . IDeviceAppData ) {
222- let deviceRootPath = deviceAppData . deviceProjectRootPath ;
223- if ( deviceAppData . device . deviceInfo . platform . toLowerCase ( ) === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
224- deviceRootPath = path . dirname ( deviceRootPath ) ;
225- }
222+ let deviceRootPath = path . dirname ( deviceAppData . deviceProjectRootPath ) ;
226223 let deviceFilePath = path . join ( deviceRootPath , livesyncInfoFileName ) ;
227224 return deviceFilePath ;
228225 }
0 commit comments