Add SH and ROOTSH commands
[fonbot.git] / res / values / strings.xml
index bdc90a66d6d7eb490ceb917cb2ba9556db5b0ca2..f72cfd0b40a9dabd744d6126bccb1e0581c92e7b 100644 (file)
@@ -1,21 +1,22 @@
 <resources>
     <string name="app_name">FonBot</string>
     <string name="send_message_permission_desc">Allows an application to send notifications through FonBot</string>
-    <string name="help">Initial setup:\n
+    <string name="help"><h1>1. Initial setup:</h1>\n
 <ol>
        <li><a href="http://auth.ieval.ro">Register an account</a>\n</li>
        <li>Enter your username and password in the <a href="ro.ieval.fonbot.FonBotPreferenceActivity://">preferences</a>\n\n</li>
 </ol>
 
-Sending commands:\n
+<h1>2. Sending commands:</h1>\n
 <ul>
-    <li>via Jabber: Send commands to fonbot@ieval.ro from any Jabber/GTalk account\n</li>
-    <li>via Yahoo Messenger: Send commands to fonbotym\n</li>
+    <li>via Jabber: Login by sending "login YOUR_USRENAME YOUR_PASSWORD" to fonbot@ieval.ro, then send commands\n</li>
+    <li>via Yahoo Messenger: Login by sending "login YOUR_USRENAME YOUR_PASSWORD" to fonbotym, then send commands\n</li>
+    <li>via IRC: Login by sending "login YOUR_USERNAME YOUR_PASSWORD" to fonbot on OFTC, then send commands\n</li>
     <li>via SMS: Set a SMS Password in the <a href="ro.ieval.fonbot.FonBotPreferenceActivity://">preferences</a>, then send SMSes with the SMS Password as the first line. The next lines will be processed as commands\n</li>
-    <li>via email: Send commands to fonbot@ieval.ro\n</li>
 </ul>
 \nFonBot commands consist of a command name and zero or more arguments, separated by spaces. To include spaces in an argument, surround the argument with single or double quotes.\n\n
 Example command: sms 0755555555 \'This is a random text\'. This command would send a text message to 0755555555\n\n
+
 The help command can be used to get a list of commands and help for them. Examples:\n\n
 <ul>
     <li>help — shows a list of commands\n</li>
@@ -145,11 +146,9 @@ The help command can be used to get a list of commands and help for them. Exampl
     <string name="wifi_off">Wifi: off</string>
     <string name="enabling_wifi">Enabling wifi…</string>
     <string name="disabling_wifi">Disabling wifi…</string>
-    <string name="polling_server">Polling server…</string>
-    <string name="polling_stopped">Polling stopped</string>
-    <string name="command_disabled">Command disabled%s disabled</string>
+    <string name="starting_long_polling_if_stopped">Starting long polling if stopped…</string>
+    <string name="command_disabled">Command %s disabled</string>
     <string name="command_enabled">Command %s enabled</string>
-    <string name="polling_every_milliseconds">Polling every %d milliseconds</string>
     <string name="incoming_message">Incoming message from %1$s: \"%2$s\" sent at %3$s</string>
     <string name="outgoing_message">Outgoing message to %1$s: \"%2$s\" sent at %3$s</string>
     <string name="error_writing_to_socket">Error writing to socket: %s</string>
@@ -196,10 +195,9 @@ The help command can be used to get a list of commands and help for them. Exampl
                Example: wipe data
     </string>
     <string name="poll_help">
-        Usage: poll [ms]\n
-               With no arguments, polls the server once\n
-               With an argument, starts polling the server every &lt;ms&gt; milliseconds. If &lt;ms&gt; is 0, the polling is stopped\n
-               Example: poll 60000
+        Usage: poll\n
+               Starts the long polling service if it is stopped\n
+               Example: poll
     </string>
     <string name="contacts_help">
         Usage: contacts substring\n
@@ -233,9 +231,10 @@ The help command can be used to get a list of commands and help for them. Exampl
                Example: ring on
     </string>
     <string name="photo_help">
-        Usage: photo hostname port\n
-               Takes a photo and uploads it to &lt;hostname&gt;:&lt;port&gt;\n
-               Example: photo 1.1.1.1 8888
+        Usage: photo camera hostname port\n
+               Takes a photo with the given camera and uploads it to &lt;hostname&gt;:&lt;port&gt;\n
+               The camera is a number, usually 0 for the rear camera and 1 for the front one\n
+               Example: photo 0 1.1.1.1 8888
     </string>
     <string name="nolocation_help">
         Usage: nolocation\n
@@ -254,7 +253,7 @@ The help command can be used to get a list of commands and help for them. Exampl
     </string>
     <string name="flash_help">
         Usage: flash on/off\n
-               Turns the flashlight on or off\n
+               Turns the flashlight on or off. This is unreliable. If you have the Torch app installed, use the torch command instead.\n
                Example: flash on
     </string>
     <string name="echo_help">
@@ -437,12 +436,49 @@ The help command can be used to get a list of commands and help for them. Exampl
         Example: shutdown
     </string>
     <string name="location_tracking_is_active">Location tracking is active</string>
-    <string name="the_polling_service_is_running">The polling service is running</string>
     <string name="cancel">Cancel</string>
     <string name="command_sent">Command sent</string>
     <string name="could_not_parse_id">Could not parse id</string>
     <string name="notification_canceled">Notification canceled</string>
     <string name="notification_shown">Notification shown</string>
-    <string name="notify_help">Notify help</string>
-    <string name="user_or_password_not_set">User or password not set</string>
-</resources>
\ No newline at end of file
+    <string name="notify_help">
+        Usage: notify id [title text]\n
+        With three arguments, shows a notification with title &lt;title&gt; and text &lt;text&gt; and id &lt;id&gt;. This replaces any previous notiifcation with the same id.\n
+        With one argument, removes the notification with id &lt;id&gt;\n
+        Example: notify 10 Hello \"Hello, world!\"
+    </string>
+       <string name="user_or_password_not_set">User or password not set</string>
+       <string name="screencap_successful">Screencap successful</string>
+       <string name="screencap_failed">Screencap failed. Remember: the screencap command requires root access</string>
+       <string name="screencap_help">
+         Usage: screencap filename\n
+         Takes a screen capture and saves it to the given filename as a PNG image file. This requires root access.\n
+         Example: screencap /storage/sdcard0/screencap.png
+       </string>
+       <string name="torch_help">
+         Usage: torch\n
+         Toggles the torch (flashlight). This is reliable but requires the Torch app. If you don\'t have the Torch app installed, use the flash command instead.\n
+         Example: torch
+       </string>
+       <string name="toggling_torch_state">Toggling torch state…</string>
+       <string name="device_booted">Your device has been turned on</string>
+       <string name="cannot_parse_camera_number">Cannot parse camera number</string>
+       <string name="getfile_help">
+         Usage: getfile filename url\n
+         Downloads the given url to the file described by the given filename\n
+         Example: getfile /storage/sdcard1 http://ieval.ro/
+       </string>
+       <string name="error_opening_file">Error opening file %1$s (%2$s)</string>
+       <string name="file_received">File received</string>
+       <string name="reboot_failed">Reboot failed</string>
+       <string name="sh_help">
+         Usage: sh command [arg1 arg2 ...]\n
+         Executes a shell command and returns its output. FonBot waits for the command to finish, therefore this must not be used with long-running commands.\n
+         Example: sh ls /sdcard/
+       </string>
+       <string name="rootsh_help">
+         Usage: rootsh command [arg1 arg2 ...]\n
+         Executes a shell command as root and returns its output. FonBot waits for the command to finish, therefore this must not be used with long-running commands. This requires root access.\n
+         Example: rootsh stop;sleep 3;start
+       </string>
+</resources>
This page took 0.011514 seconds and 4 git commands to generate.