The solution to the problem of authorization pop-up after the Android Usb device is plugged in (no pop-up usb authorization)

When communicating with a usb device, it is usually necessary to authorize the usb device, and the system application permission box will pop up, which is particularly troublesome, as shown in the figure below: I
insert image description here
studied it today and solved this problem

1. Configuration in AndroidManifest.xml

<activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/108581308#comments_20976558