diff --git a/glean-core/android-native/build.gradle b/glean-core/android-native/build.gradle
index 53716d523..d38af8320 100644
--- a/glean-core/android-native/build.gradle
+++ b/glean-core/android-native/build.gradle
@@ -48,6 +48,8 @@ android {
 }

 cargo {
+    cargoCommand = "${rootDir}/glean-core/android-native/cargo-no-build.sh"
+
     // The directory of the Cargo.toml to build.
     module = '../bundle-android'

diff --git a/glean-core/android/build.gradle b/glean-core/android/build.gradle
index 7748378b4..652027f6f 100644
--- a/glean-core/android/build.gradle
+++ b/glean-core/android/build.gradle
@@ -194,10 +194,16 @@ ext.configurePublish()

 def generateUniffiBindings = tasks.register("generateUniffiBindings") {
     def udlFilePath = "../src/glean.udl"
+
+    def uniffiBindgenNoop = project.findProperty("uniffiBindgenNoop")
+    if (!uniffiBindgenNoop) {
+        throw new GradleException("Gradle property 'uniffiBindgenNoop' is not set.")
+    }
+
     doFirst {
         exec {
             workingDir project.rootDir
-            commandLine 'cargo', 'uniffi-bindgen', 'generate', '--no-format', "${project.projectDir}/${udlFilePath}", '--language', 'kotlin', '--out-dir', UNIFFI_OUT_DIR.get()
+            commandLine uniffiBindgenNoop, 'generate', '--no-format', "${project.projectDir}/${udlFilePath}", '--language', 'kotlin', '--out-dir', UNIFFI_OUT_DIR.get()
         }
     }
     outputs.dir UNIFFI_OUT_DIR
