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

Commit 37c28b7e authored by Tom Chan's avatar Tom Chan
Browse files

Remove time limit of temporary WSS override on debuggable builds

Bug: 341964702
Test: On device, can override for a long period on an eng build. Per hackz@'s request, also verified from the logs that the service name can be overridden on a user build, which suggests that the time limit was not put in specifically to limit override in debuggable builds.
Change-Id: I570be025ffd248452e7d8793ea1035995dd5750b
parent 80f02617
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManagerInternal;
import android.os.Binder;
import android.os.Build;
import android.os.ParcelFileDescriptor;
import android.os.PersistableBundle;
import android.os.RemoteCallback;
@@ -189,6 +190,9 @@ public class WearableSensingManagerService extends

    @Override
    protected int getMaximumTemporaryServiceDurationMs() {
        if (Build.isDebuggable()) {
            return Integer.MAX_VALUE;
        }
        return MAX_TEMPORARY_SERVICE_DURATION_MS;
    }