sepolicy/vendor/service_contexts
0 → 100644
+1
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Android 13 transitions DRM HALs from HIDL to AIDL. This commit fixes Widevine support by addressing missing sepolicies that caused service failures.
1. Add `service_contexts` entry. Without this, the service manager defaults to `default_android_service`, causing SELinux denials for apps trying to find the AIDL interface:
avc: denied { find } for name=android.hardware.drm.IDrmFactory/widevine scontext=u:r:untrusted_app_30:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager
2. Update `file_contexts`. The binary was labeled as generic `vendor_file`, preventing init from transitioning it to the `hal_drm_widevine` domain:
init: File /vendor/bin/hw/android.hardware.drm-service.widevine (labeled "u:object_r:vendor_file:s0") has incorrect label or no domain transition
Test:
- Boot device successfully
- Verify no SELinux denials for widevine in logcat
- Verify DRM L1/L3 status in DRM Info app
Change-Id: Iab7f36e80b8bdaaf525a3397e2f8c158e0cc4434
Signed-off-by:
Jackeagle <jackeagle102@gmail.com>