xposed - Which API decides if the call is going through VoLTE or VoWiFi in Android? -


i want write xposed module can redirect volte calls through vowifi. want know method decides if call going through volte or vowifi , hook method , work done.

basically using wifi want give network illusion device using mobile data , send calls through wifi

note : new android programming. excuse me if question looks vague.

so want give illusion connected wifi though on mobile data.

the way check this:

connectivitymanager cm =         (connectivitymanager)context.getsystemservice(context.connectivity_service);  networkinfo activenetwork = cm.getactivenetworkinfo();  boolean iswifi = activenetwork.gettype() == connectivitymanager.type_wifi; 

so can is, hook gettype method of connectivitymanager , in afterhook method return connectivitymanager.type_wifi

the way calling

 param.setresult(connectivitymanager.type_wifi);//may need casting here 

in afterhook.

read more connectivity here: https://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html

edit: hope familiar afterhook , beforehook methods , how xposed works.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -