android-usb-script icon indicating copy to clipboard operation
android-usb-script copied to clipboard

Notification of usb connected is still appearing after unplugging

Open ahmedfamhy3 opened this issue 2 years ago • 1 comments

Screenshot_20230216-024702_Neo Launcher_1 This is from the notification shade

Screenshot_20230216-024824_Settings_1 This is the options appearing when you open it

Android: 12 LineageOS no gapps

ahmedfamhy3 avatar Feb 16 '23 00:02 ahmedfamhy3

Sorry for the late response... didn't see this until now.

If you still care about this and for future people that have this issue - it's probably caused by the app failing to restore the system USB gadget ^1, which is how Android implements stuff like MTP and USB audio ^2. Unfortunately, the way Android uses configfs to set up USB gadgets varies wildly between Android versions and vendors so it's hard to get it working for all devices. I only have one device to test this app with (w/ LOS 13).

As a workaround, you can restart your device and the system USB gadget will be restored.

Netdex avatar Feb 10 '24 15:02 Netdex