@with_device
def unroot():
 log.info(('Unrooting %s' % context.device))
 with context.quiet:
  with AdbClient() as c:
   reply = c.unroot()
 if ('0006closed' == reply):
  return
 if ('restarting adbd as non root' not in reply):
  log.error(('Could not unroot:\n%s' % reply))

@ with_device def unroot ( ) : log . info ( ( 'Unrooting %s' % context . device ) ) with context . quiet : with AdbClient ( ) as c : reply = c . unroot ( ) if ( '0006closed' == reply ) : return if ( 'restarting adbd as non root' not in reply ) : log . error ( ( 'Could not unroot:\n%s' % reply ) )
restarts adbd as aid_shell .