Logical multi-camera system metadata
When working with logical cameras that mix a number of bodily digital camera sensors, now you can request further metadata from all energetic bodily cameras concerned in a seize, not simply the first one. Beforehand, you needed to implement workarounds, typically allocating pointless bodily streams, to acquire metadata from secondary energetic cameras (e.g., throughout a lens change for zoom the place a follower digital camera is energetic). This characteristic introduces a brand new key, LOGICAL_MULTI_CAMERA_ADDITIONAL_RESULTS, in CaptureRequest and CaptureResult. By setting this key to ON in your CaptureRequest, the TotalCaptureResult wunwell embody metadata from these further energetic bodily cameras. You’ll be able to entry this complete metadata utilizing TotalCaptureResult.getPhysicalCameraTotalResults() to get extra detailed info that will allow you to optimize useful resource utilization in your digital camera purposes.
Versatile Video Coding (VVC) Help
Android 17 provides assist for the Versatile Video Coding (VVC) customary. This contains defining the video/vvc MIME kind in MediaFormat, including new VVC profiles in MediaCodecInfo, and integrating assist into MediaExtractor. This characteristic can be coming to units with {hardware} decode assist and succesful drivers.
Fixed High quality for Video Recording
Now we have added setVideoEncodingQuality() to MediaRecorder. This lets you configure a relentless high quality (CQ) mode for video encoders, providing you with finer management over video high quality past easy bitrate settings.
Background Audio Hardening
Beginning in Android 17, the audio framework will implement restrictions on background audio interactions together with audio playback, audio focus requests, and quantity change APIs to make sure that these modifications are began deliberately by the consumer.
If the app tries to name audio APIs whereas the applying isn’t in a legitimate lifecycle, the audio playback and quantity change APIs will fail silently with out an exception thrown or failure message supplied. The audio focus API will fail with the end result code AUDIOFOCUS_REQUEST_FAILED.
Privateness and Safety
Deprecation of Cleartext Visitors Attribute
The android:usesCleartextTraffic attribute is now deprecated. In case your app targets (Android 17) or increased and depends on usesCleartextTraffic=”true” with no corresponding Community Safety Configuration, it is going to default to disallowing cleartext visitors. You might be inspired emigrate to Community Safety Configuration recordsdata for granular management.
We’re introducing a public Service Supplier Interface (SPI) for an implementation of HPKE hybrid cryptography, enabling safe communication utilizing a mixture of public key and symmetric encryption (AEAD).
Connectivity and Telecom
Enhanced VoIP Name Historical past
We’re introducing consumer choice administration for app VoIP name historical past integration. This contains assist for caller and participant avatar URIs within the system dialer, enabling granular consumer management over name log privateness and enriching the visible show of built-in VoIP name logs.
Wi-Fi Ranging and Proximity
Wi-Fi Ranging has been enhanced with new Proximity Detection capabilities, supporting steady ranging and safe peer-to-peer discovery. Updates to Wi-Fi Conscious ranging embody new APIs for peer handles and PMKID caching for 11az safe ranging.
Developer Productiveness and Instruments
Updates for companion system apps
Now we have launched two new profiles to the CompanionDeviceManager to enhance system distinction and permission dealing with:
Medical Gadgets: This profile permits medical system cell purposes to request all mandatory permissions with a single faucet, simplifying the setup course of.
Health Trackers: The DEVICE_PROFILE_FITNESS_TRACKER profile permits companion apps to explicitly point out they’re managing a health tracker. This ensures correct consumer experiences with distinct icons whereas reusing current watch position permissions.
Additionally, the CompanionDeviceManager now gives a unified dialog for system affiliation and Close by permission requests. You’ll be able to leverage the brand new setExtraPermissions technique in AssociationRequest.Builder to bundle close by permission prompts inside the current affiliation circulation, lowering the variety of dialogs introduced to the consumer.
Get began with Android 17
