tinker
tinker copied to clipboard
在Android12系统的手机上图片热更失效
在Android12手机上图片热更失效,代码热更成功,在Android10上图片和代码都能热更生效
手机型号:Mi 10s
手机系统版本:Android 12
Tinker版本:tinker-android-lib:1.9.14.6,tinker-support:1.1.5
gradle版本:3.4.1
热更sdk:bugly
系统: Mac
堆栈/日志
1、补丁下载及合成日志 为成功 2022-04-29 16:02:19.094 10993-10993/? D/CrashReport: copy /data/user/0/com.example.hotfix_tinker/app_tmpPatch/841b62ac-0b1c-42ca-bd69-55f9a157574a_4e202158e6b9c85d8d29764797753ea7.zip to /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk success! 2022-04-29 16:02:19.096 10993-10993/? D/Tinker.TinkerManager: onDownloadSuccess. 2022-04-29 16:02:19.097 1645-2280/? E/NotificationService: Package has already queued 5 toasts. Not showing more. Package=com.example.hotfix_tinker 2022-04-29 16:02:19.098 10993-10993/? D/Tinker.TinkerManager: check if has new patch. 2022-04-29 16:02:19.099 10993-10993/? D/Tinker.TinkerManager: has new patch. 2022-04-29 16:02:19.101 10993-10993/? D/Tinker.TinkerManager: starting patch. 2022-04-29 16:02:19.103 10993-10993/? I/Tinker.TinkerPatchListener: receive a patch file: /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk, file size:535947 2022-04-29 16:02:19.104 10993-10993/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.example.hotfix_tinker/tinker/patch.info: open failed: ENOENT (No such file or directory) 2022-04-29 16:02:19.104 10993-10993/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.example.hotfix_tinker/tinker/patch.info: open failed: ENOENT (No such file or directory) 2022-04-29 16:02:19.105 10993-10993/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 2022-04-29 16:02:19.105 10993-10993/? I/Tinker.TinkerPatchListener: get platform:null 2022-04-29 16:02:19.107 10993-10993/? I/Tinker.TinkerPatchService: run patch service... 2022-04-29 16:02:19.115 1645-1931/? D/Boost: hostingType=service, hostingName={com.example.hotfix_tinker/com.tencent.tinker.lib.service.TinkerPatchForeService}, callerPackage=com.example.hotfix_tinker, isSystem=false, isBoostNeeded=false. 2022-04-29 16:02:19.115 1645-1931/? I/ActivityManager: Start proc 11104:com.example.hotfix_tinker:patch/u0a568 for service {com.example.hotfix_tinker/com.tencent.tinker.lib.service.TinkerPatchForeService} caller=com.example.hotfix_tinker 2022-04-29 16:02:19.124 11104-11104/? E/ix_tinker:patc: Not starting debugger since process cannot load the jdwp agent. 2022-04-29 16:02:19.137 4024-5400/? W/MQSService: CallerName:com.example.hotfix_tinker,calling Uid:10568 2022-04-29 16:02:19.138 4024-5400/? D/MQSService: registerApplicationScoutThread pid = 11104, packageName = com.example.hotfix_tinker 2022-04-29 16:02:19.148 11104-11104/? V/GraphicsEnvironment: ANGLE Developer option for 'com.example.hotfix_tinker' set to: 'default' 2022-04-29 16:02:19.149 11104-11104/? I/ForceDarkHelperStubImpl: initialize for com.example.hotfix_tinker , ForceDarkOrigin 2022-04-29 16:02:19.152 11104-11104/? D/Tinker.TinkerLoader: tryLoad test test 2022-04-29 16:02:19.152 11104-11104/? W/Tinker.TinkerLoader: tryLoadPatchFiles: we don't load patch with :patch process itself, just return 2022-04-29 16:02:19.153 11104-11104/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2022-04-29 16:02:19.153 11104-11104/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.example.hotfix_tinker.AppApplication 2022-04-29 16:02:19.154 11104-11104/? I/Tinker.TinkerPatchListener: application maxMemory:256 2022-04-29 16:02:19.154 11104-11104/? I/Tinker: is use tinker 2022-04-29 16:02:19.154 11104-11104/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.example.hotfix_tinker/tinker 2022-04-29 16:02:19.155 11104-11104/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.6 2022-04-29 16:02:19.155 11104-11104/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-1, process name:com.example.hotfix_tinker:patch, main process:false, systemOTA:false, fingerPrint:Xiaomi/thyme/thyme:12/SKQ1.211006.001/V13.0.3.0.SGACNXM:user/release-keys, oatDir:null, useInterpretMode:false 2022-04-29 16:02:19.155 11104-11104/? W/Tinker.TinkerLoadResult: tinker is disable, just return 2022-04-29 16:02:19.155 11104-11104/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.example.hotfix_tinker/tinker, code: -1, cost: 1ms 2022-04-29 16:02:19.155 11104-11104/? W/Tinker.Tinker: tinker load fail! 2022-04-29 16:02:19.155 11104-11104/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike 2022-04-29 16:02:19.157 11104-11104/? D/Tinker.DefaultAppLike: onCreate 2022-04-29 16:02:19.158 11104-11104/? I/Tinker: find FlutterMain 2022-04-29 16:02:19.158 11104-11104/? I/Tinker: all ndk config >> 2022-04-29 16:02:19.158 11104-11104/? I/Tinker: cpu abi is:arm64-v8a 2022-04-29 16:02:19.158 11104-11104/? I/Tinker: flutterPatchInit() called false true 2022-04-29 16:02:19.161 11104-11104/? W/ix_tinker:patc: Class com.tencent.bugly.proguard.ba failed lock verification and will run slower. Common causes for lock verification issues are non-optimized dex code and incorrect proguard optimizations. 2022-04-29 16:02:19.162 11104-11104/? I/CrashReport: backup java handler: com.tencent.bugly.beta.tinker.TinkerUncaughtExceptionHandler@d280f7 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79de982000-79de9af000 r-xp 00000000 fc:15 357300 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libBugly.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79de9bf000-79de9c0000 r--p 0002d000 fc:15 357300 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libBugly.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79de9c0000-79de9c1000 rw-p 0002e000 fc:15 357300 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libBugly.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e0d29000-79e0fd6000 r--p 00000000 fc:15 357558 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libflutter.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e0fd6000-79e14a6000 r-xp 002ac000 fc:15 357558 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libflutter.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e14a6000-79e14f3000 r--p 0077b000 fc:15 357558 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libflutter.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e14f3000-79e15c1000 rw-p 007c7000 fc:15 357558 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libflutter.so 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e609f000-79e60a3000 r--p 00000000 fc:15 355459 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/oat/arm64/base.odex 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e60a3000-79e61da000 rw-p 00000000 fc:15 355376 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/oat/arm64/base.vdex 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e61da000-79e61db000 r--p 00004000 fc:15 355459 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/oat/arm64/base.odex 2022-04-29 16:02:19.164 11104-11104/? D/CrashReport-Native: Parsing line: 79e61db000-79e61dc000 rw-p 00005000 fc:15 355459 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/oat/arm64/base.odex 2022-04-29 16:02:19.172 11104-11104/? D/CrashReport-Native: Parsing line: 7d901f1000-7d901f4000 r--s 0106c000 fc:15 351788 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/base.apk 2022-04-29 16:02:19.176 11104-11104/? I/CrashReport-Native: Opened system log record file: /data/user/0/com.example.hotfix_tinker/app_bugly/sys_log_1651219339176.txt 2022-04-29 16:02:19.177 11104-11104/? I/CrashReport-Native: Opened JNI log record file: /data/user/0/com.example.hotfix_tinker/app_bugly/jni_log_1651219339176.txt 2022-04-29 16:02:19.177 11104-11104/? I/CrashReport-Native: Set native info: app package(com.example.hotfix_tinker) 2022-04-29 16:02:19.178 11104-11104/? I/CrashReport: startWatchingPrivateAnrDir! dumFilePath is /data/user/0/com.example.hotfix_tinker/app_bugly 2022-04-29 16:02:19.178 11104-11104/? I/CrashReport: Beta will init at: com.example.hotfix_tinker 2022-04-29 16:02:19.178 11104-11104/? I/CrashReport: current process: com.example.hotfix_tinker:patch 2022-04-29 16:02:19.182 11104-11130/? I/Tinker.TinkerPatchService: for system version >= Android O, we just ignore increasingPriority job to avoid crash or toasts. 2022-04-29 16:02:19.182 11104-11130/? I/Tinker.DefaultPatchReporter: patchReporter onPatchServiceStart: patch service start 2022-04-29 16:02:19.182 1645-1930/? W/BroadcastQueue: Permission Denial: broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from null (pid=-1, uid=-1) requires com.tencent.bugly.BuglyBroadcastReceiver.permission due to registered receiver BroadcastFilter{d05a452 10568/u0 ReceiverList{8cac0dd 11104 com.example.hotfix_tinker:patch/10568/u0 remote:9359cb4}} 2022-04-29 16:02:19.184 11104-11130/? W/Tinker.UpgradePatchRetry: try copy file: /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk to /data/user/0/com.example.hotfix_tinker/tinker_temp/temp.apk 2022-04-29 16:02:19.187 11104-11104/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return 2022-04-29 16:02:19.196 11104-11130/? I/Tinker.UpgradePatch: UpgradePatch tryPatch:patchMd5:4e202158e6b9c85d8d29764797753ea7 2022-04-29 16:02:19.196 11104-11130/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.example.hotfix_tinker/tinker/patch.info: open failed: ENOENT (No such file or directory) 2022-04-29 16:02:19.196 11104-11130/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.example.hotfix_tinker/tinker/patch.info: open failed: ENOENT (No such file or directory) 2022-04-29 16:02:19.196 11104-11130/? I/Tinker.UpgradePatch: UpgradePatch tryPatch:patchVersionDirectory:/data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158 2022-04-29 16:02:19.197 11104-11130/? W/Tinker.UpgradePatch: UpgradePatch copy patch file, src file: /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk size: 535947, dest file: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/patch-4e202158.apk size:535947 2022-04-29 16:02:19.198 11104-11130/? W/Tinker.DexDiffPatchInternal: patch recover, dex is not contained 2022-04-29 16:02:19.266 11104-11130/? W/Tinker.BsDiffPatchInternal: success recover bsdiff file: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/lib/lib/armeabi-v7a/libapp.so, use time: 68 2022-04-29 16:02:19.308 11104-11130/? W/Tinker.BsDiffPatchInternal: success recover bsdiff file: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/lib/lib/arm64-v8a/libapp.so, use time: 42 2022-04-29 16:02:19.347 11104-11130/? W/Tinker.BsDiffPatchInternal: success recover bsdiff file: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/lib/lib/x86_64/libapp.so, use time: 38 2022-04-29 16:02:19.347 11104-11130/? I/Tinker.BsDiffPatchInternal: recover lib result:true, cost:149 2022-04-29 16:02:19.347 11104-11130/? I/Tinker.ResDiffPatchInternal: res dir: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/, meta: resArscMd5:d111cc717dd5115a511996ea590f9e77 arscBaseCrc:2191897114 pattern:res/.* pattern:r/.* pattern:resources.arsc pattern:assets/.* addedSet:assets/flutter_assets/assets/pk_bg1.png addedSet:assets/only_use_to_test_tinker_resource.txt modifiedSet:assets/flutter_assets/AssetManifest.json modifiedSet:assets/flutter_assets/assets/pk_bg.png largeModifiedSet:assets/flutter_assets/fonts/MaterialIcons-Regular.otf deletedSet:assets/flutter_assets/assets/pk_bg2.png storeSet:assets/flutter_assets/assets/pk_bg1.png storeSet:assets/flutter_assets/assets/pk_bg.png 2022-04-29 16:02:19.348 11104-11130/? I/Tinker.BasePatchInternal: try Extracting /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets/pk_bg1.png 2022-04-29 16:02:19.348 11104-11130/? I/Tinker.BasePatchInternal: isExtractionSuccessful: true 2022-04-29 16:02:19.348 11104-11130/? W/Tinker.ResDiffPatchInternal: success recover store file:/data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets/pk_bg1.png, file size:12441, use time:1 2022-04-29 16:02:19.348 11104-11130/? I/Tinker.BasePatchInternal: try Extracting /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets/pk_bg.png 2022-04-29 16:02:19.348 11104-11130/? I/Tinker.BasePatchInternal: isExtractionSuccessful: true 2022-04-29 16:02:19.348 11104-11130/? W/Tinker.ResDiffPatchInternal: success recover store file:/data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets/pk_bg.png, file size:16321, use time:0 2022-04-29 16:02:19.360 11104-11130/? W/Tinker.ResDiffPatchInternal: success recover large modify file:/data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/fonts/MaterialIcons-Regular.otf, file size:1299300, use time:12 2022-04-29 16:02:19.360 11104-11130/? W/Tinker.ResDiffPatchInternal: success recover all large modify and store resources use time:13 2022-04-29 16:02:19.366 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets/pk_bg1.png 2022-04-29 16:02:19.366 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets/pk_bg.png 2022-04-29 16:02:19.366 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/assets 2022-04-29 16:02:19.366 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/fonts/MaterialIcons-Regular.otf 2022-04-29 16:02:19.366 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets/fonts 2022-04-29 16:02:19.367 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets/flutter_assets 2022-04-29 16:02:19.367 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp/assets 2022-04-29 16:02:19.367 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/res_temp 2022-04-29 16:02:19.367 11104-11130/? I/Tinker.ResDiffPatchInternal: final new resource file:/data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/res/resources.apk, entry count:49, size:1576440 2022-04-29 16:02:19.367 11104-11130/? I/Tinker.ResDiffPatchInternal: recover resource result:true, cost:20 2022-04-29 16:02:19.367 11104-11130/? I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.example.hotfix_tinker/tinker/patch.info , oldVer:, newVer:4e202158e6b9c85d8d29764797753ea7, isProtectedApp:0, isRemoveNewVersion:0, fingerprint:Xiaomi/thyme/thyme:12/SKQ1.211006.001/V13.0.3.0.SGACNXM:user/release-keys, oatDir:odex 2022-04-29 16:02:19.368 11104-11130/? I/Tinker.UpgradePatchRetry: onPatchResetMaxCheck, reset max check to 1 2022-04-29 16:02:19.368 11104-11130/? W/Tinker.UpgradePatch: UpgradePatch tryPatch: done, it is ok 2022-04-29 16:02:19.368 11104-11130/? I/Tinker.DefaultPatchReporter: patchReporter onPatchResult: patch all result path: /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk, success: true, cost: 179 2022-04-29 16:02:19.368 11104-11130/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/tinker_temp/temp.apk 2022-04-29 16:02:19.373 10993-11141/? I/Tinker.TinkerResultService: TinkerResultService receive result: PatchResult: isSuccess:true rawPatchFilePath:/data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk costTime:179 patchVersion:4e202158e6b9c85d8d29764797753ea7 2022-04-29 16:02:19.375 10993-10993/? I/CrashReport: Tinker patch success, result: PatchResult: isSuccess:true rawPatchFilePath:/data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk costTime:179 patchVersion:4e202158e6b9c85d8d29764797753ea7 2022-04-29 16:02:19.375 10993-11141/? W/Tinker.DefaultTinkerResultService: deleteRawPatchFile rawFile path: /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk 2022-04-29 16:02:19.375 10993-11141/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.example.hotfix_tinker/app_tmpPatch/tmpPatch.apk 2022-04-29 16:02:19.375 10993-11141/? I/Tinker.TinkerResultService: tinker wait screen to restart process 2022-04-29 16:02:19.377 1645-4735/? E/NotificationService: Package has already queued 5 toasts. Not showing more. Package=com.example.hotfix_tinker 2022-04-29 16:02:19.400 1645-2280/? I/ActivityManager: Process com.example.hotfix_tinker:patch (pid 11104) has died: vis BTOP
2、下载完补丁,重启手机后日志 2022-04-29 16:06:27.224 11316-11316/? I/Tinker.TinkerLoader: tryLoadPatchFiles: load end, ok! 2022-04-29 16:06:27.224 11316-11316/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2022-04-29 16:06:27.225 11316-11316/? W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.example.hotfix_tinker count:0 2022-04-29 16:06:27.225 11316-11316/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.example.hotfix_tinker.AppApplication 2022-04-29 16:06:27.226 11316-11316/? I/Tinker.TinkerPatchListener: application maxMemory:256 2022-04-29 16:06:27.226 11316-11316/? I/Tinker: is use tinker 2022-04-29 16:06:27.227 11316-11316/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.example.hotfix_tinker/tinker 2022-04-29 16:06:27.227 11316-11316/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.6 2022-04-29 16:06:27.227 11316-11316/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:0, process name:com.example.hotfix_tinker, main process:true, systemOTA:false, fingerPrint:Xiaomi/thyme/thyme:12/SKQ1.211006.001/V13.0.3.0.SGACNXM:user/release-keys, oatDir:odex, useInterpretMode:false 2022-04-29 16:06:27.227 11316-11316/? I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:, newVersion:4e202158e6b9c85d8d29764797753ea7, current:4e202158e6b9c85d8d29764797753ea7 2022-04-29 16:06:27.227 11316-11316/? I/Tinker.TinkerLoadResult: oh yeah, tinker load all success 2022-04-29 16:06:27.227 11316-11316/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchVersionChanged: patch version change from to 4e202158e6b9c85d8d29764797753ea7 2022-04-29 16:06:27.227 11316-11316/? I/Tinker.UpgradePatchRetry: onPatchResetMaxCheck, reset max check to 1 2022-04-29 16:06:27.228 11316-11316/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.example.hotfix_tinker/tinker, code: 0, cost: 10ms 2022-04-29 16:06:27.231 11316-11316/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike 2022-04-29 16:06:27.232 11316-11316/? D/Tinker.DefaultAppLike: onCreate 2022-04-29 16:06:27.233 11316-11316/? I/Tinker: find FlutterMain 2022-04-29 16:06:27.233 11316-11316/? I/Tinker: all ndk config >> 2022-04-29 16:06:27.233 11316-11316/? I/Tinker: cpu abi is:arm64-v8a 2022-04-29 16:06:27.233 11316-11316/? I/Tinker: flutterPatchInit() called true true 2022-04-29 16:06:27.233 11316-11316/? I/Tinker: findLibraryFromTinker success:/data/user/0/com.example.hotfix_tinker/tinker/patch-4e202158/lib/lib/arm64-v8a/libapp.so 2022-04-29 16:06:27.233 11316-11316/? I/Tinker: flutter patch is loaded successfully 2022-04-29 16:06:27.237 11316-11316/? I/CrashReport: backup java handler: com.tencent.bugly.beta.tinker.TinkerUncaughtExceptionHandler@7a47030 2022-04-29 16:06:27.237 11316-11316/? D/CrashReport: Delete empty record file /data/user/0/com.example.hotfix_tinker/app_bugly/sys_log_1651219334777.txt 2022-04-29 16:06:27.238 11316-11316/? D/CrashReport: Delete empty record file /data/user/0/com.example.hotfix_tinker/app_bugly/jni_log_1651219334777.txt 2022-04-29 16:06:27.238 11316-11316/? D/CrashReport: Delete empty record file /data/user/0/com.example.hotfix_tinker/app_bugly/sys_log_1651219339176.txt 2022-04-29 16:06:27.238 11316-11316/? D/CrashReport: Delete empty record file /data/user/0/com.example.hotfix_tinker/app_bugly/jni_log_1651219339176.txt 2022-04-29 16:06:27.239 11316-11316/? D/CrashReport-Native: Parsing line: 79dc349000-79dc376000 r-xp 00000000 fc:15 357300 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libBugly.so 2022-04-29 16:06:27.239 11316-11316/? D/CrashReport-Native: Parsing line: 79dc386000-79dc387000 r--p 0002d000 fc:15 357300 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libBugly.so 2022-04-29 16:06:27.239 11316-11316/? D/CrashReport-Native: Parsing line: 79dc387000-79dc388000 rw-p 0002e000 fc:15 357300 /data/app/~~CQBSlWPUApxrQPOKztUtFw==/com.example.hotfix_tinker-1ubhnLFO0vH9GuC7a5aIpg==/lib/arm64/libBugly.so
升级下tinker的版本试试
升级下tinker的版本试试
classpath 'com.tencent.bugly:tinker-support:1.2.3' implementation 'com.tencent.tinker:tinker-android-lib:1.9.14.20' 我都升到最新了,还是不行;不过最新的版本打出来的包在bakApk下没有R文件
看着你的是flutter项目,flutter 引擎获取的assetManager在android12 上获取到的还是老的,不是被tinker改过的
assetManager = context.createPackageContext(context.getPackageName(), 0).getAssets();
createPackageContext 具体做了什么未知
感觉, 可以尝试修改下Flutter引擎源码, 直接获取Application.getAssets()?
@sailor1861 直接修改自己的 FlutterActivity
@Override
public Context createPackageContext(String packageName, int flags) throws PackageManager.NameNotFoundException {
if(Build.VERSION.SDK_INT >= 31) {
String stackTraceString = Log.getStackTraceString(new Throwable());
// flutter 引擎初始化
if (packageName != null && packageName.equals(getPackageName()) && stackTraceString.contains("io.flutter.embedding.engine.FlutterEngine.<init>")) {
return this;
}
}
return super.createPackageContext(packageName, flags);
}