1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

Merge pull request #234 from jimboatarm/broadcast_media_mounted

Add broadcast_media_mounted method to android device
This commit is contained in:
Sebastian Goscik 2016-08-31 11:43:42 +01:00 committed by GitHub
commit e686e89b39

View File

@ -682,6 +682,13 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
except KeyError:
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.
def _update_build_properties(self, props):