Android 12 WiFi Open [Code Flow] - 1
上面讲到initIWifiIfNecessary 得到mWifi,继而mWifi.start() 打开wifi模块;
这里涉及到HIDL调用,HIDL是Android 8引入的为HAL定制的进场间通信接口
916 /**
917 * Initialize IWifi and register death listener and event callback.
918 *
919 * - It is possible that IWifi is not ready - we have a listener on IServiceManager for it.
920 * - It is not expected that any of the registrations will fail. Possible indication that
921 * service died after we obtained a handle to it.
922 *
923 * Here and elsewhere we assume that death listener will do the right thing!
924 */
925 private void initIWifiIfNecessary() {
926 if (mDbg) Log.d(TAG, "initIWifiIfNecessary");
927
928 synchronized (mLock) {
929 if (mWifi != null) {
930 return
|