How to Launch Android Application using Termux:

Aman Chauhan
3 min readJul 28, 2022

--

fig-1.0

Hi,

Hello friends in this blog I am going to show you how you can launch your android application through Termux by typing commands.

Why you should do so because you can access you application very quicky and as a hacker this make you feel like a hacker.

We know Termux is an application that provide us linux environment in our android phone. Here you can run all your linux scripts and programs even you can perform hacking through it but you can also control you android phone through it.

Play store stop support for Termux . You can download it from here.

Now after installation run the two commands(fig-2.0,3.0).

(1)~$ apt update 
(2)~$ apt upgrade
fig-2.0
fig-3.0

Now we are good to go.

For launch a particular application we need its PackageName & its LaunchActivity.

For get that we can just google it. If you did not get that you can install a simple application(‘Click Here’ I link a application which simplify your work “I am not force you for use this app, I just like it”) from play store to get apps package name and its launch activity. There are many way for do it I will cover it any other blog till you can use this methods or you can use your own.(fig-4.0)

fig-4.0

I am using that application, here I you can seen its show application name(In Red Box) and its launch activity(In Blue Box).

For launch applications run this command in your Termux.

(1)~$ am start --user 0 -n [PakegeName]/[LaunchActivity]
OR
(2)~$ am start --user 0 -a andrppoid.intent.action.MAIN -n [PakegeName]/[LauchActivity]

Now i am going to launch the application using this command(1) You can see it I pasted a video below.

vid-1.0

But this is not enough because when ever we want to run an application we have to write this long code and this is not good.

For make it easy and run this whole command by giving a name like if we want a music app by just typing ‘music’, browser app by writing its name and what ever we want.

For do that we have to do some changes into ‘../usr/etc/bash.bashrc’ file and use alias command in it. Open this file by simply run the command ‘nano ../usr/etc/bash.bashrc’.(fig-5.0)

In above picture you can see I write a commend in last(Always Write this command in last of this file otherwise you will get errors).

alias music=’am start — user 0 -n com.moonvideo.android.resso/com.anote.android.bach.app.SplashActivity’

Its means where ever I run music command in termux it will run the whole command.

Basically i give a name to that command you can do it for any of your commands.

alias [Name You Want]='[Command You Want To Run]'

Now we are able to launch applications through termux.

You can see my demo video on Youtube link below and also do support my channel ✌️.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

Write a response