From 853a78ac036779d073b4678a21e757636fc19a9f Mon Sep 17 00:00:00 2001 From: Ivana Date: Mon, 25 Jul 2022 15:12:44 +0000 Subject: [PATCH] Update reopen mailbox after device goes to sleep --- reopen-mailbox-after-device-goes-to-sleep.md | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/reopen-mailbox-after-device-goes-to-sleep.md b/reopen-mailbox-after-device-goes-to-sleep.md index bac172e..4edc1fc 100644 --- a/reopen-mailbox-after-device-goes-to-sleep.md +++ b/reopen-mailbox-after-device-goes-to-sleep.md @@ -1,9 +1,37 @@ This test addresses a comment + + "I think we already do this, but it needs testing. When opening the mailbox after the device went to sleep, we should show a dialog asking for battery optimization exception again." in the ticket https://code.briarproject.org/briar/briar-mailbox/-/issues/120#note_68771 + + and ticket https://code.briarproject.org/briar/briar-mailbox/-/issues/145 + and ticket https://code.briarproject.org/briar/briar-mailbox/-/issues/120 + + +In the ticket 120, there is a comment that says + +"When opening the mailbox after the device went to sleep, we should show a dialog asking for battery optimization exception again." + +The sleep this comment is talking about is not simply the sleep when device is inactive for a few mins and the screen goes black. Instead, it is a kind of sleep that Android invokes if it sees that an app uses too much memory, or battery etc, based on its own logic. + +To put a device into this Android invoked 'doze', issue this command + +adb shell dumpsys deviceidle force-idle + +(just in case I forget after awhile - adb commands need to be issued from the adb folder, which are in different locations on mac and windowds machines) + +adb shell dumpsys deviceidle unforce + +if permission is denied, it could be because the USB debugging is off for the device + +To see if connection to device is OK, type in > ./adb devices (on mac) and .(backward slash)adb devices on windows? + + + + Steps to execute - install and start th emailbox in the normal way and then allow the mailbox device to go to sleep