Open liujinglin opened 5 years ago
@shwenzhang
@tomystang
华为手机android 9 360加固后,下发成功,激活成功。就是不能修复。 2019-09-18 15:47:01.525 14026-14026/? W/System.err: at com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate(BUGLY:189) 2019-09-18 15:47:01.741 14026-14026/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return 2019-09-18 15:47:01.754 13854-13854/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.xxx.xxx/tinker_temp/temp.apk is not exist, just return 不加固没有问题,可以正常替换。
将bugly升级到1.4.1再试试看?
将bugly升级到1.4.1再试试看?
已经是1.4.1的
@tomystang 在小米8上修复不生效的问题,麻烦有时间的时候亲测一下,🙏
好滴,我再看下
@tomystang 在小米8上修复不生效的问题,麻烦有时间的时候亲测一下,🙏
没有加固的情况下 小米8应用管理打开应用自启动。 可以下发,修复成功。需要等待很久,最少5分钟,修复包才50kb,都要等上3分钟上。
我们也遇到了类似的问题 我们是修改了一些代码逻辑跟某个静态常量 打补丁后 部分手机加载补丁后是正常的预期 静态常量跟代码逻辑都可以通过补丁修改了 唯独Android 9 华为P20比较奇怪 这台手机打上补丁后 代码逻辑是正常被修复了 但是那个静态常量没被修复到 @tomystang
@liujinglin @tomystang @tomystang 我在红米手机Redmi k20 ,android版本9.0,java 8上面也遇到这个问题了,报的错是 Tinker.DexDiffPatchInternal: parallel dex optimizer file tinker_classN.odex is not exist。(如果是java7就不存在这个问题,但我项目中必须用java8) 看了一下是没发现tinker_classN.odex和tinker_classN.vdex。但具体不知道再哪里修改
@tomystang 我司也遇到了同样的问题。 背景:热更新灰度20w用户,也确实收到了20w用户的热更成功通知,但是只有2k用户成功应用了新增的代码。 实验室验证: 1、使用360加固时才会出现,不加固则不会出现。 2、在多个类中新增了代码,进行热更操作,补丁包中确实包含所有新增的代码,但是安装补丁包后,发现只有部分类中的代码生效。
异常类型:app运行时异常/编译异常
手机型号:如:华为mate10,红米note7等绝大部分机型
手机系统版本:如:Android 9
tinker版本:如:v1.9.13.2 (v1.9.14.5也有这个问题,但只保留v1.9.13.2的日志)
热更新SDK: Bugly1.4.1(Bugly1.4.2也有这个问题)
堆栈/日志: 基准包接收补丁包的日志
2019-12-25 15:37:08.084 W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.test.demo/tinker 2019-12-25 15:37:08.088 D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-12-25 15:37:08.138 E/RePlugin.PluginInfoList: load: Load error! java.io.FileNotFoundException: File '/data/user/0/com.test.demo/app_p_a/p.l' does not exist at f.e.a.d.b.c.f.f(RuntimeCompat.java:7) at f.l.d.f.c.a(PluginInfoList.java:7) at f.l.d.g.g.a(PluginManagerServer.java:6) at f.l.d.g.g$a.load(PluginManagerServer.java:3) at f.l.b.S.f(PmBase.java:123) at f.l.b.S.d(PmBase.java:9) at com.qihoo360.replugin.RePlugin$a.a(RePlugin.java:43) at com.test.demo.app.BrothersApplication.onBaseContextAttached(BrothersApplication.java:8) at java.lang.reflect.Method.invoke(Native Method) at com.tencent.tinker.loader.app.TinkerApplication.invokeAppLikeOnBaseContextAttached(TinkerApplication.java:3) at com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(TinkerApplication.java:5) at com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(TinkerApplication.java:3) at android.app.Application.attach(Application.java:215) at java.lang.reflect.Method.invoke(Native Method) at com.stub.StubApp.attachBaseContext(SourceFile:194) at android.app.Application.attach(Application.java:215) at android.app.Instrumentation.newApplication(Instrumentation.java:1122) at android.app.LoadedApk.makeApplication(LoadedApk.java:1065) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5920) at android.app.ActivityThread.access$1200(ActivityThread.java:200) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6810) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) 2019-12-25 15:37:08.153 I/Tinker.TinkerPatchListener: application maxMemory:256 2019-12-25 15:37:08.155 W/Tinker.Tinker: tinker patch directory: /data/user/0/com.test.demo/tinker 2019-12-25 15:37:08.157 I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-12-25 15:37:08.158 I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.test.demo, main process:true, systemOTA:false, fingerPrint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:null, useInterpretMode:false 2019-12-25 15:37:08.158 W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2019-12-25 15:37:08.158 I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.test.demo/tinker, code: -2, cost: 3ms 2019-12-25 15:37:08.158 W/Tinker.Tinker: tinker load fail! 2019-12-25 15:37:08.224 D/ServerProvider: [onCreate] App = com.test.demo.app.XLTinkerApplication@aaf91e4 2019-12-25 15:37:08.271 I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-12-25 15:37:08.271 D/Tinker.DefaultAppLike: onCreate 2019-12-25 15:37:09.116 W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 2019-12-25 15:37:10.879 D/BuglyTinkerManager: 配置Bugly Tinker 2019-12-25 15:37:15.031 D/BuglyTinkerManager: 收到补丁-补丁下载地址=https://s.beta.gtimg.com/rdmimg/hot_patch/xxxx.zip 2019-12-25 15:37:16.581 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 1% 2019-12-25 15:37:16.590 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 2% 2019-12-25 15:37:16.597 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 3% 2019-12-25 15:37:16.613 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 4% 2019-12-25 15:37:16.823 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 5% 2019-12-25 15:37:16.836 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 7% 2019-12-25 15:37:16.838 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 7% 2019-12-25 15:37:16.840 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 8% 2019-12-25 15:37:16.848 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 9% 2019-12-25 15:37:16.864 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 13% 2019-12-25 15:37:16.865 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 13% 2019-12-25 15:37:16.865 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 13% 2019-12-25 15:37:17.100 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 14% 2019-12-25 15:37:17.105 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 15% 2019-12-25 15:37:17.114 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 16% 2019-12-25 15:37:17.117 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 17% 2019-12-25 15:37:18.347 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 21% 2019-12-25 15:37:18.349 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 21% 2019-12-25 15:37:18.435 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 21% 2019-12-25 15:37:18.438 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 21% 2019-12-25 15:37:18.495 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 26% 2019-12-25 15:37:18.496 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 26% 2019-12-25 15:37:18.509 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 27% 2019-12-25 15:37:18.510 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 27% 2019-12-25 15:37:18.523 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 28% 2019-12-25 15:37:18.538 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 28% 2019-12-25 15:37:18.673 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 30% 2019-12-25 15:37:18.673 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 30% 2019-12-25 15:37:18.688 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 32% 2019-12-25 15:37:18.689 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 34% 2019-12-25 15:37:18.704 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 35% 2019-12-25 15:37:18.705 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 35% 2019-12-25 15:37:18.709 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 36% 2019-12-25 15:37:18.721 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 39% 2019-12-25 15:37:18.722 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 39% 2019-12-25 15:37:18.722 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 39% 2019-12-25 15:37:18.859 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 40% 2019-12-25 15:37:18.872 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 42% 2019-12-25 15:37:18.872 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 42% 2019-12-25 15:37:18.876 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 43% 2019-12-25 15:37:18.889 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 46% 2019-12-25 15:37:18.890 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 46% 2019-12-25 15:37:18.905 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 49% 2019-12-25 15:37:18.906 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 49% 2019-12-25 15:37:18.906 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 49% 2019-12-25 15:37:18.908 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 50% 2019-12-25 15:37:18.928 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 53% 2019-12-25 15:37:18.928 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 53% 2019-12-25 15:37:18.929 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 53% 2019-12-25 15:37:18.942 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 54% 2019-12-25 15:37:19.164 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.165 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.165 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.166 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.166 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.167 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.167 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.167 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.167 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 69% 2019-12-25 15:37:19.179 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 72% 2019-12-25 15:37:19.180 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 72% 2019-12-25 15:37:19.180 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 72% 2019-12-25 15:37:19.191 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 72% 2019-12-25 15:37:19.357 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 74% 2019-12-25 15:37:19.374 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 75% 2019-12-25 15:37:19.374 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 76% 2019-12-25 15:37:19.375 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 76% 2019-12-25 15:37:19.389 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 80% 2019-12-25 15:37:19.390 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 80% 2019-12-25 15:37:19.406 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 84% 2019-12-25 15:37:19.407 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 84% 2019-12-25 15:37:19.407 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 84% 2019-12-25 15:37:19.407 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 84% 2019-12-25 15:37:19.424 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 86% 2019-12-25 15:37:19.441 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 87% 2019-12-25 15:37:19.443 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 87% 2019-12-25 15:37:19.456 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 89% 2019-12-25 15:37:19.456 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 89% 2019-12-25 15:37:19.617 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 92% 2019-12-25 15:37:19.630 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 94% 2019-12-25 15:37:19.631 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 94% 2019-12-25 15:37:19.641 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 97% 2019-12-25 15:37:19.641 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 97% 2019-12-25 15:37:19.642 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 97% 2019-12-25 15:37:19.642 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 97% 2019-12-25 15:37:19.643 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 98% 2019-12-25 15:37:19.656 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 99% 2019-12-25 15:37:19.671 D/BuglyTinkerManager: 补丁下载中-进度=正在下载 100% 2019-12-25 15:37:19.677 D/Tinker.TinkerManager: onDownloadSuccess. 2019-12-25 15:37:19.677 D/BuglyTinkerManager: 补丁下载成功-msg=/data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk 2019-12-25 15:37:19.677 D/Tinker.TinkerManager: check if has new patch. 2019-12-25 15:37:19.682 D/Tinker.TinkerManager: has new patch. 2019-12-25 15:37:19.688 D/Tinker.TinkerManager: starting patch. 2019-12-25 15:37:19.692 I/Tinker.TinkerPatchListener: receive a patch file: /data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk, file size:745274 2019-12-25 15:37:19.695 W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.test.demo/tinker/patch.info (No such file or directory) 2019-12-25 15:37:19.695 W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.test.demo/tinker/patch.info (No such file or directory) 2019-12-25 15:37:19.696 W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 2019-12-25 15:37:19.696 I/Tinker.TinkerPatchListener: get platform:null 2019-12-25 15:37:19.696 I/Tinker.TinkerPatchService: run patch service... 2019-12-25 15:37:19.742 D/Boost: hostingType=service, hostingName=com.test.demo/com.tencent.tinker.lib.service.TinkerPatchService, callerPackage=com.test.demo, isSystem=false, isBoostNeeded=false. 2019-12-25 15:37:19.746 I/ActivityManager: Start proc 12689:com.test.demo:patch/u0a200 for service com.test.demo/com.tencent.tinker.lib.service.TinkerPatchService caller=com.test.demo 2019-12-25 15:37:20.442 W/Tinker.TinkerLoader: tryLoadPatchFiles: we don't load patch with :patch process itself, just return 2019-12-25 15:37:20.446 D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-12-25 15:37:20.475 D/RePlugin.ws001: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference at f.l.b.y.a(PluginManager.java:12) at f.l.b.y.a(PluginManager.java:4) at com.qihoo360.replugin.RePlugin$a.a(RePlugin.java:41) at com.test.demo.app.BrothersApplication.onBaseContextAttached(BrothersApplication.java:8) at java.lang.reflect.Method.invoke(Native Method) at com.tencent.tinker.loader.app.TinkerApplication.invokeAppLikeOnBaseContextAttached(TinkerApplication.java:3) at com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(TinkerApplication.java:5) at com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(TinkerApplication.java:3) at android.app.Application.attach(Application.java:215) at java.lang.reflect.Method.invoke(Native Method) at com.stub.StubApp.attachBaseContext(SourceFile:194) at android.app.Application.attach(Application.java:215) at android.app.Instrumentation.newApplication(Instrumentation.java:1122) at android.app.LoadedApk.makeApplication(LoadedApk.java:1065) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5920) at android.app.ActivityThread.access$1200(ActivityThread.java:200) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6810) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) 2019-12-25 15:37:20.550 I/Tinker.TinkerPatchListener: application maxMemory:256 2019-12-25 15:37:20.552 W/Tinker.Tinker: tinker patch directory: /data/user/0/com.test.demo/tinker 2019-12-25 15:37:20.555 I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-12-25 15:37:20.555 I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-1, process name:com.test.demo:patch, main process:false, systemOTA:false, fingerPrint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:null, useInterpretMode:false 2019-12-25 15:37:20.556 W/Tinker.TinkerLoadResult: tinker is disable, just return 2019-12-25 15:37:20.556 I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.test.demo/tinker, code: -1, cost: 4ms 2019-12-25 15:37:20.556 W/Tinker.Tinker: tinker load fail! 2019-12-25 15:37:20.562 I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-12-25 15:37:20.563 D/Tinker.DefaultAppLike: onCreate 2019-12-25 15:37:20.573 I/Tinker.TinkerPatchService: for system version >= Android O, we just ignore increasingPriority job to avoid crash or toasts. 2019-12-25 15:37:20.573 I/Tinker.DefaultPatchReporter: patchReporter onPatchServiceStart: patch service start 2019-12-25 15:37:20.581 W/Tinker.UpgradePatchRetry: try copy file: /data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk to /data/user/0/com.test.demo/tinker_temp/temp.apk 2019-12-25 15:37:20.581 W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return 2019-12-25 15:37:20.656 I/Tinker.UpgradePatch: UpgradePatch tryPatch:patchMd5:4f4f911aca58ab3691e2f6af56ad380f 2019-12-25 15:37:20.665 W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.test.demo/tinker/patch.info (No such file or directory) 2019-12-25 15:37:20.665 W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.test.demo/tinker/patch.info (No such file or directory) 2019-12-25 15:37:20.665 I/Tinker.UpgradePatch: UpgradePatch tryPatch:patchVersionDirectory:/data/user/0/com.test.demo/tinker/patch-4f4f911a 2019-12-25 15:37:20.674 W/Tinker.UpgradePatch: UpgradePatch copy patch file, src file: /data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk size: 745274, dest file: /data/user/0/com.test.demo/tinker/patch-4f4f911a/patch-4f4f911a.apk size:745274 2019-12-25 15:37:20.692 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes.dex.jar 2019-12-25 15:37:20.709 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:20.709 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes2.dex.jar 2019-12-25 15:37:20.776 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:20.776 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes3.dex.jar 2019-12-25 15:37:21.116 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:21.116 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes4.dex.jar 2019-12-25 15:37:21.176 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:21.177 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes5.dex.jar 2019-12-25 15:37:21.183 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:21.183 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes6.dex.jar 2019-12-25 15:37:21.258 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:21.258 I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/test.dex.jar 2019-12-25 15:37:21.261 I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true 2019-12-25 15:37:21.334 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/test.dex.jar 2019-12-25 15:37:21.334 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes4.dex.jar 2019-12-25 15:37:21.335 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes3.dex.jar 2019-12-25 15:37:21.335 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes2.dex.jar 2019-12-25 15:37:21.336 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes6.dex.jar 2019-12-25 15:37:21.336 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes.dex.jar 2019-12-25 15:37:21.336 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/classes5.dex.jar 2019-12-25 15:37:21.336 I/Tinker.DexDiffPatchInternal: merge classN dex file /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk, result: true, size: 742336, use: 75ms 2019-12-25 15:37:21.337 I/Tinker.DexDiffPatchInternal: legal files to do dexopt: [/data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk] 2019-12-25 15:37:21.339 D/Tinker.TinkerInternals: getCurrentInstructionSet:arm 2019-12-25 15:37:21.340 I/Tinker.DexDiffPatchInternal: patch recover, try to optimize dex file count:1, optimizeDexDirectory:/data/user/0/com.test.demo/tinker/patch-4f4f911a/odex/ 2019-12-25 15:37:21.343 I/Tinker.DexDiffPatchInternal: start to parallel optimize dex /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk, size: 742336 2019-12-25 15:37:24.707 I/Tinker.DexDiffPatchInternal: success to parallel optimize dex /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk, opt file:/data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/oat/arm/tinker_classN.odex, opt file size: 25000, use time 3364 2019-12-25 15:37:24.708 I/Tinker.DexDiffPatchInternal: recover dex result:true, cost:4022 2019-12-25 15:37:24.710 W/Tinker.BsDiffPatchInternal: patch recover, library is not contained 2019-12-25 15:37:24.716 W/Tinker.ResDiffPatchInternal: patch recover, resource is not contained 2019-12-25 15:37:24.716 I/Tinker.DexDiffPatchInternal: raw dex count: 7, dex opt dex count: 1, final wait times: 120 2019-12-25 15:37:24.726 I/Tinker.DexDiffPatchInternal: check dex optimizer file exist: /data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/oat/arm/tinker_classN.odex, size 25000 2019-12-25 15:37:24.726 I/Tinker.DexDiffPatchInternal: check dex optimizer file format: tinker_classN.odex, size 25000 2019-12-25 15:37:24.733 I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.test.demo/tinker/patch.info , oldVer:, newVer:4f4f911aca58ab3691e2f6af56ad380f, isProtectedApp:1, isRemoveNewVersion:0, fingerprint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:odex 2019-12-25 15:37:24.734 I/Tinker.UpgradePatchRetry: onPatchResetMaxCheck, reset max check to 1 2019-12-25 15:37:24.735 W/Tinker.UpgradePatch: UpgradePatch tryPatch: done, it is ok 2019-12-25 15:37:24.735 I/Tinker.DefaultPatchReporter: patchReporter onPatchResult: patch all result path: /data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk, success: true, cost: 4129 2019-12-25 15:37:24.736 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/tinker_temp/temp.apk 2019-12-25 15:37:24.752 I/Tinker.TinkerResultService: TinkerResultService receive result: PatchResult: isSuccess:true rawPatchFilePath:/data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk costTime:4129 patchVersion:4f4f911aca58ab3691e2f6af56ad380f 2019-12-25 15:37:24.756 D/BuglyTinkerManager: 补丁应用成功-msg= PatchResult: isSuccess:true rawPatchFilePath:/data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk costTime:4129 patchVersion:4f4f911aca58ab3691e2f6af56ad380f 2019-12-25 15:37:24.757 W/Tinker.DefaultTinkerResultService: deleteRawPatchFile rawFile path: /data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk 2019-12-25 15:37:24.757 I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.test.demo/app_tmpPatch/tmpPatch.apk 2019-12-25 15:37:24.758 I/Tinker.TinkerResultService: tinker wait screen to restart process 2019-12-25 15:37:26.344 W/Tinker.TinkerLoader: tryLoadPatchFiles:version is blank, wait main process to restart 2019-12-25 15:37:26.348 D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-12-25 15:37:26.428 I/Tinker.TinkerPatchListener: application maxMemory:256 2019-12-25 15:37:26.431 W/Tinker.Tinker: tinker patch directory: /data/user/0/com.test.demo/tinker 2019-12-25 15:37:26.434 I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-12-25 15:37:26.435 I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-5, process name:com.test.demo:channel, main process:false, systemOTA:false, fingerPrint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:odex, useInterpretMode:false 2019-12-25 15:37:26.435 I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:, newVersion:4f4f911aca58ab3691e2f6af56ad380f, current: 2019-12-25 15:37:26.435 E/Tinker.TinkerLoadResult: path info blank, wait main process to restart 2019-12-25 15:37:26.435 I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.test.demo/tinker, code: -5, cost: 33ms 2019-12-25 15:37:26.435 W/Tinker.Tinker: tinker load fail! 2019-12-25 15:37:26.440 I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-12-25 15:37:26.440 D/Tinker.DefaultAppLike: onCreate 2019-12-25 15:37:26.655 W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return
接收并合成补丁包后,再次冷启动的日志: 2019-12-25 15:38:41.823 D/Tinker.TinkerInternals: getCurrentInstructionSet:arm 2019-12-25 15:38:41.824 W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true 2019-12-25 15:38:41.825 D/Tinker.TinkerInternals: same fingerprint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys 2019-12-25 15:38:41.826 W/Tinker.TinkerInternals: getSafeModeCount: preferName:tinker_own_config_com.test.demo count:0 2019-12-25 15:38:41.830 W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.test.demo count:1 2019-12-25 15:38:41.830 I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk", dex file "/data/data/com.test.demo/.jiagu/tmp.dex"],nativeLibraryDirectories=[/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/lib/arm, /data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk!/lib/armeabi-v7a, /system/lib]]] 2019-12-25 15:38:41.830 I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk md5, use time: 0 2019-12-25 15:38:41.831 I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.test.demo/tinker/patch-4f4f911a/odex, dex size:1 2019-12-25 15:38:41.835 I/Tinker.ClassLoaderAdder: after loaded classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk", zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk", dex file "/data/data/com.test.demo/.jiagu/tmp.dex"],nativeLibraryDirectories=[/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/lib/arm, /data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk!/lib/armeabi-v7a, /system/lib]]], dex size:1 2019-12-25 15:38:41.835 W/Tinker.ClassLoaderAdder: checkDexInstall result:true 2019-12-25 15:38:41.838 I/Tinker.IncrementCompMgr: package has no incremental component meta, skip init. 2019-12-25 15:38:41.838 I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.test.demo/tinker/patch.info , oldVer:4f4f911aca58ab3691e2f6af56ad380f, newVer:4f4f911aca58ab3691e2f6af56ad380f, isProtectedApp:1, isRemoveNewVersion:0, fingerprint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:odex 2019-12-25 15:38:41.842 I/Tinker.TinkerLoader: tryLoadPatchFiles: load end, ok! 2019-12-25 15:38:41.844 D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-12-25 15:38:41.908 I/Tinker.TinkerPatchListener: application maxMemory:256 2019-12-25 15:38:41.911 W/Tinker.Tinker: tinker patch directory: /data/user/0/com.test.demo/tinker 2019-12-25 15:38:41.914 I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-12-25 15:38:41.915 I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:0, process name:com.test.demo, main process:true, systemOTA:false, fingerPrint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:odex, useInterpretMode:false 2019-12-25 15:38:41.915 I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:, newVersion:4f4f911aca58ab3691e2f6af56ad380f, current:4f4f911aca58ab3691e2f6af56ad380f 2019-12-25 15:38:41.915 I/Tinker.TinkerLoadResult: oh yeah, tinker load all success 2019-12-25 15:38:41.915 I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchVersionChanged: patch version change from to 4f4f911aca58ab3691e2f6af56ad380f 2019-12-25 15:38:41.916 I/Tinker.UpgradePatchRetry: onPatchResetMaxCheck, reset max check to 1 2019-12-25 15:38:41.918 I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.test.demo/tinker, code: 0, cost: 46ms 2019-12-25 15:38:41.923 W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.test.demo count:0 2019-12-25 15:38:41.970 D/ServerProvider: [onCreate] App = com.test.demo.app.XLTinkerApplication@868dcbd
--------- beginning of crash
2019-12-25 15:38:42.015 I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-12-25 15:38:42.015 D/Tinker.DefaultAppLike: onCreate 2019-12-25 15:38:42.257 W/System.err: at com.tencent.tinker.loader.app.TinkerApplication.invokeAppLikeOnCreate(TinkerApplication.java:3) 2019-12-25 15:38:42.257 W/System.err: at com.tencent.tinker.loader.app.TinkerApplication.onCreate(TinkerApplication.java:4) 2019-12-25 15:38:42.307 D/BuglyTinkerManager: 配置Bugly Tinker 2019-12-25 15:38:43.176 W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.test.demo/tinker_temp/temp.apk is not exist, just return 2019-12-25 15:38:48.228 D/hdz-login: Tinker.with(this).isTinkerLoaded();=true 2019-12-25 15:38:58.293 D/Tinker.TinkerInternals: getCurrentInstructionSet:arm 2019-12-25 15:38:58.294 W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true 2019-12-25 15:38:58.295 D/Tinker.TinkerInternals: same fingerprint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys 2019-12-25 15:38:58.308 W/Tinker.TinkerInternals: getSafeModeCount: preferName:tinker_own_config_com.test.demo:channel count:0 2019-12-25 15:38:58.316 W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.test.demo:channel count:1 2019-12-25 15:38:58.317 I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk", dex file "/data/data/com.test.demo/.jiagu/tmp.dex"],nativeLibraryDirectories=[/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/lib/arm, /data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk!/lib/armeabi-v7a, /system/lib]]] 2019-12-25 15:38:58.317 I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk md5, use time: 0 2019-12-25 15:38:58.319 I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.test.demo/tinker/patch-4f4f911a/odex, dex size:1 2019-12-25 15:38:58.328 I/Tinker.ClassLoaderAdder: after loaded classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/user/0/com.test.demo/tinker/patch-4f4f911a/dex/tinker_classN.apk", zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk", dex file "/data/data/com.test.demo/.jiagu/tmp.dex"],nativeLibraryDirectories=[/data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/lib/arm, /data/app/com.test.demo-FuUlGsVNk9hKQhcC-7D12A==/base.apk!/lib/armeabi-v7a, /system/lib]]], dex size:1 2019-12-25 15:38:58.329 W/Tinker.ClassLoaderAdder: checkDexInstall result:true 2019-12-25 15:38:58.333 I/Tinker.IncrementCompMgr: package has no incremental component meta, skip init. 2019-12-25 15:38:58.334 I/Tinker.TinkerLoader: tryLoadPatchFiles: load end, ok! 2019-12-25 15:38:58.337 D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-12-25 15:38:58.419 I/Tinker.TinkerPatchListener: application maxMemory:256 2019-12-25 15:38:58.422 W/Tinker.Tinker: tinker patch directory: /data/user/0/com.test.demo/tinker 2019-12-25 15:38:58.424 I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-12-25 15:38:58.425 I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:0, process name:com.test.demo:channel, main process:false, systemOTA:false, fingerPrint:xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.4.0.PFGCNXM:user/release-keys, oatDir:odex, useInterpretMode:false 2019-12-25 15:38:58.425 I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:4f4f911aca58ab3691e2f6af56ad380f, newVersion:4f4f911aca58ab3691e2f6af56ad380f, current:4f4f911aca58ab3691e2f6af56ad380f 2019-12-25 15:38:58.425 I/Tinker.TinkerLoadResult: oh yeah, tinker load all success 2019-12-25 15:38:58.425 I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.test.demo/tinker, code: 0, cost: 103ms 2019-12-25 15:38:58.431 W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.test.demo:channel count:0 2019-12-25 15:38:58.439 I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-12-25 15:38:58.439 D/Tinker.DefaultAppLike: onCreate 2019-12-25 15:38:58.666 W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return 2019-12-25 15:39:04.782 W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.baidu.input_mi/tinker 2019-12-25 15:39:04.782 D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-12-25 15:39:04.807 I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-12-25 15:39:04.807 D/Tinker.DefaultAppLike: onCreate
Issue/提问须知
在提交issue之前,我们应该先查询是否已经有相关的issue以及常见问题。提交issue时,我们需要写明issue的原因,以及编译或运行过程的日志(加载进程以及Patch进程)。issue需要以下面的格式: