Service call isms with ADB shell (Android SDK)? -


do know command "service call isms" adb shell on android? here complete command use : service call isms 5 s16 "phonenumber" i32 0 i32 0 s16 "bodytext".

there parameter don't know means (5, s16, i32, 0). there somewhere manual ? important me error when sms doesn't send (about 10% of sms aren't send) => question asked there isn't answer (https://stackoverflow.com/questions/17395546/get-status-sms-from-isms-service-using-shell-adb-android-sdk).

i don't wanna use commands (adb shell start -a android.intent.action.sendto -d sms:ccxxxxxxxxxx --es sms_body "sms body goes here" --ez exit_on_sent true adb shell input keyevent 22 adb shell input keyevent 66) because uses graphical interface.

could me? (i'm sorry, can't speak english. so, hope understand request)

thanks lot

in every "service call" command, need enter:

  • the service want call, in case "isms";
  • the "function" want call, in case "5" (more later);
  • the function parameters.

there's 2 types of possible parameters: strings , integers. before entering integer parameter need specify type using i32. same thing string parameter, instead need write s16.

most of "service call" commands have no documentation, or little.
isms can here: http://www.androidjavadoc.com/1.0_r1_src/constant-values.html list of possible functions , number code. hit ctrl-f , enter isms quick access.

the "5" function isms service sendmultiparttext function isms interface of android api. here doc function. and here implementation class api.

so, service call isms 5 s16 "phonenumber" i32 0 i32 0 s16 "bodytext", equals:

call sendmultiparttext function isms service string parameter "phonenumber", integer parameter 0, integer parameter 0 , string parameter "bodytext".

to answer question, pretty sure there's no way know if sms being sent or not command line... maybe if dig little deeper did in api you'll find way.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -