Enhance LocaleConfigAppUpdateTest test cases

Do not sleep three secs when installing/uninstalling apk for saving the test time and avoid the unexpected result.

Bug: 263662200
Test: atest LocaleConfigAppUpdateTest
Change-Id: Ie9968a211115622ba4ad7d0b8d24cd5f2eb4a073
diff --git a/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/LocaleConfigAppUpdateTest.java b/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/LocaleConfigAppUpdateTest.java
index 5ff4f23..4f6034e 100644
--- a/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/LocaleConfigAppUpdateTest.java
+++ b/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/LocaleConfigAppUpdateTest.java
@@ -216,14 +216,12 @@
     }
 
     private void install(String apk) throws InterruptedException {
-        String installResult = ShellUtils.runShellCommand("pm install " + apk);
-        Thread.sleep(3000);
+        String installResult = ShellUtils.runShellCommand("pm install -r " + apk);
         assertThat(installResult.trim()).isEqualTo("Success");
     }
 
     private void uninstall(String packageName) throws InterruptedException {
         String uninstallResult = ShellUtils.runShellCommand("pm uninstall " + packageName);
-        Thread.sleep(3000);
         assertThat(uninstallResult.trim()).isEqualTo("Success");
     }