Commands used in the Android adb shell

Source: Internet
Author: User

The directory under Mount Root in 1,shell mode is a readable writable state, e.g/system/:

mount-o remount rw /system/

This allows you to push the file to the appropriate directory.

View pid,e.g PackageName = Com.android.phone for the corresponding process in 2,shell mode

[email protected]:/# ps|grep com.android.phone

The PID of the com.android.phone process is visible = 2466, where grep in the command filters the specified string from the result

3,shell mode to view the files accessed by a process PID, is actually looking at the files under/proc/<pid>/fd/: e.g PID = 2466

[Email protected]:/# ls/proc/2466/fd-l|grep/dev/

Visible by the process of PID = 2466 access to the file is located in the/dev/directory has the above, in fact, not only these, convenient demo only cut a small figure.

Commands used in the Android adb shell

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.