title: How to solve this adb grant permission error
body: <p>I want to grant <strong>android.permission.CHANGE_CONFIGURATION</strong> to my apk file.</p>
  
  <p>adb command i used:</p>
  
  <blockquote>
    <p>adb shell pm grant myPackageName
    android.permission.CHANGE_CONFIGURATION</p>
  </blockquote>
  
  <p>but there is always the same error again and again:</p>
  
  <blockquote>
    <p>Operation not allowed: java.lang.SecurityException: myPackageName has
    not requested permission android.permission.CHANGE_CONFIGURATION</p>
  </blockquote>
  
  <p>Manifest.xml</p>
  
  <pre><code>&lt;uses-sdk 
      android:minSdkVersion="14" 
      android:targetSdkVersion="22"/&gt;
  &lt;uses-permission android:name="android.permission.WRITE_SETTINGS"/&gt;
  &lt;uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /&gt; 
  </code></pre>
  
  <p>Permissions are already granted:</p>
  
  <pre><code>grantedPermissions:
    android.permission.READ_EXTERNAL_STORAGE
    android.permission.GET_TASKS
    android.permission.WRITE_EXTERNAL_STORAGE
    android.permission.ACCESS_WIFI_STATE
    android.permission.RECEIVE_SMS
    android.permission.READ_CONTACTS
    android.permission.GET_ACCOUNTS
    android.permission.CALL_PHONE
    android.permission.WRITE_CONTACTS
    android.permission.AUTHENTICATE_ACCOUNTS
    android.permission.READ_PHONE_STATE
    android.permission.READ_SMS
    android.permission.RECEIVE_BOOT_COMPLETED
    android.permission.CAMERA
    android.permission.ACCESS_FINE_LOCATION
    android.permission.MANAGE_ACCOUNTS
    android.permission.BROADCAST_STICKY
    android.permission.RECORD_AUDIO
    android.permission.WAKE_LOCK
    android.permission.ACCESS_NETWORK_STATE
    android.permission.USE_CREDENTIALS
    com.skype.android.app.permission.C2D_MESSAGE
    com.google.android.c2dm.permission.RECEIVE
    android.permission.MODIFY_AUDIO_SETTINGS
    android.permission.READ_SYNC_STATS
    android.permission.READ_PROFILE
    android.permission.DISABLE_KEYGUARD
    android.permission.WRITE_SYNC_SETTINGS
    android.permission.SYSTEM_ALERT_WINDOW
    android.permission.WRITE_SETTINGS
    android.permission.BLUETOOTH
    android.permission.INTERNET
    android.permission.CHANGE_WIFI_STATE
    com.skype.permission.ACCOUNT
    android.permission.READ_SYNC_SETTINGS
    android.permission.VIBRATE
    com.skype.android.app.permission.RECEIVE_ADM_MESSAGE
  </code></pre>
  
  <p>What is the solution for this? Posts on google does not help me.
  Thanks in advance.</p>