Package Details: mtkclient 2.1.4.1-2

Git Clone URL: https://aur.archlinux.org/mtkclient.git (read-only, click to copy)
Package Base: mtkclient
Description: Unofficial MTK reverse engineering and flash tool
Upstream URL: https://github.com/bkerler/mtkclient
Licenses: GPL-3.0-only
Submitter: BenTheTechGuy
Maintainer: xiota
Last Packager: xiota
Votes: 8
Popularity: 0.62
First Submitted: 2022-06-06 21:12 (UTC)
Last Updated: 2026-09-09 18:48 (UTC)

Latest Comments

xiota commented on 2026-09-09 18:23 (UTC) (edited on 2026-09-09 18:29 (UTC) by xiota)

@denji The android rules are an old version of rules provided by extra/android-udev. The other rules are already installed.

Those deps are already provided through python-usb and python-fusepy.

denji commented on 2026-09-09 17:20 (UTC) (edited on 2026-09-09 17:23 (UTC) by denji)

@xiota PKGBUILD: Install udev rules to fix device binding permissions

mtkclient fails to bind to MediaTek devices when executed by an unprivileged user because udev rules are not installed during package build.

Suggested - addition to package(): install -Dm644 Setup/Linux/*.rules -t "$pkgdir/usr/lib/udev/rules.d" - deps: +libusb +fuse2

drygdryg commented on 2026-03-13 14:23 (UTC) (edited on 2026-03-13 14:25 (UTC) by drygdryg)

Please implement installing udev rules files provided by the developer, mentioned in the installation guide (https://github.com/bkerler/mtkclient/blob/main/README-INSTALL.md). I tested like this:

package() {
  cd "$_pkgsrc"
  python -m installer --destdir="$pkgdir" dist/*.whl

  # udev rules
  install -Dm644 Setup/Linux/*.rules -t "$pkgdir/usr/lib/udev/rules.d"
}

adiprasetya commented on 2025-02-20 13:26 (UTC)

not working,

$ mtk
Traceback (most recent call last):
  File "/usr/bin/mtk", line 5, in <module>
    from mtk import main
ModuleNotFoundError: No module named 'mtk'
$ mtk_gui
Traceback (most recent call last):
  File "/usr/bin/mtk_gui", line 5, in <module>
    from mtkclient.mtk_gui import main
ModuleNotFoundError: No module named 'mtkclient.mtk_gui'

dreieck commented on 2024-04-28 11:34 (UTC)

You need to change the license identifier to be SPDX compliant:

mtkclient E: GPL3 is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.

Regards and thanks for the package!

BenTheTechGuy commented on 2023-07-12 20:12 (UTC)

@taotieren, this won't work because install scripts are run as root.

taotieren commented on 2022-09-08 02:40 (UTC) (edited on 2022-09-08 02:41 (UTC) by taotieren)

PKKBUILD patch

package() {
    cd mtkclient-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 Setup/Linux/50-android.rules "${pkgdir}"/etc/udev/rules.d/50-android.rules
    install -Dm644 Setup/Linux/51-edl.rules "${pkgdir}"/etc/udev/rules.d/51-edl.rules
}

mtkclient.install patch

post_install() {
    groupadd dialout
    usermod -a -G lock,uucp,dialout,plugdev $(whoami)
    udevadm trigger
    udevadm control --reload-rules
}

post_upgrade() {
  post_install
}

post_remove() {
  post_install
}