Page 1 of 1

End Call does not work

Posted: 03 Jun 2018 08:08
by Seeking_Alpha
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.

Re: End Call does not work

Posted: 03 Jun 2018 09:24
by Desmanto
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.

Re: End Call does not work

Posted: 03 Jun 2018 14:12
by Martin
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

Re: End Call does not work

Posted: 03 Jun 2018 14:16
by Seeking_Alpha
Thanks Martin and Desmanto. I will try this now.