\u539f\u6587\uff1ahttps:\/\/blog.csdn.net\/fasfaf454\/article\/details\/51438743<\/p> \n
1\u3001\u83b7\u53d6\u624b\u673a\u7cfb\u7edf\u4fe1\u606f\uff08 CPU\uff0c\u5382\u5546\u540d\u79f0\u7b49\uff09
adb shell "cat \/system\/build.prop | grep "product""
2\u3001\u83b7\u53d6\u624b\u673a\u7cfb\u7edf\u7248\u672c
adb shell getprop ro.build.version.release
3\u3001\u83b7\u53d6\u624b\u673a\u7cfb\u7edfapi\u7248\u672c
adb shell getprop ro.build.version.sdk
4\u3001\u83b7\u53d6\u624b\u673a\u8bbe\u5907\u578b\u53f7
adb -d shell getprop ro.product.model
5\u3001\u83b7\u53d6\u624b\u673a\u5382\u5546\u540d\u79f0
adb -d shell getprop ro.product.brand
6\u3001\u83b7\u53d6\u624b\u673a\u7684\u5e8f\u5217\u53f7
\u6709\u4e24\u79cd\u65b9\u5f0f<\/p> \n
1\u3001 adb get-serialno
2\u3001 adb shell getprop ro.serialno<\/p> \n
<\/p> \n
7\u3001\u83b7\u53d6\u624b\u673a\u7684IMEI
\u6709\u4e09\u79cd\u65b9\u5f0f\uff0c\u7531\u4e8e\u624b\u673a\u548c\u7cfb\u7edf\u7684\u9650\u5236\uff0c\u4e0d\u4e00\u5b9a\u83b7\u53d6\u5230<\/p> \n
1\u3001 adb shell dumpsys iphonesubinfo
\u5176\u4e2dDevice ID\u5373\u4e3aIMEI\u53f7<\/p> \n
2\u3001 adb shell getprop gsm.baseband.imei
3\u3001 service call iphonesubinfo 1
\u6b64\u79cd\u65b9\u5f0f\uff0c\u9700\u8981\u81ea\u5df1\u5904\u7406\u83b7\u53d6\u7684\u4fe1\u606f\u5f97\u5230<\/p> \n
8\u3001\u83b7\u53d6\u624b\u673amac\u5730\u5740<\/p> \n
adb shell cat \/sys\/class\/net\/wlan0\/address
9\u3001\u83b7\u53d6\u624b\u673a\u5185\u5b58\u4fe1\u606f
adb shell cat \/proc\/meminfo
10\u3001\u83b7\u53d6\u624b\u673a\u5b58\u50a8\u4fe1\u606f
adb shell df
\u83b7\u53d6\u624b\u673a\u5185\u90e8\u5b58\u50a8\u4fe1\u606f\uff1a<\/p> \n
\u9b45\u65cf\u624b\u673a\uff1a adb shell df \/mnt\/shell\/emulated
\u5176\u4ed6\uff1a adb shell df \/data
\u83b7\u53d6sdcard\u5b58\u50a8\u4fe1\u606f\uff1a<\/p> \n
adb shell df \/storage\/sdcard
11\u3001\u83b7\u53d6\u624b\u673a\u5206\u8fa8\u7387
adb shell "dumpsys window | grep mUnrestrictedScreen"
12\u3001\u83b7\u53d6\u624b\u673a\u7269\u7406\u5bc6\u5ea6
adb shell wm density<\/p> \n
<\/p> \n
- \n
-
adb shell input text<\/p>
\u8f93\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32,\u53ea\u652f\u6301\u82f1\u6587\u6570\u5b57\u548c\u90e8\u5206\u7b26\u53f7
\u5f53\u9700\u8981\u4e3a\u4e00\u4e2a\u63a7\u4ef6\u8f93\u5165\u5185\u5bb9\u65f6,\u9700\u8981\u5148\u4fdd\u8bc1\u8f93\u5165\u6846\u6b63\u7247\u5904\u4e8e\u7126\u70b9<\/p> <\/li> \n -
adb shell dumpsys activty | grep -i mSleeping<\/p>
\u5224\u65ad\u5f53\u524d\u5c4f\u5e55\u72b6\u6001<\/p> <\/li> \n
-
adb shell dumpsys cpuinfo<\/p> <\/li> \n
-
adb shell top -s cpu<\/p>
\u83b7\u53d6\u624b\u673acpu\u4fe1\u606f<\/p> <\/li> \n
-
adb shell am start packageName\/className<\/p>
\u542f\u52a8\u4e00\u4e2aActivity<\/p> <\/li> \n
-
adb shell am broadcast<\/p>
\u53d1\u9001\u4e00\u4e2a\u5e7f\u64ad,\u4f7f\u7528-a\u6765\u6307\u5b9aAction,-d\u6307\u5b9a\u6570\u636e<\/p>
adb shell am broadcast -a 'com.icechao.broadcast' <\/span><\/code><\/pre> <\/li> \n
adb shell am am force-stop packageName<\/p>
\u5f3a\u5236\u505c\u6b62\u4e00\u4e2a\u5e94\u7528<\/p> <\/li> \n
adb shell pm clear packageName<\/p>
\u6e05\u7406\u5e94\u7528\u6570\u636e<\/p> <\/li> \n
adb shelll kill pid<\/p>
\u6740\u6b7b\u67d0\u4e2a\u8fdb\u7a0b<\/p> <\/li> \n
adb logcat -v time -d<\/p>
\u6253\u5370logcat<\/p> <\/li> \n
adb shell df<\/p>
\u6587\u4ef6\u7cfb\u7edf\u7684\u78c1\u76d8\u7a7a\u95f4\u5360\u7528\u60c5\u51b5<\/p> <\/li> \n
adb shell \/system\/bin\/screencap -p \/sdcard\/screenshot.png<\/p>
\u624b\u673a\u622a\u5c4f<\/p> <\/li> \n
adb shell screenrecord --time-limit 10 \/sdcard\/demo.mp4<\/p>
\u5f55\u5236\u5c4f\u5e55<\/p> <\/li> \n
adb shell getprop dhcp.wlan0.ipaddress<\/p>
\u83b7\u53d6\u624b\u673aip\u5730\u5740<\/p> <\/li> \n
cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/cpuinfo_min_freq<\/p>
\u83b7\u53d6\u624b\u673aCpu\u6700\u5c0f\u9891\u7387<\/p> <\/li> \n
cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/cpuinfo_max_freq<\/p>
\u83b7\u53d6\u624b\u673aCpu\u6700\u5927\u9891\u7387<\/p> <\/li> \n
cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/kernel_max<\/p>
\u83b7\u53d6\u624b\u673acpu\u6838\u6570<\/p> <\/li> \n
adb shell dumpsys window policy | grep mScreenOnFully<\/p>
\u83b7\u53d6\u624b\u673a\u5c4f\u5e55\u7b56\u7565,windows\u4e2d\u9700\u8981\u4e0d\u80fd\u4f7f\u7528grep\u547d\u4ee4\u7b5b\u9009\u4fe1\u606f<\/p> <\/li> \n
adb shell dumpsys window policy | grep mShowingLockscreen<\/p>
\u5224\u65ad\u5f53\u524d\u624b\u673a\u662f\u5426\u662f\u9501\u5c4f\u72b6\u6001<\/p> <\/li> \n
adb shell svc wifi enable\/disable<\/p>
\u6253\u5f00\u624b\u673awifi,\u5b9e\u6d4b\u90e8\u4efd\u4e09\u661f\u624b\u673a\u4e0d\u652f\u6301\u4e9b\u65b9\u6cd5\n<\/code><\/pre> <\/li> \n
adb shell monkey<\/p>
\u80fd\u8fc7monkey\u690d\u5165\u4e8b\u4ef6\u4e3aapp\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5<\/p> <\/li> \n <\/ul> \n
grep(\u547d\u4ee4\u4e2d ' | '\u5230\u547d\u540d\u7ed3\u675f\u7684\u90e8\u4efd)\u547d\u4ee4\u53ef\u4ee5\u4ece\u5f97\u5230\u7684\u7ed3\u679c\u91cc\u7b5b\u9009\u60f3\u8981\u7684\u4fe1\u606f\u884c,\u8fd9\u4e2a\u547d\u4ee4\u53ea\u652f\u6301linux<\/a> \u5728windows\u53ef\u4ee5\u8003\u8651\u4f7f\u7528findstr<\/p> \n
\u5728\u8fdb\u5165\u624b\u673ashell\u6a21\u5f0f\u540e\u5f88\u591a\u901a\u7528\u547d\u4ee4\u662f\u548clinux<\/a>\u662f\u4e00\u6837\u7684,\u6240\u4ee5\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528linux\u547d\u4ee4\u6765\u83b7\u53d6\u624b\u673a\u7684\u4fe1\u606f<\/p> \n
\u5f53\u7535\u8111\u8fde\u63a5\u591a\u53f0\u624b\u673a\u4f7f\u7528 adb -s \u624b\u673a\u5e8f\u5217\u53f7 \u547d\u4ee4 \u7684\u65b9\u5f0f\u6307\u5b9a\u624b\u673a<\/p> \n
<\/p> \n
adb shell intput swipe left top right bottom<\/p> \n
\u690d\u5165\u5c4f\u5e55\u6ed1\u52a8\u4e8b\u4ef6
\u5de6\u4e0a\u4e3a\u6ed1\u52a8\u7684\u8d77\u59cb\u4f4d\u7f6e,\u53f3\u4e0b\u4e3a\u6ed1\u52a8\u7684\u7ed3\u675f\u4f4d\u7f6e
adb shell input swipe 100 200 500 300<\/p> \n<\/p> \n
adb shell input tap<\/p> \n
\u690d\u5165\u5c4f\u5e55\u70b9\u51fb\u4e8b\u4ef6,\u5148X\u8f74\u518dY\u8f74<\/p> \n
adb shell input tap 100 200<\/code><\/pre> \n<\/div>","orderid":"0","title":"\u901a\u8fc7ADB\u83b7\u53d6Android\u624b\u673a\u4fe1\u606f","smalltitle":"","mid":"0","fname":"Android","special_id":"0","bak_id":"0","info":"0","hits":"21","pages":"1","comments":"0","posttime":"2019-11-19 18:13:07","list":"1574158387","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"\u901a\u8fc7<\/A> ADB<\/A> \u83b7\u53d6<\/A> Android<\/A> \u624b\u673a<\/A> \u4fe1\u606f<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.33","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"\u901a\u8fc7ADB\u83b7\u53d6Android\u624b\u673a\u4fe1\u606f","lastview":"1576043506","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}