CTS test for Android Security CVE-2018-5892

Test: successful run of newly introduced CTS test case.

Bug: 79775396
Change-Id: Iadc9610fa6d5af5b2e6c9cd2d653266f38e58d11
(cherry picked from commit 11af48782b9f27eb591032256b31afd62e1fc7bc)
diff --git a/hostsidetests/securitybulletin/src/android/security/cts/Poc18_06.java b/hostsidetests/securitybulletin/src/android/security/cts/Poc18_06.java
index e4db666..a678ab3 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/Poc18_06.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/Poc18_06.java
@@ -35,4 +35,14 @@
       assertNotMatchesMultiLine("Broadcast completed", result);
     }
   }
+
+  /**
+   * CVE-2018-5892
+   */
+  @SecurityTest(minPatchLevel = "2018-06")
+  public void testPocCVE_2018_5892() throws Exception {
+    String result = AdbUtils.runCommandLine(
+        "pm list package com.emoji.keyboard.touchpal", getDevice());
+    assertFalse(result.contains("com.emoji.keyboard.touchpal"));
+  }
 }