mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	Merge pull request #92 from ionela-voinescu/force_adb_root
android: add support for forced adb root
This commit is contained in:
		@@ -1043,9 +1043,9 @@ class AndroidTarget(Target):
 | 
			
		||||
    def adb_reboot_bootloader(self, timeout=30):
 | 
			
		||||
        adb_command(self.adb_name, 'reboot-bootloader', timeout)
 | 
			
		||||
 | 
			
		||||
    def adb_root(self, enable=True):
 | 
			
		||||
    def adb_root(self, enable=True, force=False):
 | 
			
		||||
        if enable:
 | 
			
		||||
            if self._connected_as_root:
 | 
			
		||||
            if self._connected_as_root and not force:
 | 
			
		||||
                return
 | 
			
		||||
            adb_command(self.adb_name, 'root', timeout=30)
 | 
			
		||||
            self._connected_as_root = True
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user