Merge "Update the way one generates the Bazel workspace."
diff --git a/scripts/update_crate_tests.py b/scripts/update_crate_tests.py
index 3b654fc..d9e623d 100755
--- a/scripts/update_crate_tests.py
+++ b/scripts/update_crate_tests.py
@@ -109,7 +109,7 @@
         # soong_ui requires to be at the root of the repository.
         os.chdir(env.ANDROID_BUILD_TOP)
         print("Generating Bazel files...")
-        cmd = [soong_ui, "--make-mode", "GENERATE_BAZEL_FILES=1", "nothing"]
+        cmd = [soong_ui, "--make-mode", "bp2build"]
         try:
             subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True)
         except subprocess.CalledProcessError as e: