Also synthesize keep rules for recompilation on release versions

Bug: 124538656
Change-Id: I6712bfbfe0c3cecbd43171985043da413c7da16d
diff --git a/tools/run_on_as_app.py b/tools/run_on_as_app.py
index f3cc2eb..4373ce6 100755
--- a/tools/run_on_as_app.py
+++ b/tools/run_on_as_app.py
@@ -346,7 +346,12 @@
           # Sanity check that keep rules have changed.
           with open(ext_proguard_config_file) as new:
             with open(proguard_config_file) as old:
-              assert(sum(1 for line in new) > sum(1 for line in old))
+              assert(
+                  sum(1 for line in new
+                      if line.strip() and '-printconfiguration' not in line)
+                  >
+                  sum(1 for line in old
+                      if line.strip() and '-printconfiguration' not in line))
 
           # Extract min-sdk and target-sdk
           (min_sdk, compile_sdk) = as_utils.GetMinAndCompileSdk(app, config,