adb
hushui
Coding Since 1998
展开
-
adb shell /system/bin/screencap & screenrecord
adb shell /system/bin/screencap -p /sdcard/screenshot.pngadb pull /sdcard/screenshot.png d:/screenshot.pngadb shell /system/bin/screenrecord --bit-rate 20000000 --time-limit 30 /sdcard/X2O-...原创 2020-04-14 09:22:32 · 703 阅读 · 0 评论 -
awk print logcat remove column
10-22 14:52:57.916 1446 1754 D ORE-APS-BRIDGE: attr: 700710-22 14:52:57.916 1446 1754 D ORE-CORE: windowstaskinterface::windowstaskinterfaceSENDITwithReply10-22 14:52:58.044 1446 1755 D XM...原创 2019-12-03 11:34:55 · 122 阅读 · 0 评论 -
adb exec-out/binary transfer directly to host instead of tty/pty mangle
Unlike adb shell the adb exec-out command doesn't use pty which mangles the binary output. So you can doadb exec-out screencap -p > test.pnghttps://android.googlesource.com/platform/system/core/...原创 2019-11-14 14:37:04 · 310 阅读 · 0 评论 -
adb shell date
## ROOTC:\Temp>adb root && adb remountremount succeededC:\Temp>adb shell date --helpusage: date [-u] [-r FILE] [-d DATE] [+DISPLAY_FORMAT] [-D SET_FORMAT] [SET]Set/get the curre...原创 2019-11-01 10:40:26 · 2720 阅读 · 2 评论 -
adb: pull error: remote object '/data/media/' does not exist (adb root)
C:\Temp>adb pull /data/media/0/monkeyadb: error: remote object '/data/media/0/monkey' does not existC:\Temp>adb pull /data/media/0/adb: error: remote object '/data/media/0/' does not exist...原创 2019-11-01 09:45:46 · 8233 阅读 · 0 评论 -
ADB/Android debug bridge command line-remote forward update app
1. make sure adb is listening on tcp port on device$host$ adb shellsetprop service.adb.tcp.port 5555restart adbd on device$host$ adb shell netstat -an -t Active Internet connections (se...原创 2019-10-31 13:50:34 · 151 阅读 · 0 评论 -
Android-adb-setting
Refer to https://developer.android.com/reference/android/provider/Settings.Global1. ### default timeout of PowerManager.FULL_WAKE_LOCK is 300s=5 minutes /RM2peony:/ # settings get system screen_...原创 2019-10-12 13:59:20 · 998 阅读 · 0 评论 -
adb shell settings
adb shell settings put system screen_off_timeout 60000C:\>adb shell settings get system screen_off_timeout60000原创 2019-09-30 13:03:18 · 657 阅读 · 0 评论 -
Android debug bridge command/Static IP set/ip setting/Android adb command line
255|kvim:/ # ip addr1: lo: <LOOPBACK,UP,LOWER_UP> mtu 4096 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo...原创 2019-08-09 10:37:01 · 331 阅读 · 0 评论 -
adb/fastboot for Qualcomm msm8909 --- (edl/ 9008 port) etc
1. Emergency download mode /9008 comm portadb reboot edlfastboot oem edlor$ fastboot reboot emergencylsusb =>ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)2. oemadb...原创 2019-07-26 15:20:02 · 3191 阅读 · 0 评论 -
Android debug bridge command line-input keyevent to screen control
adb shell input keyevent 26 # wakeup adb shell input keyevent 82 # unlock echo "Screen is already on. Turning off." adb shell input keyevent 26 # sleep######adb shell input keye...原创 2019-07-17 12:41:27 · 133 阅读 · 0 评论 -
SSH Tennel for Adb/GDB debug NDK
## Step 1OutSideHost/Linux build server/Remote 192.168.1.1root@OutSideHost:/localrepo/root/rm/jci/rm/engine$ netstat -an --tcp |grep 16000Make sure 16000/TCP is not used## Step 2 SSH ...原创 2019-06-14 16:25:46 · 526 阅读 · 0 评论 -
Android debug bridge command line-adb shell tips continue
Android debug bridge command line-adb shell tips continue1. Kill specified process / Linux hostadb shell pidof -s "my-target-process" | xargs -I{} kill "{}"2. Windows run.bat with prepare-...原创 2019-06-14 12:39:04 · 174 阅读 · 0 评论 -
uiautomator/Android Test Python example scripts Continue
Refer to Setuphttps://blog.csdn.net/hushui/article/details/82896181Examplehttps://blog.csdn.net/hushui/article/details/82855839Official web https://github.com/xiaocong/uiautomator1. P...原创 2018-11-08 10:24:54 · 243 阅读 · 0 评论 -
Android debug bridge command line-adb shell tips continue -- am start
Refer tohttps://blog.csdn.net/hushui/article/details/79739618Example1. Callam start -a android.intent.action.CALL -d tel:1102.### Android7.1.2 default launcheradb shell am start -...原创 2018-11-06 16:05:26 · 196 阅读 · 0 评论 -
Android Adb/Linux/udev/rules for specified user
### This is a HTC Android phone connected to Linux/X86 hostlake@localhost:~/Android$ lsusb................Bus 003 Device 010: ID 0bb4:0cac HTC (High Tech Computer Corp.) ************Bus 004 De...原创 2018-10-26 13:35:17 · 309 阅读 · 0 评论 -
uiautomator/Android Test Python example
Note:1.Linux/Python/uiautomator will automatically install apk/stub named uiautomator/1.0 and com.github.uiautomator.test (Test on Android7.1.2) Proto Recv-Q Send-Q Local Address Fo...原创 2018-09-26 16:53:33 · 287 阅读 · 0 评论 -
Android shell find VS Linux for find xargs
Linux/X86 $find . -name *.json |xargs -i cp {} /tmp/For Android7, Android xargs does not support "-i" find . -name *.json |xargs -i cp {} /sdcard/ <u...原创 2018-08-10 16:16:25 · 596 阅读 · 0 评论 -
Android debug bridge command line-adb shell tips -logcat filter /am/pm/dumpsys
## by grep, get rid of RMAPPadb logcat |grep --invert-match RMAPP## print tag of "ORE-CORE" only , others will be silent.adb logcat ORE-CORE:I *:S## print tag of "ORE-CORE" only fr...原创 2018-03-29 11:10:05 · 504 阅读 · 0 评论