Is it possible to enable USB gadgets functions via ADB? Especially in a Release build
device.
i can use setprop but in Release build devices it wont work. Also how do i use the gadgets after enabling it since /dev is read only.
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this community
setprop
and/dev
?sysfs
on old devices (/sys/class/android_usb/
) orconfigfs
on new devices (/config/usb_gadget/
). To entirely disable USB Gadget functionality of Linux kernel you need to rebuild the kernel. System properties (setprop
) only control how Android framework should configure different gadget functions including ADB and MTP.