Android P Will Block Background Apps from Accessing Phone's Camera & Microphone

LASER_oneXM

Level 37
Thread author
Verified
Top Poster
Well-known
Feb 4, 2016
2,520
Android P, the next major version of the Android operating system, will block idle (background) applications from accessing a smartphone's camera or microphone.

Both of these changes were approved and merged into the Android source code on Monday [1, 2].

If a UID is idle (being in the background for more than cartain amount of time) it should not be able to use the camera. If the UID becomes idle we generate an eror and close the cameras for this UID. If an app in an idle UID tries to use the camera we immediately generate an error. Since apps already should handle these errors it is safe to apply this policy to all apps to protect user privacy.


If a UID is in an idle state we don't allow recording to protect user's privacy. If the UID is in an idle state we allow recording but report empty data (all zeros in the byte array) and once the process goes in an active state we report the real mic data. This avoids the race between the app being notified aboout its lifecycle and the audio system being notified about the state of a UID.



Imposing limitations on the ability to access the camera and microphone by an unfocused background app was more than necessary.

Capabilities previously abused by malware authors
Most of today's malware and commercial spyware products are abusing these two features to take images of victims' surroundings or record nearby conversations.

Features like these aren't new but have been found in malware for four-five years. It's a mystery why the Android Open Source Project (AOSP) took so long to implement them in the first place.
 

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top