katit
katit

Reputation: 17915

Android data usage control / tracking?

Our company giving out Android devices to drivers. Our application should never use more then 1Gb by nature of communications we do.

However, some drivers managed to use about 10Gb of data :)

So, I wonder:

  1. Is there any way to track data usage of our app vs other apps so we can notify users and office workers?

  2. Is there any way to DISABLE data access from any app other then ours?

Upvotes: 1

Views: 1861

Answers (3)

FoamyGuy
FoamyGuy

Reputation: 46856

Is there any way to DISABLE data access from any app other then ours?

If rooting the devices is an option then you can use the free Application DroidWall This application makes use of the iptables rules of linux to let you allow / disallow applications from using network data.

Upvotes: 5

CommonsWare
CommonsWare

Reputation: 1007379

Is there any way to track data usage of our app vs other apps so we can notify users and office workers?

As H9kDroid indicates, use TrafficStats. Here is a sample application that takes an initial snapshot of the consumed bandwidth, then takes another one when you tap a button, displaying the overall difference on-screen and the per-UID difference in LogCat. Note that not all devices support the per-UID stuff (e.g., not the Ice Cream Sandwich emulator).

Is there any way to DISABLE data access from any app other then ours?

No, sorry. Eventually, the combination of device admin rules and the new traffic management stuff in Ice Cream Sandwich's Settings app might allow for this, but not presently. Or, you could create custom firmware.

Upvotes: 2

H9kDroid
H9kDroid

Reputation: 1824

Take a look at TrafficStats, with help of that you can get the amount of data sent/received. And you can get the data by UIDs to see where it was used.

Upvotes: 5

Related Questions