adb shell input text "text"
adb shell input text "insert%syour%stext%shere"
adb push file /sdcard/Download
***
โหมด shell
adb shell
ปิดการเคลื่อนไหวของหน้าจอ
adb shell settings put global window_animation_scale 0
adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0
ถอนแอปที่ติดตั้งโดยผู้ใช้
adb shell "pm list packages -3 | cut -d':' -f2 | tr '\r' ' ' | xargs -r -n1 -t pm uninstall -k"
แสดง แอปทั้งหมดที่ติดตั้งทั้งหมด
adb shell pm list packages
แสดง แอปทั้งหมดที่ติดตั้งโดยผู้ใช้
adb shell pm list packages -3
แสดง แอปทั้งหมดที่ติดตั้ง ที่มีคำว่า google
adb shell pm list packages google
ใน shell โหมด แสดง แอปที่ติดตั้งที่มีคำว่า google
pm list packages | grep google
ถอนแอปที่ติดตั้ง
adb shell pm uninstall com.package_name
adb shell pm uninstall --user 0 com.google.android.apps.docs.editors.sheets
disable ปิดแอปที่ติดตั้ง
adb shell pm disable com.package_name
adb shell pm block com.package_name
enable เปิดแอปที่ติดตั้ง
adb shell pm enable com.package_name
adb shell pm unblock com.package_name
ดูเบอร์โทรในเครื่อง
adb shell "service call iphonesubinfo 18 | cut -c 52-66 | tr -d '.[:space:]+'"
เช็ค IMEI เครื่อง
adb shell " service call iphonesubinfo 3 i32 1 | cut -c 52-66 | tr -d '.[:space:]'"
adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"
ติดตั้งแอป จาก apk ไฟล์ที่อยู่ใน folder Download
adb shell pm install /sdcard/Download/SmartTube_stable_25.08_armeabi-v7a.apk
ถอนแอปที่ติดตั้ง ไม่ลบ cache และ data ของแอป
adb shell pm uninstall -k com.package_name
Click the home button
adb shell input keyevent 3
ลบข้อความในช่อง input
adb shell input keyevent --longpress 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67
paste ข้อความลงช่อง text box
adb shell input keyevent 279
แสดงแอปที่ติดตั้งโดยผู้ใช้ (แอปที่ไม่ได้ติดตั้งจากโรงงาน)
adb shell pm list packages -3
เชื่อมต่อกับอุปกรณ์ตาม IP
adb connect 192.168.1.x:5555
ส่ง ข้อความลงช่อง text box
adb shell input text "liverpool"
ส่งไฟล์ลงเครื่องแอนดรอยด์ (ลงเมมและลงตัวเครื่อง)
adb push filename /sdcard/Download
adb push filename /storage/emulated/0/Download
ดู เลข ip อุปกรณ์ (ที่เสียบสาย)
adb shell ifconfig "| grep Mask"
บันทึกหน้าจอ (จบแล้วกด Ctrl+c)
adb shell screenrecord /sdcard/filename.mp4
สั่งให้ทำงานหรือหยุด
adb start-server
adb kill-server
adb shell settings list system
adb shell settings list global
adb shell settings list secure
ไม่มีความคิดเห็น:
แสดงความคิดเห็น