Photo by Jonathan Kemper on Unsplash

Importance of USB version in Android Developer’s life

Sangeet Suresh

--

I was getting very irritated while waiting for apk to get installed on my testing device because it was taking longer than expected. So I started changing device and tested it. Then I found that I was not using USB 3.0 cable even though my device supports it.

I tried to measure some apk install time on my devices.

Test APK of size 240 MB

Here are the findings :

Case 1
Phone : Redmi 4 — Snapgragon 435 , 4 GB RAM , eMMC 5.1 internal memory

Interface : micro USB 2.0

Laptop Interface : USB 3.0

Cable Used : Mi micro USB 2.0 cable speed up to 480 Mbps.

Redmi 4 USB 2.0 (1st Trail)

It took ~57s for transfer + installation through adb.

I tested it again;

Redmi 4 USB 2.0 (2nd Trail)

It again took ~57s for transfer + installation through adb.

Case 2
Phone : Oneplus 7T— Snapgragon 855+ , 8GB RAM , UFS 3.0 internal memory

Interface : 3.1, Type-C

Laptop Interface : USB 3.0

Cable Used : Mi Type -C USB 2.0 cable speed up to 480 Mbps

Oneplus 7T USB 2.0 (1st Trail)

It took ~18s for transfer + installation through adb.

I tested it again;

Oneplus 7T USB 2.0 (2nd Trail)

It again took ~18s for transfer + installation through adb.

Case 3
Phone : Oneplus 7T — Snapgragon 855+ , 8GB RAM , UFS 3.0 internal memory

Phone Interface : 3.1, Type-C

Laptop Interface : USB 3.0

Cable Used : AmazonBasics USB Type-C 3.1 Gen2 USB 3.0 cable, speed up to 5 Gbps.

Oneplus 7T (USB 3.0)

It took ~12s for transfer + installation through adb.

I tested it again;

One plus 7T (USB 3.0)

It again took ~12s for transfer + installation through adb.

Conclusion

Always use

  • Better device with USB latest gen. interface
  • USB latest gen. cable
  • USB latest gen. laptop interface

for testing so that it will take less time and you will not be irritated.

Few Points to note :

  • Even though Oneplus 7T have USB 3.1 Type C interface, it was provided with USB 2.0 Type C cable.
  • Even though Macbook Pro 2019 have USB 3.1 Gen 2 Type-C port, cable provided with their charger is USB 2.0 one.
  • USB 3.1 supports up to 10Gbps

̶I̶ ̶w̶a̶s̶ ̶u̶s̶i̶n̶g̶ ̶H̶o̶n̶e̶y̶w̶e̶l̶l̶ ̶T̶y̶p̶e̶ ̶C̶ ̶t̶o̶ ̶U̶S̶B̶ ̶3̶.̶0̶ ̶A̶d̶a̶p̶t̶e̶r̶ ̶w̶i̶t̶h̶ ̶G̶i̶g̶a̶b̶i̶t̶ ̶E̶t̶h̶e̶r̶n̶e̶t̶ ̶w̶h̶i̶c̶h̶ ̶s̶u̶p̶p̶o̶r̶t̶s̶ ̶o̶n̶l̶y̶ ̶U̶S̶B̶ ̶3̶.̶0̶,̶ ̶s̶p̶e̶e̶d̶ ̶u̶p̶ ̶t̶o̶ ̶5̶G̶b̶p̶s̶

̶I̶ ̶w̶i̶l̶l̶ ̶t̶r̶y̶ ̶t̶o̶ ̶b̶u̶y̶ ̶U̶S̶B̶ ̶3̶.̶1̶ ̶T̶y̶p̶e̶ ̶C̶ ̶t̶o̶ ̶T̶y̶p̶e̶ ̶C̶ ̶c̶a̶b̶l̶e̶ ̶(̶ ̶u̶p̶ ̶t̶o̶ ̶1̶0̶ ̶G̶b̶p̶s̶)̶ ̶t̶o̶ ̶t̶e̶s̶t̶ ̶a̶p̶k̶ ̶i̶n̶s̶t̶a̶l̶l̶a̶t̶i̶o̶n̶ ̶a̶n̶d̶ ̶w̶i̶l̶l̶ ̶u̶p̶d̶a̶t̶e̶ ̶a̶r̶t̶i̶c̶l̶e̶ ̶w̶i̶t̶h̶ ̶t̶h̶o̶s̶e̶ ̶t̶i̶m̶i̶n̶g̶s̶.̶

Thank you for reading this article.

Update#1

Even though I was using Honeywell Type C to USB 3.0 Adapter with Gigabit Ethernet which supports only USB 3.0, I am getting 10Gbps transfer speed because Macbook Pro support USB 3.1 Gen2. So I think USB hub doesn't have difference in USB 3.0 and 3.1.

~1.4 GB file transfer via USB 3.1 Gen2
~1.4 GB file transfer via USB 2.0

Difference of close to ~30 seconds :O

--

--