USB2.0 Test preparation

1、Install ADB

Install ADB for your PC,whether it's Linux or Windows.

Android Debug Bridge(ADB) it's play the role of Debug for Android equipment.

Linux(Ubuntu) user download method:

sudo apt install android-tools

sudo apt install android-tools-adb

Windows user should download the Android SDK Platform Tools for Windows.

https://www.xda-developers.com/install-adb-windows-macos-linux/

No matter what kind of operating system you are, I believe this article will help you.

After installing ADB,you should connect your Dock to your PC.

And enter the following command to launch the ADB daemon:

adb devices

2、File transfer

You need to prepare the < usb_comp.comp > documents in advance.

Using ADB instruction to transfer files.Put it under /system/bin.

adb push /path of usb_comp.comp /system/bin

For example:

adb push /media/hesher/File3/usb_comp.comp /system/bin  (Ubuntu)

adb push D:\Users\Download\usb_comp.comp /system/bin   (Windows)

IF you meet <adb error:faild to capy 'path of usb_comp.comp' to /system/bin:remote couldn't create file:Read-only file system> or other error,your can try  open root and remount.

adb root    |    adb remount

3、Test instruction

Enter Duck's system and open SU pattern.

adb shell

su

Enter your test command under the terminal:

/system/bin/usb_comp.comp  (number 1 - 6 )  port

/system/bin/usb_comp.comp  (number 7 - 8)   (devname  /dev/bus/usb/001/xxx)

For example:

/system/bin/usb_comp.comp 1 A

/system/bin/usb_comp.comp 7 A /dev/bus/usb/001/002

Thanks guys.

Thanks for reading.

Welcome to correct.

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值