Skip to content
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

App tries to write in /data/local/tmp #828

Closed
Plamen5kov opened this issue Aug 18, 2017 · 2 comments
Closed

App tries to write in /data/local/tmp #828

Plamen5kov opened this issue Aug 18, 2017 · 2 comments
Labels
Milestone

Comments

@Plamen5kov
Copy link
Contributor

Plamen5kov commented Aug 18, 2017

App tries to write in /data/local/tmp, but that's not permitted in higher API levels. We need to find another way to work with vscode extension.

problem
Higher API level Android emulators and devices allow applications to read from /data/local/tmp, but not to write. Problem with that is the vs_code_extension coode in RuntimeHelper.java, which tries to write to /data/local/tmp, but can't.

solution
one possible solution is using sockets, just like we do with livesync. This will allow the runtime to communicate the information to CLI. CLI has the permissions to write in /data/local/tmp.

@petekanev
Copy link
Contributor

@Plamen5kov the same case applies to the debug-brk flag we use.

@Plamen5kov
Copy link
Contributor Author

Update: This problem is caused by the fact the application tries to write files to directories that have changed permissions in higher API levels. The problem can be solved by implementing livesync to work entirely through sockets once the application starts up.
Part of the implementation is already in a branch. If you want to follow the progress on this feature, follow this issue.

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

4 participants