# Battery Manager
- [Introduction](#section11660541593)
- [Directory Structure](#section19472752217)
- [Repositories Involved](#section63151229062)
## Introduction
The Battery Manager module provides the following functions:
1. Obtaining battery information
2. Obtaining the battery charging status and the battery state of charge (SoC)
3. Power off charging
**Figure 1** Architecture of the Battery Manager module
![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsystem")
## Directory Structure
```
base/powermgr/battery_manager
├── figures # Architecture
├── frameworks # Framework layer
│ ├── napi # NAPI layer
│ └── native # Native layer
├── interfaces # API layer
│ └── inner_api # Internal APIs
├── sa_profile # SA profile
└── services # Service layer
│ └── native # Native layer
│ └── zidl # Zidl API layer
├── test # Test cases
│ ├── fuzztest # Fuzz test
│ ├── unittest # Unit test
│ ├── systemtest # System test
│ └── utils # Test tools
└── utils # Utilities
```
## Repositories Involved
[Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md)
[powermgr_power_manager](https://gitee.com/openharmony/powermgr_power_manager)
[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager)
**powermgr_battery_manager**
[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager)
[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics)
[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite)
[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite)