Cherry-pick 4c9c175f6076b102ff951e60301091cb26853f86 from Mojo
diff --git a/services/android/rules.gni b/services/android/rules.gni
index 350b421..facf505 100644
--- a/services/android/rules.gni
+++ b/services/android/rules.gni
@@ -44,6 +44,10 @@
   action(android_with_manifest_name) {
     script = "${servicess_android_path}/add_manifest_entry.py"
 
+    deps = [
+      ":$android_standalone_name",
+    ]
+
     input = dex_output_path
     inputs = [
       input,
@@ -74,6 +78,10 @@
   action(target_name) {
     script = rebase_path("mojo/public/tools/prepend.py", ".", mojo_root)
 
+    deps = [
+      ":$android_with_manifest_name",
+    ]
+
     input = dex_with_manifest_output_path
     inputs = [
       input,