Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Use alternative configuration for system Wi-Fi hotspot (Android 11+) #167

Open
Mygod opened this issue Jul 2, 2020 · 6 comments

Comments

@Mygod
Copy link
Owner

Mygod commented Jul 2, 2020

No description provided.

@Mygod Mygod mentioned this issue Jul 2, 2020
11 tasks
@erotundo

This comment was marked as off-topic.

@ConcurrentCrab
Copy link

ConcurrentCrab commented Dec 2, 2023

@Mygod I would like to pursue this feature. Do you have any pointers of where I could start investigating? If you think it's possible at all.

I expect it will probably involve reflection, the same way turning the system AP on does.

@erotundo
Copy link

erotundo commented Dec 2, 2023 via email

@ConcurrentCrab
Copy link

You have a option doing reflection to enable the hotspot I did it using that way in Java

@erotundo I know you can toggle the hotspot on/off using reflection, that's the way this app accomplishes it. My query is about the topic of this issue, that is, starting it with a custom configuration, like a different SSID and password.

I also know that supplying that configuration is possible if you're using the newer android local-only hotspot APIs, but unfortunately, they are not tethered to the internet connection of your device and only meant for local communication.

@erotundo
Copy link

erotundo commented Dec 2, 2023 via email

@Mygod
Copy link
Owner Author

Mygod commented Dec 2, 2023

As mentioned in #159, the way to do it is to invoke the system API Landroid/net/wifi/WifiManager;->startTetheredHotspot(Landroid/net/wifi/SoftApConfiguration;)Z,system-api,whitelist via reflection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants