mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
Merge pull request #234 from jimboatarm/broadcast_media_mounted
Add broadcast_media_mounted method to android device
This commit is contained in:
commit
e686e89b39
@ -682,6 +682,13 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def broadcast_media_mounted(self, dirpath):
|
||||||
|
"""
|
||||||
|
Force a re-index of the mediaserver cache for the specified directory.
|
||||||
|
"""
|
||||||
|
command = 'am broadcast -a android.intent.action.MEDIA_MOUNTED -d file://'
|
||||||
|
self.execute(command + dirpath)
|
||||||
|
|
||||||
# Internal methods: do not use outside of the class.
|
# Internal methods: do not use outside of the class.
|
||||||
|
|
||||||
def _update_build_properties(self, props):
|
def _update_build_properties(self, props):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user