diff --git a/device_info/device_info_kits.h b/device_info/device_info_kits.h index d14eb9513..e6fb9badd 100644 --- a/device_info/device_info_kits.h +++ b/device_info/device_info_kits.h @@ -48,7 +48,7 @@ private: return deathRecipient_; } - static const int DEVICEINFO_LOAD_SA_TIMEOUT_MS = 60000; + static const int DEVICEINFO_LOAD_SA_TIMEOUT_MS = 5000; void LoadDeviceInfoSa(std::unique_lock &lock); sptr GetService(std::unique_lock &lock); std::mutex lock_; diff --git a/interfaces/innerkits/control_fd/control_fd.h b/interfaces/innerkits/control_fd/control_fd.h index 07ea6e267..e026899de 100644 --- a/interfaces/innerkits/control_fd/control_fd.h +++ b/interfaces/innerkits/control_fd/control_fd.h @@ -67,8 +67,8 @@ typedef enum { ACTION_SANDBOX = 0, ACTION_DUMP, ACTION_MODULEMGR, - ACTION_APP_SANDBOX, ACTION_APP_SPAWNTIME, + ACTION_APP_SANDBOX, ACTION_MAX } ActionType; diff --git a/interfaces/innerkits/fs_manager/erofs_overlay/erofs_remount_overlay.c b/interfaces/innerkits/fs_manager/erofs_overlay/erofs_remount_overlay.c index 93fc7cdd8..23500675b 100644 --- a/interfaces/innerkits/fs_manager/erofs_overlay/erofs_remount_overlay.c +++ b/interfaces/innerkits/fs_manager/erofs_overlay/erofs_remount_overlay.c @@ -219,7 +219,7 @@ int MountOverlayOne(const char *mnt) int RemountOverlay(void) { - char *remountPath[] = { "/usr", "/vendor", "/sys_prod", "/chip_prod", "/preload", "/cust" }; + char *remountPath[] = { "/usr", "/vendor", "/sys_prod", "/chip_prod", "/preload", "/cust", "/version" }; for (size_t i = 0; i < ARRAY_LENGTH(remountPath); i++) { struct stat statInfo; char dirMnt[MAX_BUFFER_LEN] = {0}; diff --git a/interfaces/innerkits/fs_manager/erofs_overlay/include/erofs_overlay_common.h b/interfaces/innerkits/fs_manager/erofs_overlay/include/erofs_overlay_common.h index cfef0c71e..71c9def50 100644 --- a/interfaces/innerkits/fs_manager/erofs_overlay/include/erofs_overlay_common.h +++ b/interfaces/innerkits/fs_manager/erofs_overlay/include/erofs_overlay_common.h @@ -17,6 +17,7 @@ #define EROFS_OVERLAY_COMMON_H #include +#include #include "fs_manager/ext4_super_block.h" #include "fs_manager/erofs_super_block.h" diff --git a/remount/remount_overlay.c b/remount/remount_overlay.c index f99125fa1..11e2a0f1c 100644 --- a/remount/remount_overlay.c +++ b/remount/remount_overlay.c @@ -124,7 +124,7 @@ static int FormatExt4(const char *fsBlkDev, const char *fsMntPoint) if (ret) { INIT_LOGE("e2fsdroid failed returned %d", ret); } - return ret; + return 0; } static void OverlayRemountPre(const char *mnt) diff --git a/services/begetctl/dump_service.c b/services/begetctl/dump_service.c index 46a8577ca..b864c7e21 100644 --- a/services/begetctl/dump_service.c +++ b/services/begetctl/dump_service.c @@ -49,7 +49,8 @@ static int SendAppspawnCmdMessage(const CmdAgent *agent, uint16_t type, const ch BEGET_ERROR_CHECK(ret == 0, return -1, "AppSpawnClientInit error, errno = %d", errno); AppSpawnReqMsgHandle reqHandle; ret = AppSpawnReqMsgCreate(MSG_DUMP, ptyName, &reqHandle); - BEGET_ERROR_CHECK(ret == 0, AppSpawnClientDestroy(clientHandle); return -1, "AppSpawnReqMsgCreate error"); + BEGET_ERROR_CHECK(ret == 0, AppSpawnClientDestroy(clientHandle); + return -1, "AppSpawnReqMsgCreate error"); ret = AppSpawnReqMsgAddStringInfo(reqHandle, "pty-name", ptyName); BEGET_ERROR_CHECK(ret == 0, AppSpawnClientDestroy(clientHandle); return -1, "add %s request message error", ptyName); diff --git a/services/begetctl/param_cmd.c b/services/begetctl/param_cmd.c index b867f3e0c..03a0d1fd0 100644 --- a/services/begetctl/param_cmd.c +++ b/services/begetctl/param_cmd.c @@ -26,11 +26,11 @@ #include #include "begetctl.h" -#include "init_param.h" #include "param_manager.h" #include "param_security.h" -#include "param_init.h" +#include "init_param.h" #include "shell_utils.h" +#include "param_init.h" #include "beget_ext.h" #ifdef PARAM_SUPPORT_SELINUX #include diff --git a/services/param/include/param_osadp.h b/services/param/include/param_osadp.h index 38054955e..190ee4450 100755 --- a/services/param/include/param_osadp.h +++ b/services/param/include/param_osadp.h @@ -92,7 +92,7 @@ extern "C" { #endif #define PARAM_WORKSPACE_SMALL (1024 * 10) #define PARAM_WORKSPACE_DEF (1024 * 30) -#define PARAM_WORKSPACE_DAC (1024 * 60) +#define PARAM_WORKSPACE_DAC (1024 * 1024 * 2) #endif // __LITEOS_A__ #endif // __LITEOS_M__ #endif // STARTUP_INIT_TEST diff --git a/services/param/manager/param_server.c b/services/param/manager/param_server.c index 8cfe46bc3..ddc45c603 100755 --- a/services/param/manager/param_server.c +++ b/services/param/manager/param_server.c @@ -330,7 +330,7 @@ static int LoadParamFromImport_(char *buffer, const int buffSize, uint32_t mode) } char *target = calloc(PATH_MAX, 1); PARAM_CHECK(target != NULL, return -1, "Failed to alloc memory"); - if (strncpy_s(target, buffSize, buffer + IMPORT_PREFIX_LEN + spaceCount, buffSize) != 0) { + if (strncpy_s(target, PATH_MAX, buffer + IMPORT_PREFIX_LEN + spaceCount, buffSize) != 0) { PARAM_LOGE("Failed to get value of import."); free(target); return -1; diff --git a/services/utils/init_utils.c b/services/utils/init_utils.c index 4f8f950df..daa924b6d 100644 --- a/services/utils/init_utils.c +++ b/services/utils/init_utils.c @@ -645,6 +645,8 @@ int OpenConsole(void) { #ifndef __LITEOS_M__ return OpenStdioDevice("/dev/console", 1); +#else + return 0; #endif }