Behavior changes: Apps targeting Android 11
1) Compressed resource files
Apps that target Android 11 (API level 30) or higher can't be installed if they contain a compressed resources.arsc file.
2) Restricted read access to APN database
Application targeting Android 11 will be required
Manifest.permission.WRITE_APN_SETTINGS
privileged permission to read Telephony provider APN database.
3) Displaying custom toast from the background is blocked if the application is targeting Android 11.
4) APK Signature Scheme v2 now required
You cannot install or update the application which is only signed using APK Signature Scheme v1.
5) Camera
Only pre-install system application can respond bellow intent
i)
android.media.action.VIDEO_CAPTURE
ii)
android.media.action.IMAGE_CAPTURE
iii)
android.media.action.IMAGE_CAPTURE_SECURE
If you want to use 3rd party camera application (not system app) to perform above intent (capture photo, video), you can make these intents explicit by setting a package name or component for the intent.
6)
Firebase JobDispatcher and GCMNetworkManager will not
work for application targeting Android 11 or higher.
Solution: Migrate to WorkManager
7) Device-to-device file transfer
i) If your app targets Android 11, you can no longer disable
device-to-device migration of your app's files using the
allowBackup
attribute.
ii) However, you can still disable cloud-based backup and restore of your
app's files by setting the allowBackup
attribute to false
, even
if your app targets Android 11.