SoftAp
想好叫啥再改
起风了,唯有努力生存!
展开
-
Android 获取WiFi MAC方法与热点MAC实现思路
Android 中WiFi可以通过WifiManager.getConnectionInfo()接口来获取WiFi使用网口对应的MAC。通过WifiInfo.getMacAddress()即可获取到对应的MAC。 /** * Return dynamic information about the current Wi-Fi connection, if any is active. * <p> * In the connected state, a原创 2021-08-19 17:18:07 · 2358 阅读 · 0 评论 -
Android WiFi 热点SSID以及密码默认位数限制修改
默认的位数配置,如下,WifiUtils.java private static final int SSID_ASCII_MIN_LENGTH = 1; private static final int SSID_ASCII_MAX_LENGTH = 32; private static final int PASSWORD_MIN_LENGTH = 8; private static final int PASSWORD_MAX_LENGTH = 63;原创 2021-08-12 15:40:14 · 1452 阅读 · 0 评论 -
Android WiFi 热点禁用自动关闭功能
对于Android源生热点,如果10分钟内未连接任何设备,则具有热点将自动关闭的功能。禁用方法如下:默认关闭超时关闭热点功能,参考源码Android P。SoftApManager.javaprivate boolean getValue() { boolean enabled = mFrameworkFacade.getIntegerSetting(mContext, //Settings.Global.SOFT_AP_TIMEOU原创 2021-08-12 13:47:42 · 1511 阅读 · 0 评论 -
Android WiFi 热点默认SSID修改
默认SSID设置位置,如下,WifiApConfigStore.java/** * Generate a default WPA2 based configuration with a random password. * We are changing the Wifi Ap configuration storage from secure settings to a * flat file accessible only by the system. A WPA2 based defa原创 2021-08-12 11:41:09 · 1365 阅读 · 1 评论 -
Android WiFi 热点默认密码位数修改
默认随机密码位数设置位置,如下,WifiApConfigStore.java/** * Generate a default WPA2 based configuration with a random password. * We are changing the Wifi Ap configuration storage from secure settings to a * flat file accessible only by the system. A WPA2 based de原创 2021-08-12 11:19:04 · 839 阅读 · 0 评论