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

Commit 241e1a5c authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "profcollect: Make binder call on a background thread" into main

parents 63159a4f 91c006de
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")