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

Commit 91c006de authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Make binder call on a background thread

Bug: 342527967
Change-Id: I41811e2dae454c67435c1c99d10bc3a28894fbd1
Test: presubmit
parent 6a7f2787
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -370,6 +370,7 @@ public final class ProfcollectForwardingService extends SystemService {
    }

    private static void createAndUploadReport(ProfcollectForwardingService pfs) {
        BackgroundThread.get().getThreadHandler().post(() -> {
            String reportName;
            try {
                reportName = pfs.mIProfcollect.report(pfs.mUsageSetting) + ".zip";
@@ -381,7 +382,6 @@ public final class ProfcollectForwardingService extends SystemService {
                Log.i(LOG_TAG, "Upload is not enabled.");
                return;
            }
        BackgroundThread.get().getThreadHandler().post(() -> {
            Intent intent = new Intent()
                    .setPackage("com.android.shell")
                    .setAction("com.android.shell.action.PROFCOLLECT_UPLOAD")