Skip to content

Livesync doesn't seem to work for physical Android devices #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
enchev opened this issue Aug 3, 2015 · 4 comments
Closed

Livesync doesn't seem to work for physical Android devices #732

enchev opened this issue Aug 3, 2015 · 4 comments
Labels
Milestone

Comments

@enchev
Copy link
Contributor

enchev commented Aug 3, 2015

From @maknz on July 29, 2015 3:45

We are trying out the new livesync functionality. It's working fine in a Genymotion Nexus 5 with:

tns livesync android --device 192.168.56.101:5555 --watch

If we make a change and run that command (for the first time), any changes are brought over (just like a run), and any subsequent changes are brought over quick-fast just as expected.

However, it doesn't work with a Nexus 5 connected via USB with:

tns livesync android --device 056a3ac9f0dd8332 --watch

Any changes made before the command was run are not brought over, and no subsequent changes are brought over. The app is "rebooted" on the device successfully, as if new changes should be applying, but the old version remains. Notably, tns run android works fine on both.

Copied from original issue: NativeScript/NativeScript#506

@enchev
Copy link
Contributor Author

enchev commented Aug 3, 2015

From @Fatme on July 29, 2015 5:41

Hi @maknz,

Can you try to execute tns livesync android --device 056a3ac9f0dd8332 --watch --log trace and send us the output?

@enchev
Copy link
Contributor Author

enchev commented Aug 3, 2015

From @maknz on July 29, 2015 5:46

There's a great deal of logs being generated, all look to be related to permission errors. Here is an excerpt from the tail of the log. Please let me know if that's insufficient and I'll dump the full log somewhere outside Github.

mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/text-view/text-view-common.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/text-view/text-view-common.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/text-view/text-view.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/text-view/text-view.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/time-picker/package.json to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/time-picker/package.json: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/time-picker/time-picker-common.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/time-picker/time-picker-common.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/time-picker/time-picker.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/time-picker/time-picker.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/web-view/package.json to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/web-view/package.json: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/web-view/web-view-common.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/web-view/web-view-common.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/ui/web-view/web-view.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/ui/web-view/web-view.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/utils/android_constants.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/utils/android_constants.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/utils/module-merge.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/utils/module-merge.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/utils/number-utils.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/utils/number-utils.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/utils/types.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/utils/types.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/utils/utils-common.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/utils/utils-common.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/utils/utils.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/utils/utils.js: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/xml/package.json to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/xml/package.json: Permission denied
mv: rename /data/local/tmp/12590FAA-5EDD-4B12-856D-F52A0A1599F2/org.nativescript.thirdcoming/app/tns_modules/xml/xml.js to /data/data/org.nativescript.thirdcoming/files/app/tns_modules/xml/xml.js: Permission denied
stderr:
Shell command "adb" -s 056a3ac9f0dd8332 shell am force-stop org.nativescript.thirdcoming
Exec "adb" -s 056a3ac9f0dd8332 shell am force-stop org.nativescript.thirdcoming
stdout:
stderr:
Shell command "adb" -s 056a3ac9f0dd8332 shell am start -a android.intent.action.MAIN -n org.nativescript.thirdcoming/com.tns.NativeScriptActivity -c android.intent.category.LAUNCHER
Exec "adb" -s 056a3ac9f0dd8332 shell am start -a android.intent.action.MAIN -n org.nativescript.thirdcoming/com.tns.NativeScriptActivity -c android.intent.category.LAUNCHER
stdout: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.nativescript.thirdcoming/com.tns.NativeScriptActivity }
stderr:
Successfully synced application org.nativescript.thirdcoming on device 056a3ac9f0dd8332.

@Fatme
Copy link
Contributor

Fatme commented Aug 4, 2015

Hi @maknz,

I've investigated your issue and found the problem. The fix will be included in 1.2.2 version of {N} CLI which is planned for the end of the week.

@vchimev
Copy link

vchimev commented Aug 19, 2015

Hi @maknz,

the problem is resolved in {N} CLI version 1.2.2 or later. Related issue #742, closing this one, may be reopened if needed.

@vchimev vchimev closed this as completed Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants