package Ġcom . sh o un ak mul ay . tele phony . utils Ċ Ċ import Ġandroid . net . Uri Ċ import Ġandroid . provider . Tele phony Ċ Ċ enum Ġclass ĠS ms Action ( private Ġval ĠmethodName : ĠString ) Ġ{ ĊĠ ĠGET _ IN BOX (" getAll Inbox Sms "), ĊĠ ĠGET _ SENT (" getAll Sent Sms "), ĊĠ ĠGET _ DR AFT (" getAll Draft Sms "), ĊĠ ĠGET _ CONVER S ATIONS (" getAll Con versations "), ĊĠ ĠS END _ SMS (" send Sms "), ĊĠ ĠS END _ MULTI PART _ SMS (" send Multipart Sms "), ĊĠ ĠS END _ SMS _ INT ENT (" send Sms Intent "), ĊĠ ĠSTART _ BACKGROUND _ SERVICE (" start Background Service "), ĊĠ ĠDISABLE _ BACKGROUND _ SERVICE (" disable Background Service "), ĊĠ ĠBACK GROUND _ SERVICE _ INITIAL IZED (" background Service Initialized "), ĊĠ ĠIS _ SMS _ CAP ABLE (" is Sms Cap able "), ĊĠ ĠGET _ CELL ULAR _ DATA _ STATE (" getCell ular Data State "), ĊĠ ĠGET _ CALL _ STATE (" get Call State "), ĊĠ ĠGET _ DATA _ ACTIVITY (" getData Activity "), ĊĠ ĠGET _ NETWORK _ OPERATOR (" get Network Operator "), ĊĠ ĠGET _ NETWORK _ OPERATOR _ NAME (" get Network Operator Name "), ĊĠ ĠGET _ DATA _ NETWORK _ TYPE (" getData Network Type "), ĊĠ ĠGET _ PHONE _ TYPE (" get Phone Type "), ĊĠ ĠGET _ SIM _ OPERATOR (" get Sim Operator "), ĊĠ ĠGET _ SIM _ OPERATOR _ NAME (" get Sim Operator Name "), ĊĠ ĠGET _ SIM _ STATE (" get Sim State "), ĊĠ ĠGET _ SERVICE _ STATE (" getService State "), ĊĠ ĠGET _ SIGNAL _ STRE NG TH (" get Signal Strength "), ĊĠ ĠIS _ NETWORK _ RO AM ING (" is Network Roaming "), ĊĠ ĠREQUEST _ SMS _ PERMISSION S (" request Sms Permissions "), ĊĠ ĠREQUEST _ PHONE _ PERMISSION S (" request Phone Permissions "), ĊĠ ĠREQUEST _ PHONE _ AND _ SMS _ PERMISSION S (" request Phone And Sms Permissions "), ĊĠ ĠOPEN _ DI AL ER (" open Dial er "), ĊĠ ĠDIAL _ PHONE _ NUMBER (" dial PhoneNumber "), ĊĠ ĠNO _ SU CH _ METHOD (" no Such Method "); ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġfun Ġfrom Method ( method : ĠString ): ĠS ms Action Ġ{ ĊĠĠĠĠĠ Ġfor Ġ( action Ġin Ġvalues ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( action . methodName Ġ== Ġmethod ) Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġreturn Ġaction ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġreturn ĠNO _ SU CH _ METHOD ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġfun Ġto ActionType (): ĠAction Type Ġ{ ĊĠĠĠ Ġreturn Ġwhen Ġ( this ) Ġ{ ĊĠĠĠĠĠ ĠGET _ IN BOX , ĊĠĠĠĠĠ ĠGET _ SENT , ĊĠĠĠĠĠ ĠGET _ DR AFT , ĊĠĠĠĠĠ ĠGET _ CONVER S ATIONS Ġ-> ĠAction Type . GET _ SMS ĊĠĠĠĠĠ ĠS END _ SMS , ĊĠĠĠĠĠ ĠS END _ MULTI PART _ SMS , ĊĠĠĠĠĠ ĠS END _ SMS _ INT ENT , ĊĠĠĠĠĠ ĠNO _ SU CH _ METHOD Ġ-> ĠAction Type . SEND _ SMS ĊĠĠĠĠĠ ĠSTART _ BACKGROUND _ SERVICE , ĊĠĠĠĠĠ ĠDISABLE _ BACKGROUND _ SERVICE , ĊĠĠĠĠĠ ĠBACK GROUND _ SERVICE _ INITIAL IZED Ġ-> ĠAction Type . BACKGROUND ĊĠĠĠĠĠ ĠIS _ SMS _ CAP ABLE , ĊĠĠĠĠĠ ĠGET _ CELL ULAR _ DATA _ STATE , ĊĠĠĠĠĠ ĠGET _ CALL _ STATE , ĊĠĠĠĠĠ ĠGET _ DATA _ ACTIVITY , ĊĠĠĠĠĠ ĠGET _ NETWORK _ OPERATOR , ĊĠĠĠĠĠ ĠGET _ NETWORK _ OPERATOR _ NAME , ĊĠĠĠĠĠ ĠGET _ DATA _ NETWORK _ TYPE , ĊĠĠĠĠĠ ĠGET _ PHONE _ TYPE , ĊĠĠĠĠĠ ĠGET _ SIM _ OPERATOR , ĊĠĠĠĠĠ ĠGET _ SIM _ OPERATOR _ NAME , ĊĠĠĠĠĠ ĠGET _ SIM _ STATE , ĊĠĠĠĠĠ ĠGET _ SERVICE _ STATE , ĊĠĠĠĠĠ ĠGET _ SIGNAL _ STRE NG TH , ĊĠĠĠĠĠ ĠIS _ NETWORK _ RO AM ING Ġ-> ĠAction Type . GET ĊĠĠĠĠĠ ĠREQUEST _ SMS _ PERMISSION S , ĊĠĠĠĠĠ ĠREQUEST _ PHONE _ PERMISSION S , ĊĠĠĠĠĠ ĠREQUEST _ PHONE _ AND _ SMS _ PERMISSION S Ġ-> ĠAction Type . PERMISSION ĊĠĠĠĠĠ ĠOPEN _ DI AL ER , ĊĠĠĠĠĠ ĠDIAL _ PHONE _ NUMBER Ġ-> ĠAction Type . CALL ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ enum Ġclass ĠAction Type Ġ{ ĊĠ ĠGET _ SMS , ĠS END _ SMS , ĠBACK GROUND , ĠGET , ĠPER MISSION , ĠCALL Ċ } Ċ Ċ enum Ġclass ĠContent Uri ( val Ġuri : ĠUri ) Ġ{ ĊĠ ĠIN BOX ( Tele phony . Sms . Inbox . CONTENT _ URI ), ĊĠ ĠS ENT ( Tele phony . Sms . Sent . CONTENT _ URI ), ĊĠ ĠD RA FT ( Tele phony . Sms . Draft . CONTENT _ URI ), ĊĠ ĠCON VER S ATIONS ( Tele phony . Sms . Con versations . CONTENT _ URI ); Ċ }