First preview of Android 12

Android 12 logo

Posted by Dave Burke, VP of Engineering

Every date, Android apps help billions of people labor, frisk, communicate, and appoint on a broad range of machines from phones and laptops to tablets, TVs, and automobiles. As more beings come to rely on the experiences you construct, their anticipations can rise just as fast. It’s one of the reasons we share Android releases with you early: your feedback helps us build a better programme for your apps and all of the people who use them. Today, we’re releasing the first Developer Preview of Android 12, the next explanation of Android, for your testing and feedback.

With each version, we’re working to realise the OS smarter, easier to use, and better performing, with privacy and safety at the core. In Android 12 we’re likewise working to give you new tools for building great events for useds. Starting with things like compatible media transcoding, which helps your app to work with the latest video formats if you don’t once support them, and easier mimic/ paste of rich material into your apps, like images and videos. We’re too computing privacy protections and optimizing operation to keep your apps responsive.

Today’s firstly preview is just the start for Android 12, and we’ll have lots more to share as we move through the release. Read on for a penchant of what’s new in Android 12, and stay the Android 12 make site for details on downloads for Pixel and exhaust timeline. As ever, it’s crucial to get your feedback early, to help us incorporate it into the final product, so let us know what you think!

Alongside the exertion we’re doing in Android 12, later this month we’ll have more to share on another important tool that helps you create great user suffers more easily: Jetpack Compose, our modern toolkit for construct native UI. Join us on #TheAndroidShow for a behind-the-scenes look at Jetpack Compose, livestreamed on February 24 at 9AM PT, and tweet your Jetpack Compose questions use #TheAndroidShow to have them asked live on the demonstrate.

Trust and safety

Privacy is at the heart of everything we do, and in Android 12 we’re continuing to focus on render customers more transparency and control while keeping their devices and data secure. In today’s release we’ve added brand-new ascendancies over identifiers that can be used for tracking, safer defaults for app ingredients, and more. These converts may affect your apps, so we recommend testing as soon as possible. Watch for more privacy and security aspects coming in last-minute preview releases.

Modern SameSite cookie behaviors in WebView – In line with changes to Chrome and other browsers, WebView includes new SameSite cookie behaviors to provide additional security and privacy and make useds more transparency and control over how cookies can be used across areas. More here.

Restricted Netlink MAC – We’re continuing to help developers move to privacy-protecting resettable identifiers. In a multi-release effort to ease migration of device-scoped Netlink MAC, in Android 11 we limited access to it based on API level 30, and in Android 12 we’re applying the restriction for all apps – regardless of targetSDK level. More here.

Safer exporting of components – To foreclose apps from mistakenly exporting acts, services, and receivers, we’re changing the default handling of the android: exported attribute to be more explicit. With this vary, components that declare one or more message filters are now required to explicitly declare an android: exported feature. You should inspect your components in the manifest in order to avoid installation lapses related to this change. More now.

Safer handling of Intents – To do cover PendingIntents more secure, Android 12 requires apps to explicitly declare a mutability flag, either FLAG_MUTABLE or the brand-new FLAG_IMMUTABLE, for each PendingIntent. More here.

You can read more about these and other privacy and security modifications here.

Better user experience tools

In Android 12 we’re investing in key areas to help deliver a polished ordeal and better performance for customers. Now are some of the updates so far.

Compatible media transcoding – With the prevalence of HEVC hardware encoders on portable manoeuvres, camera apps are increasingly capturing in HEVC format, which offers significant improvements in quality and compression over older codecs. Most apps should support HEVC, but for apps that can’t, we’re introducing compatible media transcoding.

With this piece, an app that doesn’t support HEVC can have the stage automatically transcode the file into AVC, a format that is widely compatible. The transcoding process takes time, will vary depending on the video and hardware qualities of the invention. As two examples, a one minute 1080 p video at 30 fps takes around 9 seconds to transcode on a Pixel 4. You can opt-in to use the transcoding service by just proclaiming the media formats that your apps don’t support. For developers, we strongly recommend that your apps corroborate HEVC, and if that’s not possible, enable compatible media transcoding. The peculiarity will be active on all manoeuvres consuming HEVC format for video capture. We’d love to hear your feedback on this peculiarity. More now.

AVIF likenes supporter – To give you higher portrait character with more efficient compression, Android 12 innovates pulpit support for AV1 Image File Format( AVIF ). AVIF is a receptacle format for epitomes and strings of epitomes encoded exploiting AV1. Like other modern image formats, AVIF takes advantage of the intra-frame encoded content from video compressing. This dramatically improves portrait tone for the same file size when compared to older image formats, such as JPEG.

AVIF( 18.2 kB)

JPEG( 20.7 kB)

race car photo in AVIF (18.2kB)

race car photo in JPEG (20.7kB)

Credit: Image comparison from AVIF has shored by Jake Archibald

Foreground busines optimizations – Foreground services are an important way for apps to manage certain types of user-facing exercises, but when overused they can affect performance and even lead to app kills. To ensure a better suffer for consumers, we will be blocking foreground service starts from the background for apps that are targeting the new scaffold. To make it easier to transition away from this motif, we’re introducing a new expedited job in JobScheduler that gets promoted process priority, structure access, and guides immediately regardless of power limitations like Battery Saver or Doze. For back-compatibility, we’ve too constructed accelerated jobs into the latest release of Jetpack WorkManager library. Too, to reduce distraction for users, we’re now delaying the display of some foreground service notifications by up to 10 seconds. This contributes short-lived exercises a chance to complete before their notifications are shown. More here.

Rich material insert – Users cherished images, videos and other expressive material, but implanting and moving this content in apps is not always easy. To make it simple for your apps to receive rich content, we’re introducing a brand-new unified API that lets you admit content from any beginning: clipboard, keyboard, or lag and droop. You can affix a brand-new interface, OnReceiveContentListener, to UI components and get a callback when content is inserted through any mechanism. This callback becomes the single place for your code to handle insertion of all content, from plateau and styled textbook to markup, portraits, videos, audio files, and more. For back-compatibility, we’ve computed the unified API to AndroidX. More now.

Audio-coupled haptic aftermath – In Android 12 apps can provide audio-coupled haptic feedback through the phone’s vibrator. The vibration strength and frequency are derived from an audio session, allowing you to create more immersive game and audio events. For example, a video announcing app could use custom ringtones to identify the caller through haptic feedback, or you could simulate rough terrain in a racing competition. More here.

Immersive mode API betters for gesture nav – We’ve streamlined immersive procedure so that gesticulate navigation is easier and more consistent, for example when watching a video, reading a book, or representing a game. We’re still protecting apps from accidental gestures when in full-screen experiences be attributed to gaming, but in all other full-screen or immersive ordeals( e.g. video spectators, interpret, photo gallery ), for apps targeting the new scaffold, we’re changing the default to allow users to navigate their phone with one swipe. More now.

Notification UI updates – We’re refreshing notification patterns to form them most modern, easier to use, and more functional. In this first preview you’ll notice deepens from the drawer and oversight matters to the templates themselves. We’re likewise optimizing transitions and animations across the system to build them more smooth. As part of the updates, for apps targeting Android 12 we’re decorating notifications with habit content with icon and expand affordances to join all other notifications. More here.

Faster, more responsive notifications – When consumers sounds a notification, they expect to hop immediately into the app – the faster the better. To meet that anticipation, developers should make sure that notification taps trigger Activity starts directly, rather than using “trampolines” – an intermediary broadcast receiver or service – to start the Activity. Notification trampolines can cause significant shelves and alter the user experience. To maintain notifications accept, Android 12 will block notification trampolines by preventing them from launching their target Pleasures, and we’re asking developers to migrate away from this decoration. The mutate applies only to apps targeting the new programme, but for all apps we’ll display a toast to realize trampolines visible to you and to users. More now.

Improved Binder IPC announces – As part of our work on performance, we’ve gave a focus on reducing system variability. We’ve taken a look at latency and workload rationing, and manufactured optimizations that abbreviate the median experience from the tag end, or 99% percentile utilization example. In doing so, we’ve targeted improvements to system binder calls adding lightweight caching policies and focusing on removing lock contention to improve latency distribution. This has relented approximately a 2x execution increase on Binder announces overall, with significant improvements in specific labels, for example a 47 x improvement in refContentProvider (), 15 x in releaseWakeLock (), and 7.9 x in JobScheduler.schedule ().

App compatibility

We’re working to make updates faster and smoother by prioritizing app conformity as we roll out brand-new programme editions. In Android 12 we’ve constituted most app-facing changes opt-in to give you more era, and we’ve revised our tools and processes to assist you get ready sooner. We’ve also added brand-new functionality to Google Play system modernizes to give your apps a better environment on Android 12 devices.

More of Android informed through Google Play – We’re continuing to expand our investment in Google Play system modernizes( Project Mainline) to give apps a more consistent, secure environment across devices. In Android 12 we’ve included the Android Runtime( ART) module that lets us push updates to the core runtime and libraries on machines loping Android 12. We can improve runtime performance and correctness, succeed cache more effectively, and do Kotlin operations faster – all without involving a full method revise. We’ve likewise expanded the functionality of existing modules – for example, we’re delivering our compatible media transcoding feature inside an updatable module.

Optimizing for tablets, foldables, and TVs – With more parties than ever use apps on large-screen designs like foldables, tablets, and TVs , now is a great time to make sure your app or sport is ready. Get started by optimizing for tablets and building apps for foldables. And, for the most difficult screen in the home, the first Android 12 preview for Android TV is also available. In addition to bringing the latest Android boasts to the TV with this preview, you will also be able to test your apps on the all-new Google TV experience. Learn more on the Android TV Developers place and get started with your ADT-3 developer kit.

Updated rosters of non-SDK boundaries – We’ve inhibited additional non-SDK interfaces, and as ever your feedback and requests for public API equivalents are welcome.

Easier testing and debugging of changes – To make it easier for you to test the opt-in alterations that can affect your app, we’ve compiled many of them toggleable. WIth the toggles you can force-enable or disable the changes individually from Developer options or adb. Check out more detailed information now.

mobile display of App Compatibility Changes with toggles

App compatibility toggles in Developer Options.

Platform stability milestone – Like last year, we’re letting you know our Platform Stability milestone well in advance, to give you more time to plan for app compatibility work. At this milestone we’ll deliver not only final SDK/ NDK APIs, but also final internal APIs and app-facing system demeanors. We’re expecting to reach Platform Stability by August 2021, and you’ll have various weeks before the official release to do your final testing. The secrete timeline details are here.

Get started with Android 12

The Developer Preview has all that you need to try the Android 12 peculiarities, evaluation your apps, and render us feedback. You can get started today by flashing a invention structure image to a Pixel 3/ 3 XL, Pixel 3a/ 3a XL, Pixel 4/ 4 XL, Pixel 4a/ 4a 5G, or Pixel 5 machine. If you don’t have a Pixel device, you can use the 64 -bit system idols with the Android Emulator in Android Studio.

When you’re set up, here are some of the things you should do:

Try the brand-new features and APIs – your feedback is critical during the early part of the developer preview. Report issues in our tracker or give us direct feedback by examine for selected aspects from the feedback and solicits page.

Research your current app for compatibility – the goal here is to learn whether your app is affected by default behavior changes in Android 12. Just install your current published app onto a design or emulator running Android 12 and evaluation.

Assessment your app with opt-in alters – Android 12 has opt-in behavior varies that simply feign your app when it’s targeting the new platform. It’s extremely important to understand and assess these changes early. To make it easier to experiment, you can toggle the changes on and off individually.

We’ll update the preview organisation epitomes and SDK regularly throughout the Android 12 liberate repetition. This initial preview release is for makes simply and not intended for daily or buyer use, so we’re manufacturing it available by manual download merely. You can flash a factory image to your Pixel device, or you can sideload an OTA image to a Pixel device jog Android 11, in which case you won’t need to unlock your bootloader or mop data. Either way, once you’ve manually set a preview body-build, you’ll automatically get future updates over-the-air for all last-minute previews and Betas. More now.

As we get closer to a final product, we’ll be inviting consumers to try it out as well, and we’ll open up enrollments through Android Beta at that time. Stay aria for details, but for now please be advised that Android Beta is not currently available for Android 12.

For full information, visit the Android 12 developer site.

Read more: feedproxy.google.com