Additional permissions added because of wrong libvlc manifest file
I noticed in my app the following 3 permissions were added after having introduced libvlc in my application:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
Checking the Merged Manifest view in Android Studio, I've found out these 3 permissions were added because of a libvlc library issue.
The problem is the library manifest (https://code.videolan.org/videolan/vlc-android/blob/master/libvlc/AndroidManifest.xml) is not correct, because uses-sdk is not a valid attribute for application, but it should be placed directly under manifest. In that case, for the build system the library doesn't define minSdkVersion and targetSdkVersion, so I guess 1 is set as default and so those permissions are added (... has a targetSdkVersion < 4).
Can you please confirm it?
Thanks!