Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libs/binder/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ aidl_interface {
"aidl/android/content/pm/ApexStagedEvent.aidl",
"aidl/android/content/pm/IPackageManagerNative.aidl",
"aidl/android/content/pm/IStagedApexObserver.aidl",
"aidl/android/content/pm/MicrophoneScopeInfo.aidl",
"aidl/android/content/pm/PackageInfoNative.aidl",
"aidl/android/content/pm/SignatureNative.aidl",
"aidl/android/content/pm/SigningInfoNative.aidl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package android.content.pm;

import android.content.pm.IStagedApexObserver;
import android.content.pm.MicrophoneScopeInfo;
import android.content.pm.PackageInfoNative;
import android.content.pm.StagedApexInfo;

Expand Down Expand Up @@ -179,4 +180,11 @@ interface IPackageManagerNative {
* and failed due to that permission being denied.
*/
oneway void onDeniedSpecialRuntimePermissionOp(in String permissionName, int uid, in String packageName);

/**
* Returns microphone scope information for the given UID.
* Used by audio system to determine if microphone input should be spoofed.
* Returns null if microphone scopes are not enabled for any package with this UID.
*/
@nullable MicrophoneScopeInfo getMicrophoneScopeInfo(int uid, int userId);
}
12 changes: 12 additions & 0 deletions libs/binder/aidl/android/content/pm/MicrophoneScopeInfo.aidl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package android.content.pm;

/**
* @hide
*/
parcelable MicrophoneScopeInfo {
/** Whether microphone scopes are enabled for this app */
boolean enabled;

/** Path to the audio file in /data/system/microphone_scopes/ */
@nullable @utf8InCpp String audioFilePath;
}