USB permissions popup suppression

We have Zebra CC600 devices running Android OS 8.0 and we want to print through USB to ZQ610 printer. We are getting a usb permission popup on the app on connecting it to the printer. Based on the documentation - https://developer.android.com/guide/topics/connectivity/usb/host#using-i... , we tried setting the vendor id and product id in the device filter xml . However, with the changes suggested in the above link we are still getting the popup first time on first install of the app and on rebooting the zebra CC600 device as well.
I am attaching related files here .

Could you please advise if there is a way to completely suppress this popup as we don not want user intervention when this app goes to stores?

Thanks,
Shweta Pandey

Attachments: 
Darryn Campbell
Runtime permission

Hi, this is a runtime permission dialog, is it not?  Runtime permissions are automatically accepted for applications installed via StageNow or MX (see the enterprise impact section in my previou Marshmallow guide: https://developer.zebra.com/community/home/blog/2017/01/20/what-s-new-for-android-m-and-the-impact-on-zebra-developers)

If you are installing via EMM, the EMM will also often have a way to allow you to auto-accept these permissions

Vote: 
Vote up!
Vote down!

Points: -1

You voted ‘up’


David Fischer
Pop-Up Supression

That works for Android Permissions during Application install but this permission occurs when the user plugs the Printer into the device. A pop up appears asking the user if they want to use that specific printer with the application (with the option to set as default). Also this is Oreo not Marshmallow and security has changed.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments