Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does it still work with latest versions? #1

Open
PaulD1980 opened this issue May 16, 2018 · 10 comments
Open

does it still work with latest versions? #1

PaulD1980 opened this issue May 16, 2018 · 10 comments

Comments

@PaulD1980
Copy link

does it still work with latest versions?

@Hitman666
Copy link
Owner

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

@evildeeds
Copy link

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.

@lwp007
Copy link

lwp007 commented Feb 11, 2019

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.

@catman85
Copy link

catman85 commented Aug 23, 2019

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!

@BlazicIvan
Copy link

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!

@hirenmotwani
Copy link

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

@Hitman666
Copy link
Owner

Hitman666 commented Oct 13, 2020 via email

@Yuasset
Copy link

Yuasset commented Oct 28, 2022

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

@dptel
Copy link

dptel commented Oct 4, 2023

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

@Yuasset
Copy link

Yuasset commented Oct 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants