Skip to content

Instantly share code, notes, and snippets.

@Geofferey
Last active May 7, 2025 00:34
Show Gist options
  • Select an option

  • Save Geofferey/c65b6c2e42c6e3216cae06c5fe241a18 to your computer and use it in GitHub Desktop.

Select an option

Save Geofferey/c65b6c2e42c6e3216cae06c5fe241a18 to your computer and use it in GitHub Desktop.
inseego_rc.local.d-00adbd
#!/bin/sh
## This is an example of enabling QCOM HS USB DIAG + ADB using rc.local.d/00adbd
# You can get out of this mode by plugging in and select charge only then tehter
# I feel like there may be better way but this is easiest way I've found
#
# Place me in /etc/rc.local.d/00adbd
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/nvtl/bin:/opt/nvtl/data/branding/bin
sleep 15
## 9085 = DIAG+ADB+MBIM+GNSS
usb_composition 9085
killall -9 adbd
adbd &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment