signalapp / curve25519-java

Pure Java and JNI backed Curve25519 implementation.
GNU General Public License v3.0
232 stars 93 forks source link

Add targetSdk to Android build to avoid automatically added permissions. #29

Open adriancretu opened 6 years ago

adriancretu commented 6 years ago

Fixes issue #14 When using the Android library and both minSdk and targetSdk are missing, the app gets "featured" automatically with three sensitive permissions, which did not exist before Android API level 4.

References https://developer.android.com/reference/android/Manifest.permission.html#READ_PHONE_STATE https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE: