feat(android): add SMS sending capability to Android node
Add sms.send command to allow sending text messages via the paired Android device. Changes: - Add SmsManager class to handle SMS sending via Android SmsManager API - Add ClawdisSmsCommand enum and Sms capability to protocol constants - Wire sms.send command into NodeRuntime invoke handler - Add SEND_SMS permission to AndroidManifest.xml - Advertise sms capability when SEND_SMS permission is granted The SMS capability is only advertised when the user has granted SEND_SMS permission. Messages longer than 160 chars are automatically split into multipart messages.
This commit is contained in:
committed by
Peter Steinberger
parent
7aab2ae182
commit
1318276105
@@ -14,9 +14,13 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.SEND_SMS" />
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera"
|
||||
android:required="false" />
|
||||
<uses-feature
|
||||
android:name="android.hardware.telephony"
|
||||
android:required="false" />
|
||||
|
||||
<application
|
||||
android:name=".NodeApp"
|
||||
|
||||
Reference in New Issue
Block a user