Sha256: 57846c7aaa82347d73287c8fbb2e26b291aee9259e812440a8fac26d258c793a
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
module EmuCtl class ADB def self.devices _, stdout, _ = Open3.popen3('adb devices') lines = [] stdout.each_line { |l| lines.push(l) } lines.join end def self.boot_complete? _, stdout, stderr = Open3.popen3('adb shell getprop dev.bootcomplete') return stderr.gets.nil? end def self.unlock_emulator system 'adb shell input keyevent 82' system 'adb shell input keyevent 4' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emu_ctl-0.0.2 | lib/emu_ctl/adb.rb |