summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-05-31 07:17:35 -0700
committerLorenzo Colitti <lorenzo@google.com>2019-05-31 14:19:36 +0000
commitf331108f5a66ed93ea8ea7507bc1fe6fd51acb42 (patch)
tree4cc6706bfe53fbbf62c122d8ee77d933fcd19f90 /tools/aapt2/java/JavaClassGenerator.cpp
parent1cf53ba8e6ae37713efdeadd58af174bc0f7196f (diff)
Don't crash ConnectivityService if the network stack crashes.
When the network stack crashes, the system will rebind to it. Existing references are no longer useful (they just throw RemoteException) but if the system is still up, then the user can at least recover the situation by taking actions such as going into airplane mode, toggling wifi, etc. This CL stops ConnectivityService from crashing the system when it cannot talk to NetworkMonitor. This is arguably better than crashing the system, because crashing the system is disruptive and carries the serious risk of a bootloop from which it is not possible to recover. NetworkStackClient already contains code to crash the system when the network stack crashes. This change help ensure that if a crash occurs, it is the result of an explicit decision by that code instead of an unchecked exception in one of the callers of the network stack. Bug: 133725814 Test: builds, boots Test: atest FrameworksNetTests NetworkStackTests Change-Id: Ib9a15fececd8579fc5b139fe0341275a45512e0f Merged-In: Ib9a15fececd8579fc5b139fe0341275a45512e0f (cherry picked from commit ac29a97d10fe8ea0720763f4ca4657cac85732a1)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions