Turn the optimization on for the terminal app

... but

* bytecode optimization
* pruning of unused classes and members (they are used by tests)

Bug: 375051310
Bug: 377100096
Test: atest TerminalAppTests

Change-Id: Iad31eabce7f5c7511320974ee0d1bc862dc14f06
diff --git a/android/TerminalApp/Android.bp b/android/TerminalApp/Android.bp
index bf93226..3b5f9b8 100644
--- a/android/TerminalApp/Android.bp
+++ b/android/TerminalApp/Android.bp
@@ -24,7 +24,10 @@
     platform_apis: true,
     privileged: true,
     optimize: {
-        enabled: false,
+        // TODO(b/377100096): enable bytecode optimization again
+        //optimize: true,
+        proguard_flags_files: ["proguard.flags"],
+        shrink_resources: true,
     },
     apex_available: [
         "com.android.virt",