Tencent / tinker

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

补丁包正常识别了布局文件改动,但补丁加载后改变却未生效 #1709

Closed csbz17027 closed 1 year ago

csbz17027 commented 1 year ago

Issue/提问须知

在提交issue之前,我们应该先查询是否已经有相关的issue以及常见问题。提交issue时,我们需要写明issue的原因,以及编译或运行过程的日志(加载进程以及Patch进程)。issue需要以下面的格式:


异常类型:app运行时异常

手机型号:小米MIX2

手机系统版本:Android 9

tinker版本:1.9.14.25.1

gradle版本:7.1.2

是否使用热更新SDK: TinkerPatch SDK

系统:如:Windows

同时修改了代码和xml布局文件,代码的修改生效了,但布局文件的没有。布局文件的改动仅为修改了一个textView的字体颜色。
补丁包解压缩后也确实有res/layout/fm_main.xml文件存在,日志中的modifiedSet:res/layout/fm_main.xml也说明是确实识别到了。
请教下各位这可能是什么原因造成的呢?

日志:2023-04-12 11:35:43.518 com.sd02.dobhall D/Tinker.TinkerLoader: tryLoad test test
2023-04-12 11:35:43.518 com.sd02.dobhall W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.sd02.dobhall/tinker
2023-04-12 11:35:43.519 com.sd02.dobhall D/Tinker.DefaultAppLike: onBaseContextAttached:
2023-04-12 11:35:43.521 com.sd02.dobhall V/Tinker.SamplePatchListener: application maxMemory:256
2023-04-12 11:35:43.523 com.sd02.dobhall W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sd02.dobhall/tinker
2023-04-12 11:35:43.523 com.sd02.dobhall I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.25.1
2023-04-12 11:35:43.524 com.sd02.dobhall I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.sd02.dobhall, main process:true, systemOTA:false, fingerPrint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:null, useInterpretMode:false
2023-04-12 11:35:43.524 com.sd02.dobhall W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return
2023-04-12 11:35:43.525 com.sd02.dobhall I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sd02.dobhall/tinker, code: -2, cost: 1ms
2023-04-12 11:35:43.525 com.sd02.dobhall W/Tinker.Tinker: tinker load fail!
2023-04-12 11:35:43.550 com.sd02.dobhall D/Tinker.DefaultAppLike: onCreate
2023-04-12 11:35:43.557 com.sd02.dobhall D/Tinker.DefaultAppLike: onConfigurationChanged:{1.0 ?mcc?mnc [zh_CN] ldltr sw392dp w785dp h365dp 440dpi nrml long land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2160, 1080) mAppBounds=Rect(0, 0 - 2160, 1080) mWindowingMode=fullscreen mActivityType=undefined} s.240 themeChanged=0 themeChangedFlags=0 extraData = Bundle[{}]}
2023-04-12 11:35:43.794 com.sd02.dobhall V/Tinker.SamplePatchListener: receive a patch file: /storage/emulated/0/amyh_patch_signed_7zip.apk, file size:51461
2023-04-12 11:35:43.799 com.sd02.dobhall W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.sd02.dobhall/tinker/patch.info (No such file or directory)
2023-04-12 11:35:43.800 com.sd02.dobhall W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.sd02.dobhall/tinker/patch.info (No such file or directory)
2023-04-12 11:35:43.800 com.sd02.dobhall W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return
2023-04-12 11:35:43.804 com.sd02.dobhall V/Tinker.SamplePatchListener: get platform:all
2023-04-12 11:35:43.807 com.sd02.dobhall I/Tinker.TinkerPatchService: run patch service...
2023-04-12 11:35:43.854 com.sd02.dobhall D/Tinker.TinkerLoader: [PendingLog @ 2023-04-12 11:35:43.518] tryLoad test test
2023-04-12 11:35:43.854 com.sd02.dobhall W/Tinker.TinkerLoader: [PendingLog @ 2023-04-12 11:35:43.518] tryLoadPatchFiles:patch dir not exist:/data/user/0/com.sd02.dobhall/tinker
2023-04-12 11:35:43.854 com.sd02.dobhall D/Tinker.DefaultAppLike: [PendingLog @ 2023-04-12 11:35:43.519] onBaseContextAttached:
2023-04-12 11:35:44.095 com.sd02.dobhall D/Tinker.TinkerLoader: tryLoad test test
2023-04-12 11:35:44.096 com.sd02.dobhall W/Tinker.TinkerLoader: tryLoadPatchFiles: we don't load patch with :patch process itself, just return
2023-04-12 11:35:44.097 com.sd02.dobhall D/Tinker.DefaultAppLike: onBaseContextAttached:
2023-04-12 11:35:44.104 com.sd02.dobhall V/Tinker.SamplePatchListener: application maxMemory:256
2023-04-12 11:35:44.106 com.sd02.dobhall W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sd02.dobhall/tinker
2023-04-12 11:35:44.107 com.sd02.dobhall I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.25.1
2023-04-12 11:35:44.107 com.sd02.dobhall I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-1, process name:com.sd02.dobhall:patch, main process:false, systemOTA:false, fingerPrint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:null, useInterpretMode:false
2023-04-12 11:35:44.108 com.sd02.dobhall W/Tinker.TinkerLoadResult: tinker is disable, just return
2023-04-12 11:35:44.108 com.sd02.dobhall I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sd02.dobhall/tinker, code: -1, cost: 1ms
2023-04-12 11:35:44.108 com.sd02.dobhall W/Tinker.Tinker: tinker load fail!
2023-04-12 11:35:44.112 com.sd02.dobhall D/Tinker.DefaultAppLike: onCreate
2023-04-12 11:35:44.119 com.sd02.dobhall W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return
2023-04-12 11:35:44.122 com.sd02.dobhall I/Tinker.TinkerPatchService: for system version >= Android O, we just ignore increasingPriority job to avoid crash or toasts.
2023-04-12 11:35:44.124 com.sd02.dobhall D/Tinker.TinkerLoader: [PendingLog @ 2023-04-12 11:35:44.095] tryLoad test test
2023-04-12 11:35:44.124 com.sd02.dobhall I/Tinker.DefaultPatchReporter: patchReporter onPatchServiceStart: patch service start
2023-04-12 11:35:44.125 com.sd02.dobhall W/Tinker.TinkerLoader: [PendingLog @ 2023-04-12 11:35:44.096] tryLoadPatchFiles: we don't load patch with :patch process itself, just return
2023-04-12 11:35:44.125 com.sd02.dobhall D/Tinker.DefaultAppLike: [PendingLog @ 2023-04-12 11:35:44.097] onBaseContextAttached:
2023-04-12 11:35:44.129 com.sd02.dobhall W/Tinker.UpgradePatchRetry: try copy file: /storage/emulated/0/amyh_patch_signed_7zip.apk to /data/user/0/com.sd02.dobhall/tinker_temp/temp.apk
2023-04-12 11:35:44.209 com.sd02.dobhall I/Tinker.UpgradePatch: UpgradePatch tryPatch:patchMd5:22c67317bfd5c7dbd0bc9786b8a8c813
2023-04-12 11:35:44.211 com.sd02.dobhall W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.sd02.dobhall/tinker/patch.info (No such file or directory)
2023-04-12 11:35:44.211 com.sd02.dobhall W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.sd02.dobhall/tinker/patch.info (No such file or directory)
2023-04-12 11:35:44.211 com.sd02.dobhall I/Tinker.UpgradePatch: UpgradePatch tryPatch:patchVersionDirectory:/data/user/0/com.sd02.dobhall/tinker/patch-22c67317
2023-04-12 11:35:44.213 com.sd02.dobhall W/Tinker.UpgradePatch: UpgradePatch copy patch file, src file: /storage/emulated/0/amyh_patch_signed_7zip.apk size: 51461, dest file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/patch-22c67317.apk size:51461
2023-04-12 11:35:48.060 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes.dex.jar, size: 4094055, use time: 3839
2023-04-12 11:35:48.070 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes10.dex.jar, size: 2812, use time: 9
2023-04-12 11:35:48.087 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes11.dex.jar, size: 8241, use time: 16
2023-04-12 11:35:48.181 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes12.dex.jar, size: 105789, use time: 93
2023-04-12 11:35:48.187 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes13.dex.jar, size: 2339, use time: 6
2023-04-12 11:35:48.199 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes14.dex.jar, size: 10940, use time: 11
2023-04-12 11:35:50.788 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes15.dex.jar, size: 3632647, use time: 2589
2023-04-12 11:35:50.946 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes2.dex.jar, size: 200772, use time: 157
2023-04-12 11:35:51.201 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes3.dex.jar, size: 213895, use time: 254
2023-04-12 11:35:51.212 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes4.dex.jar, size: 12254, use time: 10
2023-04-12 11:35:51.255 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes5.dex.jar, size: 63686, use time: 43
2023-04-12 11:35:51.261 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes6.dex.jar, size: 1511, use time: 4
2023-04-12 11:35:51.293 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes7.dex.jar, size: 36584, use time: 31
2023-04-12 11:35:51.484 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes8.dex.jar, size: 262392, use time: 190
2023-04-12 11:35:51.490 com.sd02.dobhall W/Tinker.DexDiffPatchInternal: success recover dex file: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes9.dex.jar, size: 2203, use time: 6
2023-04-12 11:35:51.491 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: try Extracting /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/test.dex.jar
2023-04-12 11:35:51.494 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: isExtractionSuccessful: true
2023-04-12 11:35:51.983 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes6.dex.jar
2023-04-12 11:35:51.984 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes8.dex.jar
2023-04-12 11:35:51.984 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes11.dex.jar
2023-04-12 11:35:52.013 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes10.dex.jar
2023-04-12 11:35:52.013 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/test.dex.jar
2023-04-12 11:35:52.014 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes12.dex.jar
2023-04-12 11:35:52.014 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes15.dex.jar
2023-04-12 11:35:52.080 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes.dex.jar
2023-04-12 11:35:52.083 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes13.dex.jar
2023-04-12 11:35:52.084 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes2.dex.jar
2023-04-12 11:35:52.085 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes9.dex.jar
2023-04-12 11:35:52.085 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes4.dex.jar
2023-04-12 11:35:52.087 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes5.dex.jar
2023-04-12 11:35:52.088 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes7.dex.jar
2023-04-12 11:35:52.089 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes3.dex.jar
2023-04-12 11:35:52.090 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/classes14.dex.jar
2023-04-12 11:35:52.092 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: merge classN dex file /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/tinker_classN.apk, result: true, size: 23211096, use: 596ms
2023-04-12 11:35:52.093 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: legal files to do dexopt: [/data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/tinker_classN.apk]
2023-04-12 11:35:52.095 com.sd02.dobhall D/Tinker.TinkerInternals: getCurrentInstructionSet:arm64
2023-04-12 11:35:52.096 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: patch recover, try to optimize dex file count:1, optimizeDexDirectory:/data/user/0/com.sd02.dobhall/tinker/patch-22c67317/odex/
2023-04-12 11:35:52.098 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: start to parallel optimize dex /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/tinker_classN.apk, size: 23211096
2023-04-12 11:35:52.099 com.sd02.dobhall I/Tinker.TinkerInternals: class not found exception
2023-04-12 11:35:54.846 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: success to parallel optimize dex /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/tinker_classN.apk, opt file:/data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/oat/arm64/tinker_classN.odex, opt file size: 325856, use time 2748
2023-04-12 11:35:54.847 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: recover dex result:true, cost:10633
2023-04-12 11:35:54.848 com.sd02.dobhall W/Tinker.BsDiffPatchInternal: patch recover, library is not contained
2023-04-12 11:35:54.851 com.sd02.dobhall I/Tinker.ResDiffPatchInternal: res dir: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/res/, meta: resArscMd5:429c0170f0bc00614a2f7dc5af826b25
    arscBaseCrc:421716642
    pattern:resources\.arsc
    pattern:res/.*
    pattern:assets/.*
    addedSet:assets/only_use_to_test_tinker_resource.txt
    modifiedSet:res/layout/fm_main.xml
2023-04-12 11:35:54.853 com.sd02.dobhall I/Tinker.ResDiffPatchInternal: no large modify or store resources, just return
2023-04-12 11:35:55.944 com.sd02.dobhall I/Tinker.ResDiffPatchInternal: final new resource file:/data/user/0/com.sd02.dobhall/tinker/patch-22c67317/res/resources.apk, entry count:1659, size:126596802
2023-04-12 11:35:55.944 com.sd02.dobhall I/Tinker.ResDiffPatchInternal: recover resource result:true, cost:1095
2023-04-12 11:35:55.945 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: raw dex count: 16, dex opt dex count: 1, final wait times: 120
2023-04-12 11:35:55.953 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: check dex optimizer file exist: /data/user/0/com.sd02.dobhall/tinker/patch-22c67317/dex/oat/arm64/tinker_classN.odex, size 325856
2023-04-12 11:35:55.954 com.sd02.dobhall I/Tinker.DexDiffPatchInternal: check dex optimizer file format: tinker_classN.odex, size 325856
2023-04-12 11:35:55.958 com.sd02.dobhall I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.sd02.dobhall/tinker/patch.info , oldVer:, newVer:22c67317bfd5c7dbd0bc9786b8a8c813, isProtectedApp:0, versionToRemove:, fingerprint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:odex, isRemoveInterpretOATDir:0, stack: java.lang.Throwable
        at com.tencent.tinker.loader.shareutil.SharePatchInfo.rewritePatchInfoFile(SharePatchInfo.java:184)
        at com.tencent.tinker.loader.shareutil.SharePatchInfo.rewritePatchInfoFileWithLock(SharePatchInfo.java:104)
        at com.tencent.tinker.lib.patch.UpgradePatch.tryPatch(UpgradePatch.java:196)
        at com.tencent.tinker.lib.service.TinkerPatchService.doApplyPatch(TinkerPatchService.java:223)
        at com.tencent.tinker.lib.service.TinkerPatchService.onHandleIntent(TinkerPatchService.java:101)
        at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:207)
        at android.os.HandlerThread.run(HandlerThread.java:65)
2023-04-12 11:35:55.961 com.sd02.dobhall I/Tinker.UpgradePatchRetry: onPatchResetMaxCheck, reset max check to 1
2023-04-12 11:35:55.962 com.sd02.dobhall W/Tinker.UpgradePatch: UpgradePatch tryPatch: done, it is ok
2023-04-12 11:35:55.963 com.sd02.dobhall I/Tinker.DefaultPatchReporter: patchReporter onPatchResult: patch all result path: /storage/emulated/0/amyh_patch_signed_7zip.apk, success: true, cost: 11815
2023-04-12 11:35:55.963 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker_temp/temp.apk
2023-04-12 11:35:55.993 com.sd02.dobhall I/Tinker.SampleResultService: SampleResultService receive result: 
    PatchResult: 
    isSuccess:true
    rawPatchFilePath:/storage/emulated/0/amyh_patch_signed_7zip.apk
    costTime:11815
    dexoptTriggerTime:1681270552096
    isOatGenerated:true
    patchVersion:22c67317bfd5c7dbd0bc9786b8a8c813
2023-04-12 11:35:55.999 com.sd02.dobhall W/Tinker.DefaultTinkerResultService: deleteRawPatchFile rawFile path: /storage/emulated/0/amyh_patch_signed_7zip.apk
2023-04-12 11:35:56.000 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /storage/emulated/0/amyh_patch_signed_7zip.apk
2023-04-12 11:35:56.001 com.sd02.dobhall I/Tinker.SampleResultService: tinker wait screen to restart process
2023-04-12 11:37:32.390 com.sd02.dobhall D/Tinker.DefaultAppLike: onConfigurationChanged:{1.0 ?mcc?mnc [zh_CN] ldltr sw392dp w392dp h710dp 440dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2160, 1080) mAppBounds=Rect(0, 0 - 1080, 2030) mWindowingMode=fullscreen mActivityType=undefined} s.241 themeChanged=0 themeChangedFlags=0 extraData = Bundle[{}]}
2023-04-12 11:37:32.535 com.sd02.dobhall D/Tinker.DefaultAppLike: onTrimMemory level:20
2023-04-12 11:37:32.621 com.sd02.dobhall W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.sd02.dobhall/tinker_temp/temp.apk is not exist, just return
csbz17027 commented 1 year ago

补充下,加载补丁后重启时会出现tinker load exception 日志如下 2023-04-12 13:35:02.903 com.sd02.dobhall D/Tinker.DefaultAppLike: onConfigurationChanged:{1.0 ?mcc?mnc [zh_CN] ldltr sw392dp w392dp h710dp 440dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2160, 1080) mAppBounds=Rect(0, 0 - 1080, 2030) mWindowingMode=fullscreen mActivityType=undefined} s.253 themeChanged=0 themeChangedFlags=0 extraData = Bundle[{}]} 2023-04-12 13:35:03.114 com.sd02.dobhall D/Tinker.DefaultAppLike: onTrimMemory level:80 2023-04-12 13:35:03.191 com.sd02.dobhall W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.sd02.dobhall/tinker_temp/temp.apk is not exist, just return 2023-04-12 13:35:05.950 com.sd02.dobhall D/Tinker.TinkerLoader: tryLoad test test 2023-04-12 13:35:06.000 com.sd02.dobhall I/Tinker.TinkerInternals: class not found exception 2023-04-12 13:35:06.003 com.sd02.dobhall D/Tinker.TinkerInternals: getCurrentInstructionSet:arm64 2023-04-12 13:35:06.003 com.sd02.dobhall W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true 2023-04-12 13:35:06.005 com.sd02.dobhall D/Tinker.TinkerInternals: same fingerprint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys 2023-04-12 13:35:06.006 com.sd02.dobhall W/Tinker.TinkerInternals: getSafeModeCount: recFileName:safemode_count_rec_com.sd02.dobhall failed, return 0 instead. 2023-04-12 13:35:06.007 com.sd02.dobhall I/Tinker.TinkerInternals: setSafeModeCount: count: 1 2023-04-12 13:35:06.008 com.sd02.dobhall I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk"],nativeLibraryDirectories=[/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/lib/arm64, /data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] 2023-04-12 13:35:06.008 com.sd02.dobhall I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinker_classN.apk md5, use time: 0 2023-04-12 13:35:06.008 com.sd02.dobhall I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/odex, dex size:1 2023-04-12 13:35:06.020 com.sd02.dobhall I/Tinker.ClassLoaderAdder: after loaded classloader: com.tencent.tinker.loader.TinkerClassLoader[DexPathList[[zip file "/data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinker_classN.apk"],nativeLibraryDirectories=[/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/lib/arm64, /data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]], dex size:1 2023-04-12 13:35:06.022 com.sd02.dobhall I/Tinker.ClassLoaderAdder: checkDexInstall result: false, checker_classloader: com.tencent.tinker.loader.TinkerClassLoader[DexPathList[[zip file "/data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinker_classN.apk"],nativeLibraryDirectories=[/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/lib/arm64, /data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] 2023-04-12 13:35:06.022 com.sd02.dobhall E/Tinker.TinkerDexLoader: install dexes failed 2023-04-12 13:35:06.022 com.sd02.dobhall W/Tinker.TinkerLoader: tryLoadPatchFiles:onPatchLoadDexesFail 2023-04-12 13:35:06.027 com.sd02.dobhall D/Tinker.DefaultAppLike: onBaseContextAttached: 2023-04-12 13:35:06.037 com.sd02.dobhall V/Tinker.SamplePatchListener: application maxMemory:256 2023-04-12 13:35:06.045 com.sd02.dobhall W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sd02.dobhall/tinker 2023-04-12 13:35:06.046 com.sd02.dobhall I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.25.1 2023-04-12 13:35:06.048 com.sd02.dobhall I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-14, process name:com.sd02.dobhall, main process:true, systemOTA:false, fingerPrint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:odex, useInterpretMode:false 2023-04-12 13:35:06.048 com.sd02.dobhall I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:, newVersion:093e8f98601d901f3c385e4e4db1777c, current:093e8f98601d901f3c385e4e4db1777c 2023-04-12 13:35:06.049 com.sd02.dobhall I/Tinker.TinkerLoadResult: Tinker load have exception loadCode:-14 2023-04-12 13:35:06.050 com.sd02.dobhall E/Tinker.DefaultLoadReporter: patch loadReporter onLoadException: tinker dex check fail:Tinker Exception:checkDexInstall failed 2023-04-12 13:35:06.056 com.sd02.dobhall I/Tinker.DefaultLoadReporter: dex exception disable tinker forever with sp 2023-04-12 13:35:06.056 com.sd02.dobhall E/Tinker.DefaultLoadReporter: tinker load exception, welcome to submit issue to us: https://github.com/Tencent/tinker/issues 2023-04-12 13:35:06.057 com.sd02.dobhall E/Tinker.DefaultLoadReporter: tinker load exception com.tencent.tinker.loader.TinkerRuntimeException: Tinker Exception:checkDexInstall failed at com.tencent.tinker.loader.SystemClassLoaderAdder.installDexes(SystemClassLoaderAdder.java:73) at com.tencent.tinker.loader.TinkerDexLoader.loadTinkerJars(TinkerDexLoader.java:191) at com.tencent.tinker.loader.TinkerLoader.tryLoadPatchFilesInternal(TinkerLoader.java:346) at com.tencent.tinker.loader.TinkerLoader.tryLoad(TinkerLoader.java:57) at java.lang.reflect.Method.invoke(Native Method) at com.tencent.tinker.loader.app.TinkerApplication.loadTinker(TinkerApplication.java:125) at com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(TinkerApplication.java:163) at com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(TinkerApplication.java:186) 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:5988) at android.app.ActivityThread.access$1200(ActivityThread.java:202) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:6878) 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:876) 2023-04-12 13:35:06.060 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/patch-093e8f98.apk 2023-04-12 13:35:06.061 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/arm64/tinker_classN.vdex 2023-04-12 13:35:06.062 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/arm64/tinker_classN.odex 2023-04-12 13:35:06.062 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/arm64 2023-04-12 13:35:06.063 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/tinker_classN.apk.cur.prof 2023-04-12 13:35:06.063 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat 2023-04-12 13:35:06.063 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinkerclassN.apk 2023-04-12 13:35:06.064 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex 2023-04-12 13:35:06.064 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/odex 2023-04-12 13:35:06.065 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/res/resources.apk 2023-04-12 13:35:06.101 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/res 2023-04-12 13:35:06.101 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98 2023-04-12 13:35:06.103 com.sd02.dobhall I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.sd02.dobhall/tinker/patch.info , oldVer:, newVer:, isProtectedApp:0, versionToRemove:, fingerprint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:odex, isRemoveInterpretOATDir:0, stack: java.lang.Throwable at com.tencent.tinker.loader.shareutil.SharePatchInfo.rewritePatchInfoFile(SharePatchInfo.java:184) at com.tencent.tinker.loader.shareutil.SharePatchInfo.rewritePatchInfoFileWithLock(SharePatchInfo.java:104) at com.tencent.tinker.loader.shareutil.ShareTinkerInternals.cleanPatch(ShareTinkerInternals.java:764) at com.tencent.tinker.lib.tinker.Tinker.cleanPatch(Tinker.java:258) at com.tencent.tinker.lib.reporter.DefaultLoadReporter.checkAndCleanPatch(DefaultLoadReporter.java:307) at com.tencent.tinker.lib.reporter.DefaultLoadReporter.onLoadException(DefaultLoadReporter.java:280) at com.sd02.dobhall.reporter.SampleLoadReporter.onLoadException(SampleLoadReporter.java:68) at com.tencent.tinker.lib.tinker.TinkerLoadResult.parseTinkerResult(TinkerLoadResult.java:142) at com.tencent.tinker.lib.tinker.Tinker.install(Tinker.java:152) at com.tencent.tinker.lib.tinker.TinkerInstaller.install(TinkerInstaller.java:71) at com.sd02.dobhall.utils.TinkerManager.installTinker(TinkerManager.java:98) at com.sd02.dobhall.app.MyApplicationLike.onBaseContextAttached(MyApplicationLike.java:56) at com.tencent.tinker.entry.TinkerApplicationInlineFence.handleMessageImpl(TinkerApplicationInlineFence.java:72) at com.tencent.tinker.entry.TinkerApplicationInlineFence.handleMessage$noinline$(TinkerApplicationInlineFence.java:60) at com.tencent.tinker.entry.TinkerApplicationInlineFence.handleMessage(TinkerApplicationInlineFence.java:53) at com.tencent.tinker.loader.app.TinkerInlineFenceAction.callOnBaseContextAttached(TinkerInlineFenceAction.java:47) at com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(TinkerApplication.java:168) at com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(TinkerApplication.java:186) 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:5988) at android.app.ActivityThread.access$1200(ActivityThread.java:202) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:6878) 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:876) 2023-04-12 13:35:06.116 com.sd02.dobhall W/Tinker.PatchInfo: path info file corrupted:/data/user/0/com.sd02.dobhall/tinker/patch.info 2023-04-12 13:35:06.121 com.sd02.dobhall W/Tinker.PatchInfo: path info file corrupted:/data/user/0/com.sd02.dobhall/tinker/patch.info 2023-04-12 13:35:06.122 com.sd02.dobhall I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sd02.dobhall/tinker, code: -14, cost: 72ms 2023-04-12 13:35:06.122 com.sd02.dobhall W/Tinker.Tinker: tinker load fail! 2023-04-12 13:35:06.123 com.sd02.dobhall I/Tinker.TinkerInternals: setSafeModeCount: count: 0 2023-04-12 13:35:06.187 com.sd02.dobhall D/Tinker.DefaultAppLike: onCreate 2023-04-12 13:35:06.194 com.sd02.dobhall D/Tinker.DefaultAppLike: onConfigurationChanged:{1.0 ?mcc?mnc [zh_CN] ldltr sw392dp w785dp h365dp 440dpi nrml long land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2160, 1080) mAppBounds=Rect(0, 0 - 2160, 1080) mWindowingMode=fullscreen mActivityType=undefined} s.254 themeChanged=0 themeChangedFlags=0 extraData = Bundle[{}]} 2023-04-12 13:35:06.194 com.sd02.dobhall D/Tinker.DefaultAppLike: onTrimMemory level:10 2023-04-12 13:35:06.567 com.sd02.dobhall D/Tinker.DefaultAppLike: [PendingLog @ 2023-04-12 13:35:06.027] onBaseContextAttached:

csbz17027 commented 1 year ago

已解决 降版本到1.9.14.19

Jerricc commented 8 months ago

已解决 降版本到1.9.14.19

哈喽,想问下tinker线上稳定性怎么样呢