The best way is to check the certificate it is signed with, since nobody can
sign with a certificate that they haven't been given the private key for.
That said, if they have tampered with your .apk, they can also tamper with
your code, and change whatever check you may have.

On Mon, Sep 7, 2009 at 8:04 AM, Lee <[email protected]> wrote:

>
> I had the thought of checking for tampering with the apk by embedding
> a couple of checks against it's size once installed on  the
> device.
>
> I was just a bit concerned that maybe the size would change dependent
> on the device (e.g. different FS format or whatever).
>
> Thanks,
>
> Lee
>
> p.s. no debates about whether this is worthwhile or not please :-)
> >
>


-- 
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