AndroidCallBlockingTestDemo icon indicating copy to clipboard operation
AndroidCallBlockingTestDemo copied to clipboard

does it still work with latest versions?

Open PaulD1980 opened this issue 6 years ago • 10 comments

does it still work with latest versions?

PaulD1980 avatar May 16 '18 20:05 PaulD1980

I've had reports that it does not. Haven't had a chance to look into it. On what devices did you test?

Hitman666 avatar May 17 '18 11:05 Hitman666

According to this; since API 26 the TelephonyManager now exposes a endCall() method.

Which of course is cleaner then accessing ITelephony methods using reflection that may or may not work depending on phone and Android version.

Disclaimer: I don't have AndroidStudio available at this moment to check if it actually works. I will however check later.

evildeeds avatar Feb 05 '19 13:02 evildeeds

hi all, i am thinking of starting a similar project. but i want a implement that can receive the call automatically. i have found some pages, but still no idea. can some one give me some hint? thanks a lot.

lwp007 avatar Feb 11 '19 11:02 lwp007

I guess something along these lines would work....

TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);

if (Build.VERSION.SDK_INT >= 28){ tm.endCall(); }

Thanks for the great project btw!

catman85 avatar Aug 23 '19 01:08 catman85

I tried on Android 9, and it requires READ_CALL_LOG in order to get the incoming call number. Though I still couldn't reject calls, maybe an additional permission is required for that.

But I found an interesting API that could be useful (CallScreeningService): https://developer.android.com/reference/android/telecom/CallScreeningService Maybe it fits the purposes of the project?

I am working on a similar app, and thanks for sharing the project!

BlazicIvan avatar Feb 17 '20 11:02 BlazicIvan

this code is not working for android 10 can you share relevant example of android 10 ?

hirenmotwani avatar Oct 13 '20 19:10 hirenmotwani

I'm not actively maintaining this repo. Please feel free to create a PR.

On Tue, 13 Oct 2020 at 21:21, hirenmotwani [email protected] wrote:

this code is not working for android 10 can you share relevant example of android 10 ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Hitman666/AndroidCallBlockingTestDemo/issues/1#issuecomment-707956254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHUM2HO3IV3JXQ3KQJXTYLSKSSFBANCNFSM4FAH452Q .

Hitman666 avatar Oct 13 '20 20:10 Hitman666

Hello, I'm doing research to automatically turn off incoming calls, I couldn't run your project. I'm looking for a current working project, I couldn't find the encall method working in any way, I need this method, I would be grateful

Yuasset avatar Oct 28 '22 10:10 Yuasset

I have tried to update the code and resolve some of these issues. Please take a look at #7

dptel avatar Oct 04 '23 20:10 dptel

Kodu güncellemeye ve bu sorunlardan bazılarını çözmeye çalıştım. Lütfen #7'ye bakın

It is very nice if it can turn off the call screening service without violating security policies in Android 8.1, 9, 10, 11, 12 and 13+ versions. Thank you, I will evaluate your code.

Yuasset avatar Oct 05 '23 08:10 Yuasset