Remove unused apps (RamdumpService and SSRestartDetector) from factory build targets.

After ag/26620507, the two apps are built in factory build targets.
They don't need them so we should not build them.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A
Change-Id: Ie442c7a95e7fe764749031281e7740c3a4b5a768
diff --git a/ramdump_and_coredump/ramdump_and_coredump.mk b/ramdump_and_coredump/ramdump_and_coredump.mk
index 24af44e..d7a819f 100644
--- a/ramdump_and_coredump/ramdump_and_coredump.mk
+++ b/ramdump_and_coredump/ramdump_and_coredump.mk
@@ -5,8 +5,8 @@
     dump_ramdump \
     ramdump \
 
-# When not AOSP targets
-ifeq (,$(filter aosp_%, $(TARGET_PRODUCT)))
+# When neither AOSP nor factory targets
+ifeq (,$(filter aosp_% factory_%, $(TARGET_PRODUCT)))
   PRODUCT_PACKAGES += SSRestartDetector
   PRODUCT_PACKAGES_DEBUG += RamdumpUploader
 endif