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

Commit 699c1e4e authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Allow somewhat larger RemoteViews

And improve logs

Test: manual
Bug: 136496704

Change-Id: I24d44c104188a2e335138358cff774660a824394
parent 2118ac1b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4304,11 +4304,11 @@

    <!-- Trigger a warning for notifications with RemoteView objects that are larger in bytes than
    this value (default 1MB)-->
    <integer name="config_notificationWarnRemoteViewSizeBytes">1000000</integer>
    <integer name="config_notificationWarnRemoteViewSizeBytes">2000000</integer>

    <!-- Strip notification RemoteView objects that are larger in bytes than this value (also log)
    (default 2MB) -->
    <integer name="config_notificationStripRemoteViewSizeBytes">2000000</integer>
    <integer name="config_notificationStripRemoteViewSizeBytes">5000000</integer>

    <!-- Contains a blacklist of apps that should not get pre-installed carrier app permission
         grants, even if the UICC claims that the app should be privileged. See b/138150105 -->
+2 −2
Original line number Diff line number Diff line
@@ -5060,8 +5060,8 @@ public class NotificationManagerService extends SystemService {
        }
        if (contentViewSize >= mStripRemoteViewsSizeBytes) {
            mUsageStats.registerImageRemoved(pkg);
            Slog.w(TAG,
                    "Removed too large RemoteViews on pkg: " + pkg + " tag: " + tag + " id: " + id);
            Slog.w(TAG, "Removed too large RemoteViews (" + contentViewSize + " bytes) on pkg: "
                    + pkg + " tag: " + tag + " id: " + id);
            return true;
        }
        return false;