Android P[1] is expected to be Google's[2] next upgrade for its popular mobile operating system. While we might still be a few months away from the launch - most likely around Google's I/O[3] event - source code commits have surfaced online describing a few key features of Android P. Two of these source code commits are of particular interest as they restrict background apps on the OS from accessing your device's microphone and camera while running in the background.

Commits from the Android Open Source Project[4] (AOSP[5]), first spotted[6] by XDA Developers[7], have been found to restrict specific access for third-party apps running on Android P-powered devices. The first one[8] prevents apps running in background from accessing the camera. It will work by targeting UIDs or User IDs that are assigned to each application, by Google, when it is installed on the device. The camera app on Android P will detect which UIDs are in "idle" state and block access to them accordingly. Add to that, subsequent camera requests are also expected to be denied even if access has been provided at the time of installation.

google aosp camera source code Android P AOSP Camera Source Code

On the other hand, Android P will also block apps[9] in "idle" state from accessing the microphone. In both cases, the software will send errors to the apps in case of access requests received when they are running in the background.

google aosp mic source code Android P AOSP Source Code Microphone

The report claims that Google has been building a foundation for these features since Android 6.0 Marshmallow[10], which favoured apps that had "foreground and user-visible activities". Several reports in the past have alleged that Android apps are...

Read more from our friends at NDTV/Gadgets