Merge "Make sure we do not take the profile report for buildSrc"
diff --git a/tools/run_on_as_app.py b/tools/run_on_as_app.py
index 3f2dbdd..5596cd5 100755
--- a/tools/run_on_as_app.py
+++ b/tools/run_on_as_app.py
@@ -1069,10 +1069,10 @@
     else:
       # Make a copy of r8.jar and r8lib.jar such that they stay the same for
       # the entire execution of this script.
-      if 'r8-nolib' in options.shrinker:
+      if 'r8-nolib' in options.shrinker or 'r8-nolib-full' in options.shrinker:
         assert os.path.isfile(utils.R8_JAR), 'Cannot build without r8.jar'
         shutil.copyfile(utils.R8_JAR, os.path.join(temp_dir, 'r8.jar'))
-      if 'r8' in options.shrinker:
+      if 'r8' in options.shrinker or 'r8-full' in options.shrinker:
         assert os.path.isfile(utils.R8LIB_JAR), 'Cannot build without r8lib.jar'
         shutil.copyfile(utils.R8LIB_JAR, os.path.join(temp_dir, 'r8lib.jar'))