diff --git a/core/autogen_test_config.mk b/core/autogen_test_config.mk
index 4b912fb8b..a01d80fd1 100644
--- a/core/autogen_test_config.mk
+++ b/core/autogen_test_config.mk
@@ -34,16 +34,9 @@ else
endif
# Auto generating test config file for native test
$(autogen_test_config_file): PRIVATE_MODULE_NAME := $(LOCAL_MODULE)
-$(autogen_test_config_file): PRIVATE_RUN_UID := $(LOCAL_RUN_TEST_AS)
$(autogen_test_config_file) : $(autogen_test_config_template)
@echo "Auto generating test config $(notdir $@)"
$(hide) sed 's&{MODULE}&$(PRIVATE_MODULE_NAME)&g' $< > $@
-ifneq ($(LOCAL_RUN_TEST_AS),)
- $(hide) sed -i 's&{UID_OPTION}&&g' $@
-else
- $(hide) sed -i '/{UID_OPTION}/d' $@
-endif
-
my_auto_generate_config := true
else
# Auto generating test config file for instrumentation test
diff --git a/core/clear_vars.mk b/core/clear_vars.mk
index 6fe9d02b9..7f8e9c3a2 100644
--- a/core/clear_vars.mk
+++ b/core/clear_vars.mk
@@ -245,7 +245,6 @@ LOCAL_RESOURCE_DIR:=
LOCAL_RMTYPEDEFS:=
LOCAL_RRO_THEME:=
LOCAL_RTTI_FLAG:=
-LOCAL_RUN_TEST_AS :=
LOCAL_SANITIZE:=
LOCAL_SANITIZE_DIAG:=
LOCAL_SANITIZE_RECOVER:=
diff --git a/core/native_test_config_template.xml b/core/native_test_config_template.xml
index 077223ed8..a88d57c47 100644
--- a/core/native_test_config_template.xml
+++ b/core/native_test_config_template.xml
@@ -23,7 +23,6 @@
- {UID_OPTION}