am c81daf7f: am db56efe6: am 2152edeb: am 16fa58cb: Merge "Fix to check the incoming userid argument for RingtonePlayer" into mnc-dev
* commit 'c81daf7ff1c2905aaea5c65c6e73a6db06ee5be8': Fix to check the incoming userid argument for RingtonePlayer
This commit is contained in:
@@ -159,7 +159,9 @@ public class RingtonePlayer extends SystemUI {
|
|||||||
if (Binder.getCallingUid() != Process.SYSTEM_UID) {
|
if (Binder.getCallingUid() != Process.SYSTEM_UID) {
|
||||||
throw new SecurityException("Async playback only available from system UID.");
|
throw new SecurityException("Async playback only available from system UID.");
|
||||||
}
|
}
|
||||||
|
if (UserHandle.ALL.equals(user)) {
|
||||||
|
user = UserHandle.OWNER;
|
||||||
|
}
|
||||||
mAsyncPlayer.play(getContextForUser(user), uri, looping, aa);
|
mAsyncPlayer.play(getContextForUser(user), uri, looping, aa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user