Sometimes a Gaia bug only shows up in User, not Engineer, builds.
How to get this to a debuggable state?
This works for me for 2.1 aurora builds. It might be wildly inaccurate by the time you read this ^_^
- Enable developer menu
- this recently changed; you have to go into Device information > more information, then scroll to the bottom
- Enable ADB and Devtools debugging inside Developer.
- Enable debugging of certified apps
- this uses a very commonly-needed process for adding prefs to a device:
- adb root
- adb pull /system/b2g/defaults/pref/user.js .
- echo 'pref("devtools.debugger.forbid-certified-apps", false);' >> user.js
- adb remount
- adb push user.js /system/b2g/defaults/pref
- adb shell sync && adb reboot
- Crack open devtools, click the 'connect to xxx1234' at bottom
- Enable connection on device (there's a confirm dialog on the device)
- Enter devtools for your certified app of interest
- important: the source is minified. right-click inside the code pane and use the 'Prettify Source' option to make it readable :-D
Actually, after reading the Makefile more closely, I think that you can just add
PRODUCTION=1
to the environment for the make command. This should mean that you can do, say,PRODUCTION=1 DEVICE_DEBUG=1 make reset-gaia
to generate a build which is "user mode" but also debuggable.