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

Commit 7facc85f authored by Abhijeet Kaur's avatar Abhijeet Kaur Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity as broadcast needs permission"

parents bb4f6c6b f598710a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -8285,8 +8285,13 @@ public class ActivityManagerService extends IActivityManager.Stub
            if (shareDescription != null) {
                triggerShellBugreport.putExtra(EXTRA_DESCRIPTION, shareDescription);
            }
            final long identity = Binder.clearCallingIdentity();
            try {
                // Send broadcast to shell to trigger bugreport using Bugreport API
                mContext.sendBroadcast(triggerShellBugreport);
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        } else {
            SystemProperties.set("dumpstate.options", type);
            SystemProperties.set("ctl.start", "bugreport");