Pass trailing x run -- arguments to launch command#25
Merged
MarijnS95 merged 3 commits intofor-traversefrom Jan 30, 2025
Merged
Pass trailing x run -- arguments to launch command#25MarijnS95 merged 3 commits intofor-traversefrom
x run -- arguments to launch command#25MarijnS95 merged 3 commits intofor-traversefrom
Conversation
53077e6 to
25ba561
Compare
MarijnS95
commented
Jan 29, 2025
25ba561 to
e4a5937
Compare
adb shell am start ... via -- suffixadb shell am start ... via -- suffix
Jasper-Bekkers
approved these changes
Jan 29, 2025
Member
Jasper-Bekkers
left a comment
There was a problem hiding this comment.
Approving, but could you document in the PR description (and the x help`) exactly how to use this feature?
maxded
approved these changes
Jan 30, 2025
adb shell am start ... via -- suffixx run via -- suffix
x run via -- suffixx run -- arguments to launch command
e4a5937 to
0cb83e9
Compare
Member
Author
|
@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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.