Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to enable "Always show crash dialog" in developer options on an Android emulator via adb commands?

How to enable or disable a specific developer options using adb?

I have found some posts saying to enable developer settings via adb shell settings put global development_settings_enabled 1. But how to enable a specific developer option?

For example, suppose I want to enable "Always show crash dialog" on an Android emulator. Except of physically switching the button, is it possible to programmatically enable it like using adb commands?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

>Solution :

Try adb shell settings list global …once with the option enabled and once with it disabled.

Maybe this one?

private static final String SHOW_FIRST_CRASH_DIALOG_KEY = "show_first_crash_dialog";

https://github.com/aosp-mirror/platform_packages_apps_settings/tree/master/src/com/android/settings/development

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading