Merge "Only add logcat to dropbox entries on userdebug/eng builds" into udc-dev am: 8086da9d10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21570341 Change-Id: I56e8f5fe6fe3c2810d5052427e23c42ed411139b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user