What is adb shell and how does it enter?

Source: Internet
Author: User

This article is suitable for the basic knowledge of Android system, know what you say the adb shell is what the small white classmate.
(mainly in favor of Windows users, believe if you use Linux ... This article may not have been able to help you what)
One, starting from the operating system
Windows, Linux, Mac, iOS, Android, Meego.
There are so many operating systems in this world, and they look different and vary a lot.
But in fact the relationship between them is not so far away.
They actually have a common ancestor: Unix
。。。 (Middle province over 10000 words)
After n-Multiple versions of evolution, their principle is not fundamentally different, the main difference is the memory management and human-computer interaction mode.
Two, what is adb shell
The first part of the above seems to have nothing to do with the second part ... Sweat ~
The first thing to say is the shell, the operating system itself actually does not need people to control.
But people need to tell the operating system what to do, and this interactive program is called the shell.
Here I divide the shell into three kinds:

    • Graphics Shell:
There are many kinds of shell, Windows Explorer.exe,linux gnome/kde ....
The desktop that Windows sees, the Start menu, is also a graphical shell
    • Terminal Shell:
Terminal shell In addition to Windows Cmd.exe has weakened to the point of disabling, the other operating systems are more powerful;
Terminal shell The biggest feature is the character operation, no graphics, imagine, if your operating system graphics driver crashes, the drawing function does not lift, this is the last straw.
In fact, almost all graphics drivers are written under the terminal shell and then used to draw the graphics shell ....
Especially under Linux\mac\android, the terminal shell is very gray and powerful.
such as: bash\zsh\ ....
    • Other shells:
There are many, unrelated to this article, not discussed.

OK, speaking of which, everyone should understand that the ADB shell is actually connected to our KF (Android) terminal Shell. As an example, we can copy a file from/sdcard/to/sbin in the RE manager.
Operation is still cumbersome, but you can do this in the ADB shell:
cp/sdcard/a.txt/sbin/

two, how to enter adb shell under Windows
This section really does not want to write, because the terminal shell tool under Windows is too crippled ...
But too many people use Windows, helpless, OK ...
We still remember the one-click root of the program, in fact, after reading this article, a little research, you should be able to understand the batch of all the commands.
OK, let's get into the adb shell ...
1. Enter the terminal shell of Windows: To enter the KF terminal shell, we will connect from the operating system shell.
From the previous section we know, Linux/mac under the "terminal" program is good, and Windows, Windows key +r, and then enter CMD press ENTER, come out a small window, black, this lovely window is the shell of Windows.
2. Connect to the KF Shell: This step is very simple, go directly to the directory where our Adb.exe program is located, execute adb Shell can.
Believe that read the above sentence, some people will be lost ... Say the actual operation of it:
In this post attachment download that Adb.zip, extract to the C drive KF catalogue. Then enter in the small black window:
    1. C:\users\tony>
    1. C:> CD C:\KF
    1. c:\cf> adb shell
    1. * Daemon not running. Starting it now *
    1. * Daemon started successfully *
    1. $
Copy Code

third, how to enter the ADB shell under Linux/mac

Unzip the attachment if you are Linux:
Cp-r. Android ~
./adb-linux Shell
If you are a Mac:
Cp-r. Android ~
./adb-mac Shell
Yes, it's that simple, and without having to install any drivers, there's no problem.
OK, so you get into the KF terminal Shell, this article is here.
=================================================================

Here's a look at the shell operation:
    1. With the root user, you have the highest privileges:
    1. Su Root

    1. Allow the entire system file to have permission to operate:
    1. Mount-o REMOUNT,RW Rootfs/system

    1. Copy a file to another place:
    1. cp/xx/xx.xx/oo/

    1. Delete a file:
    1. delete/oo/xx.xx

    1. Restart:
    1. Reboot
Copy Code

Some connectivity issues:
(Crap: windows this pit-father system, the problem is many, I do not know if want to write down all the operation of Windows to how much word ... )
Why does the adb shell command return error:device not found?
This is the problem with your bowl of pods and the software that drives the Kindle installation.
Need to force install download Usb_driver Drive in the compressed package.
Then put the. Android folder in the attachment pack into your user directory, such as C:\Users\Tony
On this issue, there is a graphic tutorial, see here:
Http://rootkindlefire.com/kindle-fire-root/how-to-root-kindle-fire/
We have any questions, please describe in detail in the reply, we can work together to solve.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.