title: Why is android emulator ignoring my manifest permissions?
body: <p>After fighting a couple of hours to read something from the sdcard using ADT v22.3.0-887826 I only can think that my manifest is been ignored. Adding 4 lines to the hello world project.</p>
  
  <p>One in the manifest</p>
  
  <pre><code>&lt;permission android:name="android.permission.READ_EXTERNAL_STORAGE"&gt;&lt;/permission&gt;
  </code></pre>
  
  <p>Three in the MainActivity.java</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      String permission = "android.permission.READ_EXTERNAL_STORAGE";
      int res = getBaseContext().checkCallingOrSelfPermission(permission);
      System.out.println("permission:"+(res == PackageManager.PERMISSION_GRANTED));            
  }
  </code></pre>
  
  <p>The output is "permission:false"</p>