Only decompile APKs you own or have explicit permission to analyze. Reverse engineering for malicious purposes or to bypass licensing is illegal in most jurisdictions.
If you specifically need to edit XML files or resources: t decompile apk verified download latest version
# Example for Linux/macOS (or WSL on Windows)
wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
chmod +x apktool
sudo mv apktool /usr/local/bin/
Example:
sha256sum apktool.jar
# Compare with official release hash