I want to kill app process of my app for testing purpose. I want to test activity restoration.
I send my app to background by pressing home button. Then I run this command adb shell am kill <PACKAGE_NAME> in Android Studio terminal, but it doesn't kill app process.
Use force-stop instead
adb shell am force-stop package-name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With