Skip to content

Commit cc354e1

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #894 from NativeScript/fatme/give-permissions-to-livesync-folders
Give full permission to livesync folder so android-runtime can successfully remove it
2 parents 000afd2 + 075321c commit cc354e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/services/usb-livesync-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ export class AndroidUsbLiveSyncService extends androidLiveSyncServiceLib.Android
156156

157157
public restartApplication(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): IFuture<void> {
158158
return (() => {
159+
this.device.adb.executeShellCommand(["chmod", "777", deviceAppData.deviceProjectRootPath]).wait();
160+
159161
if(this.$options.companion) {
160162
let commands = [ this.liveSyncCommands.SyncFilesCommand() ];
161163
this.livesync(deviceAppData.appIdentifier, deviceAppData.deviceProjectRootPath, commands).wait();

0 commit comments

Comments
 (0)