Skip to content
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

Call ctrl+c on remote device? #3

Open
Jolanrensen opened this issue Oct 15, 2017 · 7 comments
Open

Call ctrl+c on remote device? #3

Jolanrensen opened this issue Oct 15, 2017 · 7 comments

Comments

@Jolanrensen
Copy link

I know it's possible as the original app developer has a Ctrl+C send option in his adb app built in, but I was wondering how to send such a command for myself using this library. I can't seem to find out how.

@tananaev
Copy link
Owner

Ctrl+C is usually just app termination. What original project are you talking about?

@Jolanrensen
Copy link
Author

I mean this app https://play.google.com/store/apps/details?id=com.cgutman.androidremotedebugger. It's built using the plugin and features a ctrl+c option. I don't know how to send such a command myself though

@tananaev
Copy link
Owner

Is it open source? If not I guess you should ask the author.

@Jolanrensen
Copy link
Author

Only the library is open source alas... I already left a message on his github

@guadaran
Copy link

guadaran commented Oct 20, 2017

Hi @Jolanrensen

Perhaps you can try execute the following shell command through this library:

shell: kill -SIGINT [Process PID]

@Jolanrensen
Copy link
Author

@guadaran Thanks for the tip, but for this you will need to get the current PID and that might be hard. I did read something about adb shell having an escape character "~" but I wasn't able to prepend it before a command using this plugin.
The actual problem is that the plugin doesn't work as expected on cyanogenmod/lineage os devices and this can be solved in the app by sending ctrl+c so I tried to implement this in my app as well...

@sampalmer
Copy link
Contributor

Looks like this has already been answered here: cgutman/AdbLib#8 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants