Open tuzhao opened 5 years ago
我也遇到了、按道理 来说新版本应该没问题呀、
是的,1.9.11 有问题,1.9.9 正常、
我也是~小米6A手机,安卓8.1.0,各种尝试都不成功,最后看到这里说1.9.11有问题,退回到1.9.9就正常了!!! 求官方重视一下啊!不知道又会有多少人被坑惨了。
mix2(8.0系统)有类似问题,1.9.11需要在手机上进入设置开启自启动权限才能成功升级补丁,然而1.9.8~1.9.9可正常升级,对比代码有如下推测,供参考 @tomystang
小米6(8.0系统)最新的 1.9.13 也有问题 ,怎么搞都不成功
最新的 1.9.13 版本,使用官方 demo 在 xiaomi mi 6 (Android 8.0.0) 测试加载补丁时,打印日志如下
2019-05-22 14:39:58.224 28728-28728/? I/Tinker.SamplePatchListener: receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, file size:11959
2019-05-22 14:39:58.237 28728-28728/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/tinker.sample.android/tinker/patch.info (No such file or directory)
2019-05-22 14:39:58.238 28728-28728/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/tinker.sample.android/tinker/patch.info (No such file or directory)
2019-05-22 14:39:58.238 28728-28728/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return
2019-05-22 14:39:58.244 28728-28728/? I/Tinker.SamplePatchListener: get platform:all
2019-05-22 14:39:58.244 28728-28728/? I/Tinker.TinkerPatchService: run patch service...
2019-05-22 14:39:58.245 28728-28728/? I/Tinker.TinkerPatchService: jobId of tinker patch service is: 1453143321
然后没有其它日志了
系统:小米4 版本:1.9.13
06-03 14:28:38.214 16636-16636/tinker.sample.android W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 06-03 14:28:46.775 16636-16636/tinker.sample.android E/Tinker.MainActivity: i am on onResume 06-03 14:28:49.978 16636-16636/tinker.sample.android D/Tinker.DefaultAppLike: onTrimMemory level:20 06-03 14:29:11.236 16636-16636/tinker.sample.android E/Tinker.MainActivity: i am on onResume 06-03 14:29:17.319 16636-16636/tinker.sample.android I/Tinker.SamplePatchListener: receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, file size:660468 06-03 14:29:17.327 16636-16636/tinker.sample.android W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/tinker.sample.android/tinker/patch.info: open failed: ENOENT (No such file or directory) 06-03 14:29:17.327 16636-16636/tinker.sample.android W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/tinker.sample.android/tinker/patch.info: open failed: ENOENT (No such file or directory) 06-03 14:29:17.328 16636-16636/tinker.sample.android W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 06-03 14:29:17.336 16636-16636/tinker.sample.android I/Tinker.SamplePatchListener: get platform:all 06-03 14:29:17.336 16636-16636/tinker.sample.android I/Tinker.TinkerPatchService: run patch service... 06-03 14:29:17.337 16636-16636/tinker.sample.android I/Tinker.TinkerPatchService: jobId of tinker patch service is: 1453143321 06-03 14:29:17.338 16636-16636/tinker.sample.android W/TinkerJobIntentService: it would be better to grant WAKE_LOCK permission to your app so that tinker can use WakeLock to keep system awake. 06-03 14:29:17.732 16636-16636/tinker.sample.android W/TinkerJobIntentService: it would be better to grant WAKE_LOCK permission to your app so that tinker can use WakeLock to keep system awake. 06-03 14:29:17.740 16636-17182/tinker.sample.android I/Tinker.SampleResultService: SampleResultService receive result: PatchResult: isSuccess:false rawPatchFilePath:/storage/emulated/0/patch_signed_7zip.apk costTime:169 patchVersion:274c6c177a95c2733c118f4d7fa635ce 06-03 14:29:17.741 16636-17182/tinker.sample.android I/Process: Sending signal. PID: 17158 SIG: 9 06-03 14:29:17.759 16636-16636/tinker.sample.android I/Toast: Show toast from OpPackageName:tinker.sample.android, PackageName:tinker.sample.android 06-03 14:29:17.838 16636-16670/tinker.sample.android V/RenderScript: 0x9fdd2000 Launching thread(s), CPUs 4
1.9.13版本 红米 note 7p
2019-06-05 21:34:21.252 19848-19848/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.wacai.android.aappcoin/tinker/patch.info (No such file or directory)
2019-06-05 21:34:21.252 19848-19848/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.wacai.android.aappcoin/tinker/patch.info (No such file or directory)
2019-06-05 21:34:21.252 19848-19848/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return
2019-06-05 21:34:21.252 19848-19848/? I/Tinker.TinkerPatchService: run patch service...
2019-06-05 21:34:21.253 19848-19848/? I/Tinker.TinkerPatchService: jobId of tinker patch service is: 525494697
2019-06-05 21:34:21.255 1620-3986/? I/AutoStartManagerService: MIUILOG- Reject service :Intent { cmp=com.wacai.android.aappcoin/com.tencent.tinker.lib.service.TinkerPatchService } userId : 0 uid : 10353
2019-06-05 21:34:21.255 1620-3986/? D/JobScheduler: Error executing JobStatus{e3f20b2 #u0a353/525494697 com.wacai.android.aappcoin/com.tencent.tinker.lib.service.TinkerPatchService u=0 s=10353 TIME=none:-1ms READY}
也是jobservice 启动不了
试了小米9 和 小米6x,都是Android版本9。 1.9.13版本都是运行不了。
日志 2019-06-10 13:45:46.801 11965-11965/? I/Tinker.SamplePatchListener: receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, file size:122690 2019-06-10 13:45:46.819 11965-11965/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/tinker.sample.android/tinker/patch.info (No such file or directory) 2019-06-10 13:45:46.819 11965-11965/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/tinker.sample.android/tinker/patch.info (No such file or directory) 2019-06-10 13:45:46.821 11965-11965/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 2019-06-10 13:45:46.831 11965-11965/? I/Tinker.SamplePatchListener: get platform:all 2019-06-10 13:45:46.836 11965-11965/? I/Tinker.TinkerPatchService: run patch service... 2019-06-10 13:45:46.837 11965-11965/? I/Tinker.TinkerPatchService: jobId of tinker patch service is: 1453143321
使用1.9.9可以运行
小米note3 Android 8.1.0 1.9.13版本必须要开启自启动也行 2019-07-18 16:02:05.811 23653-24252/? D/Tinker.TinkerManager: onDownloadSuccess. 2019-07-18 16:02:05.812 23653-24252/? D/Tinker.TinkerManager: check if has new patch. 2019-07-18 16:02:05.822 23653-24252/? D/Tinker.TinkerManager: has new patch. 2019-07-18 16:02:05.826 23653-24252/? D/Tinker.TinkerManager: starting patch. 2019-07-18 16:02:05.829 23653-24252/? I/Tinker.TinkerPatchListener: receive a patch file: /data/user/0/com.mcc.ekantone/app_tmpPatch/tmpPatch.apk, file size:81782 2019-07-18 16:02:05.835 23653-24252/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.mcc.ekantone/tinker/patch.info (No such file or directory) 2019-07-18 16:02:05.835 23653-24252/? W/Tinker.PatchInfo: read property failed, e:java.io.FileNotFoundException: /data/user/0/com.mcc.ekantone/tinker/patch.info (No such file or directory) 2019-07-18 16:02:05.835 23653-24252/? W/Tinker.UpgradePatchRetry: onPatchListenerCheck retry file is not exist, just return 2019-07-18 16:02:05.836 23653-24252/? I/Tinker.TinkerPatchListener: get platform:null 2019-07-18 16:02:05.836 23653-24252/? I/Tinker.TinkerPatchService: run patch service... 2019-07-18 16:02:05.837 23653-24252/? I/Tinker.TinkerPatchService: jobId of tinker patch service is: 1069171792
--------- beginning of system
2019-07-18 16:02:05.839 1855-1879/? I/AutoStartManagerService: MIUILOG- Reject service :Intent { cmp=com.mcc.ekantone/com.tencent.tinker.lib.service.TinkerPatchService } userId : 0 uid : 10837 2019-07-18 16:02:05.840 1855-1879/? D/JobSchedulerService: Error executing JobStatus{1e34554 #u0a837/1069171792 com.mcc.ekantone/com.tencent.tinker.lib.service.TinkerPatchService u=0 s=10837 TIME=none:-1ms READY}
在相同的情况下我用tinker v1.9.9版本patch能正常合并成功。 将tinker升级到v1.9.11版本patch就不能正常应用了。 我怀疑是JobScheduler权限的问题,但是查看manifest发现是正常的。