Unpack and pack the APK with Apktool

Source: Internet
Author: User
Tags unpack
unpack and pack with Apktool apk
  • download Apktool tools
  • Unpack br> apktool d xxx.apk-f
  • Implant Code
    Use Apktool to unpack the APK (hereinafter referred to as a),
    use Apktool to unpack the APK with the code to be implanted (below The face is called B).
    -copies the corresponding permissions and individual component declaration information from the androidmanifest.xml of B to a.
    -Copy the corresponding Smali file of B to a.
    -Copy the corresponding layout file of B to a.
    -Copy the ID of the implant layout from the values/ids.xml of B to a.
    -Copy the ID of the implant layout from the values/public.xml of B to a.
    -Copy the Call of the corresponding method in B from B to a (note the method signature).
    Hack Other People's apk is a kind of bullying behavior, this article is only for learning, do not mess.
  • Package again
    Apktool b xxx-o xxx-new.apk
  • build keystore
    Keytool-genkeypa Ir-alias-app.keystore-keyalg rsa-validity 100-keystore app.keystore
    Input Password:
    Return
    to last enter Y
  • li> to sign the apk
    Jarsigner-verbose-keystore app.keystore-signedjar xxx-new.apk xxx-new.apk $alias
  • zipalign
    Zipalign-f-V 4 xxx-new.apk xxx-new-new.apk

Use Apktool Unpack and package apk

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.