Use the aapt command's dump subcommands.  For example "aapt dump badging
/path./to/.apk" will print various interesting meta-data about the app.

On Wed, Aug 12, 2009 at 10:45 PM, Sudha <sudhaker...@gmail.com> wrote:

>
> Hello Zero,
>
> What i want is just knowing the package name....
>
> I donot wish to reverse engineer the code....
>
> the main purpose is to write a script for automated testing like when
> a apk file is given in the script it installs the package on the phone
> and after testing some random test cases will uninstall the app from
> the device or emu....
>
> for uninstalling the app from device using script what we must know is
> the package name.... so i want to parse the apk file.... not meant to
> reverse engineer..
>
>
> - Sudha
>
> On Aug 12, 7:22 pm, Zero <zeroo...@googlemail.com> wrote:
> > dude, maybe you should not try to mess with other ppls code if u don't
> > know basic reverse engineering. seriously.
> >
> > On Aug 12, 3:26 pm, Sudha <sudhaker...@gmail.com> wrote:
> >
> > > Hello,
> >
> > > If i have a apk file and want to know the package name and class
> > > hierarchy, how do i do it?
> >
> > > Suppose I have some sample APK file named "SampApp.apk" which contains
> > > classes inside "com.android.sampApp".
> >
> > > Is there any tool in Android SDK which shows the package name when APK
> > > file is passed as a parameter.
> >
> > > As the Class files are compressed to dex file I am not able to check
> > > the actual package name.
> >
> > > Regards:
> > > Sudha
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to