diff --git a/services/init/init_service_manager.c b/services/init/init_service_manager.c index 08e378e74577e0dbb5ed9328dc89fb477be58adf..8afc39dcc330aae42bbef6b5e0f3b6880cf90b1a 100755 --- a/services/init/init_service_manager.c +++ b/services/init/init_service_manager.c @@ -933,19 +933,6 @@ static void ProcessConsoleEvent(const WatcherHandle handler, int fd, uint32_t *e return; } - // Check if debuggable - char value[MAX_BUFFER_LEN] = {0}; - unsigned int len = MAX_BUFFER_LEN; - if (SystemReadParam("const.debuggable", value, &len) != 0) { - INIT_LOGE("Failed to read parameter \'const.debuggable\', prevent console service starting"); - return; - } - - int isDebug = StringToInt(value, 0); - if (isDebug != 1) { - INIT_LOGI("Non-debuggable system, prevent console service starting"); - return; - } if (ServiceStart(service) != SERVICE_SUCCESS) { INIT_LOGE("Start console service failed"); }