Detect and change software data connection (GPRS / UMTS) on Android

I know that, unfortunately, it is not possible to detect and change a software data connection (GPRS / UMTS) on vanilla Android, and a workaround is to change the APN settings. This is hardly a good solution.

However, on my device (Xperia X10) I have an additional setting next to "data roaming", which allows you to enable or disable MMS and data. I believe this is personalization made by Sony Ericsson, and maybe other manufacturers have something like this. Is there any way to access this setting?

+5
source share
2 answers

SE, :

  • AOSP com.android.internal.telephony: enableDataConnectivity() disableDataConnectivity(). .
  • , com.android.phone.PhoneInterfaceManager, Phone.apk. /.
  • Sony com.android.phone.PhoneInterfaceManager.enableDataConnectivity(), , sharedPreferences. , enableDataConnectivity() disableDataConnectivity() com.android.internal.telephony.
  • , : "MMS ". "com.android.phone_preferences" pref-: "data_service_key". , , com.android.internal.telephony .

- , :

  • root.
  • "android.uid.phone" sharedUserId.

, Phone.apk, / . data_service_key boolean com.android.internal.telephony. , , - .

+5

SE? , .

+1

All Articles