Trigger bugreport for abnormally long connections
This is an effort investigate why certain connections take really long
to finish.
Users running user-debug builds will be shown an notification, which
they may tap on to file a bugreport.
Added GService flags (that is disabled by default) which may be
configured on the server side to enable this feature for a select group
of users. Also added a flag to fine tune the threshold at which
bugreports get triggered.
Bug: 132648941
Test: Unit tests
Test: mannually tested with a smaller threshold to verify bugreport is
triggering properly.
Test: Tested setting Gservices value with adb command "am broadcast -a
com.google.gservices.intent.action.GSERVICES_OVERRIDE -e
android.wifi.abnormal_connection_duration_ms 300"
Change-Id: I2f5f9c9c08874f6f356a081b0a2575dd3851c241
6 files changed