This question already has an answer here:
I have a Haewei Mediapad M5 tablet (model BAH2-W19). Android 8.0.0 with a logitech bluetooth keyboard
I am a 60 years old Linux guru (using Linux since 1993, Unix since 1987, coding Bismon, with a PhD in computer science since 1990, etc...) and all the 5 PCs at home are running some Linux distro (often Debian, or Ubuntu). I contributed to GCC (its plugin system) and did compile many Linux kernels (for all the PCs I had since the previous century).
I want to root my tablet and install an opensource Android on it. I don't care losing all the data, but I don't want to brick my tablet.
What are the concrete steps?
Oµf course, I have the skills, the motivations, and the hardware to write some root-setuid ELF executable (cross-compiled from Debian to ARM Android) on the SD card inside my tablet and of course I will publish its source code as GPLv3+ (on github probably). I just want to have that (
super like) executable being
execve-d on the tablet. How to do that? I don't care about proprietary kernel driver modules on my tablet.
I am aware that trying this could void my warranty (but the European laws are IMHO more consumer-friendly than US ones) on my tablet and I am willing to take that risk.