Another way :-)

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


On Nov 1, 10:50 am, Zsolt Vasvari <[email protected]> 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 [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