How to disable the permissions already granted to the Android application?

1- Question

I put out a situation, you create an Android application, such a small application used Camera to record video. With Android API <23, you must grant permissions to use the Camera in AndroidManifest.xml.
<uses-permission android:name="android.permission.CAMERA" />
With Android API> = 23,  you need to ask the user by using the code:
public static final int REQUEST_CAMERA_PERMISSION= 100;

// .....

private void askCameraPermission()   {

   if (android.os.Build.VERSION.SDK_INT >= 23) {

       int cameraPermission = this.checkSelfPermission(Manifest.permission.CAMERA);
       if (cameraPermission != PackageManager.PERMISSION_GRANTED  ) {

                   new String[]{Manifest.permission.CAMERA },
For the first time, users use the application (with Android API > = 23), a dialog will show up to ask the user for permission, as illustrated below:
When a user has granted the permissions that the application requires the use of application in previous time, it will not display dialog to ask the user for using the app in the next time.

However, if you are being programmed applications, sometimes you need to remove the permissions that had previously allowed to retest your application, to make sure everything is perfect.

2- Disable the permissions already granted to the Android application

Click Settings:
Click Apps:
Choose your application:
Click Permissions:
Remove the permissions granted to the application:
Rerun your application, the dialog will show up asking the user for permissions.