The question is pretty clear. Can I fetch a fake event for of Wi-Fi or 3G connected. Even for rooted phones will do. Googled a lot but could not find any answers. But I believe that this is possible. As this app on play store does it.
You can trick your phone into believing that the Wi-Fi is connected by saving a small text file to your SD card so the phone will play games and apps as if it's on Wi-Fi when it's only connected to 3G. 1) Launch a text editing program on your computer and type "FALSE" in all caps.
A fake WiFi hotspot, or “Evil Twin” hotspot, is a WiFi access point set up by a hacker or cybercriminal which mimics a legitimate hotspot including the service set identifier (SSID) provided by a business which is nearby, such as a coffee shop or hotel that provides free WiFi access to its customers.
Wi-Fi Direct (also known as peer-to-peer or P2P) allows your application to quickly find and interact with nearby devices, at a range beyond the capabilities of Bluetooth. The Wi-Fi Direct (P2P) APIs allow applications to connect to nearby devices without needing to connect to a network or hotspot.
Well, I got my answer. All I need to have is a rooted phone with Xposed framework installed on my phone. With an app called Hack Connectivity Service we can fake a Wi-Fi or mobile data connected status to the system even if Wi-Fi is not connected.
Try Fake Wifi Connection (uses Xposed Framework). It'll make apps believe Wi-Fi is connected.
Hack Connectivity (another Xposed module) didn't work for me so I wrote my own module instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With