When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()" method which internally translates DeadObjectException into DeadSystemException. New logic over in Log.printlns() now suppresses the DeadSystemException stack traces, since they're misleading and just added pressure to the precious log buffer space. Add some extra RuntimeInit checks to suppress logging-about-logging when the system server is dead. Bug: 27364859 Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
This commit is contained in:
@@ -310,7 +310,7 @@ public class TrafficStats {
|
||||
try {
|
||||
getStatsService().incrementOperationCount(uid, tag, operationCount);
|
||||
} catch (RemoteException e) {
|
||||
throw new RuntimeException(e);
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ public class TrafficStats {
|
||||
try {
|
||||
return getStatsService().getDataLayerSnapshotForUid(uid);
|
||||
} catch (RemoteException e) {
|
||||
throw new RuntimeException(e);
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -666,7 +666,7 @@ public class TrafficStats {
|
||||
try {
|
||||
return getStatsService().getMobileIfaces();
|
||||
} catch (RemoteException e) {
|
||||
throw new RuntimeException(e);
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user