045b893ec4
Signed-off-by:zhang_along<zhangalong@huawei.com> Signed-off-by: zhangalong <zhangalong@huawei.com> |
||
---|---|---|
figures | ||
frameworks | ||
interfaces | ||
sa_profile | ||
services | ||
test | ||
tools | ||
.gitattributes | ||
bundle.json | ||
hisysevent.yaml | ||
LICENSE | ||
OAT.xml | ||
os_account.gni | ||
README_zh.md | ||
README.md |
os_account
Introduction
In a standard system, the OS account module supports login status management of distributed cloud accounts, interconnection with vendors' cloud account apps on the device side, and query and update of the cloud account login status.
Architecture
Figure 1 OS account architecture
Directory Structure
/base/account/os_account
├── common # Common basic code
│ ├── account_error # Error codes
│ ├── log # Code for printing logs
│ ├── perf_stat # Performance statistics
│ └── test # Test code of common modules
├── interfaces # APIs exposed externally
│ └── innerkits # Header files for internal modules
├── kits # Development framework
├── sa_profile # SA profile
├── services # Service code
│ └── accountmgr # Account manager service
└── test # Test code
└── resource # Test resources
Usage
Available APIs
The APIs available for distributed accounts can be called to query and update the account login status, and are supported only by system apps.
Table 1 Description of the distributed account module
Provides methods for managing the distributed account module. |
Table 2 Classes for distributed accounts
Provides methods for querying and updating the login status of distributed accounts. |
|
Provides methods for querying distributed account information, including the account name, UID, and login status. |
Table 3 Methods for the distributed account module
function getDistributedAccountAbility(): DistributedAccountAbility |
Table 4 DistributedAccountAbility description
Repositories Involved
Account subsystem
account_os_account