From ac39b9626db022baf4f8da501b965853e07e86a7 Mon Sep 17 00:00:00 2001 From: Philip Cuadra Date: Wed, 2 Nov 2016 11:59:22 -0700 Subject: [PATCH] Pinner Service - update Camera app max size to 80MB The prebuilt camera app in /system/app uses uncompressed libs to save memory. A recent update pushed it over the arbitrary 50MB limit. This change moves that arbitrary limit to 80MB. Bug 32289474 Tested manually Change-Id: Icf4e4476447fd363f2ab311b237f17a0e9d43053 --- services/core/java/com/android/server/PinnerService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/PinnerService.java b/services/core/java/com/android/server/PinnerService.java index 356ccb3596a90..fa5a52c712cd9 100644 --- a/services/core/java/com/android/server/PinnerService.java +++ b/services/core/java/com/android/server/PinnerService.java @@ -63,7 +63,7 @@ public final class PinnerService extends SystemService { private BinderService mBinderService; - private final long MAX_CAMERA_PIN_SIZE = 50 * (1 << 20); //50MB max + private final long MAX_CAMERA_PIN_SIZE = 80 * (1 << 20); //80MB max private PinnerHandler mPinnerHandler = null; @@ -192,6 +192,9 @@ public final class PinnerService extends SystemService { if (isResolverActivity(cameraResolveInfo.activityInfo)) { + if (DEBUG) { + Slog.v(TAG, "cameraIntent returned resolverActivity"); + } return null; }