Saturday, March 4, 2017

ABD Shell Command In android

                              please like & Subscribe our youtube channel

         https://www.youtube.com/playlist?list=PLQzJncZC8PUwCTcniu_akzp0N0oDx7l1n



ADB Shell Commands

In this Blog, we will discuss android shell commands like root status, ls command, cp command etc. which are necessary for any developer or any android user.




in below picture, you can see shell command structure.



What is shell command?

Shell is programs that listen to keyboard input from the user and display output to the user. We run the shell command like cmd command in the system. If our device is rooted we can read, write and edit system file with the shell command. This contains in system/bin/ directory. This command may work on some device and may be not in some device the reason behind this because we can see there is lots of different-different ROM available in currently in the market like stock ROM, Rockchip ROM, MTK ROM etc. Each ROM directory structure is different.

1) Check root status


This command checks this device is root status. Rooting is broken manufacture limitation of the device. We will learn about rooting in next chapter. From above figure, we can see that shell@android:/$ in output this sign indicate that device is non-rooted device if it will be shell@android:/# than it will be the rooted device.


2) Su Command

Ex: adb shell su

Su command indicates that this device provides super user permission to the user. If the device uses a super user we can do anything with device or we can modify device according to our requirement.






From above picture, we can see clearly that su file not found in /system/bin directory this indicate that device has no power permission to the super user.

3) ls shell Command

             ls command uses to find all folder and files in the directory.



Ex: adb shell ls



From this picture, we can see that these are all directories and files in root directory.

4) cd shell command


cd command uses to switch from one directory to other directory or from current directory to another directory.


Ex: cd <current directory> <other directory>



5) cp  shell command


cp command uses to copy data from one directory to other or we can say that its copy data from system to device or device to system.  


Ex: mv /system/app/example.apk > /sdcard/example.apk 





in above picture, we copy data from system app to sd card.

6) cat shell command

cat command also uses to copy data from one directory to other or we can say that its copy data from system to device or device to system.



Ex: cat <source path> <destination path>

7) Move Command

It is also the format of copy command .it move the file from source to destination.



Ex: mv /system/app/SystemUI.apk /sdcard/ SystemUI.apk


8) rm Command


rm command uses to remove any directory or ant file from the device.

Ex: rm <path of the file>


9) Mount  Files system command


Mount file system command use to mount the partition to read/write to the file in the device we can say that it provides read/write permission to the device.

Ex: mount –o rw, remount   -t ysffs2 /dev/block/mtdblock3 <path of directory> 


10) exit command


exit command use for exit from the shell command.

Ex: exit






1 comment:

  1. Abd Shell Command In Android - How To Make Android Custom Rom >>>>> Download Now

    >>>>> Download Full

    Abd Shell Command In Android - How To Make Android Custom Rom >>>>> Download LINK

    >>>>> Download Now

    Abd Shell Command In Android - How To Make Android Custom Rom >>>>> Download Full

    >>>>> Download LINK BS

    ReplyDelete