Simulate low bandwidth in android

前端 未结 11 1282
天涯浪人
天涯浪人 2020-12-13 13:20

does anyone know a possibility to simulate a low bandwidth on android phones (i.e. EDGEor G3) while connected to WIFI?

Is there a app for this?

It it po

相关标签:
11条回答
  • 2020-12-13 13:59

    You can write a wrapper class that fetches the whole content and returns that data with delays and only in small chunks.

    0 讨论(0)
  • 2020-12-13 14:00

    You can use followed 2 applications for your purposes:

    • Use Connectify application to create virtual WiFi AP on your PC. Connectify link It will give you ability to manage traffic over virtual adapter.
    • Download DummyNet open source program and install service to your virtual AP dowload dummynet

    Now you can connect with android to your virtual WiFi AP and manage BW + packet loss + latency by using some scripts (single batch file *.bat). Here is example:

    cd C:\ipfw3-2012\binary
    @echo on
    @set CYGWIN=nodosfilewarning
    
    @ipfw -q flush
    @ipfw -q pipe flush
    
    set download="80Kbit/s"
    
    set srcIp=111.111.222.222
    
    ipfw pipe 1 config bw %download%
    
    ipfw add pipe 1 tcp from any to any in
    
    ipfw -c show
    ipfw pipe show
    

    It works great. Here is print screen:

    enter image description here enter image description here

    0 讨论(0)
  • 2020-12-13 14:04

    Within the Android emulator, you can now throttle the network speed directly.

    enter image description here Android Emulator Extended Controls

    Press the 3 dots button, followed by 'Cellular' on the left. You can then select the network type and signal strength.

    Speeds for reference in increasing kbps:

                            UP       DOWN
                      -------- ----------
    gsm   GSM/CSD         14.4       14.4
    hscsd HSCSD           14.4       57.6
    gprs  GPRS            28.8       57.6
    umts  UMTS/3G        384.0      384.0
    edge  EDGE/EGPRS     473.6      473.6
    hsdpa HSDPA         5760.0   13,980.0
    lte   LTE         58,000.0  173,000.0
    evdo  EVDO        75,000.0  280,000.0
    full  No limit           ∞          ∞
    
    0 讨论(0)
  • 2020-12-13 14:05

    I solved the problem by slowing down the network of my PC with network simulator. Then I created a virtual wifi with win 7 and connected my phone with it.

    0 讨论(0)
  • 2020-12-13 14:13

    If your developing on OS X, you can use Network Link Conditioner to slow down your internet connection, then turn on internet sharing and connect the Android phone to that network.

    0 讨论(0)
提交回复
热议问题