title: Problems with permissions in Android 6.0.1
body: <p>I'm developing an app, that uses some permissions:</p>
  
  <pre><code>&lt;uses-permission android:name="aa.aa.aa.providers.imps.permission.READ_ONLY" /&gt;
      &lt;uses-permission android:name="aa.aa.aa.providers.imps.permission.WRITE_ONLY" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="aa.aa.aa.im.permission.IM_SERVICE" /&gt;
      &lt;uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.USE_CREDENTIALS" /&gt;
      &lt;uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;permission
          android:name="aa.aa.aa.app.im.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="aa.aa.aa.app.im.permission.C2D_MESSAGE" /&gt;
  
      &lt;permission
          android:name="aa.aa.aa.app.im.permission.IM_SERVICE"
          android:description="@string/perm_desc"
          android:label="@string/perm_label"
          android:permissionGroup="android.permission-group.MESSAGES"
          android:protectionLevel="dangerous" /&gt;
      &lt;permission
          android:name="aa.aa.aa.app.providers.imps.permission.READ_ONLY"
          android:description="@string/ro_perm_desc"
          android:label="@string/ro_perm_label"
          android:permissionGroup="android.permission-group.MESSAGES"
          android:protectionLevel="dangerous" /&gt;
      &lt;permission
          android:name="aa.aa.aa.app.providers.imps.permission.WRITE_ONLY"
          android:description="@string/wo_perm_desc"
          android:label="@string/wo_perm_label"
          android:permissionGroup="android.permission-group.MESSAGES"
          android:protectionLevel="dangerous" /&gt;
  </code></pre>
  
  <p>When I try to connect the app to the servers I need, from Android versions lower than 6.0.0 (not included), the app connects without problems.</p>
  
  <p>But When I try to connect with devices from Android >= 6.0.0 the app never connects. </p>
  
  <p>How can I fix it?</p>
  
  <p>P.S:
  Here is a screen on how permissions in Samsung S6 with 6.0.1 are shown:</p>
  
  <p><a href="https://i.stack.imgur.com/bP69Ql.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bP69Ql.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/cJE1El.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cJE1El.png" alt="enter image description here"></a></p>