mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: Expose Android external storage app dir
FEATURE Add a convenience property for AndroidTarget to expose Android's external storage app directory path. This path is used for some applications (such as Unity games) to store persistent application data instead of '/data/data'. Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
This commit is contained in:
parent
ac0c39e31a
commit
be988bb42b
@ -1754,6 +1754,11 @@ class AndroidTarget(Target):
|
|||||||
def external_storage(self):
|
def external_storage(self):
|
||||||
return self.execute('echo $EXTERNAL_STORAGE').strip()
|
return self.execute('echo $EXTERNAL_STORAGE').strip()
|
||||||
|
|
||||||
|
@property
|
||||||
|
@memoized
|
||||||
|
def external_storage_app_dir(self):
|
||||||
|
return self.path.join(self.external_storage, 'Android', 'data')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@memoized
|
@memoized
|
||||||
def screen_resolution(self):
|
def screen_resolution(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user