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

Commit 7944207f authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Fixed logic to print BEGIN: line for bugreportz. am: dcd1f0da am: c077e913

am: 3f068ef5

Change-Id: I66be5a87c11ae1165bb7ed07596a3b439a4bace6
parents 2d5f161f 3f068ef5
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -1340,7 +1340,8 @@ int main(int argc, char *argv[]) {
            add_text_zip_entry("version.txt", version);
        }

        if (do_update_progress && do_broadcast) {
        if (do_update_progress) {
            if (do_broadcast) {
                // clang-format off
                std::vector<std::string> am_args = {
                     "--receiver-permission", "android.permission.DUMP", "--receiver-foreground",
@@ -1348,9 +1349,10 @@ int main(int argc, char *argv[]) {
                     "--ei", "android.intent.extra.ID", std::to_string(id),
                     "--ei", "android.intent.extra.PID", std::to_string(getpid()),
                     "--ei", "android.intent.extra.MAX", std::to_string(WEIGHT_TOTAL),
            // clang-format on
                };
                // clang-format on
                send_broadcast("android.intent.action.BUGREPORT_STARTED", am_args);
            }
            if (use_control_socket) {
                dprintf(control_socket_fd, "BEGIN:%s\n", path.c_str());
            }