intent-intercept icon indicating copy to clipboard operation
intent-intercept copied to clipboard

copy as command line

Open chrysn opened this issue 11 years ago • 6 comments

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.

chrysn avatar Oct 29 '14 08:10 chrysn

Great idea.

E3V3A avatar Nov 05 '14 19:11 E3V3A

I will try to add this at some point but I would also welcome a pull request.

intrications avatar Nov 05 '14 23:11 intrications

You can modify the other fields through the new intent-uri-edit-field via the clipboard. See my pull-request

k3b avatar Dec 25 '14 10:12 k3b

@ 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)

k3b avatar Jan 28 '15 08:01 k3b

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

chrysn avatar Jan 28 '15 14:01 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.

ghost avatar Aug 09 '16 14:08 ghost