Forget about app-private folder, just use different keystore when
signing your application for the market. This way you could always
compare your *.apk's hash code to your hardcoded one. There's already
application on the Android Market and SlideMe. It uses exactly the
same mechanism.

On Oct 14, 11:19 am, Vitaly Polonetsky <[email protected]> wrote:
> When you publish the application for the first time it gives you the option
> of "Copy Protection". In it's current implementation, applications marked as
> copy protected are installed into /data/app-private instead of /data/app
> default directory.
>
> I don't know a way to install application into app-private folder without
> going through market.
>
>
>
> On Wed, Oct 14, 2009 at 8:51 AM, gopu <[email protected]> wrote:
>
> > getContext().getApplicationContext().getPackageCodePath();
>
> > Its giving the path like "data/app/com.pakage name.apk"
>
> > app-private is only for Market app?
>
> > can u please explain what exactly the app-private folder is for  or
> > have any docs regarding this ?
>
> > On Oct 14, 10:12 am, m_vitaly <[email protected]> wrote:
> > > How about app-private (secured) applications?
> > > Isn't it a market feature only?
>
> > > For your application you can set it as secure and all non-market
> > > installs will go to the regular app dir instead of app-private.
>
> > > Not sure whether a way to find out the installed dir is available to
> > > application by api.
>
> > > On Oct 14, 6:59 am, Dianne Hackborn <[email protected]> wrote:
>
> > > > No, there is no difference between an app installed from the market vs.
> > > > elsewhere.
>
> > > > On Tue, Oct 13, 2009 at 9:33 PM, gopu <[email protected]> wrote:
>
> > > > > I want to skip some framework changes to the market applications .
> > How
> > > > > to find out the current application is downloaded from the market or
> > > > > not ?
>
> > > > > Is the market downloaded app  will be stored in separate directory?
>
> > > > > On Oct 14, 9:23 am, GPU <[email protected]> wrote:
> > > > > > How to check from the framework that ,the application is downloaded
> > > > > > from Market or not ?
>
> > > > --
> > > > 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.
>
> --
> Best regards,
> Vitaly Polonetsky
--~--~---------~--~----~------------~-------~--~----~
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