By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Google wants to make Android 16 even better at streaming music and video
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Google wants to make Android 16 even better at streaming music and video
News

Google wants to make Android 16 even better at streaming music and video

News Room
Last updated: 2025/04/05 at 5:27 AM
News Room Published 5 April 2025
Share
SHARE

Mishaal Rahman / Android Authority

TL;DR

  • Android 16 adds support for running media codecs outside of their usual sandboxed process and within the app’s process.
  • Doing this reduces the amount of inter-process communication that needs to typically happen between the app and codec process, thereby reducing CPU usage and thus power consumption.
  • However, this opens the door to security exploits, which is why codecs need to be written in a memory-safe language like Rust for this to be allowed.

Whenever your Android device plays any kind of media, such as songs or YouTube videos, the operating system spawns a number of complex, independent processes to ensure the media is played back securely. This is done to mitigate vulnerabilities that take advantage of malformed media files or insecure media codecs, such as the infamous Stagefright vulnerability from several years ago. While Android’s media file handling is now much more secure, it is also inefficient, which is an issue that a new feature in Android 16 aims to solve.

You’re reading an Authority Insights story. Discover Authority Insights for more exclusive reports, app teardowns, leaks, and in-depth tech coverage you won’t find anywhere else.

A codec is a software algorithm that defines how digital audio or video data is compressed or decompressed. Prior to Android 7.0, the entire media framework was encapsulated in a single, monolithic process that held a lot of sensitive permissions. Because codecs were included, a vulnerability in their media file processing could allow an attacker to escalate privileges.

With Android 7.0, Google hardened the media framework by splitting it into several different processes, each requiring a much smaller set of permissions. Codecs are now run in their own, sandboxed codec process that communicate with other media and app processes using Binder, Android’s inter-process communication (IPC) API. Because the codec process is sandboxed, the impact of vulnerabilities is limited to that sandboxed process. This architectural design reduces the likelihood of another Stagefright-like bug.

Android media framework architecture

Android’s mediaserver architecture.

While more secure, this architecture results in lower performance due to the repeated use of IPC calls. A music streaming app, for example, must make IPC calls to the codec process to pass encoded data and retrieve decoded data. The more IPC calls that need to be made, the higher the CPU usage. Although this only has a small impact on the best Android phones, it’s still worth improving media playback efficiency, especially since it’s such a common user activity.

That’s why Android 16 adds support for in-process software audio codecs, a feature that allows media codecs to run within an app’s process instead of within the usual sandboxed media codec process. Android 16’s MediaCodecInfo class now includes a getSecurityModel() method, returning either SECURITY_MODEL_SANDBOXED (standard sandboxed process) or SECURITY_MODEL_MEMORY_SAFE (in-process operation). The in-process operation, though potentially risky, is deemed safe because the codec’s software implementation is written in a memory-safe language like Rust.

Media codec security model constants in Android 16

Mishaal Rahman / Android Authority

While Android 16’s documentation on this new feature is brief, Google has been developing it for several years. A source tells me that Google presented this feature at the 2023 Mainline Summit, a private event where it shares changes to Project Mainline modules.

Google’s primary motivation for this feature, as revealed in the presentation, is to enhance AAC codec performance and reduce power consumption. The company estimated that up to 50% of the CPU cycles spent on decoding and encoding content in AAC was due to inter-process communication. Therefore, switching to in-process codecs will improve AAC decoding and encoding efficiency. To address security concerns, Google wants these in-process codecs to be written in a memory-safe language like Rust and not C++.

My source tells me that Google originally planned this feature for Android 15, but the company delayed it to Android 16. While Android 16 does support the feature, it’s not actually in use yet. This is due to the need for codecs to be rewritten in Rust by vendors. Testing the new Android 16 APIs on my Pixel 9 Pro, I found all media codecs still utilize the sandboxed approach.

Media codec list on Pixel 9 Pro

Mishaal Rahman / Android Authority

Thus, while Android 16’s new in-process software audio codecs feature should theoretically bring better performance and battery life when playing back media, it’s likely we won’t see these benefits for quite some time. Hopefully Google and codec vendors can collaborate to rewrite many popular codecs in Rust so that we can see the benefits of this new feature in the future.

Got a tip? Talk to us! Email our staff at [email protected]. You can stay anonymous or get credit for the info, it’s your choice.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article The Affordable Car Is About to Go Extinct in the US
Next Article The White House Frames the Past by Erasing Parts of It
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

16 billion hacking accounts in the biggest data leak ever seen 🚨
Mobile
Chinese lidar maker Hesai says it could turn profitable by year end · TechNode
Computing
Best Internet Providers in Jacksonville, Florida
News
Decade-old ‘Shot on iPhone’ ad campaign awarded at Cannes Lions
News

You Might also Like

News

Best Internet Providers in Jacksonville, Florida

12 Min Read
News

Decade-old ‘Shot on iPhone’ ad campaign awarded at Cannes Lions

3 Min Read
News

Screen Recordings Made Easy, Thanks to This On-Sale AI Tool

3 Min Read
News

Get the record-low price on the Nebula Capsule 3 projector before Prime Day

3 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?