Conversation
… periodic device status synchronization
…ection in DeviceInfoSyncManager
…e control actions
…mode via wearable commands
… in WatchSettings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
DeviceInfoSyncManagerto 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)EssentialsWearableListenerServicein 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:
FeatureRegistry.kt,SettingsRepository.kt,RemoteLockSettingsUI.kt) [1] [2] [3]FeatureSettingsActivity.kt)Flashlight Control Improvements:
AndroidManifest.xml,ScreenOffAccessibilityService.kt) [1] [2] [3]UI & ViewModel Enhancements:
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]