HomeMobileThe primary developer preview of Android 13

The primary developer preview of Android 13



Posted by Dave Burke, VP of Engineering

Android13 Logo

On daily basis, billions of individuals around the globe pull out their Android machine to assist them get issues executed. That Android works properly for each one in all them is ensured partly via a collaborative course of with you, our developer group, sharing suggestions to assist us make Android stronger.

Right now, 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 necessary 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 will help you make the most of the 250+ million giant display Android gadgets at the moment working.

That is simply the beginning for Android 13, and we’ll have heaps extra to share as we transfer via 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 closing launch. We’re wanting ahead to listening to what you assume, and thanks prematurely in your continued help make Android a platform that works for everybody!

Privateness & safety on the core

Individuals need an OS and apps that they will belief with their most private and delicate info. Privateness is core to Android’s product ideas, and Android 13 focuses on constructing a accountable and prime quality platform for all by offering a safer atmosphere on the machine and extra controls to the consumer. In immediately’s launch, we’re introducing a photograph picker that enables customers to share pictures and movies securely with apps, and a brand new Wi-Fi permission to additional decrease the necessity for apps to have the placement permission. We advocate attempting out the brand new APIs and testing how the modifications might have an effect on your app.

Picture picker and APIs – To assist defend photograph and video privateness of customers, Android 13 provides a system photograph picker — a regular 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 machine. The photograph picker extends this functionality with a devoted expertise for selecting pictures and movies. Apps can use the photograph picker APIs to entry the shared pictures and movies with no need permission to view all media information on the machine. We plan to deliver the photograph picker expertise to extra Android customers via Google Play system updates, as a part of a MediaProvider module replace for gadgets (excepting Go gadgets) working Android 11 and better. Give photograph picker APIs a attempt to tell us your suggestions!

Photo picker provides a consistent, secure way for users to give apps access to specific photos and videos.

Picture picker supplies a constant, safe manner for customers
to provide apps entry to particular pictures and movies.

Close by machine 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 will probably be required for apps that decision many commonly-used Wi-Fi APIs, and permits apps to find and hook up with close by gadgets over Wi-Fi with no need location permission. Beforehand, the placement permission necessities had been a problem for apps that wanted to connect with close by Wi-Fi gadgets however didn’t really want the machine location. Apps focusing on Android 13 will probably be now in a position to request the NEARBY_WIFI_DEVICES permission with the “neverForLocation” flag as a substitute, which ought to assist promote a privacy-friendly app design whereas lowering friction for builders. Study 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 one in all our core missions – whether or not it’s in Android 13 or via our instruments for trendy Android growth, like a language you’re keen on in Kotlin or opinionated APIs with Jetpack. By serving to you’re employed extra productively, we purpose to decrease your value of growth so you’ll be able to give attention to 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 immediately 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, reasonably than having to go to Fast Settings so as to add the tile.

Tile service sample wants to add the following tile to Quick Settings Alert 

Themed app icons – In Android 13 we’re extending Materials You dynamic coloration past Google apps to all app icons, letting customers choose 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 offer 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 machine producer companions to deliver them to extra gadgets. Study extra.

Three phone screens. The first screen has themed icons disabled. The second has themed icons enabled. And the third has themed icons & dark theme enabled 

Per-app language preferences – Some apps let customers select a language that differs from the system language, to fulfill 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 cut back boilerplate code and enhance compatibility when setting the app’s runtime language. For broader compatibility, we’ll be including the same API in an upcoming Jetpack library. Study extra.

Quicker 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 assume!

Programmable shaders – Android 13 provides help 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 allows you to create related superior results in your app.

AGSL animated shader

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 help for app and platform builders. We additionally plan to deliver these Core Library modifications to extra gadgets via Google Play system updates, as a part of an ART module replace for gadgets working Android 12 and better. Study 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 provide you extra time, and we’ve up to date our instruments and processes that will help you prepare sooner.

Extra of Android up to date via Google Play – In Android 13 we’re persevering with to increase our funding in Google Play system updates (Undertaking Mainline) to provide apps a extra constant, safe atmosphere throughout gadgets, and to ship new options and capabilities to customers. We are able to now push new options like photograph picker and OpenJDK 11 on to customers on older variations of Android via updates to present modules. We’ve additionally added new modules, such because the Bluetooth and Extremely wideband modules, to additional increase the scope of Android’s updatable core performance.

Optimizing for tablets, foldables, and Chromebooks – With all of the momentum in giant display 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. You may get began utilizing our steering on optimizing for tablets, then discover ways to construct for big 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’ll be able to 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 Options.

App compatibility toggles in Developer Choices.

Platform stability milestone – Like final 12 months, we’re letting you recognize our Platform Stability milestone properly prematurely, to provide you extra time to plan for app compatibility work. At this milestone we’ll ship not solely closing SDK/NDK APIs, but in addition closing inner 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 closing testing. The discharge timeline particulars are right here.

Timeline. February and March Developer Previews. April-Final Release Beta Releases. June-Final Release Platform Stability 

Get began with Android 13

The Developer Preview has all the things you’ll want to attempt 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 will 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 machine. If you happen to don’t have a Pixel machine, you should use the 64-bit system photos with the Android Emulator in Android Studio. For even broader testing, GSI photos can be found.

If you’re arrange, listed here are a few of the issues you must do:

  • Strive the brand new options and APIs – your suggestions is vital throughout 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.
  • Check 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 revealed app onto a tool or emulator working Android 13 and check.
  • Check your app with opt-in modifications – Android 13 has opt-in conduct modifications that solely have an effect on your app when it’s focusing on the brand new platform. It’s extraordinarily necessary to know and assess these modifications early. To make it simpler to check, you’ll be able to toggle the modifications on and off individually.

We’ll replace the preview system photos and SDK often all through the Android 13 launch cycle. This preliminary preview launch is for builders solely and never meant for day by day or shopper use, so we’re making it accessible by handbook obtain solely. When you’ve manually put in a preview construct, you’ll routinely 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 customers to attempt Android 13 as properly, and we’ll open up enrollments for the Android Beta program at the moment. For now, please notice that Android Beta will not be but accessible for Android 13.

For full info, go to the Android 13 developer website.

Java and OpenJDK are logos or registered logos of Oracle and/or its associates.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments