Thank you for your answers! Based on the assumption that I already
have the apk-file, your answers are very helpful, because I was not
aware of the issue with the binary file format. I've tested the aapt
command and it did what you said, which is ok.

But my question should have asked how I can programatically download
apks from the market, or if there is a way to just download the
manifest.xml. From what I have read elsewhere, I think the Google
Market does not allow other clients than the official one to access
it. And even if it did, it could only server the whole apk and not
just the AndroidManifest.xml, because the market does not even have
this file in XML syntax.

So I'm going to try out my idea with another, non-official market like
andappstore.com, where I can directly download apks from the device as
well as from a host side. And as soon as I have something working, I
might come back and ask how to integrate it with google market.

--
thanks, Brian

On 22 Mai, 00:38, Dianne Hackborn <[email protected]> wrote:
> If you are running on a device, you can use the Java APIs to get and read
> the package and compiled XML files out of it.
>
> If you are running on the host side, "aapt dump xmltree <path to apk> <path
> to file inside apk>" will print out a not-at-all-XML-but-human-readable
> version of the binary XML file.
>
>
>
> On Thu, May 21, 2009 at 2:51 PM, rollbak <[email protected]> wrote:
>
> > That is not so simple, because manifest inside APK is converted to a
> > binary file which format is unknown.
>
> > On May 21, 2:52 am, Raphael <[email protected]> wrote:
> > > APKs are simply zip files. If you have anAPK, you can read its manifest.
> > > R/
>
> > > On Wed, May 20, 2009 at 1:49 AM, [email protected]
>
> > > <[email protected]> wrote:
>
> > > > Hi there,
>
> > > > is there some way to retrieve the manifest.xmlof an application from
> > > > the market, without installing the application? I think the official
> > > > Market Application somehow get this file (or at least parts of it) to
> > > > show needed permissions, etc. before installing. I'd be interested in
> > > > seeing the IntentFilters defined by applications and their activities
> > > > and processing this information in my application.
>
> > > > thanks,
> > > > Brian
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to