From 6fae051debf5865a7bea1d82acb37b9ff60bc8af Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 7 Nov 2017 09:21:57 +0000 Subject: [PATCH] AndroidTarget: Adds property to retrieve path of external storage In andoid terms the external storage usually means the internal emulated sdcard located at '/sdcard/'. This is the usually the root location used for applications to read files that are not part of the application itself from. --- devlib/target.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devlib/target.py b/devlib/target.py index 350ce55..656f635 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -957,6 +957,11 @@ class AndroidTarget(Target): except KeyError: return None + @property + @memoized + def external_storage(self): + return self.execute('echo $EXTERNAL_STORAGE').strip() + @property @memoized def screen_resolution(self):