2

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"?

5
  • 2
    /sdcard/ or /storage/emulated/0/ Commented Oct 21, 2020 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
    Commented Oct 21, 2020 at 7:03
  • 1
    I'm following this tutorial forum.xda-developers.com/moto-g7/how-to/… to root my moto g7 play
    – Mitch
    Commented Oct 21, 2020 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
    Commented Oct 23, 2020 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
    Commented Oct 23, 2020 at 14:25

1 Answer 1

4
adb push <the file> /sdcard/

if /sdcard is not available, try

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .