Home > Tips and Tricks

How to Launch an App via ADB Commands

Launch an App via ADB Commands

There can be quite a few instances wherein you would want to launch an app via ADB Commands. One of the most common instances is when the stock launcher isn’t working along the expected lines. As a result of this, you won’t be able to launch the required app of your choice from the app drawer. While you can still launch the app from the Settings > Apps menu, however, not every OEM supports this feature.

Moreover, it isn’t the most viable or feasible way of getting the job done either. Likewise, if you own an Android TV and are unable to launch the app the conventional way, then it might lead to quite a challenging and infuriating issue. Moreover, if you are a developer and wish to test an app in an emulation environment, then also this method will come in handy. So on that note, let’s make you aware of the steps to launch the Android app of your choice via ADB Commands. Follow along.

How to Launch an App via ADB Commands

YouTube video

  1. Download and install the Android SDK Platform Tools on your PC.
  2. Then go to Settings > About Phone > Tap on Build Number 7 times.
  3. After that, head over to the Settings > System > Developer Options.Magisk Restore Images not working
  4. Now enable USB Debugging and connect the device to the PC via USB.
  5. Next, open the Command Prompt inside the platform-tools folder.
  6. Now download the desired APK and transfer it to the platform tools.
  7. Then get hold of the app package name using any of these methods.android app package name via play store url
  8. Now install the Activity Launcher app from the Play Store.
  9. Then get hold of the name of the activity of the desired app. Make sure to use the Main Activity name. For example, in the case of Google Messages, it is .main.MainActivity.[If an app does not have a Main Activity, then you can use its Home Activity].launch App via ADB Commands
  10. Finally, type the below command [replace package name and activity name accordingly. ]
    adb shell am start -n your.package.name/Activity Name
  11. For example, if you want to start Google Messages, then the aforementioned command will become:
    adb shell am start -n com.google.android.apps.messaging/.main.MainActivity

    launch App via ADB Commands

That’s it. These were the steps to launch an app via ADB Commands. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution as soon as possible.

Share: