Skip to content

Commit 857edbd

Browse files
marcbonnicisetrofim
authored andcommitted
AndroidTarget: Change android default working directory.
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.
1 parent f52ac66 commit 857edbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devlib/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ def homescreen(self):
13811381

13821382
def _resolve_paths(self):
13831383
if self.working_directory is None:
1384-
self.working_directory = '/data/local/tmp/devlib-target'
1384+
self.working_directory = self.path.join(self.external_storage, 'devlib-target')
13851385
self._file_transfer_cache = self.path.join(self.working_directory, '.file-cache')
13861386
if self.executables_directory is None:
13871387
self.executables_directory = '/data/local/tmp/bin'

0 commit comments

Comments
 (0)