Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::oemlock::OemLock Class Reference

#include <oemlock.h>

Collaboration diagram for cuttlefish::oemlock::OemLock:
Collaboration graph
[legend]

Public Member Functions

 OemLock (secure_env::Storage &storage)
 
Result< bool > IsOemUnlockAllowedByCarrier () const
 
Result< bool > IsOemUnlockAllowedByDevice () const
 
Result< bool > IsOemUnlockAllowed () const
 
Result< bool > IsOemLocked () const
 
Result< void > SetOemUnlockAllowedByCarrier (bool allowed)
 
Result< void > SetOemUnlockAllowedByDevice (bool allowed)
 
Result< void > SetOemLocked (bool locked)
 

Private Attributes

secure_env::Storagestorage_
 

Detailed Description

OEMLock TPM server interface

Inspired by OemLock HAL interface: https://cs.android.com/android/platform/superproject/+/master:hardware/interfaces/oemlock/aidl/default/Android.bp

Constructor & Destructor Documentation

◆ OemLock()

cuttlefish::oemlock::OemLock::OemLock ( secure_env::Storage storage)

Member Function Documentation

◆ IsOemLocked()

Result< bool > cuttlefish::oemlock::OemLock::IsOemLocked ( ) const

◆ IsOemUnlockAllowed()

Result< bool > cuttlefish::oemlock::OemLock::IsOemUnlockAllowed ( ) const

◆ IsOemUnlockAllowedByCarrier()

Result< bool > cuttlefish::oemlock::OemLock::IsOemUnlockAllowedByCarrier ( ) const

◆ IsOemUnlockAllowedByDevice()

Result< bool > cuttlefish::oemlock::OemLock::IsOemUnlockAllowedByDevice ( ) const

◆ SetOemLocked()

Result< void > cuttlefish::oemlock::OemLock::SetOemLocked ( bool  locked)

◆ SetOemUnlockAllowedByCarrier()

Result< void > cuttlefish::oemlock::OemLock::SetOemUnlockAllowedByCarrier ( bool  allowed)

◆ SetOemUnlockAllowedByDevice()

Result< void > cuttlefish::oemlock::OemLock::SetOemUnlockAllowedByDevice ( bool  allowed)

Member Data Documentation

◆ storage_

secure_env::Storage& cuttlefish::oemlock::OemLock::storage_
private

The documentation for this class was generated from the following files: