Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Unknown option -S #2

Hackrylix opened this Issue · 4 comments

5 participants



Just tested your tool : awesome !

A little bug came up, just to report it and give you feedback :

Info : HTC Wildfire S CM7
(I found a way to know if someone tried to install the app : the Link2SD log ^^)

output :

Choose wisely: 6
Unlocking Screen
395 KB/s (16580 bytes in 0.040s)
pkg: /data/local/tmp/AntiGuard.apk
Error: Unknown option: -S
usage: am [subcommand] [options]

start an Activity: am start [-D] [-W] <INTENT>
    -D: enable debugging
    -W: wait for launch to complete

start a Service: am startservice <INTENT>

send a broadcast Intent: am broadcast <INTENT>

start an Instrumentation: am instrument [flags] <COMPONENT>
    -r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT)
    -e <NAME> <VALUE>: set argument <NAME> to <VALUE>
    -p <FILE>: write profiling data to <FILE>
    -w: wait for instrumentation to finish before returning

start profiling: am profile <PROCESS> start <FILE>
stop profiling: am profile <PROCESS> stop

start monitoring: am monitor [--gdb <port>]
    --gdb: start gdbserv on the given port at crash/ANR

<INTENT> specifications include these flags:
    [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
    [-c <CATEGORY> [-c <CATEGORY>] ...]
    [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
    [--esn <EXTRA_KEY> ...]
    [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
    [-n <COMPONENT>] [-f <FLAGS>]
    [--grant-read-uri-permission] [--grant-write-uri-permission]
    [--activity-brought-to-front] [--activity-clear-top]
    [--activity-clear-when-task-reset] [--activity-exclude-from-recents]
    [--activity-launched-from-history] [--activity-multiple-task]
    [--activity-no-animation] [--activity-no-history]
    [--activity-no-user-action] [--activity-previous-is-top]
    [--activity-reorder-to-front] [--activity-reset-task-if-needed]
    [--receiver-registered-only] [--receiver-replace-pending]

Starting: null

@Hackrylix Hackrylix closed this
@Hackrylix Hackrylix reopened this

tried a bit around and found a workable solution. I have no idea if there something wrong when using this method but try changing
adb shell am start -S io.kos.antiguard/.unlock
adb shell am start -a android.intent.action.MAIN -n io.kos.antiguard/.unlock
in the Script.

It worked for me..


Thanks, that command worked for me.

@Hackrylix Hackrylix referenced this issue from a commit
Hackrylix [Fix #2] unknown option (-S) 39c6afe

@Hackrylix Thanks a lot. I haven't come across that error. I've got a big push that I'll be making in the next few days (for DerbyCon), and will have it fixed.

@kosborn kosborn referenced this issue from a commit
@kosborn Added getGesture to get the code of the gesture.
Updated, now properly roots and drops su file.

Fixed bug reported by Hackrylix in Issue #2

Now pulling jelly bean user's accounts.db in
@kosborn kosborn closed this

Kos, this is still in mainline Since I'm adding some new commands for different attack vectors (namely pin/passwords, anti-malware disabling, and browser data "recovery"); while I'm at it I'll patch the script to send along with my push request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.