diff --git a/modules/asan/asan_detector.c b/modules/asan/asan_detector.c index 9053c41a0bc2811946051c2f36b58bc565be3893..3b6c950c7e3541cb486227b19a6cb37582620267 100644 --- a/modules/asan/asan_detector.c +++ b/modules/asan/asan_detector.c @@ -141,14 +141,16 @@ static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *proper if (property->forkCtx.coldRunPath) { free(property->forkCtx.coldRunPath); } -#ifndef CJAPP_SPAWN - property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); +#ifdef CJAPP_SPAWN + property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); #elif NATIVE_SPAWN property->forkCtx.coldRunPath = strdup("/system/asan/bin/nativespawn"); #elif HYBRID_SPAWN property->forkCtx.coldRunPath = strdup("/system/asan/bin/hybridspawn"); +#elif NWEB_SPAWN + property->forkCtx.coldRunPath = strdup("/system/asan/bin/nwebspawn"); #else - property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); + property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); #endif if (property->forkCtx.coldRunPath == NULL) { APPSPAWN_LOGE("Failed to set asan exec path %{public}s", GetProcessName(property));