วันพฤหัสบดีที่ 9 กรกฎาคม พ.ศ. 2558

input keyevent , service call phone

Error: Unknown command: event

key test แล้ว
input keyevent 66 enter
input keyevent 26 power key
input keyevent 3  home key
input keyevent 4    ปุ่ม back
input keyevent 111 esc key ให้ผล เหมือน 4
input keyevent 64  เปิด web
input keyevent 187  app switch เมื่อเร้วๆนี้
input keyevent  210 calculator
input keyevent  208 calendar
input keyevent 5 call
input keyevent 207 contact
input keyevent 65 email
 input keyevent 204 swich keyb ทดสอบอีกที

input keyevent 82 menu
input keyevent 122  move home
input keyevent 123  move end
 input keyevent 209 music player
input keyevent 93  page down
input keyevent 92  page up
input keyevent 24 vol up
input keyevent 25 vol down
input keyevent 61 tab key
input keyevent 62 space key
input keyevent 224 wakeup  ทดสอบอีก

input keyevent  143 numlock
143 numlk
151 7 152 8 153 9 156 -
148 4 149 5 150 6 157 +
145 1 146 2 147 3
144 0 160 enter

input keyevent 20   move down
input keyevent 19   move up
input keyevent 12   tab right
input keyevent 21  tab left

usage: input ...

       input text <string>

       input keyevent <key code number or name>

       input [touchscreen|touchpad] tap <x> <y>


       input [touchscreen|touchpad] swipe <x1> <y1> <x2> <y2>

       input trackball press

       input trackball roll <dx> <dy>



Android – Call/Dial From The Adb Shell Command Line
Filed under: Uncategorized — Davanum Srinivas @ 2:43 pm
Check If The “Phone” Service Is Up And Running

C:\android\DialPhone>adb shell
# service check phone
service check phone
Service phone: found
Dial A Specific Contact In The Contact List

# service call phone 1 s16 "davanum"
service call phone 1 s16 "davanum"
Result: Parcel(NULL)
1

Dial A Specific Phone #

# service call phone 2 s16 "+15084157509"
service call phone 2 s16 "+15084157509"
Result: Parcel(NULL)
1

Home Work – Try These And Leave Me A Comment On What It Affects In The Emulator

# service call phone 8 i32 0
service call phone 8 i32 0
Result: Parcel(NULL)
# service call phone 8 i32 1
service call phone 8 i32 1
Result: Parcel(NULL)
Other Options

# service
service
Usage: service [-h|-?]
       service check SERVICE
       service call SERVICE CODE [i32 INT | s16 STR] ...
Options:
   i32: Write the integer INT into the send parcel.
   s16: Write the UTF-16 string STR into the send parcel.

adb shell  "am start -S com.android.settings/.wifi.WifiSettings"
adb shell  "input keyevent 17;input keyevent 18;input keyevent 7;input keyevent 13;input keyevent 18"
adb shell "sendevent /dev/input/event0 3 0 281;
           sendevent /dev/input/event0 3 1 70;
           sendevent /dev/input/event0 1 330 1;
           sendevent /dev/input/event0 0 0 0;
           sendevent /dev/input/event0 1 330 0;
           sendevent /dev/input/event0 0 0 0;
           sendevent /dev/input/event0 1 330 1;
           sendevent /dev/input/event0 0 0 0;
           sendevent /dev/input/event0 1 330 0;
           sendevent /dev/input/event0 0 0 0;
           sendevent /dev/input/event0 0 0 0;

    echo sleep 5
    echo input keyevent 82
    echo input keyevent 20
    echo input keyevent 20
    echo input keyevent 22
    echo input keyevent 22
    echo input keyevent 22
    echo input keyevent 66

ไม่มีความคิดเห็น:

แสดงความคิดเห็น