From 81a2d98649667c3f39daecef0f1a164bdc458e57 Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Mon, 2 Mar 2026 20:50:27 +0200 Subject: [PATCH] Add microphone spoofing state accessor to IPackageManagerNative --- .../aidl/android/content/pm/IPackageManagerNative.aidl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl index 9594439832..810d0d16cb 100644 --- a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +++ b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl @@ -179,4 +179,13 @@ interface IPackageManagerNative { * and failed due to that permission being denied. */ oneway void onDeniedSpecialRuntimePermissionOp(in String permissionName, int uid, in String packageName); + + /** + * Returns true if mic spoofing is enabled for the given UID. + * Checks the MIC_SPOOFING_ENABLED flag in GosPackageState for the first package + * associated with the UID. + * @hide + */ + boolean isMicSpoofingEnabledForUid(int uid); + }