sim card with disabled TS11 (Tele Service: Telephony) drains battery - android

I have a sim card with disabled TS11 (Tele Service: Telephony), im using this card only for data connection. My question is: it is possible to disalble TS11 service on android? Because when this sim card is in use, my phone thinks that there is no service and trying to find network wchich causes battery drain. Is there any solution for this problem?

This is a known problem with data-only SIM cards. To fix this, you'll need a rooted phone (or a phone with ability to pull/push files from /system partition). Also, you should save a backup of your framework.jar, because your phone might not work well with voice/data SIM cards after this modification. But, if you push original framework.jar back to your phone, everything will be restored.
The modification changes phone status to IN_SERVICE even when it's not connected to the network, so the phone stops searching for networks. Here are the details, however I don't recommend using batch file and prefer to to all modifications manually, it's safer that way.

Related

Purpose of Telephony Provider

Some background information:
I have a certain yet to be released tablet and sadly the people who designed it seemed to have removed TelephonyProvider.apk
Here's how I've reached that conclusion :
When I go to More... in WIRELESS & NETWORKS there are no options to change APN, VPN or access Mobile networks. (Please note that the table has no facility to lodge a SIM card) However, on my Karbonn ST10 (Android 4.1.1) all these options are found. The certain tablet is currently on Android 4.2.2
When I used an app called APN shortcuts I was able to launch the APN configuration screen, however every time I changed the MCC or MNC number, the APN could not be saved and was deleted.
When I tried to read the contents of content://telephony/carriers I received a NullPointerException.
Questions:
What is the purpose of TelephonyProvider.apk?
Will it be possible to install it without root access? If so, how? (I'm pretty sure this can't be done, but if someone else knows a magical method please enlighten the world)
Can 3G data connections via dongles be established on this device which seems to be missing TelephonyProvider? Or will the ROM have to be edited and TelephonyProvider be installed.
I'm pretty sure this is a programming question, but if it belongs on Android Enthusiasts, please move it.
It's just an apk... you should be able to sideload it with adb without root with adb sideload <your apk>. It would just be removable since its not it /system/app, ie built in with the ROM. If the makers of your device disabled certain features on the device, which would explain possibly why those menus do not display in the Settings app, then TelephonyProvider may not be all that you need to get the connections you want to establish working.
Hope this helps.
Update:
These features are probably disabled on the device you are using. based on what you described.
From the PackageManager documentation.
FEATURE_TELEPHONY Feature for getSystemAvailableFeatures() and hasSystemFeature(String): The device has a telephony radio with data communication support.
FEATURE_WIFI Feature for getSystemAvailableFeatures() and hasSystemFeature(String): The device supports WiFi (802.11) networking.

keep receiving packet when the screen is turned off

I am writing a local communication system between Android phones that are connected to the local Wifi Access Point.
In the design of my system, the Android phones should notify the owner once they received an UDP broadcast packet from the Windows server.
The system works just fine when the screen of the phone is turned on. But it is found that, once the screen of Android phone is turned off, the phone just ignored the packet, just like no message is received.
I have tried Google for many time, but still no luck. Actually I really don't know what keyword should I use for doing the searching.
Do any one know how can I do what I want? Thank you very much
You will need:
a WakeLock
a WifiLock
a suit of armor, to better defend yourself from users who do not like it that you are keeping the device awake and WiFi radio powered on

How to capture event of removal of SIM card in android?

In android, how do I capture the event of SIM card removal? Usually on phones like htc 1x, we can remove the SIM card without removing the battery and there is no notification as such of power off or restart of the phone. I want to capture the event of SIM card removal, so that I can pop-up some messages.
Check answer number one, You can check whether the sim card is available or not in device by using TelephonyManager class.
How can I check whether the Sim Card is available in an android device?
According to this answer, the system sends out an android.intent.action.SIM_STATE_CHANGED intent when the SIM card when the SIM card changes, for example when entering or leaving airplane mode, and presumably also when removing or inserting a SIM card.
It should be noted that as this is an undocumented API that may change without notice, and it may also not be available on some devices.
As for shutting down or restarting, according to this answer, the system sends out an android.intent.action.ACTION_SHUTDOWN intent (on Android 1.6 or later).

On Android, how are Wi-Fi and 3G Internet traffic saved to memory, and when refreshed or cleared by the system?

I need to know about Wi-Fi and 3G Internet traffic. I found this traffic data is saved to /statistics/rx_bytes, /statistics/tx_bytes, /sys/class/net/ paths.
Question: If I get data from these paths, what does this data mean? When did this data start being gathered: from Wi-Fi activation or from phone switch-on?
And when does the system clear or refresh this Wi-Fi traffic data? (My app needs to save daily traffic)
I found these traffics data are saved on "/statistics/rx_bytes", "/statistics/tx_bytes", "/sys/class/net/" paths.
Do not use these, as they may not exist on all devices. Use TrafficStats, please.
If i get data from these paths, what does it mean these data.
Please read the documentation for TrafficStats.
When this data started gathering: from WiFi activated or from phone switched on?
That is undocumented and therefore may vary.
And when system clears or refreshes this wifi traffic data?
That too is undocumented and therefore may vary.

Moving incoming messages to SIM card in Android

I need to move the incoming messages in my android phone directly to the sim card. I know I can click the message and move manually to SIM, but I need to do it automatically. I couldnt find that option anywhere in the settings. I am also fine with an app doing this.
You can try to use AT commands (in your program). E.g. AT+CPMS="SM","SM","SM" - this makes your phone to use its SIM card as the SMS storage.

Categories

Resources