End Call does not work

Post your questions and help other users.

Moderator: Martin

Post Reply
Seeking_Alpha
Posts: 11
Joined: 21 Jun 2013 13:15

End Call does not work

Post by Seeking_Alpha » 03 Jun 2018 08:08

I am trying to disconnect Unknown callers with a sms. However, Automagic does no end the actual call. Below is the log, can anyone help?

03.06.2018 13:23:07.452 [Disconnect UNK callers] End executing action 'End Call' and exception Could not end call
03.06.2018 13:23:07.456 [Disconnect UNK callers] Flow ends execution due to errors
03.06.2018 13:23:07.456 [Disconnect UNK callers] Error:
ch.gridvision.ppam.androidautomagiclib.util.m: Could not end call
at ch.gridvision.ppam.androidautomagic.model.a.al.a(SourceFile:111)
at ch.gridvision.ppam.androidautomagic.model.flow.e.a(SourceFile:1044)
at ch.gridvision.ppam.androidautomagic.model.flow.e.b(SourceFile:1399)
at ch.gridvision.ppam.androidautomagic.model.flow.e.a(SourceFile:66)
at ch.gridvision.ppam.androidautomagic.model.flow.e$8.run(SourceFile:1207)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6776)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at ch.gridvision.ppam.androidautomagic.model.a.al.a(SourceFile:82)
... 11 more
Caused by: java.lang.SecurityException: MODIFY_PHONE_STATE permission required.
at android.os.Parcel.readException(Parcel.java:1693)
at android.os.Parcel.readException(Parcel.java:1646)
at com.android.internal.telephony.ITelephony$Stub$Proxy.endCall(ITelephony.java:2472)
... 13 more

03.06.2018 13:23:07.476 [Disconnect UNK callers] Flow ended.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: End Call does not work

Post by Desmanto » 03 Jun 2018 09:24

Stated in the error : MODIFY_PHONE_STATE permission required.

Open Android setting > manage App > Automagic > permission and give all permission needed. I would give Automagic every permission it need, including whitelisting it from the battery optimization.

However, end call action doesn't guaranteed working on all devices, still need to try it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: End Call does not work

Post by Martin » 03 Jun 2018 14:12

This is a known issue of the latest security update of Android 8.1. Unfortunately permission MODIFY_PHONE_STATE can not be granted to a regular third party app like Automagic. Please check the known issues here:
http://automagic4android.com/forum/view ... f=5&t=6943

It looks like Android 9 might add a new official API for apps to end a call. I'll use it when it becomes available, until then you have to use the workaround outlined in the known issues section.

Regards,
Martin

Seeking_Alpha
Posts: 11
Joined: 21 Jun 2013 13:15

Re: End Call does not work

Post by Seeking_Alpha » 03 Jun 2018 14:16

Thanks Martin and Desmanto. I will try this now.

Post Reply