Common android command operations (continue to update)

Source: Internet
Author: User

Application commands

ADB shell procrank

Note: VSS-virtual set size virtual memory consumption (including memory occupied by shared libraries) RSS-resident set size actually uses physical memory (including memory occupied by shared libraries) pss-proportional set size physical memory actually used (proportional allocation of memory occupied by the shared library) uss-unique set size physical memory occupied by the process alone (excluding the memory occupied by the Shared Library)

Command to view memory usage of a single application

ADB
Shell dumpsys meminfo $ package name or
$ Process number


Obtain the emmc partition list

CAT/proc/emmc

Retrieve the list of nadd partitions

Cat proc/MTD

Partition Extraction

CAT/dev/MTD/mtd1>/sdcard/mtd1.img

Compile user version

./MK-O = target_build_variang = user

Download official source code

Git clone https://android.googlesource.com/platform/packages/inputmethods/PinyinIME-B froyo (froyo depends on version number)

. Tar
Unpack: Tar xvf filename.tar
Package: Tar CVF filename.tar dirname

High compression ratio
Tar zcvf filename.tar.gz dirname

To package and compress the logs directory and split it into multiple 1 m Files, run the following command:
Tar zcvf-logs/| split-B 1 m-logs.tar.bz2.

Extract
Cat logs.tar.bz2. A * | tar XJ

Enable Status Bar

ADB shell am start-N com. Android. systemui/COM. Android. systemui. statusbar. statusbarservice

Broadcasting

ADB shell AM broadcast-A task_list_bar

The numbers behind ADB shell AM broadcast are:

[-A <action>]
[-D ]
[-T <mime_type>]
[-C <Category> [-C <Category>]...]
[-E | -- es <extra_key> <extra_string_value>...]
[-- EZ <extra_key> <extra_boolean_value>...]
[-E | -- EI <extra_key> <extra_int_value>...]
[-N <component>]
[-F <flags>] [<URI>]

Broadcast uninstall Application

ADB shell AM broadcast-A Android. Intent. Action. package_removed-D package: COM. Lim. Android. automemman-F 0x10000000-ez false

Compile a module

Make showcommands target_product = pnx6715_refd one_shot_makefile
# Make it writable

ADB remount

# Using ADB to input strings is suitable for poor touch screen or keyboard usage

ADB shell input text "wap.sina.com"

 

# Obtain the log of a specific level:

Logcat *: V // V level

Logcat *: I // I level

Logcat *: * // all level

# Obtain the log containing a string of a specific level:

Logcat *: v | grep surfaceflinger

 

# Others

ADB shell setprop libc. Debug. malloc 1

Setprop Dalvik. VM. checkjni true

Setprop libc. Debug. malloc 10

Setprop Dalvik. VM. jniopts forcecopy

Start

Stop

 

# Update a partition

Sudo dd If = ~ /T72/Android/out/target/product/smdkv210/system. ext4 of =/dev/mmcblk0p2

Small page NAND package system. img

./Mkyaffs2image./out/target/product/yourproject/system./out/target/product/yourproject/system. img

Large-page NAND packaging system. img

./Mkyaffs2image-C 4096-s 128./out/target/product/yourproject/system./out/target/product/yourproject/system. img


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.