BUILD_NAME=_FD230
fi
+if [ "$1" == "fd230_user" ]
+then
+TARGET_PACK_NAME=pack_brandy_native_js
+APPLICATION_NAME=brandy-native-js
+RECOVERY_NAME=$APPLICATION_NAME-r
+SSB_NAME=$APPLICATION_NAME-ssb
+BUILD_NAME=_FD230_user
+fi
+
if [ "$1" == "xts" ]
then
TARGET_PACK_NAME=pack_brandy_native_js_xts
#include "securec.h"\r
#include "cmsis_os2.h"\r
#ifdef SUPPORT_OHOSFWK\r
+#ifdef FD230\r
#include "bluetooth/include/BluetoothWrapper.h"\r
+#else\r
+#include "bluetooth/BluetoothWrapper.h"\r
+#endif\r
#endif\r
\r
/* Gatt service UUID */\r
#include "bundlems_slite_client.h"
#include "abilityms_slite_client.h"
#include "gt_bundle_manager_service.h"
-// #include "uiservice/ui_service.h"
+#ifdef FD230
#include "uiservice/include/ui_service.h"
+#else
+#include "uiservice/ui_service.h"
+#endif
#include "sign_mode.h"
#include "NativeAbility.h"
#include "ability_manager.h"
#include "js_fwk_common.h"
#include "global.h"
#include "msg_center_customer.h"
+#ifdef FD230
#include "applist/include/ApplistModel.h"
+#else
+#include "applist/ApplistModel.h"
+#endif
#include "bundle_manager.h"
#include <unistd.h>
#ifdef SUPPORT_AT_LOCATION
'ssb_version': 'brandy-ssb-native-js',
'dsp_version': 'max',
'packet': True,
- 'fs_image': False
+ # 'fs_image': False
},
#native-js-user: liteos + uikit + nandflash + mipi + psram + audio 典型合封UIKIT版本
#离线日志版本
#"MEM_CHECK",
#'ENABLE_WEBSOCKET',
'CYWEE_MAC_ACTIVE',
- 'SUPPORT_CAT1_SERVICE',
+ # 'SUPPORT_CAT1_SERVICE',
#'SUPPORT_TCPIP',
#'SUPPORT_HID_SERVICE',
'SUPPORT_BAIDU_MAP',
"mag_sensor_mmc5603",
"vibrator",
"vibrator_service",
- "-:lwip",
- "cat1Service",
- "cat1Test",
+ # "-:lwip",
+ # "cat1Service",
+ # "cat1Test",
"audio_manager",
"CustomUIcomponentTool",
"nativeabilityfwk",
--- /dev/null
+# Generated by Kconfig Tool.
+# Note: !!!This file can not be modify manually!!!
+
+#
+# Main menu description, show how to use this configuration system.
+#
+
+#
+# Product
+#
+
+#
+# Config the product.
+#
+CONFIG_NORFLASH_SIZE=16
+CONFIG_LOAD_FROM_FS=y
+CONFIG_PSRAM_DENSITY_MB=32
+# end of Product
--- /dev/null
+# Generated by Kconfig Tool.
+# Note: !!!This file can not be modify manually!!!
+
+#
+# Main menu description, show how to use this configuration system.
+#
+
+#
+# Product
+#
+
+#
+# Config the product.
+#
+CONFIG_NORFLASH_SIZE=16
+CONFIG_LOAD_FROM_FS=y
+CONFIG_PSRAM_DENSITY_MB=32
+# end of Product
#include "common/screen.h"\r
#include "components/root_view.h"\r
#ifdef SUPPORT_OHOSFWK\r
+#ifdef FD230\r
#include "screennotify/include/ui_screennotify.h"\r
+#else\r
+#include "screennotify/ui_screennotify.h"\r
+#endif\r
#endif\r
#ifdef SUPPORT_GPU_JPEG\r
#include "drv_jpeg_intf.h"\r
#include "events/key_event.h"
#endif
#if defined (SUPPORT_DIAL_DEBUG)
+#ifdef FD230
#include "main/include/dial/WatchInterface.h"
+#else
+#include "main/dial/WatchInterface.h"
+#endif
#endif // defined (SUPPORT_DIAL_DEBUG)
namespace OHOS {
#include "ui_test_video_play.h"\r
#include "components/root_view.h"\r
#ifdef SUPPORT_OHOSFWK\r
+#ifdef FD230\r
#include "screennotify/include/ui_screennotify.h"\r
+#else\r
+#include "screennotify/ui_screennotify.h"\r
+#endif\r
#endif\r
\r
namespace OHOS {\r
#include "errcode.h"\r
#include "transmit_resume.h"\r
#ifdef CONFIG_BRANDY_BLE_TRANS_OPTIMIZE\r
+#ifdef FD230\r
#include "bluetooth/include/BluetoothChangeBle.h"\r
-\r
+#else\r
+#include "bluetooth/BluetoothChangeBle.h"\r
+#endif\r
#endif\r
#ifdef CONFIG_DFX_SUPPORT_PARTITION\r
#if (CONFIG_DFX_SUPPORT_PARTITION == DFX_YES)\r
#include "diag_msg.h"\r
#include "diag_dfx.h"\r
#ifdef CONFIG_BRANDY_BLE_TRANS_OPTIMIZE\r
+#ifdef FD230\r
#include "bluetooth/include/BluetoothChangeBle.h"\r
+#else\r
+#include "bluetooth/BluetoothChangeBle.h"\r
+#endif\r
#endif\r
\r
#define TRANSMIT_ITEM_CNT 3\r
#include "zdiag_adapt_layer.h"\r
#include "errcode.h"\r
#ifdef CONFIG_BRANDY_BLE_TRANS_OPTIMIZE\r
+#ifdef FD230\r
#include "bluetooth/include/BluetoothChangeBle.h"\r
+#else\r
+#include "bluetooth/BluetoothChangeBle.h"\r
+#endif\r
#endif\r
\r
STATIC uint32_t transmit_data_read(transmit_item_t *item, uint32_t offset, uint8_t *buf, uint32_t size)\r
\r
char* HalGetSerial(void)\r
{\r
+#ifdef XTS_SUPPORT\r
static const char OHOS_SERIAL[] = "1234567890";\r
unsigned char sn_buf[32] = {0};\r
unsigned int len = 0;\r
memcpy(value, sn_buf, len); // 使用memcpy确保二进制安全\r
value[len] = '\0'; // 手动添加字符串结束符\r
return value;\r
+#endif\r
+ return "123456789";\r
}\r
char* HalGetBootloaderVersion(void)\r
{\r
#include "product_adapter.h"
#include "abilityms_slite_client.h"
#include "NativeAbility.h"
-// #include "settings/SetDesktopModel.h"
+#ifdef FD230
#include "themestyle/include/ThemeStyleModel.h"
+#else
+#include "settings/SetDesktopModel.h"
+#endif
namespace OHOS {
namespace ACELite {
*/
void TerminateWrapper(uint32_t token, bool forceStop)
{
+ #ifdef FD230
(void)forceStop;
uint16_t preSliceId = NativeAbility::GetInstance().GetPreSliceId();
if (preSliceId == VIEW_APPLIST) {
return;
}
}
+ #else
+ (void)forceStop;
+ uint16_t preSliceId = NativeAbility::GetInstance().GetPreSliceId();
+ if (preSliceId == VIEW_APPLIST) {
+ if (SetDesktopModel::GetInstance().GetDesktopStyle() == HEXAGONS_STYLE) {
+ AbilityMsClient::GetInstance().TerminateAbility(token, TransitionType::TRANSITION_BACK_TO_HEXAGONS);
+ return;
+ } else if (SetDesktopModel::GetInstance().GetDesktopStyle() == WATERFALL_STYLE) {
+ AbilityMsClient::GetInstance().TerminateAbility(token, TransitionType::TRANSITION_BACK_TO_WATERFALL);
+ return;
+ }
+ }
+ #endif
AbilityMsClient::GetInstance().TerminateAbility(token);
}
#include <securec.h>\r
#include <unistd.h>\r
#include "network_module.h"\r
+#ifdef FD230\r
#include "bluetooth/include/BluetoothModel.h"\r
+#else\r
+#include "bluetooth/BluetoothModel.h"\r
+#endif\r
#include "msg_center_protocol.h"\r
#include "bts_le_gap.h"\r
#include "network_listener.h"\r
/* Provide usual function names as macros for users, but this can be turned off */
// #ifndef LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS //为了编译能过屏蔽
-#ifdef LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
+// #ifdef LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
+#if 0
#define htons(x) lwip_htons(x)
#define ntohs(x) lwip_ntohs(x)
#define htonl(x) lwip_htonl(x)
#include "debug_print.h"
-#include "cat1_utils.h"
+// #include "cat1_utils.h"
// #include "cywee_service.h"
taskcfg.func = battery_check_task;
taskcfg.use_mem = USE_EXTEND_MEM;
- errcode_t ret=cat1_create_osThread_custom(&taskcfg);
+ errcode_t ret=uapi_create_osThread_custom(&taskcfg);
if(ret != ERRCODE_SUCC)
{
PRINT("create battery_service failed %d!\r\n",ret);