How to Flash Patched_Boot.img via termux?



  • Is there a way to get termux to process Fastboot cmds or flash a patched_boot.img with out a PC?



  • no, there is no way to unlock bootloader nor root your device from termux (except for nexus devices). you can however run fastboot commands from another rooted device with https://github.com/Magisk-Modules-Repo/adb-ndk , or flash partitions with dd if termux is running on already rooted device

    $ su
    # ls -d /dev/block/*/*/*/by-name/boot*
    # dd if=/storage/0815-4711/patched_boot.img of=/dev/block/platform/11120000.ufs/by-name/boot_a
    # dd if=/storage/0815-4711/patched_boot.img of=/dev/block/platform/11120000.ufs/by-name/boot_b
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2