GhostFlying / LocationReportEnabler

A simple android app to enable Google Location Report, Google Now and related functions in China mainland or somewhere like.
GNU General Public License v3.0
1.06k stars 114 forks source link

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

Open wzhy90 opened 7 years ago

wzhy90 commented 7 years ago

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

GhostFlying commented 7 years ago

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