I know that we can listen phone state by broadcast receiver with filter
action android:name="android.intent.action.PHONE_STATE"
but this way requires permission
uses-permission android:name="android.permission.READ_PHONE_STATE"
How to determine the incoming GSM call whithout this permission?
P.S.
I'm sure that this is possibly because Whatsapp doing it.
When I'm talking on the Whatsapp audio calls and then got incoming gsm call - whatsapp checking it and set self call to pause. How do they understand that need set pause?
Whatsapp has READ_PHONE_STATE permission in Manifest file, but I check calls on Android 6 and not granted this permission. This permission was disabled.
When this permission is disabled my Receiver doesn't receive action android.intent.action.PHONE_STATE and PhoneStateListener is not working.