Unknown option -S #2

Hackrylix opened this Issue Sep 24, 2012 · 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 Sep 24, 2012
@Hackrylix Hackrylix reopened this Sep 24, 2012

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 installAnti.sh Script.

It worked for me..


Thanks, that command worked for me.

@Hackrylix Hackrylix added a commit that referenced this issue Sep 26, 2012
@Hackrylix 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 added a commit that referenced this issue Sep 29, 2012
@kosborn Added getGesture to get the code of the gesture.
Updated root4.x.sh, 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 Oct 3, 2012

Kos, this is still in mainline installAnti.sh. 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 installAnti.sh 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