How to simulate a service killed by the Android system

As of 2020 we have to do it manually (since we don't have Android Monitor or DDMS anymore).

This was tested on Linux. You need root permission for the device (how to get root for an AVD).

  1. Getting the PID (first number): adb shell ps | grep -i <package-or-part-of-it>
  2. Killing the process: adb shell kill <your-PID>

if you're developing in Android Studio while you are running your application in android wear side try to hit the kill button displayed in the console.

Kill app button

When you hit this button all the threads + services + activities from this app will be destroyed. If your service is of type "STICKY" it will start by itself after you kill your application.