diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-10-04 09:53:14 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-04 09:53:14 -0700 |
commit | 1062559d43dbd9a8eda46df62e306af294d13c9d (patch) | |
tree | 4f876c11ca050a0be7924009d24bd49c6dffc578 /services | |
parent | 6077037abf6f44390e762e7f302373d435db71f8 (diff) | |
parent | 2d91368aea75dbc195d07efc465a462a006a5753 (diff) | |
download | frameworks_base-1062559d43dbd9a8eda46df62e306af294d13c9d.zip frameworks_base-1062559d43dbd9a8eda46df62e306af294d13c9d.tar.gz frameworks_base-1062559d43dbd9a8eda46df62e306af294d13c9d.tar.bz2 |
am 2d91368a: am 2d94c573: Merge "Fix issue #11069176: Crash showing process stats" into klp-dev
* commit '2d91368aea75dbc195d07efc465a462a006a5753':
Fix issue #11069176: Crash showing process stats
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/am/ProcessStatsService.java | 15 |
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; } |