mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	AndroidDevice: Pylint Fix
This commit is contained in:
		| @@ -722,7 +722,7 @@ class AndroidDevice(BaseLinuxDevice):  # pylint: disable=W0223 | |||||||
|         appropriate method of forcing a re-index of the mediaserver cache for a given |         appropriate method of forcing a re-index of the mediaserver cache for a given | ||||||
|         list of files. |         list of files. | ||||||
|         """ |         """ | ||||||
|         if self.device.is_rooted or self.device.get_sdk_version() < 24: # MM and below |         if self.device.is_rooted or self.device.get_sdk_version() < 24:  # MM and below | ||||||
|             common_path = commonprefix(file_list, sep=self.device.path.sep) |             common_path = commonprefix(file_list, sep=self.device.path.sep) | ||||||
|             self.broadcast_media_mounted(common_path, self.device.is_rooted) |             self.broadcast_media_mounted(common_path, self.device.is_rooted) | ||||||
|         else: |         else: | ||||||
| @@ -743,9 +743,7 @@ class AndroidDevice(BaseLinuxDevice):  # pylint: disable=W0223 | |||||||
|         command = 'am broadcast -a  android.intent.action.MEDIA_MOUNTED -d file://' |         command = 'am broadcast -a  android.intent.action.MEDIA_MOUNTED -d file://' | ||||||
|         self.execute(command + dirpath, as_root=as_root) |         self.execute(command + dirpath, as_root=as_root) | ||||||
|  |  | ||||||
|  |  | ||||||
|     # 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): | ||||||
|         try: |         try: | ||||||
|             def strip(somestring): |             def strip(somestring): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user