Skip to content
shreyagarwal72Public

Latest commit

 

History

378 Commits

Folders and files

Repository files navigation


Quick Facts

App Name
Spectra
Version
v1.0.0 (100) · Stable
Package ID
app.spectra.tweaker
Design System
Material 3 Expressive
Min / Target SDK
Android 12 (31) / 16 (36)
License
GPL-3.0-or-later

Material 3 Expressive Architecture

Origin & Fork Note: Spectra is a fork of Everlasting Android Tweaks, completely rebuilt and redesigned in Material 3 Expressive (M3E) UI with Jetpack Compose, Petal M3E components, Shizuku-powered system utilities, and an integrated Hail App Freezer.

Spectra brings the complete Petal Material 3 Expressive visual language to Android system customization — built from the ground up with Jetpack Compose, spring physics, and adaptive dynamic theming:

  • Animated App Icon + Quantum Launch: Android 12+ animated-vector Spectra Prism splash (ic_splash_spectra_animated) that dissolves seamlessly into the procedural SpectraQuantumSplashScreen toolkit glyph stream and spring emblem reveal.
  • Bloom Morphing Background: Animated androidx.graphics.shapes.Morph canvas background (PetalPageBackground) paired with smooth spring motion (PetalSpring) and opt-out Reduce Motion compliance.
  • Petal Containment UI (Home Pattern): Every screen follows SpectraScaffold → LazyColumn (horizontal = 16.dp, vertical = 14.dp, spacedBy(18.dp)) → optional PetalStatusHeroCard → PetalSettingsSection(title) → PetalRowGroup / PetalGroupRow rows with positional shapes (TOP / MIDDLE / BOTTOM / SINGLE via petalGroupPositionFor, spaced 3.dp apart with no HorizontalDividers).
  • Consistent Icons, Controls & Semantic Colours: Every row uses Icons.Rounded.* inside PetalGroupIconBadge, PetalSwitch / IconSwitch for toggles, PetalSlider for sliders, PetalButton / PetalTonalButton / PetalOutlinedButton / PetalSplitButton for actions, PetalBottomSheet & PetalDialog for transient surfaces, SpectraPullToRefreshBox for refreshable lists, ExpressivePillShape for status pills, and MaterialTheme.colorScheme / ColorScheme.statusColors with zero hardcoded hex colours outside SpectraTheme.kt (and the themed Terminal exception). Guarded in CI by scripts/check_m3e_ui.sh and scripts/check_wiring.py.
  • Expressive Controls & Typography: Animated PetalSwitch & IconSwitch, physics-driven PetalSlider tracks, ExpressiveButtonGroup segmented controls, variable fonts (Google Sans Flex & Nunito via VariableFontFactory), and custom color style seeds + AMOLED pure-black mode.
  • Predictive Back Gestures: Native Android 14+ back gesture progress via SpectraPredictiveBackContainer and android:enableOnBackInvokedCallback="true".

Installation

When you install Spectra you may see a warning saying the app is blocked by Google Play Protect, with no option to continue.

This is an Android restriction on apps installed outside the Play Store that can use sensitive permissions such as Accessibility or Notification Listener. Spectra uses both for some features. The APK is not harmful. You can read and build the source yourself.

To install anyway:

  1. On the blocked screen, tap More details, then Install anyway (if the option shows up).
  2. If it does not, open the Play Store, tap your profile picture, then Play Protect, then the settings icon, and turn off Scan apps with Play Protect for the install. Turn it back on afterwards.
  3. If the Play Protect toggle is greyed out, Advanced Protection (Pixel and some other phones) is blocking sideloading. Turn it off in Settings > Security, then try again.

Only download Spectra from the official GitHub Releases.


Screenshots

Spectra Home Screen
Home

Spectra Battery Health
Battery Health

Spectra Equalizer
Built-in Equalizer

Features

Spectra packs 40 native Android screens & utilities organized across focused Material 3 Expressive categories:

 Gestures & Power

  • Shake for Torch — Instant flashlight toggle with adjustable shake sensitivity
  • Twist for Camera — Double-twist wrist gesture to launch the camera
  • Double Tap Back — Back-of-device double-tap triggers torch, screenshot, or any app
  • Flip to DND — Place device face-down to toggle Do Not Disturb
  • Charging Animation — Expressive M3E Bloom, M3E Pill, Lightning, Ripple, Pulse & Fire charging overlays
  • Screen-Off Actions — Fast hardware volume/power shortcuts while screen is off

 Audio, Haptics & Soundscapes

  • Built-in Equalizer — 5-band audio EQ with presets and bass boost
  • Volume Booster — Gain boost beyond default media limits
  • Volume Styles — Custom on-screen volume panel themes
  • Custom Haptics & System Sounds — Fine-tuned haptic feedback and lock, unlock, tap & charger sounds
  • Focus Soundscapes — Procedural ambient audio mixer (rain, brown/pink noise, wind, binaural beats)
  • Music Reactive Light & Leveler — Beat-synced flashlight pulse and animated overlay bars

 Visuals, Media Lab & Displays

  • 15+ Custom Quick Settings Tiles — UI blur, mono audio, sound mode, stay awake, and more
  • Screensaver — Interactive DreamService clock, matrix rain, orbs, space, and retro themes
  • On-Device Media Lab & Image Upscaler — Offline 2×/4×/8× upscaling, EXIF stripper, WebP converter, and wallpaper color extractor
  • Display Scaling & Secondary Display — DPI/resolution overrides, external display projection & virtual screens
  • Eye Dropper — On-screen pixel color sampler

 System, Benchmarks & Shizuku

  • App Freezer (Hail Engine) — Freeze, hide, or suspend background apps via Shizuku, Dhizuku, Root, or Device Owner
  • Flagship Unlocks — Per-OEM & cross-device feature/FPS/AI unlocks with SystemUI soft-restart via Shizuku
  • Hardware Benchmark & Testers — Clean-room CPU, RAM & Storage benchmarks plus Dead-Pixel & Touch-Hz testers
  • Battery Health & Charge Limit — Shizuku-assisted maximum capacity measurement, cycle/health stats & threshold alarms
  • GPU Renderer Switcher — Switch the system graphics API between Vulkan and OpenGL via Shizuku, with SystemUI soft-restart and restore-on-boot (inspired by GAMA)
  • Task Manager & Cache Cleaner — Live process/RAM inspector with pull-to-refresh and Shizuku cache cleanup
  • Inbuilt Terminal & Shizuku Bridge — Local shell command runner with 10 themes & Shizuku privilege manager

 Security, Sensors & Diagnostics

  • APK Auditor — Inspect installed/external APKs for permissions, signatures, SDK targets & security flags
  • Privacy Guard & Screenshot Blocker — Clipboard auto-clear, permission audits & FLAG_SECURE window protection
  • Sensor Lab & Compass — Animated compass, magnetometer, bubble level, Lux light meter & dB sound meter
  • Thermal, Wakelock & LAN Inspector — Real-time thermal zones, wakelock diagnostics, and local network scanner
  • Device Info & Hidden Features — Hardware/SoC diagnostics and hidden Android activity launcher
  • Walkie Talkie, Fake Call & Motion Alert — Local Wi-Fi Direct PTT, OEM-styled simulated calls & anti-theft siren

Architecture

flowchart TB
    App["SpectraApp / HailApp"] --> Theme["SpectraExpressiveTheme<br/>Monet Dynamic Color · AMOLED · Google Sans Flex"]
    Theme --> Nav["SpectraNavHost<br/>Predictive Back · PetalMotion Springs"]
    Nav --> Home["HomeScreen<br/>Search · Category Chips · PetalGroups"]
    Home --> Screens["43 Feature Items & Settings"]
    Screens --> Services["Background Services<br/>SpectraAccessibilityService · SpectraForegroundService · ScreensaverService"]
    Screens --> Bridge["System Privileges<br/>Shizuku · Dhizuku · Root · Hail Freeze Engine"]
    Screens --> Data["AppPreferences (DataStore) & SharedPreferences Sync"]
Loading
Package Structure Map
app/src/main/kotlin/
├── app/spectra/tweaker/
│   ├── SpectraApp.kt                  # Application initialization & notification channels
│   ├── data/                          # DataStore preferences & state persistence
│   ├── features/                      # 40+ native hardware/system tweak engines & QS tiles
│   ├── services/                      # Foreground & SpectraAccessibilityService
│   ├── ui/
│   │   ├── MainActivity.kt            # Edge-to-edge host, splash & M3E theme root
│   │   ├── m3e/                       # Petal M3 Expressive containment, shapes, fonts, Bloom & controls
│   │   ├── navigation/                # SpectraNavHost & PredictiveBackHandler transitions
│   │   └── screens/                   # Home, Settings, Equalizer, Upscaler, Terminal & feature UIs
│   └── utils/                         # PermissionManager, Shizuku & Root helpers
└── com/aistra/hail/                   # App Freezer subsystem synced with Spectra's theme

Permissions Overview

Permission / Privilege Purpose in Spectra Required?
Accessibility Service Double power press, screen-off button actions, tap haptics Feature-specific
Display Over Other Apps Custom nav bar pill, music leveler, charging animations, volume styles Feature-specific
Modify System Settings Brightness, sound mode, stay awake & system-level quick toggles Feature-specific
Notification / DND Access Flip to DND, charge limit alarms, foreground service status Feature-specific
Shizuku / Root (Optional) App Freezer, Cache Cleaner, Task Manager & privileged shell commands Optional
ADB / Shizuku-Granted WRITE_SECURE_SETTINGS, FORCE_STOP_PACKAGES, CHANGE_COMPONENT_ENABLED_STATE, MANAGE_APP_OPS_MODES (granted via Shizuku/ADB, not normal runtime prompts) Optional

Tech Stack

Layer Technology
Language & Runtime Kotlin 2.4.21, Coroutines, AndroidX Lifecycle
UI Toolkit Jetpack Compose BOM 2026.09.00, Material 3 1.5.0-alpha22, androidx.graphics.shapes 1.1.0
Typography Variable Fonts (Google Sans Flex, Nunito) via VariableFontFactory
Build & CI Gradle 9.9.1, AGP 9.5.1, GitHub Actions Release APK Pipeline

Building & CI

# Build signed release APK with local keystore properties
./gradlew :app:assembleRelease --build-cache --parallel

Every push to main triggers android_build.yml, which verifies M3E UI guardrails & wiring, builds and signs Spectra-v1.0.0-release.apk with Gradle build caching enabled, and uploads the APK artifact.


License

Released under the GNU General Public License v3.0 or later. Copyright © 2026 Spectra (shreyagarwal72). See THIRD_PARTY.md for third-party attributions and licenses.

Releases

Packages

Contributors

Languages