Skip to content

Commit

Permalink
Land #8587, Add android wakelock command to turn the screen on
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Cook committed Jun 21, 2017
2 parents 225629a + a659364 commit eb4c4c9
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -701,6 +701,7 @@ def cmd_wakelock(*args)
wakelock_opts = Rex::Parser::Arguments.new(
'-h' => [ false, 'Help Banner' ],
'-r' => [ false, 'Release wakelock' ],
'-w' => [ false, 'Turn screen on' ],
'-f' => [ true, 'Advanced Wakelock flags (e.g 268435456)' ],
)

Expand All @@ -713,6 +714,9 @@ def cmd_wakelock(*args)
return
when '-r'
flags = 0
when '-w'
client.android.wakelock(0)
flags = 268435482
when '-f'
flags = val.to_i
end
Expand Down

0 comments on commit eb4c4c9

Please sign in to comment.