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

Commit b55ef6a4 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Stop logging service name hash

We never really used them

Fix: b/278787039
Test: tree hugger
Change-Id: I829d1449eb1a74f6aea8664da33705739fde7ca6
parent d8739cea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8298,7 +8298,7 @@ public final class ActiveServices {
                r.mFgsNotificationShown,
                durationMs,
                r.mStartForegroundCount,
                ActivityManagerUtils.hashComponentNameForAtom(r.shortInstanceName),
                0, // Short instance name -- no longer logging it.
                r.mFgsHasNotificationPermission,
                r.foregroundServiceType,
                fgsTypeCheckCode,
+0 −8
Original line number Diff line number Diff line
@@ -128,14 +128,6 @@ public class ActivityManagerUtils {
        return (((double) hash) / Integer.MAX_VALUE) <= rate;
    }

    /**
     * @param shortInstanceName {@link ServiceRecord#shortInstanceName}.
     * @return hash of the ServiceRecord's shortInstanceName, combined with ANDROID_ID.
     */
    public static int hashComponentNameForAtom(String shortInstanceName) {
        return getUnsignedHashUnCached(shortInstanceName) ^ getAndroidIdHash();
    }

    /**
     * Helper method to log an unsafe intent event.
     */
+1 −1
Original line number Diff line number Diff line
@@ -507,7 +507,7 @@ public class ForegroundServiceTypeLoggerModule {
                r.mFgsNotificationShown,
                0, // durationMs
                r.mStartForegroundCount,
                ActivityManagerUtils.hashComponentNameForAtom(r.shortInstanceName),
                0, // Short instance name -- no longer logging it.
                r.mFgsHasNotificationPermission,
                r.foregroundServiceType,
                0,