def adb(argv, *a, **kw):
 if isinstance(argv, (str, unicode)):
  argv = [argv]
 log.debug(('$ ' + ' '.join((context.adb + argv))))
 if (argv[0] == 'shell'):
  return process(argv[1:], *a, **kw).recvall()
 return tubes.process.process((context.adb + argv), *a, **kw).recvall()

def adb ( argv , * a , ** kw ) : if isinstance ( argv , ( str , unicode ) ) : argv = [ argv ] log . debug ( ( '$ ' + ' ' . join ( ( context . adb + argv ) ) ) ) if ( argv [ 0 ] == 'shell' ) : return process ( argv [ 1 : ] , * a , ** kw ) . recvall ( ) return tubes . process . process ( ( context . adb + argv ) , * a , ** kw ) . recvall ( )
returns the output of an adb subcommand .