Allow somewhat larger RemoteViews

And improve logs

Test: manual
Bug: 136496704

Change-Id: I24d44c104188a2e335138358cff774660a824394
This commit is contained in:
Julia Reynolds
2019-10-09 15:41:58 -04:00
parent 2118ac1b90
commit 699c1e4e0c
2 changed files with 4 additions and 4 deletions

View File

@@ -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 -->

View File

@@ -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;