mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:53:23 +02:00
Press home when user leaves so that we don't leave a game running 24/7 killing the device.
This commit is contained in:
@@ -103,6 +103,7 @@ module.exports = syrup.serial()
|
||||
})
|
||||
|
||||
plugin.on('leave', function() {
|
||||
service.pressKey('home')
|
||||
service.releaseWakeLock()
|
||||
service.lock()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user