mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 00:52:08 +00:00 
			
		
		
		
	AndroidDevice: Use content instead of settings to get ANDROID_ID
We move from using settings to using content to get the ANDROID_ID as this works across a wider range of Android versions.
This commit is contained in:
		@@ -236,7 +236,8 @@ class AndroidDevice(BaseLinuxDevice):  # pylint: disable=W0223
 | 
			
		||||
        .. note:: This will get reset on userdata erasure.
 | 
			
		||||
 | 
			
		||||
        """
 | 
			
		||||
        return self.execute('settings get secure android_id').strip()
 | 
			
		||||
        output = self.execute('content query --uri content://settings/secure --projection value --where "name=\'android_id\'"').strip()
 | 
			
		||||
        return output.split('value=')[-1]
 | 
			
		||||
 | 
			
		||||
    def get_sdk_version(self):
 | 
			
		||||
        try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user