#NEWLINE# def __get_adb_shell( self ) : #NEWLINE# #INDENT# 'Return the appropriate "adb shell" command for the current device,\n        taking into account the type of root available.\n\n        Returns the command as a list.' #NEWLINE# shell = ( self . command + [ 'shell' ] ) #NEWLINE# if ( self . root_adb == 'root_adb' ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . root_adb == 'root_shell' ) : #NEWLINE# #INDENT# shell . extend ( [ 'su' , '-c' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . root_adb == 'not_root' ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self