Loading services/core/java/com/android/server/media/MediaSessionService.java +9 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.os.PowerManager; import android.os.Process; import android.os.RemoteException; import android.os.ResultReceiver; import android.os.ServiceManager; Loading Loading @@ -697,6 +698,14 @@ public class MediaSessionService extends SystemService implements Monitor { final int uid = Binder.getCallingUid(); final long token = Binder.clearCallingIdentity(); if (isGlobalPriorityActive() && uid != Process.SYSTEM_UID) { // Prevent dispatching key event through reflection while the global priority // session is active. Slog.i(TAG, "Only the system can dispatch media key event " + "to the global priority session."); return; } try { synchronized (mLock) { MediaSessionRecord session = mPriorityStack Loading Loading
services/core/java/com/android/server/media/MediaSessionService.java +9 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.os.PowerManager; import android.os.Process; import android.os.RemoteException; import android.os.ResultReceiver; import android.os.ServiceManager; Loading Loading @@ -697,6 +698,14 @@ public class MediaSessionService extends SystemService implements Monitor { final int uid = Binder.getCallingUid(); final long token = Binder.clearCallingIdentity(); if (isGlobalPriorityActive() && uid != Process.SYSTEM_UID) { // Prevent dispatching key event through reflection while the global priority // session is active. Slog.i(TAG, "Only the system can dispatch media key event " + "to the global priority session."); return; } try { synchronized (mLock) { MediaSessionRecord session = mPriorityStack Loading