Skip to content

Develop - WearOS - Device controls and info sync support#400

Merged
sameerasw merged 9 commits into
mainfrom
develop
May 5, 2026
Merged

Develop - WearOS - Device controls and info sync support#400
sameerasw merged 9 commits into
mainfrom
develop

Conversation

@sameerasw
Copy link
Copy Markdown
Owner

This pull request introduces major enhancements for integrating smartwatch (Wear OS) features, particularly enabling remote device locking and flashlight control from a connected watch. It adds new services, UI components, and settings to facilitate device info sync, remote lock configuration, and flashlight actions via wearable communication.

Key changes include:

Wear OS Integration & Device Sync:

  • Added DeviceInfoSyncManager to handle periodic and on-demand syncing of device information (battery, ringer mode, flashlight state, etc.) with connected Wear OS devices, including flashlight intensity support and debounced updates. (DeviceInfoSyncManager.kt)
  • Registered EssentialsWearableListenerService in the manifest to listen for messages from Wear OS (e.g., requests to sync device info, toggle flashlight, change sound mode, or lock the device). (AndroidManifest.xml, EssentialsWearableListenerService.kt) [1] [2]

Remote Lock from Watch Feature:

  • Introduced the "Lock from Watch" feature in the registry, allowing users to configure remote locking behavior (screen off or device admin lock) from the watch. (FeatureRegistry.kt, SettingsRepository.kt, RemoteLockSettingsUI.kt) [1] [2] [3]
  • Integrated the remote lock settings UI into the feature settings activity, with permission prompts for accessibility and device admin modes. (FeatureSettingsActivity.kt)

Flashlight Control Improvements:

  • Expanded the flashlight broadcast receiver to support new actions for toggling and setting intensity, and ensured these actions can be triggered via the accessibility service for remote control. (AndroidManifest.xml, ScreenOffAccessibilityService.kt) [1] [2] [3]

UI & ViewModel Enhancements:

  • Updated the watch settings UI and view model to support the new features and ensure correct initialization when accessing watch-related settings. (FeatureSettingsActivity.kt, WatchSettingsUI.kt) [1] [2]

These changes collectively provide robust support for smartwatch-driven device management, including secure remote locking and advanced flashlight control.

References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

@sameerasw sameerasw self-assigned this May 5, 2026
@sameerasw sameerasw added the enhancement New feature or request label May 5, 2026
@sameerasw sameerasw merged commit 40f5855 into main May 5, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Essentials Progress May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant