---
title: 'Runtime Permission Fail (Vungle SDK)'
excerpt: 'Fix Android 6+ permission issue caused by Vungle SDK.'
date: 2020-01-13
categories: android
featureImage: '/images/runtime-permission-fail-vungle-sdk.webp'

prev:
  text: 'AssertionError: No NameTypeIndex match for SHORT_STANDARD'
  link: '/blog/short-standard-assertion-error'

next:
  text: 'Security Review (ExpertRight)'
  link: '/blog/security-review-expertright'
---

Quickly created an Account on Vungle, added Mediation on AdMob dashboard & integrated "AdMob's Vungle Adapter"
dependencies in my App's `build.gradle`, hit `sync` & `run`!

Everything should have had gone right, but I wasn't able to use `Runtime Permission` on Android 6+.\
All my code was right but still the Storage Permission Request kept throwing permission denied!

Checked the manifest & it was right too, then what might have had gone wrong!?

I clicked on the `Merged Manifest` and damn!
I see that the Storage Permission has a `maxSdkVersion` flag set to `18`!

And guess who added that flag!?
– **`Vungle ADS SDK`**!

If you face this, just add below & it should fix the issue -

```text
tools:remove="android:maxSdkVersion"
```