Monday, November 1, 2010

[android-developers] Re: LVL advice in the Android Developer Blog

Another way :-)

while(CALC_CRC(compiled_code)!=CRC)
{
CRC = CRC++;
InjectCRCIntoSource(CRC);
Compile();
}


On Nov 1, 10:50 am, Zsolt Vasvari <zvasv...@gmail.com> wrote:
> Under the part "Make your application temper-resistant" Tim Bray
> advises:
>
> "The most obvious mechanism is to use a lightweight hash function,
> such as CRC32, and build a hash of your application's code. You can
> then compare this checksum with a known good value. You can find the
> path of your application's files by calling
> context.GetApplicationInfo() — just be sure not to compute a checksum
> of the file that contains your checksum! "
>
> It's the last part I have a problem with.  How do I compute the CRC32
> of the app that already contains the said CRC32?????

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate