I have to simulate the situation where existing android process will be killed and as a result tombstone file will be generated immediately.
I use following command sequence in order to achieve that:
adb shell monkey -p com.google.android.apps.maps -c android.intent.category.LAUNCHER 1
adb shell pgrep com.google.android.apps.maps | xargs kill -6
Unfortunately "-6" signal (and any other possible) doesn't guarantee the fact that tombstone will be generated.
Any idea on how to get tombstone generated with guarantee without modifying the application?
Thanks!