def run_adb(args, adb_opts = {}, &block) # :yields: stdout
      adb_arg = ""
      adb_arg += " -s #{adb_opts[:serial]}" unless adb_opts[:serial].nil? || adb_opts[:serial].empty?
      adb_arg += " -e" if adb_opts[:emulator]
      adb_arg += " -d" if adb_opts[:device]
      path = "#{@adb_path}#{adb_arg} #{args}"
      last_command = path
      run(path, &block)
    end
def run_adb(args, adb_opts = {}, &block) # :yields: stdout
      adb_arg = ""
      adb_arg += " -s #{adb_opts[:serial]}" unless adb_opts[:serial].nil? || adb_opts[:serial].empty?
      adb_arg += " -e" if adb_opts[:emulator]
      adb_arg += " -d" if adb_opts[:device]
      path = "#{@adb_path}#{adb_arg} #{args}"
      last_command = path
      run(path, &block)
    end
Run the adb command with the give <tt>args</tt>.
 @param [String] args Arguments to the adb command.
 @param [Hash] adb_opts Options for the adb command.
 @option adb_opts [String] :serial directs command to the USB device or emulator with the given serial number.
 @option adb_opts [Boolean] :emulator Directs command to the only running emulator. Returns an error if more than one emulator is running.
 @option adb_opts [Boolean] :device Directs command to the only connected USB device. Returns an error if more than one USB device connected.
 @yield [stdout] The standard output of the adb command.