AnsweredAssumed Answered

[Android] Data usage cannot work with 3G mobile connection

Question asked by charles huang on Jan 26, 2014
Latest reply on Mar 26, 2014 by Daniel Hung
Branched to a new discussion

Hi,

 

We are porting our 3G modules on our i.MX6 product. It can connect network & browse websites, but we find the data usage does not work.

In Settings -> Data usage, the measurement always shows 0.00 Byte used.

 

Because we do not have the support 3G modules for Freescale demo board, could you help to double confirm if this feature is available on BSP Android jb4.2.2_1.0.0-ga?

    HUAWEI EM770W modem

    Infineon Amazon 1 modem

    ZTE FM210 modem

 

Furthermore, I doubt this issue may be caused by netfilter. From logs, we gets lots of xt_quota errors that make BandwidthController failed to send iptable commands.

Additionally, Jelly Bean 4.2 should be based on Linux kernel 3.4.0, but Freescale BSP is based on kernel 3.0.35.

I'm not sure if this difference will cause such problems.

 

[dmesg]

<3>xt_quota.3: illegal name

 

[logcat]

01-24 11:00:24.655 D/ConnectivityService( 2488): ConnectivityChange for mobile: CONNECTED/CONNECTED

01-24 11:00:24.665 E/ConnectivityService( 2488): no dns provided for mobile - using 8.8.8.8

01-24 11:00:24.675 E/ConnectivityService( 2488): exception setting default dns interface: java.lang.IllegalArgumentException: command '86 resolver setifdns /dev/ttyUSB2' failed with '500 86 Wrong number of arguments to resolver setifdns'

01-24 11:00:24.735 E/BandwidthController( 2200): runIptablesCmd(): failed /system/bin/iptables -I costly_/dev/ttyUSB2 -m quota2 ! --quota 9223372036854775807 --name /dev/ttyUSB2 --jump REJECT --reject-with icmp-net-prohibited res=256

01-24 11:00:24.735 E/BandwidthController( 2200): runIptablesCmd(): failed /system/bin/ip6tables -I costly_/dev/ttyUSB2 -m quota2 ! --quota 9223372036854775807 --name /dev/ttyUSB2 --jump REJECT --reject-with icmp6-adm-prohibited res=256

01-24 11:00:24.735 E/BandwidthController( 2200): Failed set quota rule

01-24 11:00:24.735 E/BandwidthController( 2200): No such iface /dev/ttyUSB2 to delete

01-24 11:00:24.735 F/NetworkPolicy( 2488): problem setting interface quota

01-24 11:00:24.735 F/NetworkPolicy( 2488): java.lang.IllegalStateException: command '87 bandwidth setiquota /dev/ttyUSB2 9223372036854775807' failed with '400 87 Bandwidth command failed'

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.NetworkManagementService.setInterfaceQuota(NetworkManagementService.java:1156)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.net.NetworkPolicyManagerService.setInterfaceQuota(NetworkPolicyManagerService.java:1964)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.net.NetworkPolicyManagerService.updateNetworkRulesLocked(NetworkPolicyManagerService.java:1071)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.net.NetworkPolicyManagerService.access$1300(NetworkPolicyManagerService.java:171)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.net.NetworkPolicyManagerService$12.onReceive(NetworkPolicyManagerService.java:905)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:758)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at android.os.Handler.handleCallback(Handler.java:725)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at android.os.Handler.dispatchMessage(Handler.java:92)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at android.os.Looper.loop(Looper.java:137)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at android.os.HandlerThread.run(HandlerThread.java:60)

01-24 11:00:24.735 F/NetworkPolicy( 2488): Caused by: com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '87 bandwidth setiquota /dev/ttyUSB2 9223372036854775807' failed with '400 87 Bandwidth command failed'

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:349)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:286)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:252)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      at com.android.server.NetworkManagementService.setInterfaceQuota(NetworkManagementService.java:1153)

01-24 11:00:24.735 F/NetworkPolicy( 2488):      ... 9 more

 

Thanks for your help.

 

Best regards,

Daniel

Outcomes