Updated Using PMT via Termux or ADB (markdown)

2025-08-15 15:38:20 +03:00
parent 20c9ffdb19
commit 7c1d35827a

@@ -6,22 +6,22 @@ This part of the guide explains how to download and install PMT with **Termux**.
--- ---
### 📋 Requirements ### Requirements
- Termux app from [F-Droid](https://f-droid.org/packages/com.termux) or [GitHub](https://github.com/termux/termux-app/releases). - Termux app from [F-Droid](https://f-droid.org/packages/com.termux) or [GitHub](https://github.com/termux/termux-app/releases).
- DO NOT INSTALL TERMUX FROM PLAY STORE! - DO NOT INSTALL TERMUX FROM PLAY STORE!
--- ---
### 🚀 Step-by-Step Usage ### Step-by-Step Usage
#### 1 Prepare Termux #### Prepare Termux
If you haven't already, it's highly recommended that you allow internal storage usage. After all, I'm sure you'll want to keep your backups/flashbacks, etc., there. If you haven't already, it's highly recommended that you allow internal storage usage. After all, I'm sure you'll want to keep your backups/flashbacks, etc., there.
```bash ```bash
termux-setup-storage termux-setup-storage
``` ```
#### 2 Install PMT #### Install PMT
You can easily install PMT with the ready-made script! You can easily install PMT with the ready-made script!
```bash ```bash
@@ -53,14 +53,14 @@ Its written for beginners — no advanced knowledge needed.
--- ---
### 📦 Why Static Version? ### Why Static Version?
The **static** build of PMT contains everything it needs inside one single file. The **static** build of PMT contains everything it needs inside one single file.
This means you can run it directly on your Android device **without** installing extra libraries. This means you can run it directly on your Android device **without** installing extra libraries.
Perfect for quick tasks via ADB. Perfect for quick tasks via ADB.
--- ---
### 📋 Requirements ### Requirements
- **ADB installed** on your computer - **ADB installed** on your computer
(Part of the Android SDK Platform Tools — [Download here](https://developer.android.com/studio/releases/platform-tools)) (Part of the Android SDK Platform Tools — [Download here](https://developer.android.com/studio/releases/platform-tools))
- **USB Debugging enabled** on your phone - **USB Debugging enabled** on your phone
@@ -69,9 +69,9 @@ Perfect for quick tasks via ADB.
--- ---
### 🚀 Step-by-Step Usage ### Step-by-Step Usage
#### 1 Get the Correct Binary #### Get the Correct Binary
Download the **`pmt-static`** file that matches your devices architecture: Download the **`pmt-static`** file that matches your devices architecture:
- **`pmt-static-arm64-v8a`** → For 64-bit devices - **`pmt-static-arm64-v8a`** → For 64-bit devices
- **`pmt-static-armeabi-v7a`** → For 32-bit devices - **`pmt-static-armeabi-v7a`** → For 32-bit devices
@@ -80,7 +80,7 @@ Unzip the downloaded `.zip` file — you should now have a `pmt` binary.
--- ---
#### 2 Push the Binary to Your Device #### Push the Binary to Your Device
Use ADB to copy the `pmt` file to your phones temporary folder: Use ADB to copy the `pmt` file to your phones temporary folder:
```bash ```bash
# Rename for more easily usage # Rename for more easily usage
@@ -89,25 +89,25 @@ mv pmt_static pmt
adb push pmt /data/local/tmp/pmt adb push pmt /data/local/tmp/pmt
``` ```
#### 3 Open an ADB Shell #### Open an ADB Shell
Access your device shell: Access your device shell:
```bash ```bash
adb shell adb shell
``` ```
#### 4 Change to the Directory #### Change to the Directory
Move into the temporary directory where pmt is stored: Move into the temporary directory where pmt is stored:
```bash ```bash
cd /data/local/tmp cd /data/local/tmp
``` ```
#### 5 Give Execute Permission #### Give Execute Permission
Allow the binary to be executed: Allow the binary to be executed:
```bash ```bash
chmod 755 pmt chmod 755 pmt
``` ```
#### 6 Run PMT #### Run PMT
You can now run PMT directly from this directory: You can now run PMT directly from this directory:
```bash ```bash
@@ -122,7 +122,7 @@ Example — Back up the boot partition:
./pmt backup boot ./pmt backup boot
``` ```
#### 💡 Tips #### Tips
Commands must be run from /data/local/tmp unless you move pmt elsewhere.\ Commands must be run from /data/local/tmp unless you move pmt elsewhere.\
The /data/local/tmp folder is cleared when you reboot your device.\ The /data/local/tmp folder is cleared when you reboot your device.\
Static builds are completely standalone — no missing library issues. Static builds are completely standalone — no missing library issues.