OEM unlocking allowed status incorrect
Hi,
After performing a device audit the "information provided by the verified OS" section lists "OEM unlocking allowed" as returning "no" when it is in fact allowed on the device being audited.
This appears to be because the call:
SystemProperties.get("sys.oem_unlock_allowed", "0");
Results in the following denial:
auditd : avc=type=1400 audit(0.0:21191): avc: denied { read } for comm="getprop" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=469 scontext=u:r:untrusted_app:s0:c109,c256,c512,c768 context=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=app.attestation.auditor
This seems to be reproducible on all of my devices, let me know if you need anymore information.
Thankyou
Seems like this is another thing we'll need to migrate to an extension API for system apps as a GrapheneOS exclusive feature.
This change appears to have happened with Android 15 QPR2.