1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 09:48:08 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
Greg Alexander
c9d81b5f33 Add new "Enable /sdcard" menu option that requests the
WRITE_EXTERNAL_STORAGE permission even if it's already been requested
once before on startup, because changing from SDK 30 to SDK 29 appears to
clear it.
2021-01-17 16:53:12 -05:00
Greg Alexander
e37a4bed87 Change target API to 29, and enable requestLegacyExternalStorage so that
phones running android 11 (and 10?) can access /sdcard without using
'scoped storage'.  NB - when google play forces us to use API 30 (later
this year?), will need to switch to new MANAGE_EXTERNA_STORAGE
permission.
2021-01-17 16:30:02 -05:00
Greg Alexander
0711c4d0ab Bump to version 26. 2020-12-29 10:37:06 -05:00
Greg Alexander
a67b8000cb Bump to version 25. 2020-12-29 00:39:02 -05:00
Greg Alexander
cf41fb58d0 Update dropbear version in "About" message 2020-12-29 00:20:01 -05:00
Greg Alexander
88455ed03d Move versionCode/versionName into build.gradle (instead of
AndroidManifest), because that's apparently how it should be done these
days.
2020-12-29 00:18:29 -05:00
Greg Alexander
abfff92c92 Bump to SDK 30, apparently without incident. 2020-12-29 00:00:05 -05:00
Greg Alexander
4571859754 bump to version 24 2020-01-01 11:20:01 -05:00
Greg Alexander
98e4e194d5 And scale down the new TV banner for the launcher icon. 2019-09-22 16:18:02 -04:00
Greg Alexander
a2aa4a2d1c Implement the hack from stackoverflow to detect if the task is really in
the background even though it's in Activity.onResume() (works around
Android 9 bug).
2019-09-22 15:59:04 -04:00
Greg Alexander
01b3a65a05 make all startService calls go through
SimpleSSHDService.do_startService() so they can be forced through
startForegroundService or what-have-you.
2019-09-22 15:49:48 -04:00
Greg Alexander
a6018cfada bump to version 23 2019-09-21 20:42:53 -04:00
Greg Alexander
bbbbb36795 If launching an http intent fails, then fallback to WebView (because
Android TV doesn't have Chrome, I guess).  This resolves the conundrum of
what to do about the one Samsung Note 7 out there that doesn't have
Chrome, too.
2019-09-21 17:36:18 -04:00
Greg Alexander
6a61e61a74 make it so nextFocusUp/Down specify a convenient order for visiting all
of the buttons (the defaults worked for most of them)
2019-09-21 16:59:43 -04:00
Greg Alexander
edd7bb4bbc And now my buttons have a background that is discernably different when
focused. (I cannot believe the default textAppearanceLarge didn't fit
this bill, jeesh).
2019-09-21 16:55:54 -04:00
Greg Alexander
213a5808e3 styled the option buttons so that it's easier to change them 2019-09-21 16:35:03 -04:00
Greg Alexander
42c88f330e don't allow focusing on the log/ip view, which messed up D-pad visit order 2019-09-21 16:09:03 -04:00
Greg Alexander
97989bce7f move the option menu items into their own _clicked functions 2019-09-21 16:06:21 -04:00
Greg Alexander
f0cef36573 moved the options menu into the main_tv layout (non-functional). 2019-09-21 15:41:09 -04:00
Greg Alexander
51ca87cc18 whoops, using a static function to differentiate derived classes...dumb.
use a variable instead.
2019-09-21 15:39:48 -04:00
Greg Alexander
616052e03f put bigger and more readable fonts in the TV banner 2019-09-21 15:15:02 -04:00
Greg Alexander
8952d008f2 TV-LM: add launcher target for android TV (leanback) 2019-09-21 14:55:44 -04:00
Greg Alexander
d5ad84d781 TV-LB (banner icon for TV launcher) 2019-09-21 14:24:03 -04:00
Greg Alexander
ad119a4da0 bump to version 22 2019-09-01 15:45:02 -04:00
Greg Alexander
823591055a Factor out the idiom for startService() vs startForegroundService(), and
use it in StartReceive/StopReceiver as well as BootReceiver, so that the
sshd service can be started and stopped even if the UI is closed.
2019-09-01 15:42:09 -04:00
Greg Alexander
ebbdac1787 add org.galexander.sshd.START and org.galexander.sshd.STOP broadcast receiver 2019-09-01 15:03:35 -04:00
Greg Alexander
c682560ada bump to version 21 2019-08-11 00:22:00 -04:00
Greg Alexander
cf84ff9379 fix restart after a crash (it would not restart if there was a stale pid
file from the previous execution)
2019-08-11 00:01:27 -04:00
Greg Alexander
f5270f56c5 Bump to version 20! 2019-06-16 23:52:54 -04:00
Greg Alexander
51559e5798 Add allowBackup="false" so that updating to the new SDK doesn't cause
Android to start automatically backing up app settings (otherwise it
would back up the host key).
2019-06-16 23:40:32 -04:00
Greg Alexander
445c2957ec Don't call startForegroundService() except on Oreo and above, because
that's when it was added.
2019-06-16 23:02:22 -04:00
Greg Alexander
23a2bda614 Limit to only displaying 5 IPs at once (the android emulator sets up
about 20 interfaces somehow, which really spams the screen).
2019-06-16 19:37:16 -04:00
Greg Alexander
c5fb42b1f1 Update dropbear version in "About" string. 2019-06-16 15:26:21 -04:00
Greg Alexander
7f58879b35 Implement a sanity check of settings so that if onboot is selected,
foreground is forced.
2019-06-09 16:19:43 -04:00
Greg Alexander
83b5dd496d If asked to start at boot in background on Oreo, give a toast so the user
knows why it doesn't work.
2019-06-09 15:50:49 -04:00
Greg Alexander
e0151fa757 Now can start-on-boot on Oreo/Pie, with the caveat that start-on-boot
requires foreground-service.
2019-05-26 21:46:27 -04:00
Greg Alexander
38f477e63c To work on Android 28 (Pie), we have to explicitly declare the
FOREGROUND_SERVICE permission.
2019-05-26 21:23:56 -04:00
Greg Alexander
9b451c9b29 Define the channel for the notification, which requires using
NotificationCompat, which I decided to do using "AndroidX".
Anyways, this builds, but I don't know if it works.
2019-05-26 20:47:59 -04:00
Greg Alexander
993fe96b73 I let Android Studio upgrade the project to the newest version of Gradle
for Android or what have you, and these are the relevant changes I think.
They don't seem to help the problem I was having but newer is better, no?
2019-05-26 20:10:50 -04:00
Greg Alexander
1656a5b9c4 AndroidStudio tells me the sdk version setting in AndroidManifest is a
bad idea, because it is redundant to the setting in app/build.gradle
2019-05-26 20:09:59 -04:00
Greg Alexander
190c8588e9 request the SD card permission if it hasn't already been granted or
requested in the past.
2019-05-26 19:07:33 -04:00
Greg Alexander
0a53e627d2 manually specify last colors... 2019-05-26 01:34:09 -04:00
Greg Alexander
22d7993e23 Find native lib directory the correct way, using
Context.getApplicationInfo().nativeLibraryDir.
2019-05-26 01:29:58 -04:00
Greg Alexander
611c57bcc9 Add android.permission.REQUEST_INSTALL_PACKAGES, which doesn't seem to
require anything from the user, and no notification to the user either!
2019-05-26 00:20:38 -04:00
Greg Alexander
ec91693308 update AndroidManifest to also specify sdk 16 (JB 4.2) 2019-05-26 00:20:25 -04:00
Greg Alexander
edbaacbf82 Fix white-on-white text. 2019-05-25 23:27:02 -04:00
Greg Alexander
7419f62d98 Update minSdkVersion to 16, because that's the oldest supported by the
NDK these days.
2019-05-25 22:31:09 -04:00
Greg Alexander
be43d90c70 Manually convert from ant to gradle, roughly.
NB - Play store currently requires targetSdkVersion>=26, but will soon
(August) require >=28.
2019-05-25 21:58:12 -04:00