Giter Site home page Giter Site logo

Comments (8)

FtheGFW avatar FtheGFW commented on June 15, 2024

需要你提供一下具体做了哪些操作, 步骤

from amigo.

letyouthgoon avatar letyouthgoon commented on June 15, 2024

@FtheGFW

./gradlew clean assembleRelease & adb install .../build/outputs/apk/app-release.apk
change code wherever you like & ./gradlew clean assembleRelease
adb push .../build/outputs/apk/app-release.apk /sdcard/demo.apk
kill Amigo demo by yourself & restart to check if your change works
________________________________________________________________________ok
change code wherever you like & ./gradlew clean assembleRelease
adb push .../build/outputs/apk/app-release.apk /sdcard/demo.apk
kill Amigo demo by yourself & restart to check if your change works
________________________________________________________________________no effect

from amigo.

dxiaogang avatar dxiaogang commented on June 15, 2024

same as above .

from amigo.

FtheGFW avatar FtheGFW commented on June 15, 2024

OK, 我觉得这个问题在#29@peacepassion 解释的比较清晰了,第二次load apk的时候,检测到在/data/data/me.ele.amigo.demo/files/amigo/下已存在一个demo.apk,然后就跳过load新的patch apk了

from amigo.

letyouthgoon avatar letyouthgoon commented on June 15, 2024

@OverRide
public void onCreate() {
super.onCreate();
Log.e(TAG, "onCreate: " + this);

    if (ProcessUtils.isMainProcess(this)) {
        File fixedApkFile = new File(Environment.getExternalStorageDirectory(), "demo.apk");
        if (fixedApkFile.exists()) {
            FileUtils.copyFile(fixedApkFile, Amigo.getHotfixApk(this));
        }
    }
}

so,这个就是#29中的解决方案,然后报的就是本问题发的截图,现象是不停闪动。

from amigo.

FtheGFW avatar FtheGFW commented on June 15, 2024

obviously, 陷入死循环了,建议你先用MD5比较一下fixedApkFile(新的pathc apk) 和 amigoApkFile (/data/data/me.ele.amigo.demo/files/amigo/demo.apk) 的md5值,然后如果这二者不同,再覆盖amigoApkFile

from amigo.

FtheGFW avatar FtheGFW commented on June 15, 2024

或者简单暴力点,就直接清除app数据

from amigo.

JackCho avatar JackCho commented on June 15, 2024

@letyouthgoon demo已更新,更容易理解Amigo的使用

from amigo.

Related Issues (20)

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.