How rem01gaming/encore works
Encore Tweaks is a rooted Android gaming-performance module with a native daemon, a configurable WebUI, and a zygote/JNI hook component. The principal workflow is users configure game and device settings in the WebUI; the daemon monitors configuration and system state, then selects performance or power-saving behavior. The tree and excerpts establish key UI, watcher, and Binder-monitor links, but do not expose the full configuration-to-profile path or zygote wiring, so those relationships are omitted.
Main entry points: InotifyHandler.cpp File event handler · main.js WebUI bootstrap · BinderMonitor.cpp Binder monitor · Main.cpp Profile daemon
Components 22
Web configuration
- WebUI bootstrap
webui/src/main.js - App shell
webui/src/App.vue - Page routes
webui/src/router/index.js - Game controls
webui/src/views - Device settings
webui/src/views - UI state stores
webui/src/stores - Root bridge
webui/src/helpers/KernelSU.js
Runtime daemon
- Profile daemon
jni/Main.cpp - Config store
jni/EncoreConfigStore.cpp - Mitigation store
jni/DeviceMitigationStore.cpp - File event handler
jni/InotifyHandler.cpp - Inotify watcher
jni/base/InotifyWatcher/InotifyWatcher.cpp - Game registry
jni/base/GameRegistry/GameRegistry.cpp - Profiler
jni/Profiler.cpp - Device information
jni/base/DeviceInfo/DeviceInfo.cpp
Android integration
- Binder monitor
jni/base/BinderMonitor/BinderMonitor.cpp - Binder NDK
jni/base/BinderNDK/BinderNDK.cpp
Zygote hooks
- Java hook engine
zygote/app/src/main/java/com/rem01gaming/encore/JavaHooker.java - Zygote entry
zygote/app/src/main/cpp/Main.cpp - JNI utilities
zygote/app/src/main/cpp/external/jnihelper/include/JniHelper.hpp
Other components
- Device user
- Android services
Connections 18
- Device user → WebUI bootstrap: configures
README.md - WebUI bootstrap → App shell: mounts
webui/src/main.js - App shell → Page routes: renders
webui/src/App.vue - Device user → Game controls: manages games
README.md - Device user → Device settings: sets preferences
README.md - Game controls → UI state stores: uses state
- Device settings → UI state stores: uses state
- WebUI bootstrap → Root bridge: checks root
webui/src/main.js - Profile daemon → Binder monitor: initializes
jni/Main.cpp - Binder monitor → Android services: queries
jni/base/BinderMonitor/BinderMonitor.cpp - Binder monitor → Binder NDK: uses Binder API
jni/base/BinderMonitor/BinderMonitor.cpp - Profile daemon → File event handler: configures watching
- File event handler → Inotify watcher: registers watches
jni/InotifyHandler.cpp - File event handler → Game registry: reloads games
jni/InotifyHandler.cpp - File event handler → Config store: reloads config
jni/InotifyHandler.cpp - File event handler → Mitigation store: reloads mitigation
jni/InotifyHandler.cpp - Zygote entry → Java hook engine: loads hooks
- Java hook engine → JNI utilities: uses JNI