Tinker: 1.9.5版本patch补丁包在小米手机上合成失败问题

Created on 29 Mar 2018  ·  12Comments  ·  Source: Tencent/tinker

异常类型:patch补丁包合成失败

手机型号:红米Note3, 小米6

手机系统版本:Android 6.0, Android 7

tinker版本:1.9.5

gradle版本:3.0.1

是否使用热更新SDK: 是,TinkerPatch SDK

系统:Mac

使用的是TinkerPatch SDK 版本1.2.5, 内置的tinker版本是1.9.5 ,在小米手机上面负责合成的 job service启动失败,经测试两台小米手机均失败,换了另外一台三星手机成功,所以确定是跟系统有关,跟接入没有关系(起初以为是接入步骤有问题) logcat下面看到负责合成的服务被系统拒绝了

03-29 11:13:22.900 1620-2065/? I/AutoStartManagerService: MIUILOG- Reject service :Intent { cmp=com.xx.xxx.xxx.test/com.tencent.tinker.lib.service.TinkerPatchService$JobServiceRunner } userId : 0 uid : 10214
03-29 11:13:22.901 1620-2065/? D/JobSchedulerService: Error executing 236..:[ComponentInfo{com.xx.xxx.xxxx.test/com.tencent.tinker.lib.service.TinkerPatchService$JobServiceRunner},jId=1,u0,suid=10214,R=(-00:05,none),N=0,C=false,I=false,U=false,F=0,P=false,ANI=true,DND=true(READY)]

bug

Most helpful comment

MIUI的自启动权限会限制JobScheduler的运行,好坑……
你试试在安全中心-授权管理-自启动权限里把你的app的自启动权限打开,应该就正常了。

All 12 comments

MIUI的自启动权限会限制JobScheduler的运行,好坑……
你试试在安全中心-授权管理-自启动权限里把你的app的自启动权限打开,应该就正常了。

MIUI真坑 。。暂时选择退回1.9.2版本了

总算找到原因了,纠结了一天

1.9.6仍然复现 @tomystang

mi 6 ,os 8.0.0, tinker 1.9.6
还是复现。在没有打开app的自启动权限的情况下

@hqzxzwb @EnternalRain 各位试试1.9.8?

mix2s 1.9.8还是不行啊

小米8 ,1.9.9也不行

1.9.9小米8仍然复现 @tomystang

1.9.11 还可以复现么?

On Thu, Jan 24, 2019 at 3:15 AM lijie815917 notifications@github.com
wrote:

1.9.9小米8仍然复现 @tomystang https://github.com/tomystang


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Tencent/tinker/issues/804#issuecomment-457160888, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAbvYroGu_BXXtdG1YJI5CHloZD91hbuks5vGZXhgaJpZM4S_0iG
.

1.9.11版本在小米8,MIUI10,android8.1上问题还是复现,必须要给应用自启动授权才能成功

@simpleton @tomystang

Was this page helpful?
0 / 5 - 0 ratings