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

Commit dcd1f0da authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixed logic to print BEGIN: line for bugreportz.

BUG: 30451114
Change-Id: I0e65a38999c128a435b43ad0806e06e6e74580ff
parent 8329e4cd
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -1269,7 +1269,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",
@@ -1277,9 +1278,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());
            }