Update Using PMT via Termux or ADB

2025-10-28 08:51:24 +03:00
parent 9e90a9347e
commit d0eb589f5a

@@ -1,127 +1,127 @@
This guide shows you how to use PMT with Termux and ADB. After that, you might want to read [Usage](Usage)! This guide shows you how to use PMT with Termux and ADB. After that, you might want to read [Usage](Usage)!
## Using PMT via Termux ## Using PMT via Termux
This part of the guide explains how to download and install PMT with **Termux**. 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
#### 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
``` ```
#### 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
# Download PMT's installer script for termux # Download PMT's installer script for termux
curl -LSs "https://raw.githubusercontent.com/ShawkTeam/pmt-renovated/refs/heads/main/manager.sh" > manager.sh curl -LSs "https://git.yzbruh.space/YZBruh/pmt-renovated/raw/branch/main/manager.sh" > manager.sh
# Start script! # Start script!
bash manager.sh install bash manager.sh install
# Now, PMT is ready for usage if no error occurred. Try running: # Now, PMT is ready for usage if no error occurred. Try running:
pmt --help pmt --help
``` ```
--- ---
### Do you want to uninstall...? ### Do you want to uninstall...?
Only run script via this command: Only run script via this command:
```bash ```bash
bash manager.sh uninstall bash manager.sh uninstall
``` ```
--- ---
## Using PMT via ADB ## Using PMT via ADB
This part of the guide will show you how to use the **static** version of Partition Manager Tool (`pmt-static`) on your Android device through **ADB**. This part of the guide will show you how to use the **static** version of Partition Manager Tool (`pmt-static`) on your Android device through **ADB**.
Its written for beginners — no advanced knowledge needed. 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
(Settings → Developer options → Enable USB debugging) (Settings → Developer options → Enable USB debugging)
- Your **phone connected via USB** and recognized by ADB - Your **phone connected via USB** and recognized by ADB
--- ---
### Step-by-Step Usage ### Step-by-Step Usage
#### Get the Correct Binary #### Get the Correct Binary
Download the **`pmt-static`** file that matches your devices architecture (from [releases](https://github.com/ShawkTeam/pmt-renovated/releases)): Download the **`pmt-static`** file that matches your devices architecture (from [releases](https://github.com/ShawkTeam/pmt-renovated/releases)):
- **`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
Unzip the downloaded `.zip` file — you should now have a `pmt` binary. Unzip the downloaded `.zip` file — you should now have a `pmt` binary.
--- ---
#### Push the Binary to Your Device #### Push the Binary to Your Device
Use ADB to copy the `pmt` file to your devices temporary folder: Use ADB to copy the `pmt` file to your devices temporary folder:
```bash ```bash
# Rename for more easily usage # Rename for more easily usage
mv pmt_static pmt mv pmt_static pmt
adb push pmt /data/local/tmp/pmt adb push pmt /data/local/tmp/pmt
``` ```
#### Open an ADB Shell #### Open an ADB Shell
Access your device shell: Access your device shell:
```bash ```bash
adb shell adb shell
``` ```
#### 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
``` ```
#### 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
``` ```
#### Run PMT #### Run PMT
You can now run PMT directly from this directory: You can now run PMT directly from this directory:
```bash ```bash
# Open root terminal # Open root terminal
su su
./pmt --help ./pmt --help
``` ```
Example — Back up the boot partition: Example — Back up the boot partition:
```bash ```bash
./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.\
Static builds are completely standalone — no missing library issues. Static builds are completely standalone — no missing library issues.