Find Tablet SoC Kernel and Touchscreen Build Info
In this article
Yes, you can locate the kernel that was compiled for your tablet’s SoC and touchscreen by examining the kernel image, its configuration file, and the boot logs using a PC, ADB, and fastboot tools.
What You'll Need
- A computer running Linux, macOS, or Windows with the Android SDK platform‑tools installed (adb and fastboot).
- USB cable compatible with your tablet.
- Developer options enabled on the tablet and USB debugging turned on.
- Root access or an unlocked bootloader if you need to read the raw kernel image (many tablets allow read‑only access to /proc/version without rooting).
- Basic command‑line knowledge (terminal, sudo, cat, grep, etc.).
Step‑By‑Step
- Connect the tablet to the PC with the USB cable and verify the connection:
adb devices
You should see your device listed asdevice. If not, check the cable, enable USB debugging, and accept the RSA key prompt on the tablet. - Pull the kernel version string from the running system:
adb shell cat /proc/version
The output looks likeLinux version 4.19.112‑g5f2c3b…. Note the version number; it tells you which upstream kernel source the device is based on. - Gather boot‑log information that often contains the SoC and touchscreen driver names:
adb shell dmesg | grep -i "soc\|touch"
Look for lines such asmtk-soc: Qualcomm Snapdragon 845orfts_ts: FT5x06 touchscreen driver. These identifiers help you confirm the exact SoC and touchscreen controller. - If the device is bootloader‑unlocked, you can download the raw kernel image directly:
adb reboot bootloader
Then, from fastboot mode, run:fastboot getvar all | grep "kernel"
Some devices expose abootpartition that contains the kernel. To pull it:fastboot flash --download boot boot.img
(Replace--downloadwith the appropriate fastboot command for your platform; on many fastboot builds the command isfastboot getvar bootfollowed byfastboot oem read-bootloader.) - Extract the kernel configuration from the image (if the
CONFIG_IKCONFIGoption was enabled during compilation):mkdir kernel_extracted && cd kernel_extracted binwalk -e ../boot.img gunzip -c _boot.img.extracted/kernel | strings | grep CONFIG_ > .configThe resulting.configfile lists every compile‑time option, includingCONFIG_TOUCHSCREEN_*entries that reveal which touchscreen driver was built into the kernel. - If extracting the config fails, you can often find a copy of the config in the
/proc/config.gzpseudo‑file (requires root):adb root adb shell "zcat /proc/config.gz" > kernel_config.txtSearch this file forTOUCHSCREENto see the exact driver name. - Cross‑reference the driver name with the SoC documentation. For example, if you see
CONFIG_TOUCHSCREEN_FTS, the device likely uses an FocalTech FT5x06 controller, which is common on many MediaTek‑based tablets. - Optional: download the vendor’s source release (many manufacturers publish kernel sources to satisfy GPL requirements). Search for the device’s codename plus “kernel source” on the manufacturer’s developer portal. Compare the
.configyou extracted with thedefconfigin the released source to confirm they match.
Common Mistakes
- Skipping the step to enable USB debugging. Without it,
adbcannot communicate with the tablet. - Attempting to pull
/proc/config.gzon a non‑rooted device. That file is only readable by the root user. - Using the wrong fastboot command for your device. Fastboot implementations differ; consult the device‑specific guide if
fastboot getvar bootreturns an error. - Assuming the kernel image is named
boot.img. Some manufacturers label itkernel.imgor store it in a different partition (e.g.,lkorrecovery). - Overlooking compressed kernel configurations. If
CONFIG_IKCONFIG_PROCis disabled,/proc/config.gzwill not exist, and you must rely on extraction from the raw image.
Tips
- Keep a copy of the original
boot.imgbefore modifying anything. This protects you from bricking the device if you later flash a custom kernel. - Use
grep -i "touchscreen" .configafter extracting the config to quickly locate all touchscreen‑related options. - If the kernel version string includes a git hash (e.g.,
g5f2c3b), you can search that hash on the vendor’s source repository to find the exact commit. - When the SoC is not obvious from
dmesg, look for entries likeCPU: ARMv8 Processorcombined withHardware platform: XYZ. These clues narrow the chip family. - Some tablets expose the kernel command line via
adb shell cat /proc/cmdline. Parameters such asandroidboot.hardware=often contain the SoC identifier.
Troubleshooting
If any step fails, follow this checklist:
- Device not listed by
adb devices: Re‑enable USB debugging, try a different USB port, or install the appropriate USB drivers (Windows) or udev rules (Linux). - Permission denied when reading
/proc/config.gz: Verify that you have root access (adb root). If the device’s boot image disables root, you will need to unlock the bootloader or use a custom recovery that provides temporary root. - Fastboot cannot detect the device: Ensure the tablet is in fastboot mode (often “fastboot” or “download” mode). Some devices require holding a specific button combo while powering on.
- Binwalk extraction yields no
kernelfile: The boot image may be encrypted or use a non‑standard container. In that case, check the vendor’s source release for the unencryptedzImageorImage.gzfile. - Search results show no matching driver: Double‑check the spelling of the driver name. Some drivers are built as modules (e.g.,
touchscreen.ko) and may not appear in the main config. List loaded modules withadb shell lsmodand look for entries containing “touch”.
Frequently Asked Questions
Can I find the kernel version without root?
Yes. The /proc/version file is world‑readable, so adb shell cat /proc/version works on any device with USB debugging enabled.
Do I need to flash a custom recovery to extract the kernel?
No. If the bootloader is unlocked, fastboot can download the boot partition directly. A custom recovery is only necessary when the device blocks fastboot access.
What if my tablet’s bootloader cannot be unlocked?
Without an unlocked bootloader you cannot pull the raw kernel image. In that case, rely on the information available from dmesg and /proc/version, or consult the manufacturer’s publicly released source package.
Is the touchscreen driver always compiled into the kernel?
Not always. Some devices load the driver as a separate module (e.g., touchscreen.ko). You can list loaded modules with adb shell lsmod and search for names that contain “touch”.
How do I know which kernel source to download from the vendor?
Match the kernel version string from /proc/version and the git hash (if present) with the version tags on the vendor’s source repository. The vendor is required to publish the exact source used for the shipped kernel.
Can I modify the extracted .config and recompile the kernel?
Yes, but you must have a toolchain that matches the tablet’s architecture (usually ARM64) and a proper cross‑compilation environment. Re‑flashing a modified kernel also requires an unlocked bootloader and a reliable flashing method.