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.