wi fi – Salvage Android Phone as Linux-Server (radio/wifi hardware broken)

I solved by myself so I’m sharing so it might be useful for others.

Deeper disable wifi/radio = recompile android Linux Kernel disabling wifi/radio drivers

First I tested the Lineage OS custom ROM for my device.

From that I got access to fully rebuild my Custom Lineage ROM. They have all source code for all supported devices including the source for the linux kernel for my mobile board (Qualcomm SDM845 Snapdragon 845 SoC).

When the kernel is built It should be decided if It will load driver modules (all SoC board component needs a driver) or have driver modules statically built in it. In either case the driver must be enabled during the kernel build. For configuring the linux kernel build a .config file is used.

After studying a lot more about linux kernel building. Found from here that QDSP6V5 from OnePlus 6 SoC SDM845 board was mandatory for mobile-data and WIFI when building the kernel.

Using Lineage OS docs and more research and 250 GB of source code and almost 12 hours of download (repo sync + brunch enchilada) I managed to build my custom Lineage OS 16.0 ROM after modifying the kernel .config fragment (enchilada_defconfig) from androidlineagekerneloneplussdm845archarm64configsenchilada_defconfig.

Setting CONFIG_MSM_PIL_MSS_QDSP6V5 from y to n(NO).

Note: had to disable dashd since I couldn’t find this file while extracting proprietary blobs. Comment it out on ~/android/lineage/vendor/oneplus/sdm845-common/Android.mk

#include $(CLEAR_VARS)
#LOCAL_MODULE := dashd
#LOCAL_SRC_FILES := proprietary/rootfs/sbin/dashd
#LOCAL_MODULE_TAGS := optional
#include $(BUILD_PREBUILT)

and deleting it from PRODUCT_PACKAGES += list on sdm845-common-vendor.mk on same folder.


Wifi and Mobile not working at all.

No more reboots and internet working flawlessly from usb reverse tethering.

Hilariously solution is exactly like @Robert commented. I had to spent almost an year of exploration to find that by myself. `-)