summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorxshu <xshu@google.com>2018-04-06 15:09:22 -0700
committerxshu <xshu@google.com>2018-04-06 15:10:43 -0700
commitcd211f955772453276711624b4be8353edd17826 (patch)
tree3c2c213fa552564850ffdd49db0529ce9971abaa /service
parentb7b45bcbe6bd7b30fa239345e9f05117a181934c (diff)
Include trigger reason in the bugreport title
Bug: 77583218 Test: compile, run unit tests Manual test: Kill cond and observe bugreport generated Change-Id: Idebc82897aab7e6687499610543c9359b6400f57
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiController.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiController.java b/service/java/com/android/server/wifi/WifiController.java
index d825251a1..76b44c82f 100644
--- a/service/java/com/android/server/wifi/WifiController.java
+++ b/service/java/com/android/server/wifi/WifiController.java
@@ -653,12 +653,14 @@ public class WifiController extends StateMachine {
mFirstUserSignOnSeen = true;
return HANDLED;
} else if (msg.what == CMD_RECOVERY_RESTART_WIFI) {
- final String bugTitle = "Wi-Fi BugReport";
+ final String bugTitle;
final String bugDetail;
if (msg.arg1 < SelfRecovery.REASON_STRINGS.length && msg.arg1 >= 0) {
bugDetail = SelfRecovery.REASON_STRINGS[msg.arg1];
+ bugTitle = "Wi-Fi BugReport: " + bugDetail;
} else {
bugDetail = "";
+ bugTitle = "Wi-Fi BugReport";
}
if (msg.arg1 != SelfRecovery.REASON_LAST_RESORT_WATCHDOG) {
(new Handler(mWifiStateMachineLooper)).post(() -> {