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

Commit c42d933b authored by Svet Ganov's avatar Svet Ganov
Browse files

Clear binder id before creating pending intent as the system.

bug:19349693

Change-Id: I989441ac32b89d313ec7a006373faa90f58fc89d
parent 3dbcd203
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2162,8 +2162,13 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
                mIntent = new Intent().setComponent(mComponentName);
                mIntent.putExtra(Intent.EXTRA_CLIENT_LABEL,
                        com.android.internal.R.string.accessibility_binding_label);
                final long idendtity = Binder.clearCallingIdentity();
                try {
                    mIntent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
                            mContext, 0, new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS), 0));
                } finally {
                    Binder.restoreCallingIdentity(idendtity);
                }
            }
            setDynamicallyConfigurableProperties(accessibilityServiceInfo);
        }