Update reopen mailbox after device goes to sleep

Ivana
2022-07-26 18:42:54 +00:00
parent 853a78ac03
commit c95e93efbc

@@ -21,7 +21,7 @@ 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)
(just in case I forget after awhile - adb commands need to be issued from the folder containing adb folder, which are in different locations on mac and windowds machines)
adb shell dumpsys deviceidle unforce
@@ -29,6 +29,17 @@ if permission is denied, it could be because the USB debugging is off for the de
To see if connection to device is OK, type in > ./adb devices (on mac) and .(backward slash)adb devices on windows?
**memo, useful for testing this:**
- enable battery optimization:
`adb shell dumpsys deviceidle whitelist -org.briarproject.mailbox`
- disable battery optimization:
`adb shell dumpsys deviceidle whitelist +org.briarproject.mailbox`
Execute the 'force idle' command and then go to the device and start the mailbox. There should be a dialogue box saying: Mailbox cannot run int he background and two buttons on it - Cancel and Fix. If tap on fix, there is a crash - this is what the bug 145 is about.