Introducing Android Q Beta

The Dynamic Depth picture lets you present specialised blur and bokeh choices in your software.

New audio and video codecs

Android Q introduces AV1 open supply video codec assist. This enables media suppliers to broadcast top quality video content material to Android gadgets utilizing much less bandwidth. As well as, Android Q helps audio coding with the assistance of Opus, an optimized codec for streaming speech and music, and HDR10 + for high-dynamic-range video on the gadgets that assist it.

The MediaCodecInfo API offers a neater approach to decide the video rendering capabilities of an Android system. For a given codec, you will get an inventory of supported sizes and body charges utilizing VideoCodecCapabilities.getSupportedPerformancePoints (). This lets you select the highest quality video content material to play again on any system.


For purposes that carry out audio processing in C ++, Android Q introduces a local MIDI API for speaking with MIDI gadgets through the NDK. This API lets you retrieve MIDI knowledge in an audio reminder with the assistance of a non-blocking playback, thus permitting low-latency processing of MIDI messages. Strive it with the pattern software and the supply code right here.

ANGLE on Vulkan

To supply larger consistency for recreation and picture builders, we’re engaged on creating a normal OpenGL driver that may be up to date for all gadgets constructed on Vulkan. In Android Q, we add experimental assist for ANGLE along with Vulkan on Android gadgets. ANGLE is a graphical abstraction layer designed for top efficiency OpenGL compatibility for all implementations. With ANGLE, the numerous purposes and video games that use OpenGL ES can make the most of Vulkan's efficiency and stability, in addition to constant, unbiased I / O implementation on Android gadgets. Underneath Android Q, we plan to assist OpenGL ES, ES coming quickly on our roadmap.

We’ll lengthen the implementation with extra OpenGL options, bug fixes, and efficiency optimizations. See the documentation for extra particulars on the present assist for ANGLE in Android, its use and our initiatives. You can begin testing with our preliminary assist by activating the choice through the developer choices within the settings. Strive it at the moment!

Vulkan all over the place

We proceed to increase the impression of Vulkan on Android, due to our cheap multiplatform API implementation for top efficiency 3D graphics. Our aim is to make Vulkan on Android a constant and broadly supported graphical improvement API. We’re working with our system maker companions to make Vulkan 1.1 obligatory on all 64-bit gadgets working Android Q and later, in addition to a advice for all 32-bit gadgets. Sooner or later, this may assist present a uniform excessive efficiency graphics API for purposes and video games.

Neural Networks API 1.2

Because the introduction of the Neural Networks (NNAPI) API in 2017, we now have continued to extend the variety of supported operations and enhance present options. Underneath Android Q, we added 60 new operations, together with ARGMAX, ARGMIN, quantized LSTM, in addition to a spread of efficiency optimizations. This lays the muse for accelerating a a lot wider vary of fashions, similar to these for object detection and picture segmentation. We work with widespread distributors and machine studying infrastructures similar to TensorFlow to optimize and deploy assist for NNAPI 1.2.

Strengthening the Foundations of Android

Efficiency ART

Android Q introduces a number of new enhancements in ART execution, permitting purposes in addition quicker and devour much less reminiscence, with out the necessity for work from builders.

From Android Nougat, ART gives Profile-Oriented Optimization (PGO), which speeds software startup over time by figuring out and precompiling the often executed elements of your code. To make it simpler for apps to get began, Google Play now offers cloud-based profiles and APKs. These are aggregated and anonymized ART profiles that permit ART to pre-compile elements of your software even earlier than it runs, drastically rushing up the general optimization course of. Cloud profiles profit all purposes and are already out there for gadgets working Android P and later.

We’re additionally persevering with to enhance the antiretroviral therapy itself. For instance, in Android Q, we optimized the Zygote course of by beginning your software course of earlier and shifting it to a safety container in order that it is able to be launched instantly. We retailer extra data within the section picture of the applying, similar to lessons, and use threads to load the picture quicker. We’re additionally including the Generational Place Restoration service to ART's Concurrent Copy (CC) placeholder. Generically, CC is extra environment friendly as a result of it collects new era objects individually, leading to decrease prices in comparison with full GC, whereas retaining a great quantity of area. This general makes area restoration extra environment friendly when it comes to processor time and time, reduces the results of jank and permits purposes to run higher on low-end gadgets.

Security for Purposes

BiometricPrompt is our unified authentication infrastructure that helps system-level biometrics. In Android Q, we lengthen assist for passive authentication strategies similar to face and add implicit and specific authentication flows. Within the specific movement, the person should explicitly verify the transaction within the TEE when authenticating. The default feed is designed to supply a lighter different to passive authentication transactions. Now we have additionally improved the backup answer for system identification data, if any.

Android Q provides assist for TLS 1.three, a significant revision of the TLS commonplace that features efficiency advantages and improved safety. Our exams point out that safe connections could be established as much as 40% quicker with TLS 1.three in comparison with TLS 1.2. TLS 1.three is enabled by default for all TLS connections. See the documentation for extra particulars.

Compatibility through public APIs

One other factor that issues to us all is to make sure that purposes run easily because the working system modifications and evolves. Purposes that use non-SDK APIs may cause person crashes and emergency deployments for builders. In Android Q, we proceed our long-term effort began in Android P to maneuver purposes to public APIs solely. We all know that it’s going to take time to your app to get away from APIs aside from the SDK ones. We due to this fact notify you upfront.

In Android Q, we prohibit entry to extra non-SDK interfaces and ask you to make use of public equivalents as a substitute. That will help you make the transition and stop your purposes from breaking, we allow restrictions solely when your Android Q goal software. We’ll proceed so as to add different public APIs primarily based in your requests. In circumstances the place no public API matches your use case, please tell us.

It is very important check in your purposes the usage of non-SDK interfaces. We suggest that you just use the StrictMode detectNonSdkApiUsage () technique to warn when your software accesses non-SDK APIs by way of reflection or JNI. Though APIs are at present exempt (grey listing), it’s higher to plan for the longer term and eradicate their use with the intention to cut back compatibility points. For extra particulars on the restrictions in Android Q, see the developer's information.

Trendy Android

We’re increasing our efforts to make sure that all purposes take full benefit of the safety and efficiency options of the newest model of Android. Later this yr, Google Play will ask you to set the targetSdkVersion variable of your app to 28 (Android 9 Pie) in new apps and updates. In accordance with these modifications, Android Q will warn customers by way of a dialog field when first working an software focusing on an earlier platform at API degree 23 (Android Marshmallow ). Here’s a guidelines of assets that can assist you migrate your software.

We’re additionally evolving the ecosystem to availability for 64-bit gadgets. Later this yr, Google Play would require 64-bit assist in all purposes. In case your software makes use of software program improvement kits (SDKs) or native libraries, keep in mind that you should present suitable 64-bit variations of those SDKs or libraries. Seek the advice of the developer's information for the right way to put together your self.

Begin with Android Q Beta

With vital privateness options that may have an effect on your purposes, we suggest that you just begin testing instantly. Particularly, you’ll want to allow and check Android Q storage modifications, new location permissions, background software launch restrictions, and password restrictions. peripheral. See the privateness documentation for extra particulars.

To get began, merely set up your present app from Google Play on an Android system or Android system working Android Q Beta and use person feeds. The applying ought to work and look nice, and correctly deal with the habits modifications of Android Q for all purposes. In case you have issues, we suggest that you just repair them within the present software with out altering your focusing on degree. See the migration information for steps and a advisable schedule.

Then replace the targetSdkVersion of your software to 'Q & # 39; as quickly as attainable. This lets you check your software with all of the privateness and safety features of Android Q, in addition to with another behavioral change of purposes focusing on Q.

Discover New Options and New APIs

While you're prepared, discover Android Q and uncover the brand new options and APIs that you should utilize in your apps. Check out the API Distinction Report, on the Android Q Beta API reference and at developer guides. As well as, on the Android Q Beta improvement website, you’ll discover launch notes and assist assets for reporting issues.

To compile with Android Q, obtain the Android Q Beta SDK and instruments in Android Studio three.three or later, and comply with the directions beneath to arrange your atmosphere. If you wish to use the newest fixes for Android Q-related modifications, we suggest that you just use Android Studio three.5 or later.

How can I get Android Q Beta?

It's easy – you’ll be able to enroll right here to get Android Q Beta updates reside, on any Pixel system (and this yr we assist the three-generation Pixel – Pixel three , Pixel 2 and even the unique Pixel!). Downloadable system photographs for these gadgets are additionally out there. Should you don’t have a Pixel system, you should utilize the Android emulator and obtain the newest photographs from the emulator system through the SDK Supervisor of Android Studio.

We plan to replace the preview system photographs and the SDK frequently all through the preview. We'll have extra options to share because the beta program progresses.

As at all times, your feedback are vital. Thanks for letting us know what you suppose: the earlier we obtain your information, the extra we will combine your feedback. When you have got issues, please report them right here. Now we have separate particular lists for third-party software rating, software compatibility, and SDK platform points.

Posted by Dave Burke, Vice President of Engineering

By 2019, cellular innovation is stronger than ever, with the brand new 5G applied sciences on the periphery and even foldable screens. Android is on the heart of this innovation cycle and, due to the huge ecosystem of multi-billion system companions, Android helps push the boundaries of and software program, offering new experiences and options to customers .

Because the cellular ecosystem evolves, Android is striving to assist customers make the most of the newest improvements, whereas guaranteeing that the safety and privateness of customers is at all times a prime precedence. By leveraging efforts similar to Google Play Defend and Runtime Permissions, Android Q brings various further safety and privateness options to customers, in addition to enhancements for foldable purposes, similar to: new APIs for connectivity, new multimedia codecs and digicam capabilities, NNAPI extensions, Vulkan 1.1 assist, quicker software startup, and extra.

At present we’re releasing the Beta 1 of Android Q for early customers and a preview SDK for builders. You can begin utilizing Beta 1 at the moment by registering any Pixel system (together with unique Pixels and Pixel XLs, for which we now have prolonged assist by widespread demand!). we all know what you suppose! Learn on to find the options of Android Q and we'll see you again to Google I / O in Might, after we'll have much more to share.

Constructing above the protections of privateness underneath Android

Android was designed with safety and privateness within the heart. Whereas Android has matured, we now have added a variety of options to guard customers, similar to file-based encryption, working system controls forcing purposes to request permission earlier than entry delicate assets, lock entry within the background digicam / mic, lock mode, encrypted backups, and so forth. Google Play Defend (which scans greater than 50 billion apps a day to establish and take away doubtlessly harmful apps), and a lot extra. In Android Q, we now have made much more enhancements to guard our customers. Many of those enhancements are a part of our work in Challenge Strobe.

Give customers extra management over the placement

With Android Q, the working system helps customers higher management when purposes can get a location. As in earlier variations of the working system, purposes can solely get the placement when the applying has requested you for an authorization and you’ve got granted it.

Accessing apps to their location when the app isn’t in use (within the background) is especially noticeable. Android Q permits customers to permit apps to by no means see their location, solely when the app is in use (or working), or at any time ( background).

For instance, an software requesting the placement of a person for meals supply is logical and the person might wish to give him the chance to take action. However as the applying might not want a location outdoors of its present use, the person might not wish to grant this entry. Android Q now gives this degree of superior management. Learn the developer information to learn to adapt your software to this new management. Search for extra user-centric enhancements coming within the subsequent Betas. On the similar time, our aim is to be very cautious with the intention to at all times give builders probably the most notifications and attainable assist with these modifications.

Extra privateness protections in Android Q

Past location modifications, we make different updates to make sure transparency, permit customers to regulate and safe private knowledge.

In Android Q, the working system offers customers even larger management over purposes, by controlling entry to shared recordsdata. Customers will be capable to management software entry to pictures and movies or audio collections through new permissions. For downloads, purposes should use the system file picker, which permits the person to decide on the obtain recordsdata that the applying can entry. For builders, the way in which your purposes can use shared zones on exterior storage has been modified. Be sure you learn the modifications to Scoped Storage for extra particulars.

We additionally discovered that customers (and builders!) Get upset when an software unexpectedly goes to the fore and takes focus. To cut back these interruptions, Android Q will forestall purposes from beginning an exercise within the background. In case your software is within the background and must rapidly appeal to the eye of the person, for instance for incoming calls or alarms, you should utilize excessive precedence notification and supply full display intent. See the documentation for extra data.

We prohibit entry to non-resettable system identifiers, together with system IMEI quantity, serial quantity, and related identifiers. Learn finest practices that can assist you select the suitable identifiers to your use case and see the small print right here. We additionally proceed to randomize the system's MAC handle if you end up related to completely different Wi-Fi networks by default – a setting that was elective in Android 9 Pie.

We convey you these modifications early so that you could have as a lot time as attainable to organize. Now we have additionally labored onerous to supply builders with detailed data proper from the beginning. We suggest that you just assessment the detailed documentation on modifications to the confidentiality and start testing instantly.

New Methods to Contain Customers

In Android Q, we provide new strategies to convey customers into your purposes and streamline the expertise as they transfer on from different apps.

Foldable and progressive new screens

Foldable home equipment have opened up progressive experiences and use circumstances. To assist your apps make the most of these gadgets and different large-screen gadgets, we've made a number of enhancements to Android Q, together with modifications to onResume and OnPause to assist a number of resumes and notify your software when it’s energetic. Now we have additionally modified the operation of the resizeableActivity manifest attribute that can assist you handle the show of your software on foldable and enormous screens. That will help you construct and check these new gadgets, we now have been working onerous to replace the Android emulator to assist multi-display kind change. Extra particulars to return!

Sharing Shortcuts

When a person desires to share content material, similar to a photograph, with somebody in one other software, the method must be quick. With Android Q, we simplify issues quicker and simpler with sharing shortcuts, which permit customers to straight entry one other app to share content material. Builders can publish sharing targets that launch a particular exercise of their apps with connected content material. These are offered to customers within the sharing person interface. As they’re printed upfront, the sharing UI could be loaded immediately when it’s launched.

The mechanism for sharing shortcuts is much like working shortcuts for purposes. Now we have due to this fact developed the ShortcutInfo API to facilitate the combination of each options. This new API can be supported within the new ShareTarget AndroidX library. This enables purposes to make use of the brand new characteristic, whereas permitting pre-Q gadgets to work with direct sharing. You will discover an instance of software with supply code right here.

Panels of Configuration

Now you can additionally view key system settings straight within the context of your software, through a brand new Management Panel API, which takes benefit of the Slices characteristic we launched in Android 9 Pie.

A settings panel is a floating person interface that you just name out of your software to view system settings that customers would possibly want, similar to Web connectivity, NFC expertise, and audio quantity. For instance, a browser might show a panel with connectivity settings similar to airplane mode, Wi-Fi (together with close by networks), and cellular knowledge. There isn’t a want to depart the applying; customers can handle the settings as wanted from the panel. To show a settings pane, merely set off an intent with one of many new Settings.Panel actions.


In Android Q, we expanded the capabilities of your purposes with the Android connectivity stack and added new connectivity APIs.

Connection Permissions, Confidentiality and Safety

Most of our APIs for community evaluation already require a COARSE location permission, however in Android Q, for Bluetooth, Mobile and Wi-Fi, we’re strengthening the safety round these APIs by as a substitute requesting the FINE location authorization. In case your software solely wants to ascertain peer-to-peer connections or recommend networks, try the improved Wi-Fi APIs beneath: they simplify connections and don’t require location authorization.

Along with the random MAC addresses supplied by Android Q when it’s related to completely different Wi-Fi networks, we’re including a brand new assist for the Wi-Fi, WP3 and OWE commonplace, to boost the safety of house and enterprise networks. in addition to open / public networks. .

Bettering peer-to-peer connectivity

In Android Q, we now have restructured the Wi-Fi stack to enhance privateness and efficiency, in addition to to enhance widespread use circumstances, similar to IoT system administration and Web connection suggestion, with out the necessity for Web entry. Location authorization.

Community Connection APIs make it straightforward to handle IoT gadgets over native Wi-Fi for peer-to-peer features similar to setup, downloading, or printing. Purposes provoke connection requests not directly by specifying most well-liked SSIDs and BSSIDs as WiFiNetworkSpecifiers. The platform manages the Wi-Fi scan itself and shows the corresponding networks in a Wi-Fi selector. When the person chooses, the platform routinely configures the connection.

The Community Suggestion APIs permit purposes to floor the person's favourite Wi-Fi networks for Web connectivity. Purposes set up connections not directly by offering a categorized listing of networks and identification data within the type of WifiNetworkSuggestions. The platform connects seamlessly primarily based on previous efficiency when these networks are at hand.

Wi-Fi efficiency mode

Now you can request an adaptive Wi-Fi connection in Android Q by enabling excessive efficiency and low latency modes. These will current a terrific benefit when low latency is vital for the person expertise, similar to real-time gaming, energetic voice calls and related use circumstances.

To make use of the brand new efficiency modes, name WifiManager.WifiLock.createWifiLock () with WIFI_MODE_FULL_LOW_LATENCY or WIFI_MODE_FULL_HIGH_PERF. In these modes, the platform works with the system firmware to fulfill the necessities whereas minimizing energy consumption.

Digital camera, media, graphics

Dynamic depth format for pictures

Many cameras on cellular gadgets can simulate a shallow depth of discipline by making the background or background blurry with respect to the topic. They seize depth metadata for numerous factors within the picture and apply static blur to the picture, after which they reject the depth metadata.

From Android Q, purposes can request a dynamic depth picture consisting of JPEG, XMP metadata related to depth-related gadgets, in addition to a depth and confidence map embedded in the identical file on assistive gadgets.

Request a JPEG + Dynamic Depth picture lets you present specialised blur and bokeh choices to your software. You may even use the information to create 3D photographs or assist use circumstances of RA pictures sooner or later. We’re making Dynamic Depth an open format for the ecosystem and we’re working with our system producer companions to make it out there on all gadgets working Android Q and later.

The Dynamic Depth picture lets you present specialised blur and bokeh choices in your software.

New audio and video codecs

Android Q introduces AV1 open supply video codec assist. This enables media suppliers to broadcast top quality video content material to Android gadgets utilizing much less bandwidth. As well as, Android Q helps audio coding with the assistance of Opus, an optimized codec for streaming speech and music, and HDR10 + for high-dynamic-range video on the gadgets that assist it.

The MediaCodecInfo API offers a neater approach to decide the video rendering capabilities of an Android system. For a given codec, you will get an inventory of supported sizes and body charges utilizing VideoCodecCapabilities.getSupportedPerformancePoints (). This lets you select the highest quality video content material to play again on any system.


Pour les purposes qui effectuent leur traitement audio en C ++, Android Q introduit une API MIDI native pour communiquer avec les périphériques MIDI through le NDK. Cette API permet de récupérer des données MIDI dans un rappel audio à l'aide d'une lecture non bloquante, permettant ainsi le traitement à faible latence des messages MIDI. Essayez-le avec l'exemple d'software et le code supply ici.

ANGLE sur Vulkan

Pour permettre une plus grande cohérence aux développeurs de jeux et d’photographs, nous travaillons à la mise au level d’un pilote OpenGL commonplace pouvant être mis à jour pour tous les périphériques construits sur Vulkan. Dans Android Q, nous ajoutons un assist expérimental pour ANGLE en plus de Vulkan sur les appareils Android. ANGLE est une couche d'abstraction graphique conçue pour une compatibilité OpenGL hautes performances pour toutes les implémentations. Grâce à ANGLE, les nombreuses purposes et jeux utilisant OpenGL ES peuvent tirer parti des performances et de la stabilité de Vulkan, ainsi que d’une implémentation cohérente et indépendante des ES sur des appareils Android. Sous Android Q, nous prévoyons de prendre en cost OpenGL ES, ES étant prochainement sur notre feuille de route.

Nous étendrons l'implémentation avec davantage de fonctionnalités OpenGL, de corrections de bugs et d'optimisations de performances. Consultez la documentation pour plus de détails sur la prise en cost actuelle de ANGLE dans Android, sur son utilisation et sur nos projets. Vous pouvez commencer à tester avec notre assist preliminary en activant l'possibility through les choices de développeur dans les paramètres. Essayez-le aujourd'hui!

Vulkan partout

Nous continuons à étendre l'impression de Vulkan sur Android, grâce à notre implémentation de l'API multiplate-forme peu coûteuse pour des graphismes 3D hautes performances. Notre objectif est de faire de Vulkan sur Android une API de développement graphique cohérente et largement prise en cost. Nous travaillons en collaboration avec nos partenaires fabricants d'appareils pour rendre Vulkan 1.1 obligatoire sur tous les appareils 64 bits fonctionnant sous Android Q et variations ultérieures, ainsi qu'une recommandation pour tous les appareils 32 bits. À l'avenir, cela aidera à fournir une API graphique hautes performances uniforme pour les purposes et les jeux.

Réseaux de neurones API 1.2

Depuis l'introduction de l'API Neural Networks (NNAPI) en 2017, nous avons continué à augmenter le nombre d'opérations prises en cost et à améliorer les fonctionnalités existantes. Sous Android Q, nous avons ajouté 60 nouvelles opérations, y compris ARGMAX, ARGMIN, LSTM quantifié, ainsi qu’une gamme d’optimisations des performances. Ceci jette les bases pour accélérer une gamme beaucoup plus giant de modèles, tels que ceux pour la détection d'objets et la segmentation d'photographs. Nous travaillons avec des fournisseurs de matériel et des infrastructures d’apprentissage automatique populaires telles que TensorFlow pour optimiser et déployer la prise en cost de NNAPI 1.2.

Renforcement des fondations d'Android

Efficiency ART

Android Q introduit plusieurs nouvelles améliorations dans l'exécution ART, permettant aux purposes de démarrer plus rapidement et de consommer moins de mémoire, sans nécessiter de travail de la half des développeurs.

Depuis Android Nougat, ART suggest l’optimisation guidée par profil (PGO), qui accélère le démarrage des purposes au fil du temps en identifiant et précompilant les events fréquemment exécutées de votre code. Pour faciliter le démarrage preliminary des purposes, Google Play fournit désormais des profils basés sur le cloud ainsi que des fichiers APK. Ce sont des profils ART agrégés et anonymisés qui permettent à ART de pré-compiler des events de votre software même avant son exécution, ce qui accélère considérablement le processus d'optimisation world. Les profils en nuage profitent à toutes les purposes et sont déjà disponibles pour les appareils fonctionnant sous Android P et variations ultérieures.

Nous continuons également à améliorer le traitement antirétroviral lui-même. Par exemple, dans Android Q, nous avons optimisé le processus Zygote en démarrant le processus de votre software plus tôt et en le déplaçant vers un conteneur de sécurité afin qu'il soit prêt à être lancé immédiatement. Nous stockons plus d'informations dans l'picture de section de l'software, telles que des lessons, et utilisons des threads pour charger l'picture plus rapidement. Nous ajoutons également le service de récupération de place Generational au collecteur de place de copie simultanée (CC) de ART. Générationnel, le CC est plus efficace automobile il collecte les objets de la nouvelle génération séparément, ce qui entraîne des coûts bien moindres par rapport au GC complet, tout en conservant une bonne quantité d’espace. Cela rend globalement la récupération de place plus efficace en termes de temps et de temps processeur, réduit les effets de jank et permet aux purposes de mieux s'exécuter sur les appareils bas de gamme.

Sécurité pour les purposes

BiometricPrompt est notre infrastructure d'authentification unifiée qui prend en cost la biométrie au niveau du système. Dans Android Q, nous étendons la prise en cost des méthodes d’authentification passive telles que face et ajoutons des flux d’authentification implicites et explicites. Dans le flux explicite, l'utilisateur doit explicitement confirmer la transaction dans le TEE lors de l'authentification. Le flux implicite est conçu pour offrir une different plus légère aux transactions avec authentification passive. Nous avons également amélioré la answer de secours pour les informations d'identification du périphérique, le cas échéant.

Android Q ajoute la prise en cost de TLS 1.three, une révision majeure du commonplace TLS qui inclut des avantages en termes de performances et une sécurité améliorée. Nos exams indiquent que les connexions sécurisées peuvent être établies jusqu’à 40% plus rapidement avec TLS 1.three par rapport à TLS 1.2. TLS 1.three est activé par défaut pour toutes les connexions TLS. Voir la documentation pour plus de détails.

Compatibilité through les API publiques

Une autre selected qui nous importe tous est de veiller à ce que les purposes fonctionnent sans heurts à mesure que le système d'exploitation change et évolue. Les purposes utilisant des API non-SDK risquent de provoquer des pannes pour les utilisateurs et des déploiements d'urgence pour les développeurs. Dans Android Q, nous poursuivons notre effort à lengthy terme commencé dans Android P pour déplacer les purposes vers des API publiques uniquement. Nous savons qu'il faudra du temps pour que votre software s'éloigne des API autres que celles du SDK. Nous vous en avisons donc à l'avance.

Dans Android Q, nous limitons l'accès à davantage d'interfaces non-SDK et vous demandons d'utiliser les équivalents publics à la place. Pour vous aider à faire la transition et empêcher vos purposes de se rompre, nous activons les restrictions uniquement lorsque votre software cible Android Q. Nous allons continuer à ajouter des API publiques alternate options en fonction de vos demandes. Dans les cas où aucune API publique ne correspond à votre cas d'utilisation, veuillez nous en informer.

Il est vital de tester dans vos purposes l'utilisation des interfaces non SDK. Nous vous recommandons d'utiliser la méthode StrictMode detectNonSdkApiUsage () pour avertir lorsque votre software accède à des API non-SDK through réflexion ou JNI. Même si les API sont actuellement exemptées (liste grise), il est préférable de planifier pour l'avenir et d'éliminer leur utilisation afin de réduire les problèmes de compatibilité. Pour plus de détails sur les restrictions dans Android Q, consultez le information du développeur.

Android moderne

Nous étendons nos efforts pour que toutes les purposes tirent pleinement parti des fonctionnalités de sécurité et de performances de la dernière model d'Android. Plus tard cette année, Google Play vous demandera de définir la variable targetSdkVersion de votre software sur 28 (Android 9 Pie) dans les nouvelles purposes et les mises à jour. Conformément à ces modifications, Android Q avertira les utilisateurs par le biais d'une boîte de dialogue lorsqu'ils lanceront une software qui cible une plate-forme antérieure au niveau 23 de l'API (Android Marshmallow). Voici une liste de contrôle des ressources pour vous aider à migrer votre software.

Nous faisons également évoluer l'écosystème vers la disponibilité pour les appareils 64 bits. Plus tard cette année, Google Play nécessitera une prise en cost 64 bits dans toutes les purposes. Si votre software utilise des kits de développement logiciel (SDK) ou des bibliothèques natifs, n'oubliez pas que vous devez fournir des variations 64 bits compatibles de ces kits de développement logiciel ou de ces bibliothèques. Consultez le information du développeur pour savoir remark vous préparer.

Démarrez avec Android Q Beta

Avec d'importantes fonctionnalités de confidentialité susceptibles d'affecter vos purposes, nous vous recommandons de commencer immédiatement les exams. En particulier, vous souhaiterez activer et tester les modifications de stockage Android Q, les nouveaux états d'autorisation d'emplacement, les restrictions relations au lancement d'purposes en arrière-plan et les restrictions relations aux identificateurs de périphérique. Voir la documentation de confidentialité pour plus de détails.

Pour commencer, installez simplement votre software actuelle à partir de Google Play sur un appareil ou un appareil virtuel Android exécutant Android Q Beta et utilisez les flux utilisateur. L'software doit fonctionner et avoir fière attract, et gérer correctement les changements de comportement d'Android Q pour toutes les purposes. Should you discover points, we suggest fixing them within the present app, with out altering your focusing on degree. Check out the migration information for steps and a advisable timeline.

Subsequent, replace your app's targetSdkVersion to 'Q' as quickly as attainable. This allows you to check your app with the entire privateness and safety features in Android Q, in addition to another habits modifications for apps focusing on Q.

Discover the brand new options and APIs

While you're prepared, dive into Android Q and study in regards to the new options and APIs you should utilize in your apps. Check out the API diff report, the Android Q Beta API reference, and developer guides as a place to begin. Additionally, on the Android Q Beta developer website, you'll discover launch notes and assist assets for reporting points.

To construct with Android Q, obtain the Android Q Beta SDK and instruments into Android Studio three.three or greater, and comply with these directions to configure your atmosphere. If you’d like the newest fixes for Android Q associated modifications, we suggest you utilize Android Studio three.5 or greater.

How do I get Android Q Beta?

It's straightforward – you’ll be able to enroll right here to get Android Q Beta updates over-the-air, on any Pixel system (and this yr we're supporting all three generations of Pixel — Pixel three, Pixel 2, and even the unique Pixel!). Downloadable system photographs for these gadgets are additionally out there. Should you don't have a Pixel system, you should utilize the Android Emulator, and obtain the newest emulator system photographs through the SDK Supervisor in Android Studio.

We plan to replace the preview system photographs and SDK frequently all through the preview. We'll have extra options to share because the Beta program strikes ahead.

As at all times, your suggestions is vital, so please tell us what you suppose — the earlier we hear from you, the extra of your suggestions we will combine. While you discover points, please report them right here. Now we have separate hotlists for submitting platform points, app compatibility points, and third-party SDK points.