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

Commit 7036ce60 authored by Shubang Lu's avatar Shubang Lu Committed by Automerger Merge Worker
Browse files

Merge "MediaMetrics: Cleanup the formatting of session ID" into sc-dev am: 138a3612

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

Change-Id: I874d33a5846dc8001260abbd5e4d5aff7d720191
parents 46973da2 138a3612
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -98,7 +98,8 @@ public final class MediaMetricsManagerService extends SystemService {
        private String getSessionIdInternal(int userId) {
            byte[] byteId = new byte[16]; // 128 bits
            mSecureRandom.nextBytes(byteId);
            String id = Base64.encodeToString(byteId, Base64.DEFAULT);
            String id = Base64.encodeToString(
                    byteId, Base64.NO_PADDING | Base64.NO_WRAP | Base64.URL_SAFE);
            return id;
        }