ADB shell am START-N package Name/package name + class name (-N class name,-a action,-d date,-m mime-type,-c category,-e Extended data, etc.).
Send a broadcast
ADB shell am broadcast-a com.vanzo.change.navigationbar.layout--ez back_on_right false
Execute ADB shell am broadcast from the command line to send a broadcast notification.
The following parameters for 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>]
For example:
ADB shell am broadcast-a com.android.test--es test_string "This is test string" --ei Test_int --ez test_boolean true
Description: Blue is key, red is value, string type, int type, Boolean type
ADB logcat-b all-v Time >log.txt
ADB Shell DMESG >dmesg.txt
ADB logcat-b main-b system-b events-b radio-v time
adb shell cat/proc/kmsg > Kmsg.txt
Crawl log.
USB connection plug-in Phone LSUSB view device ID
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device 001:id 1d6b:0003 Linux Foundation 3.0 root Hub
Bus 001 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 002 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 003 Device 002:id 093a:2521 Pixart Imaging, Inc.
Bus 003 Device 003:id 045e:0750 Microsoft Corp Wired Keyboard 600
Bus 001 Device 003:id 05e3:0723 Genesys Logic, Inc. gl827l sd/mmc/ms Flash Card Reader
Then add the device ID in the. Android/adb_usb.ini 0x05e3
Modify attr{idproduct}== "9020"
sudo vim/etc/udev/rules.d/51-android.rules
subsystem== "USB", attr{idvendor}== "05c6", attr{idproduct}== "9020", mode= "0777", owner= "**********"
ADB shell
1proc/mtkdev
Boardinfo:
cpu:mt6735m
Lcm:otm8019a_auo45_ykl_fwvga
Tp:gt9xx_hotknot
Cam:ov5670mipiraw
Cam2:gc2755mipiraw
2 Write node values
such as /sys/devices/bus.2/11008000.i2c1/i2c-1/1-005d/gesture
Echo 1 >/sys/devices/bus.2/11008000.i2c1/i2c-1/1-005d/gesture
3 Viewing APK package name information
AAPT d badging apk name
Analog Boot animation playback
After the ADB shell enters the ADB, executes the following two sentences can play the boot animation, hehe
SetProp Service.bootanim.exit 0
SetProp Ctl.start Bootanim
Exit Words execution
SetProp Service.bootanim.exit 1
GetEvent
PM List package-f View the package name in the phone
The above is also some of the more practical ADB commands. Summarize it and save it.
ADB command logging