Remove unused apps (RamdumpService and SSRestartDetector) from AOSP.

After ag/26620507, the two apps are built in AOSP.
AOSP doesn't need them so we should not build them.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A
Change-Id: I0925fa0bb512a0001bfb46c524c9124128bc5e6e
diff --git a/ramdump_and_coredump/ramdump_and_coredump.mk b/ramdump_and_coredump/ramdump_and_coredump.mk
index b235084..24af44e 100644
--- a/ramdump_and_coredump/ramdump_and_coredump.mk
+++ b/ramdump_and_coredump/ramdump_and_coredump.mk
@@ -1,11 +1,15 @@
 PRODUCT_PACKAGES += \
   sscoredump \
-  SSRestartDetector
 
 PRODUCT_PACKAGES_DEBUG += \
     dump_ramdump \
     ramdump \
-    RamdumpUploader
+
+# When not AOSP targets
+ifeq (,$(filter aosp_%, $(TARGET_PRODUCT)))
+  PRODUCT_PACKAGES += SSRestartDetector
+  PRODUCT_PACKAGES_DEBUG += RamdumpUploader
+endif
 
 BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/ramdump_and_coredump/sepolicy