@with_device
def disable_verity():
 with log.waitfor(('Disabling dm-verity on %s' % context.device)) as w:
  root()
  with AdbClient() as c:
   reply = c.disable_verity()
  if ('Verity already disabled' in reply):
   return
  elif ('Now reboot your device' in reply):
   reboot(wait=True)
  elif ('0006closed' in reply):
   return
  else:
   log.error(('Could not disable verity:\n%s' % reply))

@ with_device def disable_verity ( ) : with log . waitfor ( ( 'Disabling dm-verity on %s' % context . device ) ) as w : root ( ) with AdbClient ( ) as c : reply = c . disable_verity ( ) if ( 'Verity already disabled' in reply ) : return elif ( 'Now reboot your device' in reply ) : reboot ( wait = True ) elif ( '0006closed' in reply ) : return else : log . error ( ( 'Could not disable verity:\n%s' % reply ) )
disables dm-verity on the device .