To root Android 4.4.2, you need two specific files. Do not download the "latest" version from GitHub; instead, search for these specific legacy versions:
Rooting involves system-level changes. Always back up your photos, contacts, and files first.
Since Android 4.4.2 does not support the "Patch Boot Image" method as reliably as newer versions, the TWRP method is recommended:
Open the app. It should show "Magisk is up to date" with a green checkmark next to version 20.4. Why Root Android 4.4.2 in 2024?
Using a newer version will result in installation failures or boot loops, as the coding environment for modern Magisk (written largely in Rust) requires a higher API level than what KitKat provides. Prerequisites Before You Begin