lemonsqueeze / FakeWifiConnection

Make android apps believe Wifi is connected
Other
66 stars 19 forks source link

Feature/schedule #9

Open h0tk3y opened 8 years ago

h0tk3y commented 8 years ago

Please consider adding scheduling feature. Motivation: the module is extremely useful for faking WiFi connection when mobile data is unlimited. However, some providers restrict unlimited mobile data by night hours (e.g. it's 01:00 to 07:00 for me), so scheduling the WiFi connection fake makes app work as if they have WiFi in 'unlimited' hours.

Screenshot

Unresolved issue: probably the module should send broadcast notifying about connectivity change (to make other apps discover the schedule start/end), but at the moment I found no proper way to do it. This might stop you from merging this, so if it doesn't bother you too much, we might discuss implementing this missing point.

lemonsqueeze commented 8 years ago

Hi,

Looks neat, Yes, it'd be better to get the connectivity change broadcast working.

h0tk3y commented 8 years ago

@lemonsqueeze, do you know a proper way to do it?

As far as I understand, it should be android.net.conn.CONNECTIVITY_CHANGE, but is there a way to send this system broadcast from 3rd party app?

If there's no way to do it, quickly turning mobile data off and on may do the trick, though seems undesirable.

lemonsqueeze commented 8 years ago

I don't, but i'd be surprised if someone didn't figure a way to do it with xposed.