Closed iocoo closed 7 years ago
I've no phone with dual sim so that I can hardly confirm the problem, can you give me more info?
I have LG Pro Lite Dual and it works perfectly.
setprop gsm.sim.operator.iso-country "us,us" setprop gsm.sim.operator.numeric "310004,310004" @GhostFlying 这样可以就兼容双卡了
Thx, I will try it soon.
I made it a dual sim version. Will it work on single sim devices? Or side effects? https://github.com/simonsmh/LocationReportEnabler/raw/master/outputs/apk/app-release-unsigned.apk
Thx, I will try to test it but set value by device type seems better.
我对Java很陌生,所以抱歉只能用shell作演示
用getprop|grep gsm.sim.state|grep ","
判断或许比设备型号好。
$ getprop|grep gsm.sim.state|grep ","
[gsm.sim.state]: [READY,ABSENT]
实际上现在应该有 API 可以判断,我会测试下和直接读变量哪个更合适。
On Sun, Dec 18, 2016, 12:22 AM Simon Shi notifications@github.com wrote:
我对Java很陌生,所以抱歉只能用shell作演示 用getprop|grep gsm.sim.state|grep ","判断或许比设备型号好。
$ getprop|grep gsm.sim.state|grep ","
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/GhostFlying/LocationReportEnabler/issues/10#issuecomment-267771383, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1VcWxXwDVXZ7mO_oQYs8xMNWH9ne47ks5rJAwrgaJpZM4DwYud .
Something interesting i found today. I set the operator to 310030,310004 last night and I just found the location report was disabled. Then I changed back to 310004,310004 and reboot. I could enable the location report again. Don't know why....I doubt whether google is blocking 310030 operator, though it seems impossible
plus I use China Telecom. And i have to reset the apn once I reboot to get access to data. No idea why...( Xposed mod worked fine, but I upgraded to 7.0 two weeks ago...)
It seems no reason to block the 310030 and this code works well in lots of devices with single sim card.
Fake operator code may cause some APN errors as the order of APN setting init and gms read info can not be confirmed and may change by many uncontrolled causes. Xposed one is always the best way but..
well, I made some fix about this and u can try it from the release page or compile by yourself.
wish it works well and thanks for ur help.
haha, thank you for your effort. I think i should fix my sms first... Since I upgrade to 7.0 with the non-xposed version. I haven't received any sms yet. After i remove the app, the symptom was still there...I could only send msg, but can't receive any.
Check it by running getprop
in terminal and look up for the tile begin
with gsm.
Hoary notifications@github.com于2016年12月19日周一 下午10:02写道:
haha, thank you for your effort. I think i should fix my sms first... Since I upgrade to 7.0 with the non-xposed version. I haven't received any sms yet. After i remove the app, the symptom was still there...I could only send msg, but can't receive any.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GhostFlying/LocationReportEnabler/issues/10#issuecomment-267971000, or mute the thread https://github.com/notifications/unsubscribe-auth/AJEkg5siwmDVZnjborhmsIUhOaM4QfJKks5rJo54gaJpZM4DwYud .
it went back to normal, but still can't receive any sms... might due to many reasons, trying to figure it out.
@GhostFlying Would you please make operator code editable? Btw you can manually close this issue.
I will consider that and u can open a new issue about that :).
双卡不起作用,麻烦确认,谢谢!