Posted by Dave Burke, VP of Engineering
Only a few weeks in the past at Google I/O we unwrapped the primary beta of Android 12, specializing in a brand new UI that adapts to you, improved efficiency, and privateness and safety on the core. For builders, Android 12 provides you higher instruments to construct pleasant experiences for folks on telephones, laptops, tablets, wearables, TVs, and vehicles.
At present we’re releasing the second Beta of Android 12 so that you can strive. Beta 2 provides new privateness options just like the Privateness Dashboard and continues our work of refining the discharge.
Finish-to-end there’s so much for builders in Android 12 – from the redesigned UI and app widgets, to wealthy haptics, improved video and picture high quality, privateness options like approximate location, and rather more. For a fast take a look at associated Google I/O classes, see Android 12 at Google I/O later within the submit.
You may get Beta 2 immediately in your Pixel system by enrolling here for over-the-air updates, and if you happen to beforehand enrolled for Beta 1, you’ll robotically get immediately’s replace. Android 12 Beta can be out there on choose units from a number of of our companions – study extra at android.com/beta.
Go to the Android 12 developer site for particulars on the best way to get began.
What’s new in Beta 2?
Beta 2 consists of a number of of the brand new privateness options we talked about at Google I/O, in addition to numerous characteristic updates to enhance performance, stability, and efficiency. Listed here are a couple of highlights.
Privateness Dashboard – We’ve added a Privateness Dashboard to provide customers higher visibility over the info that apps are accessing. The dashboard affords a easy and clear timeline view of all current app accesses to microphone, digicam, and site. Customers can even request particulars from an app on why it has accessed delicate knowledge, and builders can present this data in an exercise by dealing with a brand new system intent, ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD. We suggest that apps benefit from this intent to proactively assist customers perceive accesses within the given time interval. That can assist you observe these accesses in your code and any third-party libraries, we suggest utilizing the Knowledge Auditing APIs. More here.
Privateness dashboard and site entry timeline.
Mic and digicam indicators – We’ve added indicators to the standing bar to let customers know when apps are utilizing the system digicam or microphone. Customers can go to Fast Settings to see which apps are accessing their digicam or microphone knowledge and handle permissions if wanted. For builders, we suggest reviewing your app’s makes use of of the microphone and digicam and eradicating any that customers wouldn’t anticipate. More here.
Microphone & digicam toggles – We’ve added Fast Settings toggles on supported units that make it simple for customers to immediately disable app entry to the microphone and digicam. When the toggles are turned off, an app accessing these sensors will obtain clean digicam and audio feeds, and the system handles notifying the person to allow entry to make use of the app’s options. Builders can use a brand new API,
SensorPrivacyManager, to examine whether or not toggles are supported on the system. The microphone and digicam controls apply to all apps no matter their platform concentrating on. More here.
Clipboard learn notification – To present customers extra transparency on when apps are studying from the clipboard, Android 12 now shows a toast on the backside of the display screen every time an app calls
getPrimaryClip(). Android received’t present the toast if the clipboard was copied from the identical app. We suggest minimizing your app’s reads from the clipboard, and ensuring that you just solely entry the clipboard when it is going to be anticipated by customers. More here.
Extra intuitive connectivity expertise – To assist customers perceive and handle their community connections higher, we’re introducing an easier and extra intuitive connectivity expertise throughout the Standing Bar, Fast Settings, and Settings. The brand new Web Panel helps customers change between their Web suppliers and troubleshoot community connectivity points extra simply. Tell us what you assume!
New Web controls by Fast Settings.
Go to the Android 12 developer site to study extra about the entire new options in Android 12.
Android 12 at Google I/O
At Google I/O we talked about every little thing that’s new in Android for builders – from Android 12 to Trendy Android Growth instruments, new kind components like Put on and foldables, and Google Play. Listed here are the highest 3 issues to learn about Android 12 at Google I/O.
#1 A brand new UI for Android – Android 12 brings the largest design change in Android’s historical past. We rethought your entire expertise, from the colours to the shapes, gentle and movement, making Android 12 extra expressive, dynamic, and private, underneath a single design language known as Materials You.
#2 Efficiency – With Android 12, we made vital and deep investments in efficiency, from foundational system efficiency and battery life to foreground service modifications, media high quality and efficiency, and new instruments to optimize apps.
#3 Privateness and safety – In Android 12 we’re persevering with to provide customers extra transparency and management whereas holding their units and knowledge safe.
For an summary of Android 12 for builders, watch this yr’s What’s new in Android speak, and take a look at Top 12 tips to get ready for Android 12 for an summary of the place to check your app for compatibility. The complete listing of Android content material at Google I/O is here.
With extra early-adopter customers and builders getting Android 12 beta on Pixel and other devices, now’s the time to verify your apps are prepared!
To check your app for compatibility, set up the revealed model from Google Play or different supply onto a tool or emulator operating Android 12 Beta. Work by the entire app’s flows and look ahead to purposeful or UI points. Assessment the behavior changes to focus your testing. There’s no want to alter your app’s
targetSdkVersion presently, so while you’ve resolved any points, publish an replace as quickly as attainable on your Android 12 Beta customers.
With Beta 2, Android 12 is closing in on Platform Stability in August 2021. Beginning then, app-facing system behaviors, SDK/NDK APIs, and non-SDK lists will likely be finalized. At the moment, you must end up your ultimate compatibility testing and launch a totally appropriate model of your app, SDK, or library. Extra on the timeline for builders is here.
Get began with Android 12!
At present’s Beta launch has every little thing it’s good to strive the newest Android 12 options, take a look at your apps, and provides us feedback. Simply enroll any supported Pixel device to get the replace over-the-air. To get began creating, set up the Android 12 SDK.
You can even get Android 12 Beta 2 on units from a few of our prime device-maker companions like Sharp. Go to android.com/beta to see the complete listing of companions collaborating in Android 12 Beta. For even broader testing, you may strive Android 12 Beta on Android GSI images, and if you happen to don’t have a tool you may take a look at on the Android Emulator.
Beta 2 can be out there for Android TV, so you may try the newest TV options and take a look at your apps on the all-new Google TV expertise. Strive it out with the ADT-3 developer package. More here.
For full particulars on Android 12 Beta, go to the Android 12 developer site.