Jump to content
Toru

[Tinker Board 3/3S Debian 11 V1.0.7 OS] How to Disable ADB

Recommended Posts

Hello,
I would like to ask how to properly disable ADB on TinkerOS.

I am using a Tinker Board 3S with TinkerOS (Debian 11 V1.0.7).
For security reasons, I want to prevent ADB from automatically starting when a USB device is connected, since this device will be used to run a custom application in a production environment.

At the moment, I am disabling ADB by manually removing the ADB function from the USB gadget configuration:

sudo rm /sys/kernel/config/usb_gadget/asus/configs/b.1/f-ffs.adb
sudo rmdir /sys/kernel/config/usb_gadget/asus/functions/ffs.adb

I also commented out the ADB-related sections inside /usr/bin/usbdevice (lines 260–272):

# /usr/bin/usbdevice
adb_prepare()
{
        # usb_mount adb /dev/usb-ffs/adb -o uid=2000,gid=2000 -t functionfs
        # usb_start_daemon /usr/bin/adbd
        # usb_wait_files -m /dev/usb-ffs/adb
}

adb_stop()
{
        # usb_stop_daemon /usr/bin/adbd
}
Are there any concerns or drawbacks with disabling ADB in this way?
Is there an official or recommended method to disable ADB in TinkerOS?

Any advice would be greatly appreciated.

Share this post


Link to post
Share on other sites

Hi TzuWen,

Thank you for the information.

I disabled usbdevice.service as you suggested, and I have confirmed that the service was successfully stopped.
This resolved my issue.

Thanks again for your support.

Best regards,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...