TinkerPatch / tinkerpatch-sdk

TinkerPatch SDK
http://tinkerpatch.com
MIT License
294 stars 56 forks source link

补丁能下载 合成报错。 求大佬帮忙看看 #150

Open awpss opened 5 years ago

awpss commented 5 years ago

现象: 补丁能下载 合成报错。

手机:华为P9plus

系统:android 8.0 gradle:3.2.1

TINKER_VERSION=1.9.13.3

TINKERPATCH_VERSION=1.2.13.3

日志-------------------- 2019-09-03 16:31:59.731 1139-7520/? D/ActivityManager: Skipping intent:act=android.intent.action.VIEW dat=file:///storage/emulated/0/Tencent/QQfile_recv/TinkerDebugTool.apk typ=application/vnd.android.package-archive flg=0x10800000 cmp=com.android.packageinstaller/.InstallStart 2019-09-03 16:32:00.325 29414-29414/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch info not exist:/data/user/0/abc/tinker/patch.info 2019-09-03 16:32:00.325 29414-29414/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-09-03 16:32:00.326 29414-29414/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-09-03 16:32:00.342 29414-29414/? W/System.err: at com.tencent.tinker.loader.app.TinkerApplication.invokeAppLikeOnCreate(SourceFile:189) 2019-09-03 16:32:00.342 29414-29414/? W/System.err: at com.tencent.tinker.loader.app.TinkerApplication.onCreate(SourceFile:205) 2019-09-03 16:32:00.353 1139-7520/? D/ActivityManager: Skipping intent:act=android.intent.action.VIEW dat=file:///storage/emulated/0/Tencent/QQfile_recv/TinkerDebugTool.apk typ=application/vnd.android.package-archive flg=0x10800000 cmp=com.android.packageinstaller/.InstallStart 2019-09-03 16:32:05.108 29414-29414/? D/Tinker.DefaultAppLike: onCreate 2019-09-03 16:32:05.110 29414-29414/? I/Tinker.ServerUtils: with app key from manifest appKey:d98b3d557cf80130 2019-09-03 16:32:05.111 29414-29414/? I/Tinker.ServerUtils: with app version from manifest appVersion:5.2.16 2019-09-03 16:32:05.112 29414-29414/? I/Tinker.VersionInfo: readVersionInfo file path:/data/user/0/abc/tinker_server/d98b3d557cf80130_version.info, appVersion: 5.2.16, uuid:7bf73ab8-ea95-42a0-809f-2cbc85fb4af8, abi:armeabi, patchVersion:7, patchMd5:33895bcbb7e199866c21ffe67aca5b0f, grayValue:1, crashTimes:0, retryTimes:2, applySuccess:0, patchSuccess:0 2019-09-03 16:32:05.130 29414-29414/? D/Tinker.Debugger: getBoolean(): key=.com.tinker.debugtool.debug, value=true 2019-09-03 16:32:05.130 29414-29414/? I/Tinker.ServerClient: installTinkerServer, debug value: true, appVersion: 5.2.16, appKey: d98b3d557cf80130 2019-09-03 16:32:05.136 29414-29414/? W/Tinker.Tinker: tinker patch directory: /data/user/0/abc/tinker 2019-09-03 16:32:05.137 29414-29414/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.13.3 2019-09-03 16:32:05.137 29414-29414/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-3, process name:abc, main process:true, systemOTA:false, fingerPrint:HUAWEI/VIE-AL10/HWVIE:8.0.0/HUAWEIVIE-AL10/537(C00):user/release-keys, oatDir:null, useInterpretMode:false 2019-09-03 16:32:05.137 29414-29414/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2019-09-03 16:32:05.137 29414-29414/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/abc/tinker, code: -3, cost: 2ms 2019-09-03 16:32:05.138 29414-29414/? W/Tinker.Tinker: tinker load fail! 2019-09-03 16:32:05.138 29414-29414/? I/Tinker.TinkerPatch: Init TinkerPatch sdk success, version:1.2.13.3 2019-09-03 16:32:05.294 29414-29414/? I/Tinker.FetchPatchHandler: try to fetch patch update with FetchPatchHandler with interval 3600000 2019-09-03 16:32:06.134 29414-29414/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 2019-09-03 16:32:06.199 29414-29414/? W/Tinker.ClientImpl: [retryAllReportFails], there is no fail report, just return 2019-09-03 16:32:06.231 29414-29414/? I/Tinker.UrlConnectionFetcher: loadData from url: http://q.tinkerpatch.com/dev/d98b3d557cf80130/5.2.16?d=7bf73ab8-ea95-42a0-809f-2cbc85fb4af8&v=1567499526230, method:GET, body:null 2019-09-03 16:32:06.449 29414-29582/? I/Tinker.UrlConnectionFetcher: response code 200 msg: OK 2019-09-03 16:32:06.449 29414-29582/? I/Tinker.ClientImpl: tinker server sync respond:{"v":"8"} 2019-09-03 16:32:06.449 29414-29582/? I/Tinker.VersionInfo: VersionCheck: patchVersion from 7 to 8 2019-09-03 16:32:06.449 29414-29582/? I/Tinker.VersionInfo: GrayGroupCheck: true, gray value:null and my gray value is 1 2019-09-03 16:32:06.449 29414-29582/? I/Tinker.ClientImpl: Fetch result: need to update, gray: 1 2019-09-03 16:32:06.450 29414-29582/? I/Tinker.UrlConnectionFetcher: loadData from url: http://q.tinkerpatch.com/d98b3d557cf80130/5.2.16/file8?d=7bf73ab8-ea95-42a0-809f-2cbc85fb4af8&v=1567499526450, method:GET, body:null 2019-09-03 16:32:06.599 29414-29582/? I/Tinker.UrlConnectionFetcher: response code 200 msg: OK 2019-09-03 16:32:06.600 29414-29582/? I/Tinker.PatchRequestCallback: TinkerPatchRequestCallback: onPatchUpgrade, file:/data/user/0/abc/tinker_server/5.2.16_8.apk, newVersion:8, currentVersion:7 2019-09-03 16:32:06.623 29414-29582/? I/Tinker.ServerClient: tinker server report patch download success, patchVersion:8 2019-09-03 16:32:06.628 29414-29582/? I/Tinker.UrlConnectionFetcher: loadData from url: http://stat.tinkerpatch.com/succ.php, method:POST, body:sv=1.2.13.3&t=1&av=5.2.16&ch=Null&pv=8&k=d98b3d557cf80130 2019-09-03 16:32:06.628 29414-29582/? I/Tinker.VersionInfo: updateVersionInfo file path:/data/user/0/abc/tinker_server/d98b3d557cf80130_version.info, appVersion: 5.2.16, uuid:7bf73ab8-ea95-42a0-809f-2cbc85fb4af8, abi:armeabi, patchVersion:8, patchMd5:33895bcbb7e199866c21ffe67aca5b0f, grayValue:1, crashTimes:0, retryTimes:2, applySuccess:0, patchSuccess:0 2019-09-03 16:32:06.629 29414-29582/? I/Tinker.VersionInfo: updateVersionInfo file path:/data/user/0/abc/tinker_server/d98b3d557cf80130_version.info, appVersion: 5.2.16, uuid:7bf73ab8-ea95-42a0-809f-2cbc85fb4af8, abi:armeabi, patchVersion:8, patchMd5:33895bcbb7e199866c21ffe67aca5b0f, grayValue:1, crashTimes:0, retryTimes:2, applySuccess:0, patchSuccess:0 2019-09-03 16:32:06.629 29414-29582/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/abc/tinker_server/5.2.16_7.apk 2019-09-03 16:32:06.629 29414-29582/? I/Tinker.TinkerServerPatchListener: receive a patch file: /data/user/0/abc/tinker_server/5.2.16_8.apk, file size:2403 2019-09-03 16:32:06.632 29414-29582/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/abc/tinker/patch.info (No such file or directory) 2019-09-03 16:32:06.632 29414-29582/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/abc/tinker/patch.info (No such file or directory) 2019-09-03 16:32:06.634 29414-29582/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 2019-09-03 16:32:06.672 1139-1861/? I/ActivityManager: Start proc 29602:abc:patch/u0a1107 for service abc/com.tencent.tinker.lib.service.TinkerPatchForeService 2019-09-03 16:32:06.673 29414-29582/? I/Tinker.TinkerPatchService: run patch service... 2019-09-03 16:32:06.716 29602-29602/? W/Tinker.TinkerLoader: tryLoadPatchFiles: we don't load patch with :patch process itself, just return 2019-09-03 16:32:06.716 29602-29602/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2019-09-03 16:32:06.717 29602-29602/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations. 2019-09-03 16:32:06.745 29602-29627/? I/Tinker.TinkerPatchService: for system version >= Android O, we just ignore increasingPriority job to avoid crash or toasts. 2019-09-03 16:32:06.749 29602-29627/? E/AndroidRuntime: FATAL EXCEPTION: IntentService[TinkerPatchService] Process: abc:patch, PID: 29602 com.tencent.tinker.loader.TinkerRuntimeException: Tinker Exception:you must install tinker before get tinker sInstance at com.tencent.tinker.lib.tinker.Tinker.with(SourceFile:104) at com.tencent.tinker.lib.service.TinkerPatchService.doApplyPatch(SourceFile:117) at com.tencent.tinker.lib.service.TinkerPatchService.onHandleIntent(SourceFile:96) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68) at android.os.Handler.dispatchMessage(Handler.java:108) at android.os.Looper.loop(Looper.java:166) at android.os.HandlerThread.run(HandlerThread.java:65) 2019-09-03 16:32:06.749 29602-29627/? E/Tinker.UncaughtHandler: TinkerUncaughtHandler catch exception:com.tencent.tinker.loader.TinkerRuntimeException: Tinker Exception:you must install tinker before get tinker sInstance at com.tencent.tinker.lib.tinker.Tinker.with(SourceFile:104) at com.tencent.tinker.lib.service.TinkerPatchService.doApplyPatch(SourceFile:117) at com.tencent.tinker.lib.service.TinkerPatchService.onHandleIntent(SourceFile:96) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68) at android.os.Handler.dispatchMessage(Handler.java:108) at android.os.Looper.loop(Looper.java:166) at android.os.HandlerThread.run(HandlerThread.java:65) 2019-09-03 16:32:06.774 29414-29582/? I/Tinker.UrlConnectionFetcher: response code 200 msg: OK 2019-09-03 16:32:06.781 29414-29582/? D/Tinker.ClientImpl: [succ] report successfully with url: http://stat.tinkerpatch.com/succ.php, body: sv=1.2.13.3&t=1&av=5.2.16&ch=Null&pv=8&k=d98b3d557cf80130 reportingCount: 0, fail pool size: 0 2019-09-03 16:32:06.811 1139-1889/? W/ActivityManager: Scheduling restart of crashed service abc/com.tencent.tinker.lib.service.TinkerPatchService in 1000ms 2019-09-03 16:32:06.811 1139-1889/? W/ActivityManager: Scheduling restart of crashed service abc/com.tencent.tinker.lib.service.TinkerPatchForeService in 1000ms 2019-09-03 16:32:09.652 29414-29414/? W/Tinker.ClientImpl: [retryAllReportFails], there is no fail report, just return 2019-09-03 16:32:09.663 29414-29414/? I/Tinker.UrlConnectionFetcher: loadData from url: http://q.tinkerpatch.com/dev/d98b3d557cf80130/5.2.16?d=7bf73ab8-ea95-42a0-809f-2cbc85fb4af8&v=1567499529663, method:GET, body:null 2019-09-03 16:32:09.820 29414-29582/? I/Tinker.UrlConnectionFetcher: response code 200 msg: OK 2019-09-03 16:32:09.820 29414-29582/? I/Tinker.ClientImpl: tinker server sync respond:{"v":"8"} 2019-09-03 16:32:09.820 29414-29582/? I/Tinker.VersionInfo: VersionCheck: target version 8 is not latest. current version is 8 2019-09-03 16:32:09.821 29414-29582/? I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/abc/tinker_server/5.2.16_8.apk 2019-09-03 16:32:09.822 29414-29582/? D/Tinker.PatchRequestCallback: [beforePatchRequest] retry patch install more than 3 times, version: 8, patch:/data/user/0/abc/tinker_server/5.2.16_8.apk 2019-09-03 16:32:09.822 29414-29582/? I/Tinker.ClientImpl: Fetch result: needn't update, gray: 1