How to end an incoming call programmatically on Android 8.0 Oreo

后端 未结 5 1984
北海茫月
北海茫月 2020-12-06 05:12

Up to Android 7.1 it was possible to end an incoming call by using the ITelephony.endCall() method and giving your app the permissions

5条回答
  •  温柔的废话
    2020-12-06 06:12

    Try using reflection like in the answer provded here.

    It works with READ_PHONE_STATE and CALL_PHONE permissions. Those permissions are available to non-system applications, according to android docs

提交回复
热议问题