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

Commit e266a9f8 authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Check DUMP permission in the backup service trampoline"

parents cff41ae3 8dd7d01c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -318,6 +318,8 @@ public class Trampoline extends IBackupManager.Stub {

    @Override
    public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
        mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG);

        BackupManagerService svc = mService;
        if (svc != null) {
            svc.dump(fd, pw, args);