Android 12 logo on Google Pixel 3 2

Credit score: Jimmy Westenberg / Android Authority

Wow, is it that point of yr already? It appears no time in any respect since Android 11 landed and but right here we’re with the primary developer preview of Android 12! As at all times, we’ll be sharing all of the adjustments devs must learn about on this put up.

Highlights embody suitable media transposing and new copy-paste options. In fact, Google has heaps extra adjustments in retailer for us with future releases. However that is an early signal of issues to come back and there’s already some attention-grabbing stuff to maintain us busy!

For the total scoop, try the put up at Android Builders Weblog. Right here, I’ll try and share the cliff-notes model, and draw your consideration to something that wants your pressing consideration.

We’ll be updating this web page as future previews roll out, so that you’ll be capable to discover all the pieces you want on this one spot as you prep your app for the way forward for the platform.

See additionally: Android 12 options: Every thing confirmed and rumored to date


Google is at all times eager to place emphasis on safety and Android 12 is not any totally different. The main focus is on rising use management and transparency. These adjustments have the potential to impression the best way apps behave, so that is necessary for builders to bear in mind.

Cookie adjustments in WebView: Google just lately made adjustments to Chrome that change the best way cookies are dealt with. These adjustments will now be mirrored within the Android WebView. The SameSite attribute will dictate whether or not cookie requests are restricted to simply that web site. Cookies with out that attribute might be handled as SameSite=Lax.

Restricted Netlink Mac: Netlink MAC is restricted in Android 12 no matter targetSDK.

Safer exporting of elements: The default dealing with of andoird:exported attribute has been altered to be extra particular. Now elements that declare intent filters must explicitly declare android:exported as effectively.

PendingIntents to vary: PendingIntents might be safer in Android 12 and should declare a mutability flag.

Person-facing adjustments

A couple of new adjustments to Android 12 have potential to enhance the person expertise.

HEVC transcoding: HEVC {hardware} encoders are more and more widespread and supply improved high quality and compression versus older codecs. Whereas most apps ought to assist HEVC, Android 12 now presents inbuilt transcoding to AVC format. A one minute video filmed at 1080p, 30fps HEVC will take roughly 9 seconds to transcode on a Pixel 4. Extra right here.

This could lead to a extra seamless expertise for customers and fewer work for builders. Premiere Professional, take word!

See additionally: Android 12 developer preview hands-on: A number of little adjustments

Platform assist for AVIF picture format: Likewise, AVIF picture assist can provide higher photos and compression for nonetheless footage. Android 12 brings native assist for the AV1 format.

Foreground service optimizations: Foreground companies are helpful for working plenty of duties. Android 12 will block background companies from shifting into the foreground except they aim the brand new platform. The brand new expedited job in JobScheduler will profit from elevated course of precedence and community entry. It is going to run instantly even in Battery Saver and Doze modes.

Wealthy content material from clipboard: A brand new unified API makes it less complicated for devs to just accept wealthy content material copied from the clipboard, inserted by the keyboard, or dragged from different apps. This ought to be an easy method for builders to create new use-cases for his or her customers.

Audio-coupled haptic suggestions: Android 12 brings audio-coupled haptic suggestions. Power and frequency of vibration are dictated by audio. This could provide instantaneous enhancements to the person expertise in video games however has different purposes, too. An instance given by Google is to establish callers from any app primarily based on customized ringtones. Use HapticGenerator#isAvailable() to verify whether or not the machine helps haptic suggestions.


Gestures on by default: Gestures will now be enabled by default in full-screen/immersive apps resembling video viewers and eReaders. Nonetheless, the function will stay off by default when gaming.

New notifications: Notifications are getting a minor visible overhaul with new transitions and animations. Devs will be capable to adorn notifications with extra customized content material. Get extra information right here. Devs are additionally requested to make sure that to not use “trampolines” to make sure speedy launching of apps from notification faucets – these might be blocked in apps concentrating on Android 12 however toasts might be used to make trampolines seen in all instances.


Google says it has taken effort to make sure compatibility with older apps. As such, most user-affecting adjustments might be on an opt-in foundation. Usefully, builders testing their apps on Android 12 can even be capable to check compatibility by toggling sure adjustments on and off.

To get began, you possibly can both flash Android 12 to a Pixel machine, or use the system picture through the Android Emulator in Android Studio.

You should definitely verify again right here as we replace this put up to mirror future previews. Within the meantime, tell us what you consider these adjustments and the way they have an effect on your individual app tasks within the feedback beneath!

For extra developer information, options, and tutorials from Android Authority, don’t miss signing up for the month-to-month e-newsletter beneath!

Source link