• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

granting WRITE_SETTINGS for an AndroidTV hotspot

androphil

Lurker
Jan 24, 2019
1
0
Hi guys

I want to create a hotspot on my AndroidTV device. So far, the only I saw was with reflection and calling the internal method setWifiApEnabled of WifiManager. The problem is that requires WRITE_SETTINGS permissions and I want to use the device 'headless', i.e. my phone should just be able to send requests to the device since most of the time, it's not connected to a TV.

I don't want to root anything, however since I'm building the firmware for the device, for all intent and purposes, I am root on the device. Still, how can I grant this permission to a single application ? Is it something I need to do as part of the build ?

Thanks for any leads, documentation on AndroidTV is kind of sparse...
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones