OSDN Git Service

Pinner Service - update Camera app max size to 80MB
authorPhilip Cuadra <philipcuadra@google.com>
Wed, 2 Nov 2016 18:59:22 +0000 (11:59 -0700)
committerPhilip Cuadra <philipcuadra@google.com>
Tue, 8 Nov 2016 19:23:23 +0000 (11:23 -0800)
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

index 356ccb3..fa5a52c 100644 (file)
@@ -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;
         }