4

My device has hardware problems with radio/wifi. Hence it's not possible to use sim-card or wifi. That also makes it restart frequently. Now it's useless as a phone. So I am trying to turn it in a desk computer (mini-server linuxdeploy). Simple air-plane mode isn't enough to solve these reboots.

How I figure out its wifi/radio components were broken (tentative)

I have an OnePlus 6 enchilada.

Deeper disable wifi/radio than simple air-plane mode

Is it possible to somehow to disable the WIFI/radio somehow deeper than simple air-plane mode? So I can use it as a desk mini-server. Installing linuxdeploy or any other software like that and use reverse tethering.

I tried many solutions around internet (including android.stackexchange) but none really works.

If someone could give me any tip or advice I would greatly appreciate!!

2
  • 1
    Your device has active LineageOS support. Therefore you could try to build a custom version of LineageOS and modify the device tree or other parts of the source code to disable the broken components before building the ROM.
    – Robert
    Commented Jun 10, 2021 at 11:40
  • @Robert Hilariously the solution I found is exactly what you commented. Unfortunately I had to spent almost an year of exploration to find that by myself. Thank you anyway for your willingness to help.
    – imbr
    Commented Jun 10, 2021 at 11:56

1 Answer 1

4

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 android\lineage\kernel\oneplus\sdm845\arch\arm64\configs\enchilada_defconfig.

Setting CONFIG_MSM_PIL_MSS_QDSP6V5 from y to n(NO).

Note: When building LOS I 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_MODULE_OWNER := oneplus
#LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
#LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED)
#LOCAL_SRC_FILES := proprietary/rootfs/sbin/dashd
#LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE_CLASS := EXECUTABLES
#include $(BUILD_PREBUILT)

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

Eureka!!

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. `-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .