Saturday, 4 September 2021

How to check if the app has crashed/stop working using adb shell?

I'm currently doing this:

-d: call logcat only once and return

adb shell logcat -d

Then I do a regex search in the log for Caused by.*"apk name".

The problem is, sometimes it does generate this message in the log but the app is still responsive/working. Would like to ask if there's any better way to check if an app stop working, using adb shell commands.

By stop working I mean, it still open but doesn't responds to anything.

Note: I'm not looking for what caused the app to crash, just if it has stopped working.



from How to check if the app has crashed/stop working using adb shell?

No comments:

Post a Comment