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

Commit 0b7cedd2 authored by Yi Kong's avatar Yi Kong
Browse files

profcollectd: Rename config env to persist.*

... otherwise the option gets reset after reboot.

Test: TreeHugger
Bug: 79161490
Change-Id: I7e437c3df425ff0f604d24502d49a15050b5279d
parent f61b5b0d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -150,7 +150,8 @@ public final class ProfcollectForwardingService extends SystemService {
        }

        // Sample for a fraction of app launches.
        int traceFrequency = SystemProperties.getInt("profcollectd.applaunch_trace_freq", 2);
        int traceFrequency =
                SystemProperties.getInt("persist.profcollectd.applaunch_trace_freq", 2);
        int randomNum = ThreadLocalRandom.current().nextInt(100);
        if (randomNum < traceFrequency) {
            try {