title: How do I start a Unity Android app via ADB?
body: <p>I'm trying to figure out how to start a Unity app from ADB, ideally so I can pass custom intent parameters for automated device testing. So far, I'm stuck just on <em>starting</em> a Unity app via ADB. I am well aware that this is possible, and it <em>MUST</em> be possible because apps like Sidequest are able to accomplish this on the exact same app, on the exact same phone, that I can't make this work on.</p>
  <p>I'm currently using an unmodified Unity Android Manifest, which I can confirm both launches normally from a Pixel 4a and can launch from Sidequest. I've tried the following commands that many people claim should work</p>
  <p><code>adb shell am start -n com.Futurus.AIntent/com.unity3d.player.UnityPlayerActivity</code></p>
  <p><code>adb shell am start -n &quot;com.Futurus.AIntent/com.unity3d.player.UnityPlayerActivity&quot;</code></p>
  <p><code>adb -d shell am start -f 0x10000000 -n com.Futurus.AIntent/com.unity3d.player.UnityPlayerActivity</code></p>
  <p><code>adb shell am start -n com.Futurus.AIntent/unityplayer.UnityActivity -a android.intent.action.MAIN</code></p>
  <p>Every single command I've tried claims that the activity class does not exist, despite the fact that it matches what's in the compiled manifest that I looked at in Android Studio. If I try to <code>resolve-activity</code> I get <code>No activity found</code> which seems like it cannot possibly be true because the app runs when opened via tap or Sidequest.</p>
  <p>I'm a complete loss, below I've copy-pasted the analyzed manifest from Android Studio. As best as I can tell, I'm performing the start command correctly but for the life of me it will not open. Any help is greatly appricitated</p>
  <p>I'm using Unity 2021.3.4f1 on Win11, ADB through Powershell if any of that matters.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:versionCode=&quot;1&quot;
      android:versionName=&quot;0.1&quot;
      android:installLocation=&quot;2&quot;
      android:compileSdkVersion=&quot;30&quot;
      android:compileSdkVersionCodename=&quot;11&quot;
      package=&quot;com.Futurus.AIntentTest&quot;
      platformBuildVersionCode=&quot;30&quot;
      platformBuildVersionName=&quot;11&quot;&gt;
  
      &lt;uses-sdk
          android:minSdkVersion=&quot;22&quot;
          android:targetSdkVersion=&quot;30&quot; /&gt;
  
      &lt;supports-screens
          android:anyDensity=&quot;true&quot;
          android:smallScreens=&quot;true&quot;
          android:normalScreens=&quot;true&quot;
          android:largeScreens=&quot;true&quot;
          android:xlargeScreens=&quot;true&quot; /&gt;
  
      &lt;uses-feature
          android:glEsVersion=&quot;0x30000&quot; /&gt;
  
      &lt;uses-feature
          android:name=&quot;android.hardware.vulkan.version&quot;
          android:required=&quot;false&quot; /&gt;
  
      &lt;uses-permission
          android:name=&quot;android.permission.INTERNET&quot; /&gt;
  
      &lt;uses-permission
          android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; /&gt;
  
      &lt;uses-feature
          android:name=&quot;android.hardware.touchscreen&quot;
          android:required=&quot;false&quot; /&gt;
  
      &lt;uses-feature
          android:name=&quot;android.hardware.touchscreen.multitouch&quot;
          android:required=&quot;false&quot; /&gt;
  
      &lt;uses-feature
          android:name=&quot;android.hardware.touchscreen.multitouch.distinct&quot;
          android:required=&quot;false&quot; /&gt;
  
      &lt;application
          android:label=&quot;@ref/0x7f030005&quot;
          android:icon=&quot;@ref/0x7f020000&quot;
          android:extractNativeLibs=&quot;true&quot;&gt;
  
          &lt;activity
              android:theme=&quot;@ref/0x7f040001&quot;
              android:name=&quot;com.unity3d.player.UnityPlayerActivity&quot;
              android:launchMode=&quot;2&quot;
              android:screenOrientation=&quot;10&quot;
              android:configChanges=&quot;0x40003fff&quot;
              android:hardwareAccelerated=&quot;false&quot;
              android:resizeableActivity=&quot;false&quot;&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category
                      android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
  
              &lt;meta-data
                  android:name=&quot;unityplayer.UnityActivity&quot;
                  android:value=&quot;true&quot; /&gt;
  
              &lt;meta-data
                  android:name=&quot;android.notch_support&quot;
                  android:value=&quot;true&quot; /&gt;
          &lt;/activity&gt;
  
          &lt;meta-data
              android:name=&quot;unity.splash-mode&quot;
              android:value=&quot;0&quot; /&gt;
  
          &lt;meta-data
              android:name=&quot;unity.splash-enable&quot;
              android:value=&quot;true&quot; /&gt;
  
          &lt;meta-data
              android:name=&quot;unity.launch-fullscreen&quot;
              android:value=&quot;true&quot; /&gt;
  
          &lt;meta-data
              android:name=&quot;unity.allow-resizable-window&quot;
              android:value=&quot;false&quot; /&gt;
  
          &lt;meta-data
              android:name=&quot;notch.config&quot;
              android:value=&quot;portrait|landscape&quot; /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>