From 3da61bfa96b54139c748b533ee90d5acca067c23 Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Sun, 16 Oct 2016 14:47:16 -0400 Subject: [PATCH] make the foreground service an option --- NOTES | 11 +++++++++++ res/xml/preferences.xml | 5 +++++ src/org/galexander/sshd/Prefs.java | 3 +++ src/org/galexander/sshd/SimpleSSHDService.java | 18 +++++++++++++----- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/NOTES b/NOTES index e302d27..2a0bbc4 100644 --- a/NOTES +++ b/NOTES @@ -331,6 +331,17 @@ get wedged, it might even be a flaw in Dropbear that makes it so unreliable with Nougat. +October 16, 2016. + +I've been using a foreground service for a while, and it has not caused +me any troubles. The thing I have been most anxious about is that it +might disable doze mode entirely...but there has not been any noteworthy +overnight drain. + +So, in case someone does have problems with it, I am making it an option +that defaults to enabled. + + XXX - make clicking on the notification go to the app? XXX - support password-based logins for boot-strapping? diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 3cead97..9732af5 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -4,6 +4,11 @@ android:key="onboot" android:title="Start on Boot" android:defaultValue="false" /> +