Description:
Scan and extract android sample is upgraded and now it is targeting to SDK level 30 by deafult. 

To build the sample with SDK level below 30, please follow the below changes.

1. Replace the below files from sdk19\ folder
  a. build.gradle  
  b. AndroidManifest.xml
2. The MainActivity.java file contains sdk level 30 API's. Please check the tag name "/*API-Level-30-Start*/" to "/*API-Level-30-End*/" and change or comment the code as per your need.

Note*: We used Android studio4.1.1 or 3.5.1 for code changes and verification.

Reason for upgrade:
In scan and extract APK, we use calibration file "<device_serial_number>_calblob.bin" from external public directory for 65210-S module finger detect and scan operation. Inorder to read/write/access the .bin file, we need storage permission from app. Earlier, with the available "WRITE_EXTERNAL_STORAGE" permission from Manifest file and targetSdkVersion 19, we have default storage permission. But if the user targets different version in this app, equal to or lessthan SDK level29 then they need to set "requestLegacyExternalStorage="true" in manifest file and use android support libraries in build.gradle(It is commented now and check the description in build.gradle). 

Important*: In Android-11, upto SDK level 29 with "requestLegacyExternalStorage="true" from manifest file doesn't require any special permission to access pubic directory. But when you target SDK level 30 and running application in Android-11 devices, it requires special permission to access public directory.

Note*: The APK is designed to support from Android5 to Android11 and above. If you found any problem, while running the APK in different android devices please contact Next Biometrics team.

For more Information, please check below links.

https://developer.android.com/about/versions/11/behavior-changes-11
https://developer.android.com/training/data-storage/manage-all-files


For TargetSDK level 19:
Android Gradle Plugin Version = 2.3.2
Gradle Version = 4.4.1

For TargetSDK level 29/30:
Android Gradle Plugin Version = 3.2.1
Gradle Version = 4.6