• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / sonde / 24039409997
82%

Build:
DEFAULT BRANCH: main
Ran 06 Apr 2026 04:09PM UTC
Jobs 1
Files 84
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Apr 2026 04:07PM UTC coverage: 81.817%. Remained the same
24039409997

push

github

web-flow
fix: request BLE runtime permissions on Android (#665)

On Android 6+, dangerous permissions must be requested at runtime —
declaring them in the manifest is not sufficient.  The app checked
permissions via \checkSelfPermission()\ but never called
\equestPermissions()\, so they were never granted and every BLE
operation failed immediately.

Add a transparent \PermissionActivity\ that handles the system
permission dialog lifecycle.  \BleHelper.requestBlePermissions()\
determines the missing permissions based on API level, launches the
activity via Intent, and blocks on a \CompletableFuture\ until the
user responds.  Both \startScan()\ and \connect()\ now call
\equestBlePermissions()\ before the existing check, so the consent
dialog appears automatically on first BLE use.

Changes:
- Add \PermissionActivity.java\ (transparent, headless permission
  request activity)
- Refactor \BleHelper.java\: extract \getMissingBlePermissions()\,
  add \equestBlePermissions()\, wire into \startScan()\/\connect()\
- Register \PermissionActivity\ in \AndroidManifest.xml\
- Update design doc §9.2 with the runtime permission mechanism

Implements: PT-0105
Closes #654

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

20915 of 25563 relevant lines covered (81.82%)

143.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24039409997.1 06 Apr 2026 04:09PM UTC 84
81.82
GitHub Action Run
Source Files on build 24039409997
  • Tree
  • List 84
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24039409997
  • d8d52edb on github
  • Prev Build on main (#24037436254)
  • Next Build on main (#24040416378)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc