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

Commit a496bc01 authored by Chris Sabotta's avatar Chris Sabotta Committed by Android (Google) Code Review
Browse files

Merge "Print NanoappIDs as hex" into main

parents db60035f eb09f976
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -237,15 +237,16 @@ import java.util.function.Consumer;

        if (message.isBroadcastMessage()) {
            if (message.isReliable()) {
                Log.e(TAG, "Received reliable broadcast message from " + message.getNanoAppId());
                Log.e(TAG, "Received reliable broadcast message from 0x"
                        + Long.toHexString(message.getNanoAppId()));
                return ErrorCode.PERMANENT_ERROR;
            }

            // Broadcast messages shouldn't be sent with any permissions tagged per CHRE API
            // requirements.
            if (!messagePermissions.isEmpty()) {
                Log.e(TAG, "Received broadcast message with permissions from "
                        + message.getNanoAppId());
                Log.e(TAG, "Received broadcast message with permissions from 0x"
                        + Long.toHexString(message.getNanoAppId()));
                return ErrorCode.PERMANENT_ERROR;
            }