summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-10-04 16:49:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-10-04 16:49:05 +0000
commit2d94c57345ba3e837ef780de9dae172c3abd5ae8 (patch)
tree9e775898185736154643251acbf95e0cca7f0573 /services
parent5c126892ec53772d784fcf9cef9165acf1d92ce3 (diff)
parentd94d533b5a9ec44899a4bc0e09796a5ec82a250e (diff)
downloadframeworks_base-2d94c57345ba3e837ef780de9dae172c3abd5ae8.zip
frameworks_base-2d94c57345ba3e837ef780de9dae172c3abd5ae8.tar.gz
frameworks_base-2d94c57345ba3e837ef780de9dae172c3abd5ae8.tar.bz2
Merge "Fix issue #11069176: Crash showing process stats" into klp-dev
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/am/ProcessStatsService.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/services/java/com/android/server/am/ProcessStatsService.java b/services/java/com/android/server/am/ProcessStatsService.java
index 7dc006c..dbc05fa 100644
--- a/services/java/com/android/server/am/ProcessStatsService.java
+++ b/services/java/com/android/server/am/ProcessStatsService.java
@@ -97,6 +97,19 @@ public final class ProcessStatsService extends IProcessStats.Stub {
});
}
+ @Override
+ public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
+ throws RemoteException {
+ try {
+ return super.onTransact(code, data, reply, flags);
+ } catch (RuntimeException e) {
+ if (!(e instanceof SecurityException)) {
+ Slog.wtf(TAG, "Process Stats Crash", e);
+ }
+ throw e;
+ }
+ }
+
public ProcessStats.ProcessState getProcessStateLocked(String packageName,
int uid, String processName) {
return mProcessStats.getProcessStateLocked(packageName, uid, processName);
@@ -477,7 +490,7 @@ public final class ProcessStatsService extends IProcessStats.Stub {
- moreStats.mTimePeriodStartRealtime, sb);
Slog.i(TAG, sb.toString());
} else {
- Slog.w(TAG, "Failure reading " + files.get(i) + "; "
+ Slog.w(TAG, "Failure reading " + files.get(i-1) + "; "
+ moreStats.mReadError);
continue;
}