|
|
|
@ -48,14 +48,16 @@ function exitReader()
|
|
|
|
|
os.execute("echo 'send 139' > /proc/keypad;echo 'send 139' > /proc/keypad")
|
|
|
|
|
end
|
|
|
|
|
if Device:isTouchDevice() and Device.survive_screen_saver then
|
|
|
|
|
-- hack the swipe to unlock screen
|
|
|
|
|
local dev = Device:getTouchInputDev()
|
|
|
|
|
if dev then
|
|
|
|
|
local width, height = Screen:getWidth(), Screen:getHeight()
|
|
|
|
|
input.fakeTapInput(dev,
|
|
|
|
|
math.min(width, height)/2,
|
|
|
|
|
math.max(width, height)-30
|
|
|
|
|
)
|
|
|
|
|
-- If needed, hack the swipe to unlock screen
|
|
|
|
|
if Device:isSpecialOffers() then
|
|
|
|
|
local dev = Device:getTouchInputDev()
|
|
|
|
|
if dev then
|
|
|
|
|
local width, height = Screen:getWidth(), Screen:getHeight()
|
|
|
|
|
input.fakeTapInput(dev,
|
|
|
|
|
math.min(width, height)/2,
|
|
|
|
|
math.max(width, height)-30
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|