Is there a way to detect when an Android system kills my application?
After research, I want to say that there is no way to determine if your application is killed inside the application, even if we try to use disconnect hooks.