> > > PackageManager pm = context.getPackageManager(); > try > { > PackageInfo info = pm.getPackageInfo( "xxx.xxx.xxx.xxx", > PackageManager.GET_SIGNATURES ); > Signature[] sig = info.signatures; > String sigstring = new String( sig[0].toChars() ); > > // Compare this signature with what we signed it with > } > > Note that this is not super useful to do that, as all automated cracking tools will detect your call with PackageManager.GET_SIGNATURES, and patch it out.
-- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en