a refused call re-calls itself automatically, HOW IS THIS POSSIBLE??

Cableguy

Expert
Licensed User
Longtime User
We've seen in the past few months, due to Amazon privacy leech, among others, many privacy policies improvements. Even O.S.s have introduced the need for the user to allow certain actions…

Still, here in France, and I think not exclusively, Strange things happen….

Quite often my wife gets calls from an unkown number (land line number) that she refuses…
So imediately after rejecting the call, the phone starts MAKING a call to that exact same number she just rejected! How can this be?
 

Star-Dust

Expert
Licensed User
Longtime User
Almost all phones today have the 'black list'. It is a list of telephone numbers to which you can indicate whether to reject calls or delete incoming messages.

However, if you want to do it by software, you can use this code

B4X:
Sub KillCall
   Dim r As Reflector
   r.Target = r.GetContext
   Dim TelephonyManager, TelephonyInterface As Object
   TelephonyManager = r.RunMethod2("getSystemService", "phone", "java.lang.String")
   r.Target = TelephonyManager
   TelephonyInterface = r.RunMethod("getITelephony")
   r.Target = TelephonyInterface
   r.RunMethod("endCall")
End Sub

using the Phone library and intercepting the phone calls event.
B4X:
Dim PE As PhoneEvents
PE.InitializeWithPhoneState("PE", PhoneId)

B4X:
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent1 As Intent)
    If State="RINGING" Then
        KillCall
        ' you can simply silence the phone when an unwanted call arrives
        ' Dim Pr As Phone
        ' Pr.SetMute(Pr.VOLUME_RING,True)
        ' Pr.SetMute(Pr.VOLUME_ALARM,True)
        ' Pr.SetMute(Pr.VOLUME_MUSIC,True)
        ' Pr.SetMute(Pr.VOLUME_NOTIFICATION,True)
 
    Else If State="OFFHOOK" Then
        'Sganciato
    
    else If State="IDLE" Then
        'libero

    End If
End Sub

obviously it is better to put everything in a service
 

Cableguy

Expert
Licensed User
Longtime User
Thanks @stardust, but mine is mostly a "logical" question… If we Don't know before hand that a number is to blacklisted… the "phishing" still is possible.
How can an incomming call result in an outgoing call??
 

Star-Dust

Expert
Licensed User
Longtime User
Sorry I did not understand
 

Cableguy

Expert
Licensed User
Longtime User
You can create an app that if you lose an incoming call, then your app calls that number. So, maybe it's a feature of that specific smartphone, pre-installed sw.
Nope, she just changed her phone 2 days ago, from an S7 to an S8.
The S8 does however tag the incoming number as a "possible fraude".
I also think that this is some security fault in the SFR GSM network
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…