TransWikia.com

Disable USB permission in Android 7.0

Android Enthusiasts Asked by xray_vison on January 6, 2021

I have an app that connects to an external piece of hardware via USB and communicates using ptp. In Android 6 this app would automatically start when connected to the hardware. The very first time you opened the app a window pops up that asks “Choose an app for the USB Device.” I would select the right app and click “Always”. From then on the app would start automatically when connected to the hardware.

This behavior changed in Android 7.0. Now the app no longer starts automatically. Instead when I plug in the hardware a small USB icon appears in the top left of the screen. After opening the notification drawer there is a notification that reads:

“Android System
Connected to USB Function Filesystem
Tap to view files”

Only after tapping this notification will my app open. This happens every time I connect my hardware. I want to disable this notification so my app continues to open automatically. How can I disable this notification?

One Answer

I have this issue too! I have not found a slight work around for my particular application by using tasker. While I know this is not a perfect solution, perhaps it can get you by until we know what the correct solution is.

Answered by Taylor Johnson on January 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP