diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-05-12 10:10:37 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-05-12 10:10:37 +0000 |
commit | b24386b51fe344ab3dd46363b8368afc796d9376 (patch) | |
tree | e137bc77b593f1a1b85337a73e8d283f9919e7e4 /packages/DynamicSystemInstallationService | |
parent | 65c37c7b1c7e292f82a80e728a8e202ae3ad89e1 (diff) | |
parent | 446310209511dd54d0d06455a948c1da47d23ade (diff) |
Merge "DSUService: Log verbose installation progress" am: 4463102095
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1662401
Change-Id: I948e7c49d857083d6e3aacfd38d992da557d998c
Diffstat (limited to 'packages/DynamicSystemInstallationService')
-rw-r--r-- | packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java index 16a946dc7bc6..f8cb5d3d2419 100644 --- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java +++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java @@ -561,7 +561,20 @@ public class DynamicSystemInstallationService extends Service break; } - Log.d(TAG, "status=" + statusString + ", cause=" + causeString + ", detail=" + detail); + StringBuilder msg = new StringBuilder(); + msg.append("status: " + statusString + ", cause: " + causeString); + if (status == STATUS_IN_PROGRESS) { + msg.append( + String.format( + ", partition name: %s, progress: %d/%d", + mCurrentPartitionName, + mCurrentPartitionInstalledSize, + mCurrentPartitionSize)); + } + if (detail != null) { + msg.append(", detail: " + detail); + } + Log.d(TAG, msg.toString()); if (notifyOnNotificationBar) { mNM.notify(NOTIFICATION_ID, buildNotification(status, cause, detail)); |