Skip to content

Commit

Permalink
AndroidTarget: Change android default working directory.
Browse files Browse the repository at this point in the history
Changes the default working directory from
`/data/local/tmp/` to be on the devices external storage
(discovered from $EXTERNAL_STORAGE) which is usually `/sdcard`.
This is due to permission errors on some devices, to be readable
by android applications and will usually have a larger capacity.
  • Loading branch information
marcbonnici authored and setrofim committed Nov 30, 2017
1 parent f52ac66 commit 857edbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devlib/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ def homescreen(self):

def _resolve_paths(self):
if self.working_directory is None:
self.working_directory = '/data/local/tmp/devlib-target'
self.working_directory = self.path.join(self.external_storage, 'devlib-target')
self._file_transfer_cache = self.path.join(self.working_directory, '.file-cache')
if self.executables_directory is None:
self.executables_directory = '/data/local/tmp/bin'
Expand Down

0 comments on commit 857edbd

Please sign in to comment.