I want to do this step to root my phone: Copy it to the internal storage of your device

So the command is:

adb push <local file> <remote location>

The "local file" is "boot.img" What is name for my phone's "internal storage"?

  • 1
    /sdcard/ or /storage/emulated/0/ Oct 21 '20 at 2:45
  • 1
    A boot.img is mostly installed via fastbootand therefore doe snot have to be pushed via adb to the device. You should edit your question and add more details like the manufacturer and model name of your phone, the Android version your phone runs and the link to the root tutorial you use.
    – Robert
    Oct 21 '20 at 7:03
  • 1
    I'm following this tutorial forum.xda-developers.com/moto-g7/how-to/… to root my moto g7 play
    – Mitch
    Oct 21 '20 at 17:38
  • that's correct, don't flash it, just push to /sdcard and patch it with Magisk Manager (step 5 is important) 'adb pull /sdcard/Download/magisk_patched.img' will pull the patched boot.img back to PC's platform-tools folder
    – alecxs
    Oct 23 '20 at 11:43
  • Thanks I got there, then went into "Recovery Mode" and then get "no command", press power and vol and go to recovery menu. Then reboot and it's still not installed. Will try using TWRP
    – Mitch
    Oct 23 '20 at 14:25
adb push <the file> /sdcard/

if /sdcard is not available, try

adb push <the file> /storage/emulated/0/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.