Posted by Dave Burke, VP of Engineering
Android 11 Dial logo

Our groups, like all of you, go on receiving utilised to a new typical. For many of us, that signifies operating from living rooms, kitchens, backyards and bedrooms. So, from our houses to yours, we required to acquire a instant to share our most latest developer preview for Android 11. This update contains bug fixes and a set of productiveness improvements for builders.

You can see some of the highlights under, and check out the Android 11 developer web-site for specifics on all of the new functions in Android 11. Today’s release is for developers and not meant for daily or shopper use, so we’re making it accessible by guide obtain and flash for Pixel 2, 3, 3a, or 4 gadgets. If you’re already functioning a Developer Preview construct, you’ll receive an around-the-air (OTA) update to today’s release before long. As always, allow us know what you imagine, and thank you for the valuable comments you have shared so far.

What is in Developer Preview 3

In today’s release there are a number of new options and modifications for you to check out, as nicely as the most up-to-date updates to existing features, APIs, and equipment. Listed here are just a couple of:

App exit motives updates – Applications can exit for a range of motives, from crash to technique kill or consumer action. Throughout the numerous product forms, memory configurations, and person scenarios that your app operates in, it’s critical to have an understanding of why the app exited and what the state was at the time. Android 11 tends to make this simpler with an exit factors API that you can use to ask for details of the app’s the latest exits. In DP3 we have updated the APIs based on your enter, so please get a glimpse. If you have not experienced a opportunity to check out this new API nevertheless, we advocate giving it a consider and you should let us know what you think right here.

GWP-ASan heap investigation – Android 11 utilizes a wide variety of applications to harden safety-significant components in the system and apps. In DP3, we’re including GWP-ASan as another way to aid developers obtain and repair memory protection challenges. GWP-ASan is a sampling allocation device that detects heap memory problems with negligible overhead or effect on general performance. We have enabled GWP-ASan to run by default in platform binaries and procedure apps, and now you can now permit it for your apps as effectively. If your app works by using indigenous code or libraries, we recommend enabling GWP-ASan and tests as shortly as possible. For details, see the documentation.

ADB Incremental – Installing very huge APKs with ADB (Android Debug Bridge) through improvement can be sluggish and affect your productiveness, specially people builders doing the job on Android Games. With ADB Incremental in Android 11, putting in huge APKs (2GB+) from your growth computer to an Android 11 system is up to 10x faster. To use this new developer tool, initial indication your APK with the new APK signature plan v4 format, and then install your APK with the up-to-date ADB command line resource located in the Android 11 Preview SDK. This new feature is section of a wide suite of new equipment we are investing in to make you additional successful in setting up games on Android. Note that in DP3, ADB Incremental only performs with Pixel 4 / 4XL gadgets owing to a necessary file process improve at the unit level. All new equipment launching with Android 11 will involve this modify and will aid ADB Incremental. Master more listed here.

Wireless Debugging – In Android 11, we’ve entirely revamped the debugging encounter working with ADB around a Wi-Fi connection. With restricted USB ports on laptops, and a myriad of USB cables & connections to take care of, the Wi-fi Debugging characteristic in Android 11 can enable you be additional successful. As opposed to the current TCP/IP debugging workflow, Wireless Debugging on Android 11 does not want a cable to set up, remembers connections about time, and can employ the complete speed of the most recent Wi-Fi benchmarks. In DP3, use the pairing code workflow to get begun with this developer function. We prepare to include an built-in expertise for Wireless Debugging with QR code scanning in a foreseeable future Android Studio launch, but we want to get your early opinions on the command line software presented in Android 11 DP3. For details, see the documentation.

Try the new wireless debugging feature in Developer Options

Try out the new wi-fi debugging element in Developer Solutions.

Facts entry auditing updates – In DP3 we renamed a number of of the APIs for this Android 11 developer function. If you are by now using the APIs, make sure to look at out the modifications. If you are not familiar, data entry auditing allows you instrument your app to superior have an understanding of how it accesses user knowledge and from which consumer flows. For illustration, It can enable you identify any inadvertent obtain to personal knowledge in your own code or inside of any SDKs you may possibly be utilizing. Give facts accessibility auditing a attempt in your apps –
you can study additional in this article. Let us know your feedback in this article.

For specifics on every thing that’s improved in Developer Preview 3, consider a glimpse at the DP3 diff report and browse the launch notes for information about acknowledged concerns.

App compatibility

With Developer Preview 3, we’re properly on the way to finalizing functions and APIs and shifting our target to polish and performance. If you have not already, now is the time to commence testing your app for compatibility and identify any function you will have to have to do. We advise releasing a suitable app update by Android 11 Beta to get opinions from the much larger team of Android Beta people.

Compatibility testing timeline

When we arrive at Platform Balance, system behaviors, non-SDK greylists, and APIs are finalized. At that time, program on doing your closing compatibility screening and releasing your completely suitable app, SDK, or library as quickly as doable so that it is completely ready for the last Android 11 launch. You can go through a lot more in the timeline for builders.

You can commence compatibility tests now on a Pixel 2, 3, 3a, or 4 machine, or you can use the Android Emulator. Just flash the hottest make, set up your present manufacturing app, and exam the person flows. Make certain to overview the behavior changes for spots where by your app could be influenced. There is no require to modify the app’s targetSdkVersion at this time, whilst we endorse analyzing the work because a lot of alterations implement once your app is focusing on the new API level.

To assistance you test, we’ve produced several of the targetSdk modifications toggleable, so you can force-permit or disable them individually from Developer possibilities or ADB. Check out out the aspects here. Also see the greylists of restricted non-SDK interfaces, which can also be enabled/disabled.

App compatibility toggles in Developer Options

App compatibility toggles in Developer Alternatives.

Get began with Android 11

Developer Preview 3 has every thing you want to check out the most recent Android 11 functions, take a look at your apps, and give us feed-back. Just download and flash a device technique picture to a Pixel 2 / 2 XL, Pixel 3 / 3 XL, Pixel 3a / 3a XL, or Pixel 4 / 4 XL product, or set up the Android Emulator via Android Studio. Subsequent, update your Android Studio ecosystem with the most up-to-date Android 11 Preview SDK and equipment, see the established up guide for information.

As usually, your opinions is essential, so make sure you continue to let us know what you assume — the faster we hear from you, the much more of your opinions we can combine. When you discover troubles, you should report them in this article.

For total facts on Android 11, check out the Android 11 developer web site.