#include <netinet/in.h>
#include <byteswap.h>
+#ifndef SUPPORT_CAT1_SERVICE
int socket(int domain, int type, int protocol)
{
return 0;
union { int i; char c; } u = { 1 };
return u.c ? bswap_32(n) : n;
}
+
+#endif
\ No newline at end of file
#include "dial_sos_c.h"
#endif
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
#include "cat1_server.h"
+#endif
#include "AlarmClockModel.h"
#ifdef SUPPORT_PHONE_SERVICE
NotificationManager::GetInstance()->SetWatchCallStatus(false);
DisshakeTimer();
+ #ifdef SUPPORT_CAT1_SERVICE
set_call_hungup_flag(0);
+ #endif
#ifdef FD230_650
set_TransCallToMobilePhone_falg(0);
{
+ #ifdef SUPPORT_CAT1_SERVICE
if(get_call_hungup_flag()>=2)
{
cat1_handle_call_disconnected((char *)CallerLogModel::GetInstance()->GetPhoneNumber().c_str());
{
set_call_hungup_flag(get_call_hungup_flag()+1);
}
+ #endif
}
}
#include "graphic_math.h"\r
#include "string.h"\r
#include "displaybrightness/include/DisplayBrightnessPresenter.h"\r
+#ifdef SUPPORT_CAT1_SERVICE\r
#include "cat1_ctl.h"\r
+#endif\r
#include "displaybrightness/include/DisplayBrightnessModel.h"\r
#include "power_display_service.h"\r
#include "common/key_code.h"\r
#include "ConfigModel.h"
extern "C" {
+ #ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
bool cat1_api_is_cat1_enabled(void);
+ #else
+ bool cat1_api_is_cat1_enabled(void){return false;};
+ #endif
}
#include "dnotdisturb/include/DnotDisturbModel.h"
#include "wearable_log.h"
#include "UiConfig.h"
#include "PhoneService.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_server.h"
#include "cat1_server_hal.h"
+#endif
#include "custom_utils.h"
#include "phone/include/phoneaddressmodel.h"
#include "MainCallingView.h"
#include "PhoneService.h"
#include "WaitingHintsView.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_server.h"
#include "cat1_server_hal.h"
+#endif
#include "custom_utils.h"
#include "wearable_log.h"
#include "PhoneService.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_server.h"
#include "cat1_server_hal.h"
+#endif
#include "phone/include/phoneaddressmodel.h"
#include "networkandcall/include/NetworkAndCallC.h"
extern "C" {
+ #ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
bool cat1_api_is_cat1_enabled(void);
+ #endif
}
#include "NativeRegisterManager.h"
{
uapi_set4GCapability(true);
+ #ifdef SUPPORT_CAT1_SERVICE
ConfigModel::GetInstance()->SetCat1_4Gability(cat1_api_is_cat1_enabled());
+ #else
+ ConfigModel::GetInstance()->SetCat1_4Gability(false);
+ #endif
if(p_NetworkAndCallView->GetVoLTEToggleButton())
{
#include "ConfigModel.h"
extern "C" {
+ #ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
bool cat1_api_is_cat1_enabled(void);
+ #endif
}
#include "ui_resource_string.h"
MobileData_toggleButton->SetPosition(298, 145, 100, 50);
}
+ #ifdef SUPPORT_CAT1_SERVICE
MobileData_toggleButton->SetState(cat1_api_is_cat1_enabled());
+ #else
+ MobileData_toggleButton->SetState(ConfigModel::GetInstance()->GetCat1_4Gability());
+ #endif
MobileData_toggleButton->SetStyle(STYLE_BACKGROUND_OPA, 0x00);
MobileData_toggleButton->SetImages(PNG_TOGGLEBUTTON_ON_IMAGE, PNG_TOGGLEBUTTON_OFF_IMAGE);
#include <custom_utils.h>
#include "phone/include/TelephonyInitInterface.h"
#include "phone/include/phoneaddressmodel.h"
-#include "cat1_server_hal.h"
#include "PhoneService.h"
#include "custom_runtime.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
+#include "cat1_server_hal.h"
+#endif
#include "NativeRegisterManager.h"
namespace OHOS
#include "string"\r
#include "phone/include/PhoneCallPresenter.h"\r
#include <iostream>\r
+#ifdef SUPPORT_CAT1_SERVICE\r
#include "cat1_server_hal.h"\r
+#endif\r
#include "PhoneService.h"\r
#include "phone/include/PhoneCallView.h"\r
#include "phone/include/TelephonyInitInterface.h"\r
#include "system/include/SystemModel.h"\r
#include "components/ui_radio_button.h"\r
#include "KeyInputListener.h"\r
- #include "cat1_ctl.h"\r
+#ifdef SUPPORT_CAT1_SERVICE\r
+#include "cat1_ctl.h"\r
+#endif\r
\r
namespace OHOS\r
{\r
#ifndef SYSTEM_UPGRADE_VIEW_H
#define SYSTEM_UPGRADE_VIEW_H
-
+#ifndef XTS_SUPPORT
#include "View.h"
#include "components/ui_image_view.h"
bool initViewStatus{false};
};
} // namespace OHOS
+#endif
#endif
\ No newline at end of file
#include <fstream>
#include "cJSON.h"
#include "ConfigModel.h"
-#include "lwip/err.h"
#include "power_display_service.h"
#include "cmsis_os2.h"
#include "los_memory.h"
#include "thread_init.h"
- #include "lwip/apps/http_client.h"
+
#include "tcxo.h"
+ #ifdef SUPPORT_CAT1_SERVICE
#include "cat1_server.h"
+ #include "lwip/err.h"
+#include "lwip/apps/http_client.h"
+ #endif
#include "linux/delay.h"
#define UPDATAREPORT_M UPDATAREPORT
+#ifndef XTS_SUPPORT
+
#include "system/include/Systemupgrade.h"
#include "system/include/SystemPresenter.h"
#include "wearable_log.h"
return scrollView;
}
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
#include "stdio.h"
#include "cJSON.h"
#include "ConfigModel.h"
-#include "lwip/err.h"
#include "power_display_service.h"
#include "cmsis_os2.h"
#include "los_memory.h"
#include "thread_init.h"
-#include "lwip/apps/http_client.h"
#include "tcxo.h"
-#include "cat1_server.h"
#include "linux/delay.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
+#include "cat1_server.h"
+#include "lwip/apps/http_client.h"
+#include "lwip/err.h"
+#endif
#include "AppViewIDs.h"
#include "NativeAbility.h"
namespace OHOS
#include <fstream>
#include "cJSON.h"
#include "ConfigModel.h"
-#include "lwip/err.h"
#include "power_display_service.h"
#include "cmsis_os2.h"
#include "los_memory.h"
#include "thread_init.h"
-#include "lwip/apps/http_client.h"
#include "tcxo.h"
-#include "cat1_server.h"
#include "linux/delay.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
#include "cat1_server_hal.h"
+#include "cat1_server.h"
+#include "lwip/apps/http_client.h"
+#include "lwip/err.h"
+#endif
#include "bts_le_gap.h"
#include "custom_http_download.h"
static SystemUpdateView *g_pSystemUpdateView{nullptr};
-
+#ifdef SUPPORT_CAT1_SERVICE
+
static osThreadId_t g_alipay_task_handle = NULL;
//static char * imei_str="864430010001091";
// osThreadAttr_t g_alipay_attr = {
}
}
+#endif
SystemUpdateView::SystemUpdateView()
{
switch (falg_id)
{
case OTA_BUTTON_GET_VISON://开始获取升级
+#ifdef SUPPORT_CAT1_SERVICE
start_get_updata_json();
+#endif
SystemUpdateModel ::GetInstance().button_flag=OTA_BUTTON_GET_VISON_ING;
break;
case OTA_BUTTON_GET_ABLE_DOWNLOAD://开始下载升级包
+#ifdef SUPPORT_CAT1_SERVICE
start_get_updata_fwpkg();
start_dwonload();
+#endif
break;
case OTA_BUTTON_GET_ABLE_UPDTAT:
#if OTA_UPDATA_TEST
#include "platform_core.h"
#include "stdint.h"
#include "pinctrl.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
+#endif
#include "gpio.h"
#include "gpio_porting.h"
#include "tcxo.h"
void *tcp_thread_id = NULL;
if(isopen)
{
+ #ifdef SUPPORT_CAT1_SERVICE
power_on_cat1();
+ #endif
// if(!uapi_dev_runtime_get_saveele_status())
{
uapi_dev_runtime_set_cat1_powerstat(1);
}
else
{
+ #ifdef SUPPORT_CAT1_SERVICE
power_off_cat1();
+ #endif
// if(!uapi_dev_runtime_get_saveele_status())
{
uapi_dev_runtime_set_cat1_powerstat(0);
const char *inpdustr = (const char*)argv[0];
+ #ifdef SUPPORT_CAT1_SERVICE
pdu_decode_example(inpdustr,0,0,0);
+ #endif
return ERRCODE_SUCC;
}