Merge "Allow somewhat larger RemoteViews"

This commit is contained in:
Julia Reynolds
2019-10-16 19:22:50 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -4319,11 +4319,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

@@ -5112,8 +5112,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;