Android Hotspot API is a small package containing a single class. It uses fuction marked @hide in WifiManager class of android.net.Wifi package.