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

Commit 28512545 authored by Shai Barack's avatar Shai Barack
Browse files

Prepare main looper before setting pre-init argv

Allow the init of the MessageQueue on the main looper to
observe the argv0 value before it's clobbered.

This unblocks ag/30512077

Flag: EXEMPT bugfix
Bug: 336880969

Change-Id: I6c2cda19530e4b0919345e53672ee7f1dbb52e06
parent 27e05672
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8843,10 +8843,10 @@ public final class ActivityThread extends ClientTransactionHandler
        // Call per-process mainline module initialization.
        initializeMainlineModules();

        Process.setArgV0("<pre-initialized>");

        Looper.prepareMainLooper();

        Process.setArgV0("<pre-initialized>");

        // Find the value for {@link #PROC_START_SEQ_IDENT} if provided on the command line.
        // It will be in the format "seq=114"
        long startSeq = 0;