#include "takephotos/include/TakephotosModel.h"
#include "message/include/MessageModel.h"
#include "assistant/include/AssistantModel.h"
-#include "battery_hal.h"
#include "main/include/dial/DialModelCharge.h"
#include "schedule/include/ScheduleModel.h"
#include "sleep/include/SleepModel.h"
#include "main/include/MainModel.h"
+#ifdef SUPPORT_BATTERY_SERVICE
+#include "battery_hal.h"
+#endif
namespace OHOS {
#include "NativeRegisterManager.h"
#include "health/health_service/health_service.h"
+
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
+
#include "ConfigModelC.h"
#include "ConfigModel.h"
#include <custom_utils.h>
#include "ConfigModel.h"
#include "MainViewSample.h"
#include "NativeAbility.h"
+
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-#include "health/BloodCardView.h"
+#endif
+#include "health/BloodCardView.h"
#include <custom_save_runtime.h>
#define MAX_UNWARE_COUNT 10
#include "MainModel.h"
#include "health/health_service/health_service.h"
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
#include "NativeRegisterManager.h"
#include "KeyInputListener.h"
#include "common/key_code.h"
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-
+#endif
#include "heartrate/include/HeartResultView.h"
namespace OHOS
#include <sys/stat.h>\r
#include <unistd.h>\r
\r
+#ifdef SUPPORT_BATTERY_SERVICE\r
#include "battery_hal.h"\r
+#endif\r
\r
#include "languagecode/LanguageInit.h"\r
#include "ui_service.h"\r
#include "cywee_service.h"
#endif
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
#include "health/health_service/health_service.h"
#include "NativeRegisterManager.h"
{
#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-extern uint8_t battery_get_voltage(float *voltage);
#endif
}
#include "DialBoxProgressView.h"
#include "wearable_log.h"
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-extern uint8_t battery_get_voltage(float *voltage);
+#endif
// 定义电量宏
#define BATTERY_LOW_THRESHOLD 10
#include <string>
#include "wearable_log.h"
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-extern uint8_t battery_get_voltage(float *voltage);
+#endif
REGIST_DIAL_MODULE(OHOS::DialDataType::BATTERY, OHOS::DialModelPower::GetInstance());
#include "wearable_log.h"
#include <string>
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-extern uint8_t battery_get_voltage(float *voltage);
+#endif
REGIST_DIAL_MODULE(OHOS::DialDataType::BATTERY_LEVEL,
OHOS::DialModelPowerMapper::GetInstance());
#include "wearable_log.h"
#include <string>
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-extern uint8_t battery_get_voltage(float *voltage);
+#endif
REGIST_DIAL_MODULE(OHOS::DialDataType::POWER_STANDBY,
OHOS::DialModelPowerStanby::GetInstance());
#include "main/include/dial/DialModelPowerStr.h"
#include "main/include/dial/RegisterDialModel.h"
#include "wearable_log.h"
+
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
-extern uint8_t battery_get_voltage(float *voltage);
+#endif
namespace OHOS
{
#include <sstream>
#include <string>
+
+#ifdef SUPPORT_BATTERY_SERVICE
+#include "battery_hal.h"
+#endif
+
extern "C" {
// #include "build_version.h"
// const char *get_version_string(void);
-#include "battery_hal.h"
+
#include "build_version.h"
-extern uint8_t battery_get_voltage(float *voltage);
// const char *get_version_string(void);
bool resfile_checksum_thread(void);
#include "NativeAbility.h"\r
#include "common/key_code.h"\r
#include "cmsis_os.h"\r
+\r
+#ifdef SUPPORT_BATTERY_SERVICE\r
#include "battery_hal.h"\r
+#endif\r
+\r
+\r
#include "custom_utils.h"\r
#include "saveele/include/SaveBatPresenter.h"\r
#include "saveele/include/SaveBatView.h"\r
#include <iostream>\r
#include <chrono>\r
#include <thread>\r
+\r
+#ifdef SUPPORT_BATTERY_SERVICE\r
#include "battery_hal.h"\r
+#endif\r
+\r
+\r
#include "string"\r
#include "custom_utils.h"\r
#include "UiConfig.h"\r
#include "bleService.h"\r
#endif\r
\r
+#ifdef SUPPORT_BATTERY_SERVICE\r
#include "battery_hal.h"\r
+#endif\r
\r
#include "UiConfig.h"\r
\r
#include "cmsis_os2.h"
#include "linux/delay.h"
#include "components/ui_circle_progress.h"
+
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
+
#include "uicomponents/UIComponents.h"
#include "charge_notification.h"
#include "bleInstruct.h"
#endif
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
#include "battery_service.h"
+#endif
+
+
#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_tcpServer.h"
#include "producttest/include/testPresenter.h"
#include "producttest/include/testchanging.h"
#include "producttest/include/testchangingC.h"
+
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
+
#include "producttest/include/testView.h"
#include "cmsis_os2.h"
#ifdef __cplusplus
#include "sys/time.h"
#include "time.h"
#include "ConfigModelC.h"
+
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
+
#include "custom_save_runtime.h"
#include "cywee_data.h"
#include "cywee_dml.h"
#include "bts_le_gap.h"
#include "bts_br_gap.h"
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
#include "bleService.h"
#include "alipay_feature.h"
#include "stdbool.h"\r
#include "bts_br_gap.h"\r
\r
+#ifdef SUPPORT_BATTERY_SERVICE\r
#include "battery_hal.h"\r
+#endif\r
\r
#include "bleService.h"\r
#include "alipay_feature.h"\r
\r
#include "bts_le_gap.h"\r
#include "bts_br_gap.h"\r
+\r
+#ifdef SUPPORT_BATTERY_SERVICE\r
#include "battery_hal.h"\r
+#endif\r
+\r
#include "bleService.h"\r
#include "alipay_feature.h"\r
#ifdef AILPAY_SUPPORT\r
// #include "message_notification.h"
// #include "MessageModel.h"
#include "system/include/SystemLogModelC.h"
-#ifdef FD230_650
-#include "PhoneServiceC.h"
+#ifdef SUPPORT_BATTERY_SERVICE
#include "battery_hal.h"
+#endif
+
+
+#ifdef FD230_650
+#include "PhoneServiceC.h"
#include "Bluetooyhpabpserver.h"