Android Anti-compilation (iii) re-signing

Source: Internet
Author: User

Http://www.cnblogs.com/findyou/p/3801273.html

Echo RePack $1.apk
# re-sign product to ensure that it uses a signature that matches the signature of the test case
# The first step is to delete the signature already in the product
Unzip-o $1.apk-d Product
CD product
# Remove an existing signature from the app
Rm-r-F meta-inf/
# repackage files in your app
Zip-r product.apk *
MV product.apk.
Cd..
# Delete the original folder to delete the key--wrap up work
Rm-f-R Product
# re-signing with a signature using debugging
#jarsigner-keystore ~/.android/debug.keystore-storepass android-keypass android product.apk Androiddebugkey
#jdk 1.7 Jarsigner need to add two parameters-digestalg Sha1-sigalg Md5withrsa
Jarsigner-keystore ~/.android/debug.keystore-storepass android-keypass android product.apk Androiddebugkey- Digestalg Sha1-sigalg Md5withrsa
Zipalign 4 product.apk $1-resigned.apk

Android Anti-compilation (iii) re-signing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.