Skip to content

Service


adb shell 'service call iphonesubinfo 19' \
    | awk -F "'" '{print $2}' \
    | tr -d '\n' \
    | sed 's/\s\+/\n/g' \
    | tr -d '.' \
    | awk '{if ($0) print $0; else print "No phone number found"}'
adb shell 'service call iphonesubinfo 26' \
    | awk -F "'" '{print $2}' \
    | tr -d '.' \
    | xargs \
    | sed 's/ //g'

Get Device IMEI Number

adb shell 'service call iphonesubinfo 1' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Get Android Device's Phone Number

adb shell 'service call iphonesubinfo 19' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Get Android Device's Carrier Information

adb shell 'service call iphonesubinfo 10' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Get Android Device ID

adb shell 'service call iphonesubinfo 3' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Get Android Subscriber ID

adb shell 'service call iphonesubinfo 7' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Get Android Current Data State

adb shell 'service call iphonesubinfo 38' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Get Android Current Network Type

adb shell 'service call iphonesubinfo 39' \
    | awk -F "\'" '{print $2}' \
    | sed '1 d' \
    | awk '{print}' ORS=''

Send SMS

adb shell 'service call isms 5 s16 "phoneNumber" s16 "null" s16 "Hello world" i32 0 i32 0'

Turn WiFi On/Off

adb shell 'service call wifi 13 i32 0'
adb shell 'service call wifi 13 i32 1'

Turn Mobile Data On/Off

adb shell 'service call connectivity 41 i32 0'
adb shell 'service call connectivity 41 i32 1'

Check if the Screen is On

adb shell 'service call power 12'

Check Battery Status

adb shell 'service call battery 1'

Get Clipboard Content

adb shell 'service call clipboard 2'

Set Clipboard Content

adb shell 'service call clipboard 1 i32 1 i32 1 s16 "New clipboard content"'