intent-intercept
intent-intercept copied to clipboard
copy as command line
the "send edited" feature is useful, but short of becoming a generic intent generator, can't do all possibly intereting resends (eg adding removing flags or extras).
i suggest adding a "copy commandline" option, which serialises the intent to an "am broadcast" commandline. that would allow arbitrary modification as well as more versatile experimentation without firing up the ide.
Great idea.
I will try to add this at some point but I would also welcome a pull request.
You can modify the other fields through the new intent-uri-edit-field via the clipboard. See my pull-request
@ chrysn : does the intent-uri-edit-field which is available since 28 Dec 2014 solve your problem? can we close this ticket?
[update] would the codegenerator be more than this
myIntent = Intent.parseUri("... content-of-intent-uri-edit-field ...", Intent.URI_INTENT_SCHEME)
On Wed, Jan 28, 2015 at 12:50:55AM -0800, k3b wrote:
@ chrysn : does the intent-uri-edit-field which is available since 28 Dec 2014 solve your problem? can we close this ticket?
i haven't had a chance of trying it (my device is managed by f-droid, and the update is not through yet), but while it may solve the issue i had at the time i wrote the report, i think that providing the intent as shell command line (as in the issue description) is generally useful, for experimentation and automation prototyping.
(one could even go as far as providing, in parallel to the command line invocation, a java version a la "if you want to do this in your code, paste that", but i value the shell part).
still: thanks for adding additional editing capabilities!
best regards chrysn
A command line tool which intercepts all intents which can be used in shell scripts would still be a dream. I would use it to workaround various problems with apps that don't generate the intents I want or redirect intents.