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

Commit 464385ad authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "MediaMetricsManagerService: Unify logSessionId representation" into sc-dev am: 91327ade

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237695

Change-Id: I5ce2a1fe1b63ddcf4459cab63f2b0633e46e1fad
parents 187e962d 91327ade
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public final class MediaMetricsManagerService extends SystemService {
        }

        private String getSessionIdInternal(int userId) {
            byte[] byteId = new byte[16]; // 128 bits
            byte[] byteId = new byte[12]; // 96 bits (128 bits when expanded to Base64 string)
            mSecureRandom.nextBytes(byteId);
            String id = Base64.encodeToString(
                    byteId, Base64.NO_PADDING | Base64.NO_WRAP | Base64.URL_SAFE);