Skip to content

feat: rootless long-press home button trigger via Shizuku - #191

Open
T1nG3R wants to merge 6 commits into
parallelcc:mainfrom
T1nG3R:feat/shizuku-home-trigger
Open

T1nG3R wants to merge 6 commits into
parallelcc:mainfrom
T1nG3R:feat/shizuku-home-trigger

Conversation

@T1nG3R

@T1nG3R T1nG3R commented Oct 9, 2026 •

Copy link
Copy Markdown

Adds an option to trigger Circle to Search by long-pressing the Home button on unrooted devices using Shizuku.

Background

Currently, Home button triggering requires LSPosed module hooks in the system framework. Devices running without root can only trigger MiCTS from the Quick Settings tile or third-party shortcut apps.

Implementation

  • Shizuku integration: Uses Shizuku to grant WRITE_SECURE_SETTINGS to MiCTS without root or an active computer connection after initial wireless pairing.
  • Assistant routing: Directs the assistant secure setting to MainActivity while preserving Google's voice_interaction_service. When invoked by long-pressing Home, MiCTS triggers Circle to Search immediately without delay.
  • Reboot handling: Implements a BootReceiver supporting Direct Boot (LOCKED_BOOT_COMPLETED and BOOT_COMPLETED) to track state changes, since Android resets third-party assistant assignments on reboot.
  • Settings UI: Adds a toggle under App Settings with status indicators and dialogs for Shizuku status, Google default assistant prerequisites, and the Xiaomi / HyperOS requirement for "USB debugging (Security settings)".
  • Documentation: Updates README_en.md and README.md with setup instructions.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant