Skip to content
taidaruPublic

About

Hold the power button for Google's Circle to Search on GrapheneOS and other phones

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CircleKey

English | Русский

Hold the power button → Circle to Search on phones where the system does not offer it (for example, Pixels running GrapheneOS). No root or Xposed — one adb command, once.

CircleKey is not affiliated with Google. "Circle to Search" is a trademark of Google LLC. The app only opens a feature that is already in the Google app.

Features

  • Assistant opens Circle to Search — the assist gesture (holding power) opens the real Circle to Search: selecting, translating, copying text, QR codes, searching by image.
  • Repair after reboot — on GrapheneOS the system "forgets" Google's voice service on every boot, which also keeps Google Assistant from working until the assistant is switched away and back. CircleKey fixes this after every boot (it may take up to a few minutes).

Tested on a Pixel 10 Pro, GrapheneOS, Android 17, Google app 17.70. It should work on any Android 14+ phone with the Google app, but Google decides on its servers where Circle to Search is enabled.

Setup

Install the APK from Releases, open CircleKey and go through the steps:

  1. Google app installed, updated and signed in (on GrapheneOS, sandboxed Google Play first).

  2. One-time permission over adb. Enable Developer options → USB debugging, connect the phone and run (the app has a "Copy" button):

    adb shell pm grant io.github.taidaru.circlekey android.permission.WRITE_SECURE_SETTINGS
  3. Google as the digital assistant (Settings → Apps → Default apps → Digital assistant app).

  4. Screen access — allow the assistant to use text and screenshots from the screen (one button in the app).

  5. Gestures — turn on the switches you need.

  6. Test — the button opens Circle to Search over CircleKey itself; after that, hold power in any app.

How it works

  • On the assist gesture SystemUI launches the component stored in Settings.Secure.assistant; if it is an activity rather than a voice service, SystemUI simply starts it. CircleKey puts its invisible Trigger activity there.
  • Trigger calls IVoiceInteractionManagerService.showSessionFromSession with omni.entry_point in the session arguments and the "screen data + screenshot" flags — Google's voice service then opens Circle to Search. The idea comes from MiCTS (parallelcc).
  • The switches write Settings.Global.power_button_long_press (5 — assistant, 1 — power menu) and Settings.Global.key_chord_power_volume_up (2 — power menu, 1 — mute).
  • After boot (BOOT_COMPLETED, i.e. after the first unlock) and every time the app is opened, CircleKey restores Settings.Secure.voice_interaction_service if the system cleared it, and takes assistant again if Circle to Search is enabled.

Troubleshooting

# What the system currently uses
adb shell settings get secure assistant
adb shell settings get secure voice_interaction_service
# Run the repair now (same as after boot)
adb shell am broadcast -n io.github.taidaru.circlekey/.BootReceiver
# Open Circle to Search the same way the power button does
adb shell input keyevent KEYCODE_ASSIST
# Logs
adb logcat -s CircleKey
  • Circle to Search does not open — check steps 1–4 in the app: Google must be the active voice service.
  • "Circle to Search isn't available" on the Google screen — Google has disabled it for your device or account.

Risks

CircleKey relies on non-public interfaces: the order of methods in IVoiceInteractionManagerService.aidl (showSessionFromSession is the third one) and the Google app's internal omni.entry_point key. An update of Android or the Google app may break it. CircleKey itself sends nothing anywhere; the screenshot goes to the Google app, just as with the stock Circle to Search.

License

GPL-3.0

About

Hold the power button for Google's Circle to Search on GrapheneOS and other phones

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages