Security

(public)

User Story

I have just flashed a VARIANT=user build on Dolphin and enabled adb in the developer menu but adb is unavailable on the Dolphin:
$ adb devices
List of devices attached
0123456789ABCDEF unauthorized
$ adb shell
error: device unauthorized. Please check the confirmation dialog on your device.
Seems like adb is waiting for user authorization of the adb session. On Android you'd get a dialogue on the device to authorize adb, but Firefox OS doesn't provide the same functionality.
I believe we are controlling adb access by turning it off when a lock screen is active instead.

Kai-Zhen, what is the desired UX regarding remote debugging or adb on a user build? I.e., is it supposed to be available? Is it supposed to engage the user with a dialog that needs approval?
I take back what I said about Firefox OS not providing the dialog functionality in the description. I have seen it on other devices :)

I think we should have a design to let the user know and confirm when remote debugging or adb on a user build. But I don't have a good idea now. I'll ni our UX for some suggestion.
Jenny, do you have any idea? How should we handle this requirement in our setting?