Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e1579ed authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "DSUService: Log verbose installation progress" am: 44631020 am:...

Merge "DSUService: Log verbose installation progress" am: 44631020 am: b24386b5 am: f33515f6 am: 42da0368

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

Change-Id: I03dfb054cd84b43753f88866a6548067ede00895
parents 9f2bfc64 42da0368
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -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));