Push and Pull Files Using ADB Commands

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Push and Pull Files Using ADB

Commands
1. Download and extract the ADB files on your PC.

2. Open a command prompt in the ADB folder by right clicking on


the mouse in the empty space of the folder while holding the
Shift key.

3. Now to pull any file from your device, you need to know its path.
Once you know the path of the file, enter the following command
to pull the file.

adb pull <path-of-the-file>


For instance, lets pull the Settings.apk which is located in the
/System/app/ folder on your device.

adb pull /system/app/Settings.apk

4. The file will be pulled and saved in the ADB folder itself and you
can see the transfer rate in the command prompt.

5. Pulling any file from the device is easy but pushing files to the
device needs permissions. You can push any file to the internal or
external SD card without any issue, but when youre pushing it to
the System partitions you might get this error:

6. So you need to mount the file system as Read-Write rather than


Read-only, so execute the following commands one-by-one to
mount the system writable:

7. adb shell

8. su

mount -o remount,rw /system

9. Your device might prompt for root permissions when you type
SU, grant them. You will get the following output if everything
went right.:

10. Once you are done making changes, you should remount
with the original Read-Only.

mount -o remount,ro /system


11. To push a file to the device, just type the following
command:

adb push <source-path> <target-path>


For instance:

adb push Settings.apk /system/apps/

12. If the file is pushed correctly to your device, youll get the
similar output on the command prompt:

So you now know how to push and pull files using the ADB commands.
These commands are important yet simple, arent they?

Have the Shield connected via usb cable, open up Minimal ADB & fastboot app

Type,

adb remount, press enter


adb shell, press enter

cd system, press enter


cd priv-app, press enter

This photo shows all the commands


ls

It should look like this,


Then you want to type,

rm -r TegraOTA, press enter

ls

in the list TegraOTA is not there anymore

type exit, press enter to get out of adb mnimal & fastboot, you have to do this twice normally until you
exit out

Then reboot the shield tv using the remote control on the shield

you know its done right when your on the shield and you click update and this shows,

You might also like