mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	AndroidTarget: Fix additional paramter to adb_root
				
					
				
			Remove the target `adb_name` from the call as this method is an instance method.
This commit is contained in:
		@@ -1534,7 +1534,7 @@ class AndroidTarget(Target):
 | 
				
			|||||||
            raise TargetStableError('Cannot enable adb root without adb connection')
 | 
					            raise TargetStableError('Cannot enable adb root without adb connection')
 | 
				
			||||||
        if enable and self.connected_as_root and not force:
 | 
					        if enable and self.connected_as_root and not force:
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
        self.conn.adb_root(self.adb_name, enable=enable)
 | 
					        self.conn.adb_root(enable=enable)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def is_screen_on(self):
 | 
					    def is_screen_on(self):
 | 
				
			||||||
        output = self.execute('dumpsys power')
 | 
					        output = self.execute('dumpsys power')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user