Closed general

android_sms_send fails with SecurityException getGroupIdLevel1; status-bar icon shows too often

John Lauer · ·closed by John Lauer

Two problems seen on John's Galaxy S24+ (--target Js-S24plus, ABA 0.1.3, Android 17 / One UI 9) on 2026-11-29.

1. android_sms_send fails with SecurityException: getGroupIdLevel1

Call (from AdomLapper over the mesh):

adom-bridge --target Js-S24plus --ai-thread "Erin Christmas Gifts" android_sms_send \
  '{"number":"+1 248-229-0929","message":"<multi-line text, ~450 chars, includes a URL and a ♡>","reason":"..."}'

Result: {"status":"error","success":false,"error":"SecurityException: getGroupIdLevel1","errorCode":"exception"}. Nothing was sent and no owner prompt appeared. The phone was locked at the time (a later android_screen_read said device_locked).

getGroupIdLevel1 is a carrier-privileged TelephonyManager call that SmsManager reaches on newer Android/Samsung builds (subscription / RCS group lookup), so the default SmsManager.getDefault() path likely needs the subscription-specific manager (context.getSystemService(SmsManager::class.java).createForSubscriptionId(SubscriptionManager.getDefaultSmsSubscriptionId())) and sendMultipartTextMessage for long bodies. Also worth checking: whether the failure is specific to the locked state, to message length (multipart), or to non-ASCII text.

Workaround used: unlock, open Messages, Start chat -> contact -> type -> tap Send via android_tap/android_type. Delivered fine as RCS.

Related gaps hit on the way:

  • android_open_url refuses smsto: links ("Only http and https links can be opened."), so there is no way to open a prefilled compose screen.
  • In Google Messages the compose text box is not in android_screen_read (only the row icons are), so typing needed an x,y tap first.

2. The ABA status-bar icon shows far too often

John: the ABA icon appears in the phone's header (status bar) way too often and it's annoying. Please get rid of it: keep the foreground-service notification silent/minimized (IMPORTANCE_MIN channel so no status-bar icon), and only surface something when the owner actually has to act (an approval prompt).

1 Reply

John Lauer ·

Fixed in ABA 0.1.4, installed on the S24+ over Wi-Fi with android_update_app on 2026-11-29.

1. android_sms_send and getGroupIdLevel1

  • Cause: Samsung's SMS code reads the SIM's group id as the sending app, and ABA did not hold READ_PHONE_STATE. Length and the ♡ were not the problem; ABA already split long texts.
  • ABA now holds READ_PHONE_STATE and sends through the manager for the default SMS SIM, with a single-part send for short texts.
  • If Android still refuses, the verb returns send_blocked and says nothing was sent, with the fallback below.
  • Owner step: open Adom Bridge once on the phone. It asks for the new permission, and status.setup.sms is true after that.
  • Tested on an Android 15 emulator: a 450-character, two-line text with a URL and ♡ was sent. Not yet tested on the S24+ itself.

Related gaps

  • android_open_url now opens sms:, smsto:, mailto:, tel: (dialer only) and geo: links. smsto:<number>?body=<URL-encoded text> opens Google Messages with the text filled in.
  • Google Messages hides its compose box from accessibility services; Android's own UI dump does not show it either, so ABA cannot read it. Its Send button can be tapped: android_tap {id:"Compose:Draft:Send"}. The skill now documents smsto: plus that tap as the fallback.
  • The screen reader now walks up to 160 levels deep (was 60), for apps built with Compose.

2. Status-bar icon

  • While screen access is on, which keeps the app running anyway, ABA no longer posts its always-on notification, so there is no status-bar icon. Android raises a minimum-importance always-on notification to low, so a quiet channel alone was not enough.
  • If screen access is turned off, a quiet notification comes back so the connection is kept.
  • Notifications now appear only when the owner has to act (a permission request) or for notify_user.
  • Verified on the S24+: no Adom Bridge notification is posted.

Also found: android_update_app fails with INSTALL_FAILED_VERIFICATION_FAILURE while the phone is locked and works once it is unlocked. The next version refuses with device_locked instead, and the skill says so.

John Lauer closed this ·

Log in to reply.