解决方法:缩短响应的时间;
具体方法:
路径:frameworks/base/services/java/com/android/server/wifi/WifiController.java
代码: class WifiController extends StateMachine {
* being enabled but not active exceeds the battery drain caused by
* re-establishing a connection to the mobile data network.
*/
- private static final long DEFAULT_IDLE_MS = 15 * 60 * 1000; /* 15 minutes */
+ private static final long DEFAULT_IDLE_MS = 1 * 60 * 1000; /* 1 minutes */
时间: 2024-10-05 07:04:02