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

Commit 439f61c1 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Ensure ProtoLogViewerConfig packet that defines the message requires incremental state

We do not want to process this packet if we are missing some incremental state data which might include the group config which this packet depends on.

Bug: 362727234
Test: n/a
Flag: EXEMPT small bug fix
Change-Id: I622e7e1435f89743e53184a69380e41b7e87a795
parent 01d869e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -751,6 +751,10 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
            incrementalState.protologMessageInterningSet.add(messageHash);

            final ProtoOutputStream os = ctx.newTracePacket();

            // Dependent on the ProtoLog viewer config packet that contains the group information.
            os.write(SEQUENCE_FLAGS, SEQ_NEEDS_INCREMENTAL_STATE);

            final long protologViewerConfigToken = os.start(PROTOLOG_VIEWER_CONFIG);
            final long messageConfigToken = os.start(MESSAGES);