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.07k stars 114 forks source link

Dual Sim card may not work . #10

Closed iocoo closed 7 years ago

iocoo commented 9 years ago

双卡不起作用,麻烦确认,谢谢!

GhostFlying commented 9 years ago

I've no phone with dual sim so that I can hardly confirm the problem, can you give me more info?

ermalx commented 9 years ago

I have LG Pro Lite Dual and it works perfectly.

simonsmh commented 7 years ago

setprop gsm.sim.operator.iso-country "us,us" setprop gsm.sim.operator.numeric "310004,310004" @GhostFlying 这样可以就兼容双卡了

GhostFlying commented 7 years ago

Thx, I will try it soon.

simonsmh commented 7 years ago

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

GhostFlying commented 7 years ago

Thx, I will try to test it but set value by device type seems better.

simonsmh commented 7 years ago

我对Java很陌生,所以抱歉只能用shell作演示 用getprop|grep gsm.sim.state|grep ","判断或许比设备型号好。

$ getprop|grep gsm.sim.state|grep ","
[gsm.sim.state]: [READY,ABSENT]
GhostFlying commented 7 years ago

实际上现在应该有 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 .

dlhxr commented 7 years ago

FYI https://github.com/dlhxr/LocationReportEnabler/commits/dual-sim

dlhxr commented 7 years ago

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

dlhxr commented 7 years ago

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...)

GhostFlying commented 7 years 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..

GhostFlying commented 7 years ago

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.

dlhxr commented 7 years ago

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.

simonsmh commented 7 years ago

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 .

dlhxr commented 7 years ago

it went back to normal, but still can't receive any sms... might due to many reasons, trying to figure it out.

simonsmh commented 7 years ago

@GhostFlying Would you please make operator code editable? Btw you can manually close this issue.

GhostFlying commented 7 years ago

I will consider that and u can open a new issue about that :).