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

Commit 17d268cc authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix shell cmd

The uid has to match the calling package

Test: manual
Fixes: 132901740

Change-Id: Icec02105e8809a47fd5a37055d938c5cc4d4a990
parent c8d53875
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -46,6 +46,8 @@ import android.os.UserHandle;
import android.text.TextUtils;
import android.util.Slog;

import com.android.internal.util.FunctionalUtils;

import java.io.PrintWriter;
import java.net.URISyntaxException;
import java.util.Collections;
@@ -136,8 +138,9 @@ public class NotificationShellCmd extends ShellCommand {
                        case "off":
                            interruptionFilter = INTERRUPTION_FILTER_ALL;
                    }
                    mBinderService.setInterruptionFilter(
                            mDirectService.getContext().getPackageName(), interruptionFilter);
                    final int filter = interruptionFilter;
                    Binder.withCleanCallingIdentity(() -> mBinderService.setInterruptionFilter(
                            mDirectService.getContext().getPackageName(), filter));
                }
                break;
                case "allow_dnd": {