Skip to content

OEM unlocking allowed status incorrect #292

@S734M

Description

@S734M

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions