Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.13k stars 3.33k forks source link

1.9.13 在小米手机上加载补丁失败,其他手机正常 #1122

Open ehangwork opened 5 years ago

ehangwork commented 5 years ago

异常类型:加载补丁失败

手机型号:小米6x 红米5 plus

手机系统版本:Android 9.0 Android 8.1.0

tinker版本:1.9.13

gradle版本:4.10.1

是否使用热更新SDK: 如 TinkerPatch SDK 或者 Bugly SDK

系统:Mac

堆栈/日志:
2019-06-06 12:08:04.708 12823-12823/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch info not exist:/data/user/0/com.guihuaba.ghs/tinker/patch.info
2019-06-06 12:08:04.712 12823-12823/? D/Tinker.DefaultAppLike: onBaseContextAttached:
2019-06-06 12:08:04.719 12823-12823/? I/Tinker.SimplePatchListener: application maxMemory:192
2019-06-06 12:08:04.722 12823-12823/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.guihuaba.ghs/tinker
2019-06-06 12:08:04.723 12823-12823/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13
2019-06-06 12:08:04.723 12823-12823/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-3, process name:com.guihuaba.ghs, main process:true, systemOTA:false, fingerPrint:xiaomi/vince/vince:8.1.0/OPM1.171019.019/9.6.4:user/release-keys, oatDir:null, useInterpretMode:false
2019-06-06 12:08:04.723 12823-12823/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return
2019-06-06 12:08:04.723 12823-12823/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.guihuaba.ghs/tinker, code: -3, cost: 5ms
2019-06-06 12:08:04.725 12823-12823/? W/Tinker.Tinker: tinker load fail!
2019-06-06 12:08:04.777 12823-12823/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations.
2019-06-06 12:08:04.777 12823-12823/? D/Tinker.DefaultAppLike: onCreate
2019-06-06 12:08:05.546 12823-12823/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return
2019-06-06 12:08:05.579 12823-12911/? I/Tinker.SimplePatchListener: receive a patch file: /data/user/0/com.guihuaba.ghs/cache/patch/3aaee5d3caf47653c5041c4e61cb5f23, file size:5004
2019-06-06 12:08:05.584 12823-12911/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.guihuaba.ghs/tinker/patch.info (No such file or directory)
2019-06-06 12:08:05.585 12823-12911/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.guihuaba.ghs/tinker/patch.info (No such file or directory)
2019-06-06 12:08:05.585 12823-12911/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return
2019-06-06 12:08:05.586 12823-12911/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return
2019-06-06 12:08:05.587 12823-12911/? I/Tinker.TinkerPatchService: run patch service...
2019-06-06 12:08:05.587 12823-12911/? I/Tinker.TinkerPatchService: jobId of tinker patch service is: 914439082
2019-06-06 12:08:05.589 1645-3281/? I/AutoStartManagerService: MIUILOG- Reject service :Intent { cmp=com.guihuaba.ghs/com.tencent.tinker.lib.service.TinkerPatchService } userId : 0 uid : 10183
2019-06-06 12:08:15.308 13234-13234/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch info not exist:/data/user/0/com.guihuaba.ghs/tinker/patch.info
2019-06-06 12:08:15.309 13234-13234/? D/Tinker.DefaultAppLike: onBaseContextAttached:
2019-06-06 12:08:15.312 13234-13234/? I/Tinker.SimplePatchListener: application maxMemory:192
2019-06-06 12:08:15.316 13234-13234/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.guihuaba.ghs/tinker
2019-06-06 12:08:15.317 13234-13234/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13
2019-06-06 12:08:15.317 13234-13234/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-3, process name:com.guihuaba.ghs:channel, main process:false, systemOTA:false, fingerPrint:xiaomi/vince/vince:8.1.0/OPM1.171019.019/9.6.4:user/release-keys, oatDir:null, useInterpretMode:false
2019-06-06 12:08:15.317 13234-13234/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return
2019-06-06 12:08:15.318 13234-13234/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.guihuaba.ghs/tinker, code: -3, cost: 3ms
2019-06-06 12:08:15.318 13234-13234/? W/Tinker.Tinker: tinker load fail!
2019-06-06 12:08:15.322 13234-13234/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations.
2019-06-06 12:08:15.323 13234-13234/? D/Tinker.DefaultAppLike: onCreate
2019-06-06 12:08:15.541 13234-13234/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return
tys282000 commented 5 years ago

尝试一下1.9.13.1? 看起来也是 #1114 里描述的问题。

kasogg commented 5 years ago

尝试一下1.9.13.1? 看起来也是 #1114 里描述的问题。

试了1.9.13.2还是不行,小米6X,Android 8.1.0

2019-06-25 16:33:16.972 20723-20723/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-06-25 16:33:16.974 20723-20723/? I/Tinker.TinkerPatchListener: application maxMemory:256 2019-06-25 16:33:16.976 20723-20723/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.dxy.gaia/tinker 2019-06-25 16:33:16.976 20723-20723/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-06-25 16:33:16.977 20723-20723/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-3, process name:com.dxy.gaia:pushservice, main process:false, systemOTA:false, fingerPrint:xiaomi/wayne/wayne:8.1.0/OPM1.171019.011/V9.5.11.0.ODCCNFA:user/release-keys, oatDir:null, useInterpretMode:false 2019-06-25 16:33:16.977 20723-20723/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2019-06-25 16:33:16.977 20723-20723/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.dxy.gaia/tinker, code: -3, cost: 2ms 2019-06-25 16:33:16.977 20723-20723/? W/Tinker.Tinker: tinker load fail! 2019-06-25 16:33:16.984 20723-20723/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-06-25 16:33:16.984 20723-20723/? D/Tinker.DefaultAppLike: onCreate 2019-06-25 16:33:17.028 20656-20656/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 2019-06-25 16:33:17.042 20723-20723/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return 2019-06-25 16:33:20.186 20656-20656/? D/Tinker.TinkerManager: onDownloadSuccess. 2019-06-25 16:33:20.187 20656-20656/? D/Tinker.TinkerManager: check if has new patch. 2019-06-25 16:33:20.194 20656-20656/? D/Tinker.TinkerManager: has new patch. 2019-06-25 16:33:20.195 20656-20656/? D/Tinker.TinkerManager: starting patch. 2019-06-25 16:33:20.201 20656-20656/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.dxy.gaia/tinker/patch.info (No such file or directory) 2019-06-25 16:33:20.201 20656-20656/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.dxy.gaia/tinker/patch.info (No such file or directory) 2019-06-25 16:33:20.202 20656-20656/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 2019-06-25 16:33:20.202 20656-20656/? I/Tinker.TinkerPatchService: run patch service... 2019-06-25 16:33:20.202 20656-20656/? I/Tinker.TinkerPatchService: jobId of tinker patch service is: 131969771 2019-06-25 16:33:20.204 2024-10558/? I/AutoStartManagerService: MIUILOG- Reject service :Intent { cmp=com.dxy.gaia/com.tencent.tinker.lib.service.TinkerPatchService } userId : 0 uid : 10534 2019-06-25 16:33:20.205 2024-10558/? D/JobSchedulerService: Error executing JobStatus{dcfa1d2 #u0a534/131969771 com.dxy.gaia/com.tencent.tinker.lib.service.TinkerPatchService u=0 s=10534 TIME=none:-1ms READY}

ehangwork commented 5 years ago

我这边尝试小米6X Android 8.1.0 加载补丁正常。

fishsoft commented 5 years ago

哦我也遇到了这样的问题,使用sdk版本是1.9.13.2 2019-07-11 16:10:00.764 13367-13367/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch info not exist:/data/user/0/me.bakumon.ugank/tinker/patch.info 2019-07-11 16:10:00.768 13367-13367/? W/Tinker.Tinker: tinker patch directory: /data/user/0/me.bakumon.ugank/tinker 2019-07-11 16:10:00.770 13367-13367/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.2 2019-07-11 16:10:00.772 13367-13367/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-3, process name:me.bakumon.ugank, main process:true, systemOTA:false, fingerPrint:HONOR/BKK-AL10/HWBKK-Q:8.1.0/HONORBKK-AL10/187(C00)R1:user/release-keys, oatDir:null, useInterpretMode:false 2019-07-11 16:10:00.772 13367-13367/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2019-07-11 16:10:00.773 13367-13367/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/me.bakumon.ugank/tinker, code: -3, cost: 3ms 2019-07-11 16:10:00.773 13367-13367/? W/Tinker.Tinker: tinker load fail! 2019-07-11 16:10:00.791 13367-13367/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-07-11 16:10:01.914 13367-13367/me.bakumon.ugank W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/me.bakumon.ugank/tinker/patch.info (No such file or directory) 2019-07-11 16:10:01.916 13367-13367/me.bakumon.ugank I/Tinker.TinkerPatchService: run patch service... 2019-07-11 16:10:02.560 13367-13494/me.bakumon.ugank I/Tinker.DefaultTinkerResultService: DefaultTinkerResultService received a result: PatchResult: isSuccess:false rawPatchFilePath:/storage/emulated/0/YIndex/1562831298604994.apk costTime:125