Skip to content

Added Lockdown feature and Lock phone using QS Tile Fixes #631 - #651

Open
thekrdev wants to merge 2 commits into
sameerasw:developfrom
thekrdev:feature/lockdown
Open

Added Lockdown feature and Lock phone using QS Tile Fixes #631#651
thekrdev wants to merge 2 commits into
sameerasw:developfrom
thekrdev:feature/lockdown

Conversation

@thekrdev

Copy link
Copy Markdown
Contributor
  • Lockdown feature requires shizuku, if no shizuku permission, It'll normally lock your phone, no lockdowns.
  • Lockdown feature removes weak unlock methods like face, fingerprint and require secure methods like pin, password or pattern.
  • it works but you may face some bugs like It'll ask 2-3 times to unlock, bcs of adb glicthes... but it works.

If you don't want lockdown, you can continue with accessibility permission, by just adding the qs tile.

Close #631

sameerasw and others added 2 commits July 26, 2026 02:53
…sameerasw#635)

This pull request introduces several improvements focused on translation
handling, dependency management, and enhanced Wear OS integration,
including update detection and user prompts. It also adds new CI
workflows to validate translations automatically. The most important
changes are summarized below:

**Wear OS Integration & Update Detection:**

* Added logic to detect the connected Wear OS watch's app version and
determine if an update is required. If an update is needed, a badge is
shown on the "Watch" feature card, and a prominent warning card with an
update action is displayed in the watch settings UI.
(`app/build.gradle.kts`, `EssentialsWearableListenerService.kt`,
`SetupFeatures.kt`, `FeatureCard.kt`, `WatchSettingsUI.kt`,
`viewmodels/WatchViewModel`)
[[1]](diffhunk://#diff-8cff73265af19c059547b76aca8882cbaa3209291406f52df1dafbbc78e80c46R29-R47)
[[2]](diffhunk://#diff-919cb922a85c987bb153f26f69397935da767a57f5ce377d29c72835be91da84R187-R194)
[[3]](diffhunk://#diff-745253453359a8bd398912155bd3e957eef0666756dc31d103c59bf449c503feR206-R212)
[[4]](diffhunk://#diff-745253453359a8bd398912155bd3e957eef0666756dc31d103c59bf449c503feL1275-R1283)
[[5]](diffhunk://#diff-93d4b6b248a93718a39398de24433670f60524b1d3df14c2b8a77d5fb31001d7L66-R70)
[[6]](diffhunk://#diff-93d4b6b248a93718a39398de24433670f60524b1d3df14c2b8a77d5fb31001d7R126)
[[7]](diffhunk://#diff-93d4b6b248a93718a39398de24433670f60524b1d3df14c2b8a77d5fb31001d7R167-R204)
[[8]](diffhunk://#diff-a266951f24449eaa563fa66d7793c25f017387d1456048fd66231dabc48300ceR46-R47)
[[9]](diffhunk://#diff-a266951f24449eaa563fa66d7793c25f017387d1456048fd66231dabc48300ceR110-R152)

**Translation Handling & Validation:**

* Improved translation loading logic to better handle locale fallbacks
(e.g., mapping "pt-BR" to "pt" if the base locale is missing) and
expanded the list of known locale resource folders. (`StringLoader.kt`)
[[1]](diffhunk://#diff-69216074e62a1166a116ef35b2d1b7f17aec602a739c2c8cb6bd8a8cd0671b65L14-R25)
[[2]](diffhunk://#diff-69216074e62a1166a116ef35b2d1b7f17aec602a739c2c8cb6bd8a8cd0671b65L57-R106)
* Added a new GitHub Actions workflow (`validate-translations.yml`) to
automatically validate translation string files on pull requests and
workflow dispatch. Also, integrated translation validation into the
apply-translations workflow.
(`.github/workflows/validate-translations.yml`,
`.github/workflows/apply-translations.yml`)
[[1]](diffhunk://#diff-0719a9518ad498324694da393a9405602cf748d86fd8c01565852f16a72bdd36R1-R26)
[[2]](diffhunk://#diff-a3f7722207a73e6405f04440bc640173b93a9015cd581bab14d7a743ebe3b6efR139-R140)

**Dependency Management:**

* Migrated several dependencies in `app/build.gradle.kts` to use
centralized version catalogs (`libs.*`) for easier updates and
consistency; updated some library versions. (`app/build.gradle.kts`)
[[1]](diffhunk://#diff-8cff73265af19c059547b76aca8882cbaa3209291406f52df1dafbbc78e80c46L91-R114)
[[2]](diffhunk://#diff-8cff73265af19c059547b76aca8882cbaa3209291406f52df1dafbbc78e80c46L126-R145)
[[3]](diffhunk://#diff-8cff73265af19c059547b76aca8882cbaa3209291406f52df1dafbbc78e80c46L147-R186)

**UI Enhancements:**

* Enhanced `FeatureCard` to support displaying an animated badge (using
Lottie) when a feature (such as "Watch") requires attention.
(`FeatureCard.kt`, `SetupFeatures.kt`)
[[1]](diffhunk://#diff-93d4b6b248a93718a39398de24433670f60524b1d3df14c2b8a77d5fb31001d7L66-R70)
[[2]](diffhunk://#diff-93d4b6b248a93718a39398de24433670f60524b1d3df14c2b8a77d5fb31001d7R126)
[[3]](diffhunk://#diff-93d4b6b248a93718a39398de24433670f60524b1d3df14c2b8a77d5fb31001d7R167-R204)
[[4]](diffhunk://#diff-745253453359a8bd398912155bd3e957eef0666756dc31d103c59bf449c503feL1275-R1283)
* Added a user-facing card in the watch settings UI to prompt for Wear
OS app updates, including direct action to the latest release.
(`WatchSettingsUI.kt`)

**Miscellaneous:**

* Updated the app version to 16.4 (code 56) and added a build config
field for the required Wear version code. (`app/build.gradle.kts`)

Let me know if you want more details on any of these changes!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants