Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac39b962 authored by Philip Cuadra's avatar Philip Cuadra
Browse files

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
parent 5d86219e
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -63,7 +63,7 @@ public final class PinnerService extends SystemService {


    private BinderService mBinderService;
    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;
    private PinnerHandler mPinnerHandler = null;


@@ -192,6 +192,9 @@ public final class PinnerService extends SystemService {


        if (isResolverActivity(cameraResolveInfo.activityInfo))
        if (isResolverActivity(cameraResolveInfo.activityInfo))
        {
        {
            if (DEBUG) {
              Slog.v(TAG, "cameraIntent returned resolverActivity");
            }
            return null;
            return null;
        }
        }