Akshay Malvankar
Akshay Malvankar

Reputation: 1

SecurityException in android 11

My android apk which was running nice on android 10 and previous version, but in android 11 my app getting crash as soon as I download it from google play store, It show only splash screen and then automatically app getting crash

I had given following permission manifest : camera, location, storage, phone

but it throwing security exception :

SecurityException: getDataNetworkTypeForSubscriber

and also not able to debug further because app getting crash immediately

Upvotes: 0

Views: 1403

Answers (1)

Hiren Bharodiya
Hiren Bharodiya

Reputation: 190

You need to add android:requestLegacyExternalStorage="true" in AndroidManifest.xml file into application tag.

android:requestLegacyExternalStorage is give users more control over their files and limit file clutter

Upvotes: 1

Related Questions