Question: I have an apk file. 
Now i need to fetch package-name as well as launcher activity from apk so that i can install apk and launch app from my test cases.

Answer: 
Android Aapt provides this feature. Use below commands

a)package :

```
D:\Android\sdk\build-tools\23.0.2>aapt d badging Apk-path\apk-name.apk |grep package

```

b)launchable-activity:

```
aapt d badging Apk-path\apk-name.apk |grep launchable-activity

```
You can also use the following steps:

1. Connect device to your computer
2. Open any IDE Android studio or eclipse
3. Look at the logs of the device
4. Filter the logs by using your app name
5. open the app on your device and you would be able to see package name and launcher activity in the logs.