diff options
| author | 2016-02-29 18:30:39 +0000 | |
|---|---|---|
| committer | 2016-02-29 18:30:40 +0000 | |
| commit | 341de33e3c9a8a8685d99602690e95ccb64b77a2 (patch) | |
| tree | 2028d1400d66f13efca885da59913ca981ab5c54 | |
| parent | 0a04ab241867bd4e268ffdddf37dede3b5570b0b (diff) | |
| parent | 369f509d5688f84d1e5205c79ab919c1bac6c969 (diff) | |
Merge "Sigh, someone is pushing 2MB through StopInfo." into nyc-dev
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 7 | ||||
| -rw-r--r-- | core/java/android/app/LoadedApk.java | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 0020a50c48fb..0d852e52665b 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -75,6 +75,7 @@ import android.os.StrictMode; import android.os.SystemClock; import android.os.SystemProperties; import android.os.Trace; +import android.os.TransactionTooLargeException; import android.os.UserHandle; import android.provider.Settings; import android.security.NetworkSecurityPolicy; @@ -3677,6 +3678,12 @@ public final class ActivityThread { ActivityManagerNative.getDefault().activityStopped( activity.token, state, persistentState, description); } catch (RemoteException ex) { + if (ex instanceof TransactionTooLargeException + && "com.google.android.gms".equals(activity.packageInfo.getPackageName())) { + Log.d(TAG, "STAHP SENDING SO MUCH DATA KTHX: " + ex); + return; + } + throw ex.rethrowFromSystemServer(); } } diff --git a/core/java/android/app/LoadedApk.java b/core/java/android/app/LoadedApk.java index ae433eb5be02..06fe515c22db 100644 --- a/core/java/android/app/LoadedApk.java +++ b/core/java/android/app/LoadedApk.java @@ -225,6 +225,10 @@ public final class LoadedApk { return mApplicationInfo; } + public int getTargetSdkVersion() { + return mApplicationInfo.targetSdkVersion; + } + public boolean isSecurityViolation() { return mSecurityViolation; } |