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:
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 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\ ....
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:
- C:\users\tony>
- C:> CD C:\KF
- c:\cf> adb shell
- * Daemon not running. Starting it now *
- * Daemon started successfully *
- $
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:
- With the root user, you have the highest privileges:
- Su Root
- Allow the entire system file to have permission to operate:
- Mount-o REMOUNT,RW Rootfs/system
- Copy a file to another place:
- cp/xx/xx.xx/oo/
- Delete a file:
- delete/oo/xx.xx
- Restart:
- 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.