Skip to content

bzerk/rokid-settings-helper

Repository files navigation

Rokid Settings Helper

Standalone Android helper for Rokid Glasses settings surfaces, plus a reusable launcher utility you can copy into another app.

What it does

  • opens the compact Wi-Fi panel that is available on current Rokid Glasses firmware
  • falls back cleanly to full Wi-Fi settings and general network settings
  • exposes a tiny RokidSettingsLauncher API for use from other apps
  • includes a minimal on-device helper app for manual launch and regression checks

Verified behavior

The Wi-Fi panel path is verified on the tested glasses build:

  • action: android.settings.panel.action.WIFI
  • package: com.android.settings
  • component fallback: com.android.settings.panel.SettingsPanelActivity

Observed UX on the tested build:

  • the panel is less disruptive than opening full Settings
  • pressing back returns to the caller
  • double-back from the panel returns to the helper app

That makes it a good recovery surface when your app detects a connectivity error and wants to hand the user directly to Wi-Fi controls.

Reusable API

Main entrypoint:

  • RokidSettingsLauncher.openWifiPanel(context)

Other helpers:

  • openWifiSettings(context)
  • openNetworkSettings(context)
  • openDeviceInfo(context)
  • openDeveloperSettings(context)
  • openSettingsHome(context)

Source:

  • app/src/main/java/io/github/bzerk/rokidsettingshelper/RokidSettingsLauncher.kt

Example: open Wi-Fi panel on connectivity error

import io.github.bzerk.rokidsettingshelper.RokidSettingsLauncher

val launched = RokidSettingsLauncher.openWifiPanel(this)
if (!launched) {
    RokidSettingsLauncher.openWifiSettings(this)
}

If you want to route through the helper app explicitly instead of calling the panel directly:

import io.github.bzerk.rokidsettingshelper.RokidSettingsLauncher

startActivity(
    RokidSettingsLauncher.createHelperIntent(
        this,
        RokidSettingsLauncher.ACTION_WIFI_PANEL
    )
)

Manual helper actions

  • open Wi-Fi panel
  • open Wi-Fi settings
  • open network settings
  • open device info
  • open developer settings
  • open settings home

You can also cold-start the helper into a specific action:

adb shell am start -W \
  -n io.github.bzerk.rokidsettingshelper/.MainActivity \
  --es io.github.bzerk.rokidsettingshelper.extra.ACTION_ID wifi_panel

Build

./gradlew :app:assembleDebug

Install

adb install -r app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n io.github.bzerk.rokidsettingshelper/.MainActivity

Notes

  • This is intentionally small and practical.
  • The Wi-Fi panel path is a firmware behavior, not a guaranteed Android API contract across all vendors.
  • Keep a fallback to full Wi-Fi settings in case the panel path changes.

About

Rokid Glasses Wi-Fi and settings helper app with a reusable Wi-Fi panel launcher

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages