Muhmmad-Almuhmmah / nvme-parser

Read, write, parse and dump your nvme block through adb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NVME parser

License GitHub release (latest by date including pre-releases) GitHub Issues

Read, write, parse and dump your nvme block through adb!

⚠️ Warning

  • Use this tool at your own risk. I am not responsible for bricked devices. Please backup NVME before modifying any value.
  • Avoid modifying encrypted values ​​(FBLOCK, WVLOCK, FRPLOCK, etc). These values can be only rewritten with their SHA256 hash.
  • When reporting an issue, make sure to hide sensitive information (such as S/N, MACs, etc).
  • If the tool isn't able to find a valid nvme block, you'll need to provide it as the last argument.
  • Huawei Phones with newer SoCs (Kirin 970 or newer) aren't supported by the tool.

📜 Requirements

  • Huawei phone.
  • Root shell (terminal/adb).
  • The binary itself.

✔️ Features

  • Read NVME values => ./nvme -r VALUE_NAME
  • Write NVME values => ./nvme -w VALUE_NAME NEW_VALUE
  • Dump the NVME block (dd) => ./nvme -b dump_path
  • Restore NVME dump (dd) => ./nvme -e backup_path
  • Set FBLOCK status => ./nvme -f <1|0> (dangerous option, proceed with caution).
  • Read NVME header info => ./nvme -z

💻 Building the tool

  • If you want to compile this tool, you will need the android NDK kit.
  • Once you installed NDK and you set up the exports, run make to build the tool.

ℹ️ License

  • This tool is licensed under the GNU (v3) General Public License. See LICENSE for more details.

About

Read, write, parse and dump your nvme block through adb.

License:GNU General Public License v3.0


Languages

Language:C 95.4%Language:Makefile 4.6%