pmt: cleanup installing guide

This commit is contained in:
2024-12-15 14:18:50 +03:00
parent 2e3fb90e94
commit e85067c605

View File

@@ -6,35 +6,35 @@ The simplest installation in this guide is the one to be performed on termux. Be
- First of all, if it is not installed, you should install termux from [**F-Droid**](https://f-droid.org/packages/com.termux/) (I recommend F-Droid). - First of all, if it is not installed, you should install termux from [**F-Droid**](https://f-droid.org/packages/com.termux/) (I recommend F-Droid).
- In general (**if you have installed termux for the first time**), it is recommended to update the packages. You can use the command below; - In general (**if you have installed termux for the first time**), it is recommended to update the packages. You can use the command below;
``` ```
pkg update && pkg upgrade -y pkg update && pkg upgrade -y
``` ```
- Now all you have to do is download the script. - Now all you have to do is download the script.
``` ```
curl -LSs https://github.com/ShawkTeam/pmt/raw/3.0.2/pmt-termux.sh > pmt-termux.sh curl -LSs https://github.com/ShawkTeam/pmt/raw/3.0.2/pmt-termux.sh > pmt-termux.sh
``` ```
- You need to prepare your environment. The script can do this for you; - You need to prepare your environment. The script can do this for you;
``` ```
bash pmt-termux.sh setup bash pmt-termux.sh setup
``` ```
- Now, install `pmt` on Termux... - Now, install `pmt` on Termux...
``` ```
bash pmt-termux.sh install bash pmt-termux.sh install
``` ```
- To get information about the script (usage etc.); - To get information about the script (usage etc.);
``` ```
bash pmt-termux.sh --help bash pmt-termux.sh --help
``` ```
- From now on, you can use `pmt` on termux. If you reinstall termux or clear its memory, you need to install it again with these steps. - From now on, you can use `pmt` on termux. If you reinstall termux or clear its memory, you need to install it again with these steps.
- For proper use of pmt, you need to use `tsu`. `tsu` works in a Termux environment, compared to the '`su`' command. We need this too. So, you should use '`tsu`' instead of '`su`' command for root access. - For proper use of pmt, you need to use `tsu`. `tsu` works in a Termux environment, compared to the '`su`' command. We need this too. So, you should use '`tsu`' instead of '`su`' command for root access.
``` ```
tsu tsu
# You have now accessed root! # You have now accessed root!
# If you don't want to go to the root environment exactly, you can run one-time root-accessible commands with sudo # If you don't want to go to the root environment exactly, you can run one-time root-accessible commands with sudo
sudo <commands> sudo <commands>
# Example: # Example:
sudo pmt --help sudo pmt --help
``` ```
**NOTES:** **NOTES:**
@@ -50,16 +50,13 @@ You have 2 options for installing `pmt` on recovery (**one-time**)...
- You need to install [**platform tools**](https://developer.android.com/tools/releases/platform-tools) or [**minimal ADB**](https://androidmtk.com/download-minimal-adb-and-fastboot-tool) on your computer. And of course, both USB drives (you should find them). - You need to install [**platform tools**](https://developer.android.com/tools/releases/platform-tools) or [**minimal ADB**](https://androidmtk.com/download-minimal-adb-and-fastboot-tool) on your computer. And of course, both USB drives (you should find them).
- You should download and extract `pmt` from [**publications**](https://github.com/ShawkTeam/pmt/releases) (there are many programs that can do this). - You should download and extract `pmt` from [**publications**](https://github.com/ShawkTeam/pmt/releases) (there are many programs that can do this).
- Enter the recovery mode on the device. Connect the USB cable. Make sure that the device is connected. - Enter the recovery mode on the device. Connect the USB cable. Make sure that the device is connected.
```
adb devices
```
- Now, we need to send the `pmt` to the device and set permissions. - Now, we need to send the `pmt` to the device and set permissions.
``` ```
# Send to device # Send to device
adb push <PMT_FILE_PATH> /system/bin/pmt adb push <PMT_FILE_PATH> /system/bin/pmt
# Set permissions for pmt # Set permissions for pmt
adb shell chmod 755 /system/bin/pmt adb shell chmod 755 /system/bin/pmt
``` ```
- Now you can use `pmt` with the `adb shell` or via the recovery terminal. - Now you can use `pmt` with the `adb shell` or via the recovery terminal.
@@ -71,8 +68,8 @@ You have 2 options for installing `pmt` on recovery (**one-time**)...
- The file you are extracting must be in internal storage! - The file you are extracting must be in internal storage!
- Enter the recovery mode and go to the terminal; - Enter the recovery mode and go to the terminal;
``` ```
cp /sdcard/pmt /system/bin cp /sdcard/pmt /system/bin
chmod 755 /system/bin/pmt chmod 755 /system/bin/pmt
``` ```
- Now you can use `pmt` with the `adb shell` or via the recovery terminal. - Now you can use `pmt` with the `adb shell` or via the recovery terminal.