Improve documentation to avoid semantic ambiguity

- Enabled OpenSSL and Curl extensions in `php.ini`.
- Provided detailed instructions for downloading and setting up platform-tools.
- Clarified the renaming requirement for `adb` on Mac OS.
- Included a note about the packaged files and scripts in the Releases section.

This update ensures clearer instructions and reduces potential confusion for users.
pull/228/head
yoyo2506 3 months ago
parent 0af1b9b677
commit 4c36ec97d2

@ -63,14 +63,13 @@ Xiaomi が BootLoader のロック解除を制限して以来、Xiaomi の「オ
## ⚙️ 使用方法
1. [公式サイト](https://www.php.net/downloads) からシステムに PHP 8.0+ をダウンロードしてインストールします。
2. `php.ini` で OpenSSL と Curl 拡張機能を有効にします。
(スクリプトが機能しない場合は、`extension_dir` を PHP の `ext` ディレクトリに設定してください。)
2. `php.ini`でOpenSSLとCurl拡張機能を有効にします。スクリプトが正常に動作しない場合は、768行目の` ;extension_dir = "ext"`の前のセミコロンを削除してください。)
3. [php-adb](https://github.com/MlgmXyysd/php-adb) の `adb.php` をディレクトリに配置します。
4. [platform-tools](https://developer.android.com/studio/releases/platform-tools?hl=ja#downloads) をダウンロードして`libraries` に展開します。
4. [platform-tools](https://developer.android.com/studio/releases/platform-tools)をダウンロードして、`libraries`フォルダに配置するか、既存のadbディレクトリをシステム変数として設定します。
※注意: Mac OS では、`adb` の名前を `adb-darwin` に変更する必要があります。
5. ターミナルを開き、PHP インタープリターを使用して[スクリプト](../bypass.php)を実行します。
- P.S. [Releases](https://github.com/MlgmXyysd/Xiaomi-HyperOS-BootLoader-Bypass/releases/latest) には、必要なファイルとクイック実行スクリプトが同梱されています。
- P.S. [Releases](https://github.com/MlgmXyysd/Xiaomi-HyperOS-BootLoader-Bypass/releases/latest) には、必要なファイルとクイック実行スクリプトが同梱されていますが、phpは含まれていません
6. `設定`→`デバイス情報`→`MIUIバージョン`を7回以上連続でタッチして`開発者向けオプション`を有効にします。
7. `設定`→`追加設定`→`開発者向けオプション`で、`OEMロック解除`、`USBデバッグ`、`USBデバッグ (セキュリティ設定)` を有効にします。

@ -56,12 +56,12 @@
## ⚙️ 使用教程
1. 从 [官方网站](https://www.php.net/downloads) 下载并安装适用于您操作系统的 PHP 8.0+。
2. 在 `php.ini` 中启用 OpenSSL 和 Curl 扩展。(如果脚本未正常工作,请将 `extension_dir` 设置为 PHP 的 `ext` 文件夹路径。)
2. 在 `php.ini` 中启用 OpenSSL 和 Curl 扩展。(如果脚本未正常工作,Windows用户请将第768行 `;extension_dir = "ext"` 前的分号删掉。)
3. 将 [php-adb](https://github.com/MlgmXyysd/php-adb) 中的 `adb.php` 放到目录中。
4. 下载 [platform-tools](https://developer.android.com/studio/releases/platform-tools),并将其放入 `libraries`。*注意Mac OS 需要将 `adb` 重命名为 `adb-darwin`
4. 下载 [platform-tools](https://developer.android.com/studio/releases/platform-tools),并将其放入 `libraries`也可将直接将已有adb目录设置为系统变量。*注意Mac OS 需要将 `adb` 重命名为 `adb-darwin`
5. 打开终端,使用 PHP 解释器执行 [脚本](../bypass.php)。
- p.s. Releases 已将所需文件和一键脚本打包。
- p.s. Releases 已将所需文件和一键脚本打包但是并不包含php
6. 多次点击`设置 - 关于手机 - MIUI 版本`启用`开发者选项`。
7. 在`设置 - 附加设置 - 开发者选项`中启用`OEM 解锁`、`USB 调试`和`USB 调试(安全设置)`。

@ -56,12 +56,12 @@ If you're experiencing any of the above, consider yourself damned. Ever since Xi
## ⚙️ How to use
1. Download and install PHP 8.0+ for your system from the [official website](https://www.php.net/downloads).
2. Enable OpenSSL and Curl extension in `php.ini`. (And/or set `extension_dir` to your PHP's `ext` directory if script not work.)
2. Enable the OpenSSL and Curl extensions in `php.ini`. (If the script does not work properly, remove the semicolon before `;extension_dir = "ext"` on line 768 if you are Windows.)
3. Place `adb.php` in [php-adb](https://github.com/MlgmXyysd/php-adb) to the directory.
4. Download [platform-tools](https://developer.android.com/studio/releases/platform-tools) and place them in `libraries`. *Note: Mac OS needs to rename `adb` to `adb-darwin`.*
4. Download [platform-tools](https://developer.android.com/studio/releases/platform-tools) and place it in the `libraries` folder, or set the existing adb directory as a system variable. *Note: On Mac OS, rename `adb` to `adb-darwin`.
5. Open a terminal and use PHP interpreter to execute the [script](../bypass.php).
- p.s. Releases has packaged the required files and click-to-run scripts.
- p.s. Releases have packaged the necessary files and one-click scripts, but do not include php.
6. Tap repeatedly on the `Settings - About Phone - MIUI Version` to enable `Development Options`.
7. Enable `OEM Unlocking`, `USB Debugging` and `USB Debugging (Security Settings)` in `Settings - Additional Settings - Development Options`.

Loading…
Cancel
Save