Google has released the latest Android Q Beta 1 to developers. The Android update is currently available to Pixel, Pixel XL, Pixel 2, Pixel 2 XL, Pixel 3 and Pixel 3 XL devices. According to Google, Android Q comes with more improve privacy and security features for users.
Features of Android Q include enhancements for foldable devices, Dynamic Depth format for photos, new APIs for connectivity, new media codecs and camera capabilities, NNAPI extensions, Vulkan 1.1 support, faster app startup, and more.
How To Update To Android Q
- 1 How To Update To Android Q
- 2 Features Of Android Q
- 2.1 Support for Foldables and innovative new screens:
- 2.2 Sharing shortcuts:
- 2.3 Settings Panels:
- 2.4 Connectivity permissions, privacy, and security:
- 2.5 Improved peer-to-peer and internet connectivity:
- 2.6 Wi-Fi performance mode:
- 2.7 Dynamic Depth Format:
- 2.8 New audio and video codecs:
- 2.9 Native MIDI API:
- 2.10 ANGLE on Vulkan:
- 2.11 ART performance improvements:
Features Of Android Q
Support for Foldables and innovative new screens:
To take advantage of foldable devices and other large-screen devices, Android Q brings changes to onResume and onPause to support multi-resume and notify your app when it has focus. It also changes how the resizeableActivity manifest attribute works, to help devlopers manage how their app is displayed on foldable and large screens.
When a user wants to share content like a photo with someone in another app, the process should be fast. In Android Q this is now quicker and easier with Sharing Shortcuts, which let users jump directly into another app to share content. Developers can publish share targets that launch a specific activity in their apps with content attached, and these are shown to users in the share UI. Because they’re published in advance, the share UI can load instantly when launched.
Android Q introduces Settings Panels, an API which allows apps to show settings to users in the context of their app. This prevents users from needing to go into Settings to change things like NFC or Mobile data in order to use the app. For example, suppose a user opens a web browser while their device is in airplane mode. Prior to Android Q, the app could only display a generic message asking the user to open Settings to restore connectivity. With Android Q, the browser app can display an inline panel showing key connectivity settings such as airplane mode, Wi-Fi (including nearby networks), and mobile data. With this panel, users can restore connectivity without leaving the app.
Connectivity permissions, privacy, and security:
Most of the APIs for scanning networks already require COARSE location permission, but in Android Q, for Bluetooth, Cellular and Wi-Fi, protection around those APIs are getting better by requiring the FINE location permission instead. If the app only needs to make peer-to-peer connections or suggest networks, check out the improved Wi-Fi APIs below — they simplify connections and do not require location permission. In addition to the randomized MAC addresses that Android Q provides when connected to different Wi-Fi networks, new Wi-Fi standard support, WPA3 and Enhanced Open are added, to improve security for home and work networks as well as open/public networks.
Improved peer-to-peer and internet connectivity:
Android Q adds support for peer-to-peer connections. This feature enables your app to prompt the user to change the access point that the device is connected to. The peer-to-peer connection is used for non-network-providing purposes, such as bootstrapping configuration for secondary devices like Chromecast and Google Home hardware. The network suggestion APIs let apps surface preferred Wi-Fi networks to the user for internet connectivity. Apps initiate connections indirectly by providing a ranked list of networks and credentials as WifiNetworkSuggestions. The platform will seamlessly connect based on past performance when in range of those networks.
Wi-Fi performance mode:
Android Q allows you to provide a hint to the underlying modem to minimize latency. Android Q extends the Wi-Fi lock API to effectively support high-performance mode and low-latency mode. Wi-Fi power save is disabled for high-performance and low-latency mode, and further latency optimization may be enabled in low-latency mode, depending on modem support. Low-latency mode is only enabled when the application acquiring the lock is running in the foreground and the screen is on. The low-latency mode is especially helpful for real-time mobile gaming applications.
Dynamic Depth Format:
Starting in Android Q, cameras can store the depth data for an image in a separate file, using a new schema called Dynamic Depth Format (DDF). Apps can request both the JPG image and its depth metadata, using that information to apply any blur they want in post-processing without modifying the original image data.
New audio and video codecs:
Android Q introduces support for the open source video codec AV1. This allows media providers to stream high quality video content to Android devices using less bandwidth. In addition, Android Q supports audio encoding using Opus – a codec optimized for speech and music streaming, and HDR10+ for high dynamic range video on devices that support it.
Native MIDI API:
The Android Native MIDI API (AMidi) gives application developers the ability to send and receive MIDI data with C/C++code, integrating more closely with their C/C++ audio/control logic and minimizing the need for JNI.
ANGLE on Vulkan:
With the release of Android Q, Android developers and partners have the option to run using ANGLE, a project in the Chrome organization that layers ES on top of Vulkan, instead of using the vendor-provided ES driver.
ART performance improvements:
Android Q introduces several new improvements to the ART runtime which help apps start faster and consume less memory, without requiring any work from developers.
Source: Android Developers Blog