1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-16 03:59:03 +00:00
simplesshd/res/xml/preferences.xml
Greg Alexander c9b8494352 add "Start on Open" option that makes the activity start the service, and
stopping the service ends the activity
2016-10-16 15:54:06 -04:00

48 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference
android:key="onboot"
android:title="Start on Boot"
android:defaultValue="false" />
<CheckBoxPreference
android:key="foreground"
android:title="Foreground Service"
android:summary="Enable a notification while running, and run with more priority (especially in Doze mode)."
android:defaultValue="true" />
<CheckBoxPreference
android:key="onopen"
android:title="Start on Open"
android:summary="Start the service when the app is launched (and quit app when stopping service)"
android:defaultValue="false" />
<EditTextPreference
android:key="port"
android:title="Port Number"
android:summary="Must be greater than 1024."
android:numeric="integer"
android:defaultValue="2222" />
<EditTextPreference
android:key="path"
android:title="SSH Path"
android:summary="Location of misc dropbear files (put authorized_keys here)."
android:defaultValue="/sdcard/ssh" />
<EditTextPreference
android:key="shell"
android:title="Login Shell"
android:summary="Location of sh binary"
android:defaultValue="/system/bin/sh" />
<CheckBoxPreference
android:key="rsyncbuffer"
android:title="Buffer hack for rsync+SuperSU"
android:defaultValue="false" />
<EditTextPreference
android:key="home"
android:title="Home Directory"
android:summary="Default directory after login (put .profile here)"
android:defaultValue="/sdcard/ssh" />
<EditTextPreference
android:key="extra"
android:title="Extra Commandline"
android:summary="Commandline options for dropbear server"
android:defaultValue="" />
</PreferenceScreen>