Indhu
Indhu

Reputation: 9956

How to launch another application without knowing its class name or package name?

I have two questions.

  1. I have an .apk but I don't know anything about the class name or package name. Is there any possibility to find the class name and the package name?

  2. If I don't get the class name or the package name of the application, will I be able to launch the application from my current application?

Upvotes: 1

Views: 1525

Answers (3)

Indhu
Indhu

Reputation: 9956

Actually, after installing the application, when i went into data/data folder i found the package name of the installed apk.

I found the class name by extracting the package and reading the manifest file. :)

Upvotes: 0

anon
anon

Reputation:

You could try to decompile the apk file and then the source code is quite readable. From there you should be able to detect the package and class name of the activity you want to start.

Upvotes: 0

user562566
user562566

Reputation:

No you won't be able to launch it without knowing the class name. You can use APKTool to disassemble the APK file. When you do this, it will show you the android manifest file for that apk. In the manifest XML, you will see declarations of the package name and specific process/activity names you can directly launch/reference. This answer also has references + more specifics on this process + what to look for in the manifest.

Upvotes: 1

Related Questions