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

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

Merge "profcollect: Add verbose logging for ota status updates" am: ac418218 am: c7c73d4e

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

Change-Id: I366385185ad1ba6ab6e6f8c906e86aeae17ee187
parents e54799d1 c7c73d4e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -59,9 +59,7 @@ public final class ProfcollectForwardingService extends SystemService {

    private static final boolean DEBUG = Log.isLoggable(LOG_TAG, Log.DEBUG);

    private static final long BG_PROCESS_PERIOD = DEBUG
            ? TimeUnit.MINUTES.toMillis(1)
            : TimeUnit.DAYS.toMillis(1);
    private static final long BG_PROCESS_PERIOD = TimeUnit.DAYS.toMillis(1); // every 1 day.

    private IProfCollectd mIProfcollect;
    private static ProfcollectForwardingService sSelfService;
@@ -286,6 +284,11 @@ public final class ProfcollectForwardingService extends SystemService {
        updateEngine.bind(new UpdateEngineCallback() {
            @Override
            public void onStatusUpdate(int status, float percent) {
                if (DEBUG) {
                    Log.d(LOG_TAG, "Received OTA status update, status: " + status + ", percent: "
                            + percent);
                }

                if (status == UpdateEngine.UpdateStatusConstants.UPDATED_NEED_REBOOT) {
                    packProfileReport();
                }