mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Update reopen mailbox after device goes to sleep
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user