• 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
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...
 
Back
Top Bottom