Debug skill of the WiFi framework changes
Suppose you need debug about wifi framework source code, such as frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java, and you don’t want flash system.img every time.
You can debug it by this way.
- load the build environment
source build/envsetup.sh
lunch [product]-userdebug
- build the module
make -j16 com.android.wifi
It will produce the apex file in the path : out/target/product/mssi_t_64_cn/system/apex/com.android.wifi.apex
- install the apex file
- a. if you can adb install apex file, you can do this by command:
adb install --apex out/target/product/[product]/system/apex/com.android.wifi.apex
- b. ortherwise you can do this by two step:
adb push out/target/product/[product]/system/apex/com.android.wifi.apex /data/local/tmp/
adb shell "pm install --apex data/local/tmp/com.android.wifi.apex"
- reboot the device
After restarted, you can check the modify whether work.
文档信息
- 本文作者:Lucas.D
- 本文链接:https://kingofhubgit.github.io/fragment/debug-wifi-framework/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)