Android: Vibrator permission rejected (what's going on?)

I made an application that has permission to use a vibrator. When I install this application, how can I accept or decline this permission? It seems that I do not know the permission, and he just installs without asking me.

In addition, let's say I refused this permission. Could this stop the entire application or just stop the vibrator? If he just disconnects the vibrator from work, will he just skip the java code related to the vibrator and continue it as usual?

Any help would be great.

+4
source share
3 answers

The user is notified of the required permissions when they want to install it from the Android Market. Users cannot choose, allow or deny a permission; they are notified of the permissions that the applications require, and by choosing to install the application, they accept that the required permissions will be granted.

If the new version of your application were to add new permissions, this would be a manual update, and the user would have to accept new permissions to upgrade to the new version.

But users cannot selectively deny software permissions during installation; this is not how permissions for android work.

+3
source

When Android applications are installed, a big big warning appears informing the user about all permissions requested by the application. At this point, the user can accept or decline. If the user accepts, then the application is installed. If they are rejected, the application is not installed.

You cannot accept or decline certain permissions; this is an all-or-nothing situation.

+1
source

You should uninstall the application and then reinstall it and see if the user is asked for permission to virabte. You cannot selectively grant permission on Android. Any application is installed when you have agreed to all the requested permissions or will not install.

See your settings if your phone vibrator is active.

Does your phone have a vibrator?

+1
source

Source: https://habr.com/ru/post/1391002/


All Articles