0

After device is rebooted.

Prompt appears saying: "Open appName when this USB device is connected?" when the device is rebooted Press cancel -> app stays open | press okay -> app restarts

Required behaviour: The app either does not show the dialog or automatically click cancel/ok on the pop up.

enter image description here

can some one help me with the solution for app either does not show the dialog or automatically click cancel/ok on the pop up

anonymous
  • 11
  • 2

1 Answers1

0

There is nothing you can do about this popup as a regular app.

Only system app - an app that is signed with system certificate or is located in /system/priv-app folder in ROM, can bypass this kinds of dialogs.

Since you stated in the comments you do not have root and your app is not a system app, it can not dismiss or prevent showing this dialog.

Lev M.
  • 6,088
  • 1
  • 10
  • 23