A project is attached, see what results for the permissions
Thank you, but it gives another error. This is the log of your App.
*** Service (s1) Create ***
** Service (s1) Start **
true
true
true
Error occurred on line: 80 (Main)
java.lang.SecurityException: com.android.phone from uid 10183 not allowed to perform READ_PHONE_STATE
at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
at android.os.Parcel.createException(Parcel.java:2995)
at android.os.Parcel.readException(Parcel.java:2978)
at android.os.Parcel.readException(Parcel.java:2920)
at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:1482)
at android.telephony.SmsManager$1.onSuccess(SmsManager.java:639)
at android.telephony.SmsManager.sendResolverResult(SmsManager.java:1651)
at android.telephony.SmsManager.resolveSubscriptionForOperation(SmsManager.java:1612)
at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:634)
at android.telephony.SmsManager.sendTextMessage(SmsManager.java:475)
at anywheresoftware.b4a.phone.Phone$PhoneSms.Send2(Phone.java:685)
at anywheresoftware.b4a.phone.Phone$PhoneSms.Send(Phone.java:664)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:205)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at b4a.TestSMS.main._send_click_1(main.java:612)
at b4a.TestSMS.main._send_click(main.java:601)
at java.lang.reflect.Method.invoke(Native Method)