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

Commit db4070c2 authored by Harpreet "Eli" Sangha's avatar Harpreet "Eli" Sangha
Browse files

Remove Vibrator Shell Command Time Limit



Bug: 119055171
Test: Manual Via "cmd vibrator vibrate <ms>"
Change-Id: Ib503356da42fe122733cb65d5d2f7f3e0140962b
Signed-off-by: default avatarHarpreet "Eli" Sangha <eliptus@google.com>
parent 44f74d11
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1258,8 +1258,6 @@ public class VibratorService extends IVibratorService.Stub

    private final class VibratorShellCommand extends ShellCommand {

        private static final long MAX_VIBRATION_MS = 200;

        private final IBinder mToken;

        private VibratorShellCommand(IBinder token) {
@@ -1303,9 +1301,6 @@ public class VibratorService extends IVibratorService.Stub
                }

                final long duration = Long.parseLong(getNextArgRequired());
                if (duration > MAX_VIBRATION_MS) {
                    throw new IllegalArgumentException("maximum duration is " + MAX_VIBRATION_MS);
                }
                String description = getNextArg();
                if (description == null) {
                    description = "Shell command";