I am testing an Android application which had some problems with managing its content on low quality networks. I am unable to verify if the problem still occurs, because with the speed of the network I have in my home (120mb/s), everything is already downloaded before I manage to start the reproduction route. Using the Android simulator is not an option in this case, as the reproduction route demands very quick action for the issue to appear.
I know that iOS has feature which allows users to limit network conditions, but I am unable to find a similar tool for Android.
TL;DR
Is there any way to simulate a bad network condition on actual Android device?
Give BradyBound a try. You need to have a rooted phone for this, though.
You can also try this linux command. You'll need a Terminal Emulator for this in addition to root.
limit to 10kbit:
adb shell '
tc qdisc add dev eth0 root handle 1: htb default 30
tc class add dev eth0 parent 1: classid 1:1 htb rate 10kbit
tc class add dev eth0 parent 1: classid 1:2 htb rate 10kbit
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 0.0.0.0/0 flowid 1:1
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 0.0.0.0/0 flowid 1:2
'
cancel the limit:
adb shell tc qdisc del dev eth0 root
Try Throttly,it's a network link conditioner tool for Android. https://play.google.com/store/apps/details?id=me.twocities.throttly
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With