Skip to content

Commit 57e04b8

Browse files
Fix livesync on Android devices and Genymotion emulator
The following fix has been applied in common lib: On some Android devices the `android-runtime` cannot delete the files in `/data/local/tmp/<app id>/fullsync` directory. The next time when the application is started, runtime reads the fullsync directory and replaces the real application with content of fullsync dir. So the app does not start as it is not full app. Fix two issues - first one is missing `chmod` command in the file that we are generating. As we cannot spawn chmod of all files directly, due to some command line limitations, we are writing the command in a file, transfer the file on the device and execute it. BUT, we've lost the command in this commit telerik/mobile-cli-lib@6d52c6a In fact our file contains only list of files and when trying to execute it on the device, we receive error, but we have added parameter to `spawnFromEvent` not to throw. So the error is hidden. Add the missing chmod, so the command can be executed successfully. However this fixes the issues for some files, but when we have directories, we do not write them in the file, so android runtime does not have permissions to delete them and they remain in fullsync directory. Fix this by including directories in the list of application files (not sure if this will not break something else).
1 parent 463987b commit 57e04b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0 commit comments

Comments
 (0)