A blog about new technology, Android, iOS, Mobile Automation, Appium, Web Automation, Selenium,
JAVA, Shell Scipting, Powershell, Testing Tools, QA, Spring Boot, Free Software,
How to design best frameworks etc..
How to get the package name of Android application
There are multiple ways in which we can obtain the package name of Android .apk file. Here are the some quick ways to get the package name. Step 1 : If its public app and available in https://play.google.com/store/apps , then search the app name and click on that particular app. you will get the package name as shown in below screenshot.
Demo of Step 1 :
Step 2 : Install the app on your device and run the below command to get the list of packages and search for your app. *(Make sure ADB configured in your path variable, click here to know how to configure adb on Windows , For Mac - you can click here) -> adb shell pm list packages
Demo of Step 2 :
Step 3 : Again using the Android command , you can get the details of app , package name -> aapt dump badging <path of apk> | grep <any_relevant_search_text>
for example : -> aapt dump badging D:\facebook.app | grep package
** aapt stands for Android Asset Packaging Tool . Demo of Step 3 :
Step 4 : [This step is now obsolete, as Appium UI has changed , if you have OLD Appium setup , you can still use it ] If you have Appium installed and locate the .apk file and it will list the package name as shown in below screenshot.
You can choose any above mentioned steps to get the package name of your app. Some other ways are also present to get the app name.But here i listed few easy way to get the package name. If you like this, please subscribe my Youtube channel,like ,comments & share.
Mac OS : How to configure JAVA Home ,Maven & Android Home
Recently I
have started using Mac OS and I had to
configure my Development environment for automation . To get started with the
basic needs i.e basic program to run , my system should have been configured
with JAVA_HOME , ANDROID_HOME and Maven(M2_HOME).
I learnt
the way how to configure all these settings, so I am sharing my knowledge in a
best possible way which can be understood easily. Also watch out my Youtube
Channel for videos related to this (link is given below)
Make sure
you have all these binaries installed or are downloaded and kept it in some
location.
Let’s get
started with configuring these settings in OS path.
You can watch a Youtube video OR follow the step by step procedure below Part 1
Part 2
Step 1 : Open Terminal on your Mac.
Step 2 : Typecd ~/
Step 3 : Check whether you have
.bash_profile present, type command
$ ls –al
Step 4 : If it is not present , let’s
create it using command
$ touch .bash_profile
(**
touch is a standard
Unix command-line interface program in its default usage, it is
equivalent of creating or opening a file and saving it without any change to
the file contents.)
Step 5 : Hit command ls –al again to
verify its presence
Step 6 : Now open .bash_profile file
which is just created. And to open you can use either of the commands.
$ open –e .bash_profile
( **
-e Opens with TextEdit.
-t Opens
with default text editor. )
OR
$ nano .bash_profile
(** GNU nano is
a popular commandline text editor used on many operating
systems.)
Above steps
are common steps for configuring anything in PATH
Step 7 : How to configure JAVA_HOME
(You are required to give bin and
jre path . Make sure to replace wth your path)
πππ Announcement : Visit the new website/blog πππ Dear readers, Thank you for reading my blog. If you could have used the little info...