Posts
Search
Contact
Cookies
About
RSS

Android stopping crashing apps/services

Added 11 Dec 2015, 11:03 a.m. edited 18 Jun 2023, 1:12 a.m.
Sometimes you can get yourself into a situation when updating android (usually missing permissions on google apps) where an application crashes and then immediately restarts. This is bad enough but compounded by a modal dialog... You're left with a tablet or phone you can't repair because you can't use the UI !! Fortunately adb can come to your rescue ! sometimes its enough to stop an application - using adb shell issue the following
am force-stop com.google.android.setupwizard
here for example its googles setup wizard thats part of the problem.... sometimes that might not be enough and you have to disable an app/service, you can start the settings application with
am start -a android.intent.action.MAIN -n com.android.settings/.Settings
or go directly to the applications settings with
am start -a android.intent.action.MAIN -n com.android.settings/.ManageApplications
Hopefully with the stuff that will listen to force-stop (you might need to stop something else thats starting it) you should have the odd half second between modal dialogs to get to the app settings and disable whatever won't stop and keeps crashing... so you can then use the device itself to fix the actual issue... Its a real pain you have to fight the UI and why restart an app/service if its already restarted 5 or 6 times in the last minute ??? seems kinda basic to me... and a modal dialog? RLY O.o a notification with restart button inside the notification would allow the issue to be fixed without making the device unusable to fix the issue.... *sigh*