apk transfer by adb is slow

Asked 2 years ago, Updated 2 years ago, 83 views

https://stackoverflow.com/questions/28314131/adb-transfers-file-with-a-very-slow-speed
As you are asking, it takes time to transfer apk files for Android Studio (MacOSX Yosemite) development.I didn't care about it at the beginning of the development, but at some point, it took a long time to transfer.
When I checked where the problem was,

adb push-p

After running and benchmarking, the transfer rate stopped once at 60%, and then gradually transferred, resulting in a transfer rate of 120KB/s.

Reinstalling platform-tools for possible adb problems resulted in the same results.

Is there any solution?

android adb

2022-09-29 22:11

2 Answers

Try restarting your Mac by modifying /etc/sysctl.conf as follows

 kern.ipc.somaxconn=2048
net.inet.tcp.rfc1323 = 1
net.inet.tcp.win_scale_factor=4
net.inet.tcp.sendspace=1042560
net.inet.tcp.recvspace=1042560
net.inet.tcp.mssdflt=1448
net.inet.tcp.v6mssdflt=1412
net.inet.tcp.msl=15000
net.inet.tcp.always_keepalive = 0
net.inet.tcp.delayed_ack=3
net.inet.tcp.slowstart_flightsize=20
net.inet.tcp.local_slowstart_flightsize=9
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.icmp.icmplim=50

Reference Links


2022-09-29 22:11

Is it the same even if I change the USB cable?
The USB cable may not work depending on the specifications of the cable, such cable specifications.
Also, is it the same if I push it to a different terminal?


2022-09-29 22:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.