tranquvis / SimpleSmsRemote

Android app for remotely controlling a phone through sms messages
MIT License
129 stars 37 forks source link

Hotspot/WiFi module not working on Android 10. #42

Open samruddhag1 opened 4 years ago

samruddhag1 commented 4 years ago

Hi, could you look into compatibility with Android 10? Hotspot module didn't work for me on Android 10 although it did on marshmellow. In my opinion, it is due to targeting a low SDK. Another app from playstore 'MacroDroid' worked on 10 and explicitly asked for WiFi permission apart from permission to change system settings. It is possible it has to do with it targeting a slightly higher SDK. If I'm not wrong maybe Android 10 has more finegrained permission system and doesn't allow targeting lower SDK.

niftylettuce commented 3 years ago

Bump. Same not working for me

niftylettuce commented 3 years ago

I will gladly donate a bug bounty reward for this to be fixed.

tranquvis commented 3 years ago

Hi, we have two separate stories here 😄

  1. Hotspot Module: This is not working anymore since Android 8.0. Unfortunately, I only see a possible solution for hotspot functionality without internet connection. I created a separate story for that: https://github.com/tranquvis/SimpleSmsRemote/issues/43. Please comment if this "Local Only Hotspot" would be useful in your case.
  2. Wifi Module: This is actually not working anymore since Android 10.0. Unfortunately, I currently don't see a possible solution for Android 10.0. Some information can be found here: https://stackoverflow.com/questions/58075918/is-it-possible-to-programmatically-enable-wifi-on-android-10-devices. There is a feature request for android, but I would not be optimistic that something useful will be implemented, since the status of this feature request is "Won't Fix (Intended behavior)". I am wondering how MacroDroid managed to switch wifi on/off. Maybe they use a more specific api, which is not supported by android in general.

It's really annoying how restrictive android becomes. Where is the american philosophy of liberty?