-
Notifications
You must be signed in to change notification settings - Fork 0
Pass trailing x run -- arguments to launch command
#25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
53077e6 to
25ba561
Compare
25ba561 to
e4a5937
Compare
adb shell am start ... via -- suffixadb shell am start ... via -- suffix
Jasper-Bekkers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but could you document in the PR description (and the x help`) exactly how to use this feature?
adb shell am start ... via -- suffixx run via -- suffix
x run via -- suffixx run -- arguments to launch command
e4a5937 to
0cb83e9
Compare
|
@Jasper-Bekkers this was already somewhat explained in the PR description but the |
Starting today (January 30th, 2025), v3 is no longer available to use after a long deprecation period: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
If you want to pass string "extras" into an Android intent via `am start`, call `x run ... -- -e extraKey "extra string"` (and similar for other types like `--ez key bool` for booleans, or `-d URI` for data URIs). [All arguments listed by `am help` under the `start` command] (including the `INTENT` specification) are supported. On the host, this passes the arguments as-is to the running executable, similar to `cargo run .. -- <launch_args>`. For iOS, these are passed to [`idevicedebug run`]. [All arguments listed by `am help` under the `start` command]: https://developer.android.com/tools/adb#am [`idevicedebug run`]: https://manpages.debian.org/testing/libimobiledevice-utils/idevicedebug.1.en.html
0cb83e9 to
1f7c570
Compare
If you want to pass string "extras" into an Android intent via
am start, callx run ... -- -e extraKey "extra string"(and similar for other types like--ez key boolfor booleans, or-d URIfor data URIs). All arguments listed byam helpunder thestartcommand (including theINTENTspecification) are supported.On the host, this passes the arguments as-is to the running executable, similar to
cargo run .. -- <launch_args>.For iOS, these are passed to
idevicedebug run.