Merge "Only add logcat to dropbox entries on userdebug/eng builds" into udc-dev am: 8086da9d10 am: fecad34f7f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21570341

Change-Id: Ib37994c66f94fe061684b09d113a6be7d3e29dd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Olivier Gaillard
2023-03-16 17:49:20 +00:00
committed by Automerger Merge Worker

View File

@@ -9351,7 +9351,9 @@ public class ActivityManagerService extends IActivityManager.Stub
String logcatSetting = Settings.Global.ERROR_LOGCAT_PREFIX + dropboxTag;
String maxBytesSetting = Settings.Global.MAX_ERROR_BYTES_PREFIX + dropboxTag;
int lines = Settings.Global.getInt(mContext.getContentResolver(), logcatSetting, 0);
int lines = Build.IS_USER
? 0
: Settings.Global.getInt(mContext.getContentResolver(), logcatSetting, 0);
int dropboxMaxSize = Settings.Global.getInt(
mContext.getContentResolver(), maxBytesSetting, DROPBOX_DEFAULT_MAX_SIZE);
int maxDataFileSize = dropboxMaxSize - sb.length()