Posted by Dave Burke, VP of Engineering
Every single day, billions of individuals all over the world pull out their Android system to assist them get issues completed. That Android works effectively for every certainly one of them is ensured partly by means of a collaborative course of with you, our developer neighborhood, sharing suggestions to assist us make Android stronger.
At this time, we’re sharing a primary have a look at the subsequent launch of Android, with the Android 13 Developer Preview 1. With Android 13 we’re persevering with some vital themes: privateness and safety, in addition to developer productiveness. We’ll additionally construct on a few of the newer updates we made in 12L that can assist you make the most of the 250+ million massive display screen Android gadgets presently working.
That is simply the beginning for Android 13, and we’ll have tons extra to share as we transfer by means of the discharge. Learn on for a style of what’s new, and go to the Android 13 developer website for particulars on downloads for Pixel and the discharge timeline. As at all times, it’s essential to get your suggestions early, to assist us embrace it within the ultimate launch. We’re trying ahead to listening to what you suppose, and thanks upfront on your continued help make Android a platform that works for everybody!
Privateness & safety on the core
Folks need an OS and apps that they’ll belief with their most private and delicate data. Privateness is core to Android’s product ideas, and Android 13 focuses on constructing a accountable and top quality platform for all by offering a safer surroundings on the system and extra controls to the consumer. In immediately’s launch, we’re introducing a photograph picker that permits customers to share pictures and movies securely with apps, and a brand new Wi-Fi permission to additional reduce the necessity for apps to have the situation permission. We suggest making an attempt out the brand new APIs and testing how the modifications could have an effect on your app.
Picture picker and APIs – To assist defend picture and video privateness of customers, Android 13 provides a system picture picker — a typical and optimized manner for customers to share each native and cloud-based pictures securely. Android’s lengthy standing doc picker permits a consumer to share particular paperwork of any kind with an app, with out that app needing permission to view all media information on the system. The picture picker extends this functionality with a devoted expertise for choosing pictures and movies. Apps can use the picture picker APIs to entry the shared pictures and movies with no need permission to view all media information on the system. We plan to deliver the picture picker expertise to extra Android customers by means of Google Play system updates, as a part of a MediaProvider module replace for gadgets (excepting Go gadgets) working Android 11 and better. Give picture picker APIs a attempt to tell us your suggestions!
Picture picker supplies a constant, safe manner for customers
to offer apps entry to particular pictures and movies.
Close by system permission for Wi-Fi – Android 13 introduces the NEARBY_WIFI_DEVICES runtime permission (a part of the NEARBY_DEVICES permission group) for apps that handle a tool’s connections to close by entry factors over Wi-Fi. The brand new permission can be required for apps that decision many commonly-used Wi-Fi APIs, and allows apps to find and connect with close by gadgets over Wi-Fi with no need location permission. Beforehand, the situation permission necessities had been a problem for apps that wanted to hook up with close by Wi-Fi gadgets however didn’t really want the system location. Apps concentrating on Android 13 can be now in a position to request the NEARBY_WIFI_DEVICES permission with the “neverForLocation” flag as an alternative, which ought to assist promote a privacy-friendly app design whereas lowering friction for builders. Be taught extra.
Developer productiveness and instruments
Android 13 additionally brings new options and instruments for developer productiveness. Serving to you create stunning apps that run on billions of gadgets is certainly one of our core missions – whether or not it’s in Android 13 or by means of our instruments for contemporary Android growth, like a language you like in Kotlin or opinionated APIs with Jetpack. By serving to you’re employed extra productively, we intention to decrease your price of growth so you possibly can deal with persevering with to construct wonderful experiences. Right here’s a few of what’s new in immediately’s launch.
Fast Settings Placement API – Fast Settings within the notification shade is a handy manner for customers to vary settings or take fast actions with out leaving the context of an app. For apps that present customized tiles, we’re making it simpler for customers to find and add your tiles to Fast Settings. Utilizing a brand new tile placement API, your app can now immediate the consumer to straight add your customized tile to the set of lively Fast Settings tiles. A brand new system dialog lets the consumer add the tile in a single step, with out leaving your app, moderately than having to go to Fast Settings so as to add the tile.
Themed app icons – In Android 13 we’re extending Materials You dynamic colour past Google apps to all app icons, letting customers decide into icons that inherit the tint of their wallpaper and different theme preferences. All of your app wants to produce is a monochromatic app icon (for instance, your notification drawable) and a tweak to the adaptive icon XML. We’re encouraging all builders to supply appropriate icons to assist present a constant expertise for customers who’ve opted in. Themed app icons are initially supported on Pixel gadgets and we’re working with our system producer companions to deliver them to extra gadgets. Be taught extra.
Per-app language preferences – Some apps let customers select a language that differs from the system language, to satisfy the wants of multilingual customers. Such apps can now name a brand new platform API to set or get the consumer’s most well-liked language, serving to to scale back boilerplate code and enhance compatibility when setting the app’s runtime language. For broader compatibility, we’ll be including an analogous API in an upcoming Jetpack library. Be taught extra.
Sooner hyphenation – Hyphenation makes wrapped textual content simpler to learn and helps make your UI extra adaptive. In Android 13 we’ve optimized hyphenation efficiency by as a lot as 200% so now you can allow it in your TextViews with nearly no affect on rendering efficiency. To allow sooner hyphenation, use the brand new fullFast
or normalFast
frequencies in setHyphenationFrequency()
. Give sooner hyphenation a attempt to tell us what you suppose!
Programmable shaders – Android 13 provides assist for programmable RuntimeShader objects, with conduct outlined utilizing the Android Graphics Shading Language (AGSL). AGSL shares a lot of its syntax with GLSL, however works throughout the Android rendering engine to customise portray inside Android’s canvas in addition to filtering of View content material. Android internally makes use of these shaders to implement ripple results, blur, and stretch overscroll, and Android 13 lets you create related superior results on your app.
AGSL animated shader, tailored
from
this GLSL Shader
OpenJDK 11 updates – In Android 13 we’ve began the work of refreshing Android’s Core Libraries to align with the OpenJDK 11 LTS launch, with each library updates and Java 11 programming language assist for app and platform builders. We additionally plan to deliver these Core Library modifications to extra gadgets by means of Google Play system updates, as a part of an ART module replace for gadgets working Android 12 and better. Be taught extra.
App compatibility
With every platform launch we’re working to make updates sooner and smoother by prioritizing app compatibility as we roll out new platform variations. In Android 13 we’ve made most app-facing modifications opt-in to offer you extra time, and we’ve up to date our instruments and processes that can assist you prepare sooner.
Extra of Android up to date by means of Google Play – In Android 13 we’re persevering with to develop our funding in Google Play system updates (Challenge Mainline) to offer apps a extra constant, safe surroundings throughout gadgets, and to ship new options and capabilities to customers. We are able to now push new options like picture picker and OpenJDK 11 on to customers on older variations of Android by means of updates to present modules. We’ve additionally added new modules, such because the Bluetooth and Extremely wideband modules, to additional develop the scope of Android’s updatable core performance.
Optimizing for tablets, foldables, and Chromebooks – With all of the momentum in massive display screen gadgets like tablets, foldables, and Chromebooks, now’s the time to get your apps prepared for these gadgets and design absolutely adaptive apps that match any display screen. You will get began utilizing our steering on optimizing for tablets, then discover ways to construct for giant screens and develop for foldables.
Simpler testing and debugging of modifications – To make it simpler so that you can check the opt-in modifications that may have an effect on your app, we’ll make a lot of them toggleable once more this 12 months. WIth the toggles you possibly can force-enable or disable the modifications individually from Developer choices or adb
. Take a look at the main points right here.
App compatibility toggles in Developer Choices.
Platform stability milestone – Like final 12 months, we’re letting you already know our Platform Stability milestone effectively upfront, to offer you extra time to plan for app compatibility work. At this milestone we’ll ship not solely ultimate SDK/NDK APIs, but in addition ultimate inside APIs and app-facing system behaviors. This 12 months we’re anticipating to succeed in Platform Stability in June 2022, and from that point you’ll have a number of weeks earlier than the official launch to do your ultimate testing. The discharge timeline particulars are right here.
Get began with Android 13
The Developer Preview has every little thing it’s essential to strive the Android 13 options, check your apps, and provides us suggestions. For testing your app with tablets and foldables, the best strategy to get began is utilizing the Android Emulator in a pill or foldable configuration – full setup directions are right here. For telephones, you may get began on a tool immediately by flashing a system picture to a Pixel 6 Professional, Pixel 6, Pixel 5a 5G, Pixel 5, Pixel 4a (5G), Pixel 4a, Pixel 4 XL, or Pixel 4 system. If you happen to don’t have a Pixel system, you should utilize the 64-bit system pictures with the Android Emulator in Android Studio. For even broader testing, GSI pictures can be found.
Whenever you’re arrange, listed below are a few of the issues it’s best to do:
- Strive the brand new options and APIs – your suggestions is important through the early a part of the developer preview. Report points in our tracker or give us direct suggestions by survey for chosen options from the suggestions and requests web page.
- Take a look at your present app for compatibility – study whether or not your app is affected by default conduct modifications in Android 13. Simply set up your present printed app onto a tool or emulator working Android 13 and check.
- Take a look at your app with opt-in modifications – Android 13 has opt-in conduct modifications that solely have an effect on your app when it’s concentrating on the brand new platform. It’s extraordinarily vital to know and assess these modifications early. To make it simpler to check, you possibly can toggle the modifications on and off individually.
We’ll replace the preview system pictures and SDK commonly all through the Android 13 launch cycle. This preliminary preview launch is for builders solely and never meant for each day or shopper use, so we’re making it out there by guide obtain solely. When you’ve manually put in a preview construct, you’ll robotically get future updates over-the-air for all later previews and Betas. Extra right here.
As we attain our Beta releases, we’ll be inviting shoppers to strive Android 13 as effectively, and we’ll open up enrollments for the Android Beta program at the moment. For now, please word that Android Beta just isn’t but out there for Android 13.
For full data, go to the Android 13 developer website.
Java and OpenJDK are logos or registered logos of Oracle and/or its associates.