Merge "Stop bugreportd if binder call fails" am: 8cf74c36c0

am: e42a405ee8

Change-Id: Id5c8e509341359ecb4f4f3e82909eb2fee581f9d
This commit is contained in:
Nandana Dutt
2019-03-25 02:02:15 -07:00
committed by android-build-merger

View File

@@ -174,7 +174,11 @@ class BugreportManagerServiceImpl extends IDumpstate.Stub {
ds.startBugreport(callingUid, callingPackage, ds.startBugreport(callingUid, callingPackage,
bugreportFd, screenshotFd, bugreportMode, myListener); bugreportFd, screenshotFd, bugreportMode, myListener);
} catch (RemoteException e) { } catch (RemoteException e) {
reportError(listener, IDumpstateListener.BUGREPORT_ERROR_RUNTIME_ERROR); // bugreportd service is already started now. We need to kill it to manage the
// lifecycle correctly. If we don't subsequent callers will get
// BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS error.
// Note that listener will be notified by the death recipient below.
cancelBugreport();
} }
} }