Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否加个判断,检测到SIM_STATE_READY才修改prop? #69

Open
wzhy90 opened this issue May 8, 2017 · 1 comment
Open

是否加个判断,检测到SIM_STATE_READY才修改prop? #69

wzhy90 opened this issue May 8, 2017 · 1 comment

Comments

@wzhy90
Copy link

wzhy90 commented May 8, 2017

看文档貌似AndroidManifest.xml里面的intent-filter并没有这个intent,只有SIM_STATE_CHANGE,但是在java代码里面可以import telephonemanager,然后从telephonemanager里面读取到这个状态。
如果sim卡还没获取到信号之前改的话,我在7.0系统下发现是无信号,然后等10来秒之后出信号,但是gsm.sim.operator之类的值也变回SIM卡自己的值了

@GhostFlying
Copy link
Owner

其实目前的实现是 sim_state 的每次变化都会触发 set,目的是为了尽可能保证不被系统覆盖,同时尽可能早 set,因为 broadcast 的触发时机不可控

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants