Published On: Fri, Feb 19th, 2021

Google launches a initial developer preview of Android 12

Almost accurately a year after Google announced a initial developer preview of Android 11, a association currently expelled a initial developer preview of Android 12. Google behind a roll-out of Android 11 a bit as a teams and a company’s partners practiced to operative during a pandemic, though it looks like that didn’t stop it from gripping Android 12 on schedule. As we would pattern from an early developer preview, many of a changes here are underneath a hood and there’s no over-the-air refurbish nonetheless for courageous non-developers who wish to give it a spin.

Image Credits: Google

Among a highlights of a recover so distant — and it’s critical to note that Google tends to supplement some-more user-facing changes and UI updates via a preview cycle — are a ability to transcode media into higher-quality formats like a AV1 picture format, faster and some-more manageable notifications and a new underline for developers that now creates particular changes in a height togglable so they can some-more simply exam a harmony of their apps. Google also promises that only like with Android 11, it’ll supplement a Platform Stability miracle to Android 12 to give developers allege notice when final app-facing changes will start in a growth cycle of a handling system. Last year, a group strike that miracle in Jul when it launched a second beta release.

“With any version, we’re operative to make a OS smarter, easier to use, and softened performing, with remoteness and confidence during a core,” writes Google VP of Engineering Dave Burke. “In Android 12 we’re also operative to give we new collection for building good practice for users. Starting with things like concordant media transcoding, that helps your app to work with a latest video formats if we don’t already support them, and easier copy/paste of abounding calm into your apps, like images and videos. We’re also adding remoteness protections, lovely a UI, and optimizing opening to keep your apps responsive.”

Image comparison from AVIF has landed. Image by Jake Archibald

Obviously, there are dozens of developer-facing updates in Android 12. Let’s demeanour during some in detail.

For a WebView in Android 12, Google will now exercise a same SameSite cookie function as in Chrome, for example. Last year, a association slowed down a roll-out of this change, that creates it harder for advertisers to lane your activity opposite sites in Chrome, simply since it was violation too many sites. Now, with this underline entirely implemented in Chrome, a Android group clearly feels like it, too, can exercise a same remoteness collection in WebView, that other apps use to arrangement web content, too.

As for a encoding capabilities, Burke records that, “with a superiority of HEVC hardware encoders on mobile devices, camera apps are increasingly capturing in HEVC format, that offers poignant improvements in peculiarity and application over comparison codecs.” He records that many apps should support HEVC, though for those that can’t, Android 12 now offers a use for transcoding a record into AVC.

Image Credits: Google

In addition, Android 12 now also supports a AV1 Image File Format as a enclosure for images and GIF-like picture sequences. “Like other complicated picture formats, AVIF takes advantage of a intra-frame encoded calm from video compression,” explains Burke. “This dramatically improves picture peculiarity for a same record distance when compared to comparison picture formats, such as JPEG.”

Image Credits: Google

As with each Android release, Google also continues to tinker with a presentation system. This time, a group promises a rested pattern to “make them some-more modern, easier to use, and some-more functional.” Burke calls out optimized transitions and animations and a ability for apps to adorn notifications with tradition content. Google now also asks that developers exercise a complement that immediately takes users from a presentation to a app, but an surrogate promote receiver or service, something it endorsed before.

Image Credits: Google

Android 12 will now also offer softened support for multi-channel audio with adult to 24 channels (a bonus for song and other audio apps, no doubt), spatial audio, MPEG-H support and haptic-coupled audio effects with a strength of a quivering and magnitude formed on a audio (a bonus for games, no doubt). There’s also softened gesticulate navigation and copiousness of other optimizations and teenager changes opposite a handling system.

Google also continues to expostulate brazen a Project Mainline, that allows for an augmenting series of a core Android OS facilities to be updated by a Google Play complement — and hence bypasses a delayed refurbish cycles of many hardware manufacturers. With Android 12, it is bringing a Android Runtime procedure into Mainline, that will afterwards let Google pull updates to a core runtime and libraries to devices. “We can urge runtime opening and correctness, conduct memory some-more efficiently, and make Kotlin operations faster – all but requiring a full complement update,” Burke says. “We’ve also stretched a functionality of existent modules – for example, we’re delivering a seamless transcoding underline inside an updatable module.”

You can find a some-more minute list of all of a changes in Android 12 here.

Image Credits: Google

Developers who wish to get started with bringing their apps to Android 12 can do so currently by flashing a device picture to a Pixel device. For now, Android 12 supports a Pixel 3/3 XL, Pixel 3a/3a XL, Pixel 4/4 XL, Pixel 4a/4a 5G and Pixel 5. You can also use a complement picture in a Android Emulator in Google’s Android Studio.

About the Author