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

Commit 96165b59 authored by Stanislav Zholnin's avatar Stanislav Zholnin
Browse files

Force sampling to always take all ops for the same package.

Bug:167579006

Test: manually verified
Change-Id: I3d86ec5fc8ad7ff5c6042caa7265647722bc62ac
parent bde6cfbd
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -3164,9 +3164,7 @@ public class StatsPullAtomService extends SystemService {
            mAttributionTag = attributionTag;
            mAttributionTag = attributionTag;
            mUid = uid;
            mUid = uid;
            mOp = op;
            mOp = op;
            mHash = ((op.getOpCode() * 961
            mHash = ((packageName.hashCode() + RANDOM_SEED) & 0x7fffffff) % 100;
                    + (attributionTag == null ? 0 : attributionTag.hashCode()) * 31
                    + packageName.hashCode() + RANDOM_SEED) & 0x7fffffff) % 100;
        }
        }
    }
    }