I've read here and here that there is a device setting to support equivalent behavior to inserting android.os.Debug.waitForDebugger()
in your application.
Apparently, there is a pre-deployed tool on the emulator called dev tools
that provides this option. It's there in the application menu.
Can I install dev tools on a real device?