vgmoose / Pause-Button

Pause literally any running application in its tracks on Android (root required)
0 stars 0 forks source link

Pause #1

Open ken7441 opened 5 years ago

ken7441 commented 5 years ago

This does not work. Please fix it or pull it down.

ken7441 commented 5 years ago

Anyone that knows a different app that can perform a similar task please assist. Thank you.

vgmoose commented 5 years ago

What version of Android, and do you have root? What does it do instead of work?

This app recently got removed from Google Play for "violating the ToS".

To perform a similar task, you can issue SIGSTOP or SIGCONT from a root/su terminal (or adb shell): https://github.com/vgmoose/Pause-Button/blob/master/app/src/main/java/com/vgmoose/pausebutton/PauseService.java#L125-L145

From Terminal:

To pause an app with PID [pid]:

su
kill -SIGSTOP [pid]

To resume: To pause an app with PID [pid]:

su
kill -SIGCONT [pid]

You can read more about these signals here: https://major.io/2009/06/15/two-great-signals-sigstop-and-sigcont/

To find an app's PID, you can use ps, but the syntax has changed on newer versions.

If -SIGSTOP or -SIGCONT aren't working, you can try replacing them with the actual signal number. This varies from platform to platform, but can be determined by running kill -l:

$ kill -l
 1) SIGHUP   2) SIGINT   3) SIGQUIT  4) SIGILL
 5) SIGTRAP  6) SIGABRT  7) SIGEMT   8) SIGFPE
 9) SIGKILL 10) SIGBUS  11) SIGSEGV 12) SIGSYS
13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGURG
17) SIGSTOP 18) SIGTSTP 19) SIGCONT 20) SIGCHLD
21) SIGTTIN 22) SIGTTOU 23) SIGIO   24) SIGXCPU
25) SIGXFSZ 26) SIGVTALRM   27) SIGPROF 28) SIGWINCH
29) SIGINFO 30) SIGUSR1 31) SIGUSR2 

^ on this platform I would try kill -17 [pid] for stop, and kill -19 [pid] for continue.

ken7441 commented 5 years ago

I am using a rooted Android 6.0. I installed the app and when I try to use, an error message pops up "Unfortunately, Pause Button has stopped."

On Sun, Sep 23, 2018, 7:28 PM vgmoose notifications@github.com wrote:

What version of Android, and do you have root? What does it do instead of work?

This app recently got removed from Google Play for "violating the ToS".

To perform a similar task, you can issue SIGSTOP or SIGCONT from a root/su terminal (or adb shell): https://github.com/vgmoose/Pause-Button/blob/master/app/src/main/java/com/vgmoose/pausebutton/PauseService.java#L125-L145

From Terminal:

To pause an app with PID [pid]:

su kill -SIGSTOP [pid]

To resume: To pause an app with PID [pid]:

su kill -SIGCONT [pid]

You can read more about these signals here: https://major.io/2009/06/15/two-great-signals-sigstop-and-sigcont/

To find an app's PID, you can use ps, but the syntax has changed https://stackoverflow.com/a/44732750 on newer versions.

If -SIGSTOP or -SIGCONT aren't working, you can try replacing them with the actual signal number. This varies from platform to platform, but can be determined by running kill -l:

$ kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE 9) SIGKILL 10) SIGBUS 11) SIGSEGV 12) SIGSYS 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGURG 17) SIGSTOP 18) SIGTSTP 19) SIGCONT 20) SIGCHLD 21) SIGTTIN 22) SIGTTOU 23) SIGIO 24) SIGXCPU 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGINFO 30) SIGUSR1 31) SIGUSR2

^ on this platform I would try kill -17 [pid] for stop, and kill -19 [pid] for continue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vgmoose/Pause-Button/issues/1#issuecomment-423828793, or mute the thread https://github.com/notifications/unsubscribe-auth/AlFRkd3jMuAwQRltdH9Qh3Cm9ofTGu7Yks5ud7aZgaJpZM4W1mHP .

ken7441 commented 5 years ago

I am not a very good programmer but I am sure my phone is rooted properly and I clearly followed your instructions but the app just crushes.

On Sun, Sep 23, 2018, 9:34 PM Kennedy Nyagah kennedy.nyagah.kn@gmail.com wrote:

I am using a rooted Android 6.0. I installed the app and when I try to use, an error message pops up "Unfortunately, Pause Button has stopped."

On Sun, Sep 23, 2018, 7:28 PM vgmoose notifications@github.com wrote:

What version of Android, and do you have root? What does it do instead of work?

This app recently got removed from Google Play for "violating the ToS".

To perform a similar task, you can issue SIGSTOP or SIGCONT from a root/su terminal (or adb shell): https://github.com/vgmoose/Pause-Button/blob/master/app/src/main/java/com/vgmoose/pausebutton/PauseService.java#L125-L145

From Terminal:

To pause an app with PID [pid]:

su kill -SIGSTOP [pid]

To resume: To pause an app with PID [pid]:

su kill -SIGCONT [pid]

You can read more about these signals here: https://major.io/2009/06/15/two-great-signals-sigstop-and-sigcont/

To find an app's PID, you can use ps, but the syntax has changed https://stackoverflow.com/a/44732750 on newer versions.

If -SIGSTOP or -SIGCONT aren't working, you can try replacing them with the actual signal number. This varies from platform to platform, but can be determined by running kill -l:

$ kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE 9) SIGKILL 10) SIGBUS 11) SIGSEGV 12) SIGSYS 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGURG 17) SIGSTOP 18) SIGTSTP 19) SIGCONT 20) SIGCHLD 21) SIGTTIN 22) SIGTTOU 23) SIGIO 24) SIGXCPU 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGINFO 30) SIGUSR1 31) SIGUSR2

^ on this platform I would try kill -17 [pid] for stop, and kill -19 [pid] for continue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vgmoose/Pause-Button/issues/1#issuecomment-423828793, or mute the thread https://github.com/notifications/unsubscribe-auth/AlFRkd3jMuAwQRltdH9Qh3Cm9ofTGu7Yks5ud7aZgaJpZM4W1mHP .

vgmoose commented 5 years ago

Are you able to try the terminal commands?

For the crashing, could you use this app https://github.com/sschendel/RemoteLogger to send crash logs to me over email?

ken7441 commented 5 years ago

I was not able to try the terminal commands. I have tried the remote logger and this is what it shows.

On Tue, Sep 25, 2018, 9:16 PM vgmoose notifications@github.com wrote:

Are you able to try the terminal commands?

For the crashing, could you use this app https://github.com/sschendel/RemoteLogger to send them to me over email?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vgmoose/Pause-Button/issues/1#issuecomment-424447833, or mute the thread https://github.com/notifications/unsubscribe-auth/AlFRkZ8hEHQRwEU-j4ew5RgM2A4hfON6ks5uenL-gaJpZM4W1mHP .

2018-09-26 10:32:23.363 Button clicked! 2018-09-26 10:32:25.936 Button clicked! 2018-09-26 10:32:49.806 Button clicked! 2018-09-26 10:38:29.951 Button clicked! 2018-09-26 10:38:31.046 Button clicked! 2018-09-26 10:38:32.311 Button clicked! 2018-09-26 10:40:16.580 Button clicked! 2018-09-26 10:40:22.331 Button clicked! 2018-09-26 10:40:25.006 Button clicked! 2018-09-26 10:40:25.660 Button clicked! 2018-09-26 10:40:26.809 Button clicked!

2018-09-26 10:32:23.363 Button clicked! 2018-09-26 10:32:25.936 Button clicked! 2018-09-26 10:32:49.806 Button clicked! 2018-09-26 10:38:29.951 Button clicked! 2018-09-26 10:38:31.046 Button clicked! 2018-09-26 10:38:32.311 Button clicked!

ken7441 commented 5 years ago

Hello. Could you please assist me with instructions on how to fix what you might think the problem is.

On Wed, Sep 26, 2018, 5:49 PM Kennedy Nyagah kennedy.nyagah.kn@gmail.com wrote:

I was not able to try the terminal commands. I have tried the remote logger and this is what it shows.

On Tue, Sep 25, 2018, 9:16 PM vgmoose notifications@github.com wrote:

Are you able to try the terminal commands?

For the crashing, could you use this app https://github.com/sschendel/RemoteLogger to send them to me over email?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vgmoose/Pause-Button/issues/1#issuecomment-424447833, or mute the thread https://github.com/notifications/unsubscribe-auth/AlFRkZ8hEHQRwEU-j4ew5RgM2A4hfON6ks5uenL-gaJpZM4W1mHP .

vgmoose commented 5 years ago

Sorry, I can't really support this right now, but I can get back to it later. My best advice is to run the terminal commands after su-ing either from adb shell or a terminal app, and see if it's able to pause processes.

If you don't mind me asking, do you have a specific use-case for this app you're trying to accomplish?

RenamedUsers commented 5 years ago

попробуйте перенести приложение в /system/app и перезапустить интерфейс (на android 5.1 работает) Screenshot