Posted by Dave Burke, VP of Engineering
In the present day we’re bringing you the fourth Beta of Android 12, and transferring into the ultimate section of the discharge. We’ve constructed Android 12 with a brand new UI that adapts to you, efficiency enhancements, privateness and safety enhancements, and extra. We’re now shifting our focus to shine, efficiency, and stability. Thanks for all of the suggestions you’ve shared to assist us refine the discharge and get us so far.
For builders, Beta 4 takes us to Platform Stability, which implies that Android 12’s APIs and all app-facing behaviors are finalized. For apps, the main focus is now on compatibility and high quality. It’s time to begin getting ready your suitable app updates in time for the official launch later within the 12 months.
You possibly can strive Beta 4 at present in your Pixel machine by enrolling right here for over-the-air updates, and if you happen to beforehand enrolled, you’ll robotically get at present’s replace. It’s also possible to get Android 12 Beta 4 on choose gadgets from a number of of our companions like ASUS, OnePlus, Oppo, Realme, Sharp, and ZTE – study extra at android.com/beta. Go to the Android 12 developer web site for particulars on how you can get began.
Android 12 Beta 4 has reached Platform Stability, a milestone meaning all app-facing surfaces and behaviors are actually remaining in Android 12. This consists of not solely the official SDK and NDK APIs, but additionally remaining app-facing system behaviors and restrictions on non-SDK interfaces which will have an effect on apps. So from Beta 4, you’ll be able to confidently launch your compatibility updates figuring out that the platform received’t change. Extra on the timeline is right here.
We’re asking all app and recreation builders to begin your remaining compatibility testing now and put together to publish your compatibility updates as quickly as attainable forward of the ultimate launch.
For all SDK, library, instruments, and recreation engine builders, it’s much more necessary to begin testing now and launch your suitable updates as quickly as attainable — your downstream app and recreation builders could also be blocked till they obtain your updates. While you’ve launched a suitable replace, be vocal and let builders know!
For Android, App compatibility implies that your app runs as supposed on a brand new model of the platform. You possibly can test your app’s compatibility simply by putting in the manufacturing model of your app on a tool or emulator and testing it – if the app appears good and runs correctly, then you definately’re performed, it’s suitable!
Testing your app for compatibility is necessary as a result of with every launch, we make integral modifications to the platform that enhance privateness and safety and the general consumer expertise throughout the OS. These can have an effect on your apps, so you need to check out the conduct modifications and check in opposition to them, then publish a suitable replace to your customers. It’s a fundamental however important degree of high quality that ensures customers have app expertise.
As folks replace their gadgets to Android 12, they wish to discover the newest model of Android, and expertise it with their favourite apps. If these apps don’t work correctly, it’s a significant subject, in the end leading to uninstalls.
So whereas there are a ton of new APIs and capabilities to discover, begin by testing your present app and releasing a suitable replace first.
Get your apps prepared
To check your app for compatibility with Android 12, simply set up your manufacturing app from Google Play or different supply onto a tool operating Android 12 Beta 4. Work by way of the entire app’s flows and look ahead to useful or UI points. Evaluation the Android 12 conduct modifications for all apps to focus your testing. Listed here are some modifications to look at for:
- Privateness dashboard – A brand new dashboard in Settings lets customers see which apps are accessing which kind of knowledge and when. Customers can regulate permissions if wanted, and so they can request particulars out of your app on the rationale for entry. Extra right here.
- Microphone & digital camera indicators – Android 12 reveals an indicator within the standing bar when an app is utilizing the digital camera or microphone. Extra right here.
- Microphone & digital camera toggles – New toggles in Fast Settings let customers immediately disable microphone and digital camera entry for all apps. Extra right here.
- Clipboard learn notification – A toast alerts customers when an app reads knowledge from the clipboard unexpectedly. Extra right here.
- Stretch overscroll – A brand new “stretch” overscroll impact replaces the earlier “glow” overscroll impact systemwide. Extra right here.
- App splash screens – Android 12 launches apps with a brand new splash display animation. Extra right here.
- Keygen modifications – A number of deprecated BouncyCastle cryptographic algorithms are eliminated in favor of Conscrypt variations. In case your app makes use of a 512-bit key with AES, you’ll want to make use of one of many commonplace sizes supported by Conscrypt. Extra right here.
Keep in mind to check the libraries and SDKs in your app for compatibility. In the event you discover any SDK points, strive updating to the newest model of the SDK or reaching out to the developer for assist.
When you’ve revealed the suitable model of your present app, you can begin the course of to replace your app’s targetSdkVersion. Evaluation the conduct modifications for Android 12 apps and use the compatibility framework that can assist you detect points shortly. Listed here are a number of the modifications to check for (these apply when your app’s targetSdkVersion is 31 or increased):
- Foreground service launch restriction – Apps can now not launch foreground providers from the background. For top-priority background duties, use expedited jobs in WorkManager as a substitute. Extra right here.
- Approximate location – When apps request permission for exact location, customers can now select to grant both exact or approximate location. Extra right here.
- New permission for precise alarms – Apps that wish to use precise alarms should request a brand new regular permission,
SCHEDULE_EXACT_ALARM. Extra right here.
- Fashionable SameSite cookie behaviors in WebView – In case your app makes use of WebView, check your app with the brand new SameSite cookie behaviors. Extra right here.
- Safer exporting of parts – your app should explicitly specify an
android:exportedattribute for any app parts that use intent filters. Extra right here.
- Customized notifications – The system applies an ordinary notification template to completely customized notifications, with affordances for app identify, app icon, and develop/collapse knowledge. Extra right here.
- Notification trampolines restriction – Notifications can now not launch your app utilizing a “trampoline” – an middleman broadcast receiver or service that begins the goal Exercise. Extra right here.
Throughout testing, additionally look ahead to makes use of of restricted non-SDK interfaces in your app and transfer these to public SDK equivalents as a substitute. You possibly can learn in regards to the restricted APIs right here.
Get began with Android 12!
In the present day’s Beta launch has every little thing you should strive the Android 12 options, check your apps, and provides us suggestions. Simply enroll any supported Pixel machine to get the replace over-the-air. To get began creating, arrange the Android 12 SDK.
It’s also possible to get Android 12 Beta 4 on gadgets from a few of our companions like ASUS, OnePlus, Oppo, Realme, Sharp, and ZTE. Go to android.com/beta to see the total listing of companions collaborating in Android 12 Beta. For even broader testing, you’ll be able to strive Android 12 Beta 4 on Android GSI photos, and if you happen to don’t have a tool, you’ll be able to check on the Android Emulator.
Beta 4 can be out there for Android TV, so you’ll be able to try the newest TV options and check your apps on the all-new Google TV expertise. Attempt it out with the ADT-3 developer package. Extra right here.
Look ahead to yet another Beta coming within the weeks forward as a launch candidate on your remaining testing.
For full particulars on Android 12 Beta, go to the Android 12 developer web site.