Giter Club home page Giter Club logo

andfixdemo's Introduction

AndFixDemo

AndFix热修复使用Demo简单快捷

##AndFix 简单的使用指南

  1. 添加依赖 compile 'com.alipay.euler:andfix:0.3.1@aar'

  2. 在AndroidManifest.xml中添加使用读写SD卡得权限

  3. 在Application中初始化Andfix中的PatchManager类。通过此类来进行加载补丁;

  4. 将两个打包好的apk进行打补丁,使用工具打包补丁文件:apkpatch-1.0.3,打包的时候需要把签名文件,新包和旧包放在同一个文件中 H:\AndroidCode\androidFix\AndFix\apkpatch-1.0.3>apkpatch.bat -f new.apk -t old.apk -o output -k debug.keystore -p android -a androiddebugkey -e android

    -f <new.apk> :新版本 -t <old.apk> : 旧版本 -o : 输出目录 -k : 打包所用的keystore -p : keystore的密码 -a : keystore 用户别名 -e : keystore 用户别名密码

    使用官方提供的工具apkpatch生成.apatch补丁文件** 点击上面的链接下载apkpatch之后解压;

  5. 然后将打包好的out.patch放到SD卡中;

  6. 混淆注意事项: -keep class * extends java.lang.annotation.Annotation -keepclasseswithmembernames class * { native ; } -keep class com.alipay.euler.andfix.** { *; }

andfixdemo's People

Contributors

lemonqsj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.