Add permission check for old call handover apis.

Bug: 65415068
Test: manual
Change-Id: I4784debf1be255de24c341fe5474fc529bc1cebe
This commit is contained in:
Sanket Padawe
2018-01-05 14:26:16 -08:00
parent ec25ea1520
commit f6a9e5b6e0
4 changed files with 13 additions and 4 deletions

View File

@@ -286,11 +286,12 @@ public final class InCallAdapter {
*
* @param callId The callId to send the event for.
* @param event The event.
* @param targetSdkVer Target sdk version of the app calling this api
* @param extras Extras associated with the event.
*/
public void sendCallEvent(String callId, String event, Bundle extras) {
public void sendCallEvent(String callId, String event, int targetSdkVer, Bundle extras) {
try {
mAdapter.sendCallEvent(callId, event, extras);
mAdapter.sendCallEvent(callId, event, targetSdkVer, extras);
} catch (RemoteException ignored) {
}
}