android-usb-script
android-usb-script copied to clipboard
Notification of usb connected is still appearing after unplugging
This is from the notification shade
This is the options appearing when you open it
Android: 12 LineageOS no gapps
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.