OShin | O神「自动构建 CI Build」
1.51K subscribers
2 photos
771 files
678 links
OPPO/OneOlus 系统辅助应用

Channel/频道
@OPatchA
Chat/聊天
@OPatchB
Download Telegram
重构已完成。由于部分配置类型已更新,可能导致闪退、Hook 失效等问题。建议卸载后重新安装应用。如遇异常,请立即反馈。

Refactoring completed. Some configuration types have been updated, which may cause crashes or Hook failures. It is recommended to uninstall and reinstall the app. Please report any issues immediately.

Рефакторинг завершён. Некоторые типы конфигураций были обновлены, что может вызвать сбои или неработающие хуки. Рекомендуется удалить и заново установить приложение. При возникновении проблем сообщите об этом немедленно.
OShin | O神「自动构建 CI Build」 pinned «重构已完成。由于部分配置类型已更新,可能导致闪退、Hook 失效等问题。建议卸载后重新安装应用。如遇异常,请立即反馈。 Refactoring completed. Some configuration types have been updated, which may cause crashes or Hook failures. It is recommended to uninstall and reinstall the app. Please report any issues immediately.…»
🚀 OShin New CI Build!

feat(Features): Add multiple new Oplus feature pages

This commit introduces a significant number of new feature pages for various Oplus system applications, built using the declarative UI model. These additions provide granular control over features in Games, Phone Manager, Battery, OTA, and more.

### Key Changes:

- New Feature Pages Added:
- Games ():
- Adds toggles for Ultra Combo, cloud control, package restrictions, and root detection bypass.
- Includes options to enable AI assists for various games like HOK and PUBG.
- Oplus Phone Manager ():
- Introduces settings to remove popup delays, customize the optimization score, set custom prompt text, and adjust animation durations.
- Battery ():
- Adds a toggle to disable the low battery fluid cloud notification.
- Includes a slider to configure the maximum number of auto-starting apps.
- OTA ():
- Provides toggles to disable system update dialogs, notifications, auto-downloads, and integrity checks.
- Notification Manager ():
- Adds a toggle to allow disabling all notification categories for an app.
- Pad Connect ():
- Adds an option to bypass the safety check for unlocking with the same account.
- Extended System Service ():
- Includes a toggle to remove the system tamper warning.

- Feature Registry ():
- All new page definitions (, , , , etc.) have been registered, making them accessible in the app's module list.

- String Resources ():
- Added all necessary string resources for the new feature toggles and descriptions.
- Clarified the text for the PUBG AI feature toggle.
🔗 查看本次提交
🚀 OShin New CI Build!

chore(Cleanup): Remove unused string resources

This commit removes a large number of unused string resources from the project's string definition files () across multiple locales.

The primary goal of this cleanup is to reduce the application's size and simplify localization maintenance by eliminating obsolete text that is no longer referenced in the codebase. This is likely a result of recent refactoring efforts where hardcoded feature pages were replaced with a declarative UI model.

### Key Changes:

- Massive String Deletion:
- Removed over 200 string resources that were previously used for various feature toggles, settings, descriptions, and UI labels. These include strings related to specific device features, UI customizations, and warnings.
- The cleanup has been applied consistently across all supported language files, including , , (default), , and the meme locale ().

- Examples of Removed Strings:
- A vast collection of feature flags (e.g., , , ).
- UI-specific labels (e.g., , , , ).
- General warnings and messages (e.g., , ).

This change streamlines the resource files, making the project cleaner and more maintainable.
🔗 查看本次提交
🚀 OShin New CI Build!

Refactor: Reorganize hook packages for clarity

This commit refactors the package structure for all hook-related files, improving organization and code discoverability. Hooks are now grouped by their target application's functionality rather than being nested under a generic package.

For example, a hook targeting is now located in instead of .

### Key Changes:

- Package Renaming:
- All hook implementation files have been moved from to more descriptive packages like , , , etc.
- This change affects dozens of files, standardizing their location based on the app they modify (e.g., , , , , ).

- Import Path Updates:
- The main file has been updated to reflect the new package paths for all registered hookers.
- Internal imports within the hook files have also been updated to their new locations.

- Hook Relocation:
- The hook file for was deleted from its old path () and recreated at the correct new path (), aligning it with the new package structure.

This is a structural refactoring only and introduces no functional changes.
🔗 查看本次提交
🚀 OShin New CI Build!

Refactor(CodeStyle): Relocate About screen files to a dedicated package

This commit reorganizes the project structure by moving all files related to the About screen from the generic package to a more specific package.

This change improves code organization and aligns with package-by-feature best practices, making the About section's components easier to locate and maintain.

Key Changes:

File Relocation:
All composable screens and related logic for the About section (, , , , and ) have been moved from to .

Import Updates:
Import statements in and have been updated to reflect the new package paths, ensuring that navigation and screen composition continue to function correctly.
🔗 查看本次提交
🚀 OShin New CI Build!

Refactor(Hook): Update PhoneManager hooks to use KavaRef and float types

This commit refactors the hooks for and to align with updated API practices and improve type precision.

The manual method finding syntax () has been replaced with the more concise from the KavaRef library. Additionally, preference values for custom score and custom animation duration are now correctly handled as types instead of , allowing for more precise configurations.

### Key Changes:

- API Modernization:
- Replaced the verbose block with for locating and hooking methods, simplifying the codebase.
- Removed now-unused imports for , , , and .

- Type Correction ( & ):
- The preferences for and are now fetched using instead of .
- The default/sentinel value has been changed from to to match the new float type.
- The custom score value passed to the hooked method is now a .
🔗 查看本次提交
🚀 OShin New CI Build!

Chore: Add MMKV as a new dependency

This commit introduces as a new dependency to the project.

MMKV is a high-performance, key-value storage framework. Adding it to the project lays the groundwork for its future use, likely for managing application settings or caching data more efficiently than traditional methods like SharedPreferences.

### Key Changes:

:
Added the library with version to the version catalog.
:
Included the new dependency in the app module's implementation configuration.
🔗 查看本次提交
3
🚀 OShin New CI Build!

feat(Hook): Add DexKitCacheManager for persistent method caching

This commit introduces , a new utility to persistently cache DexKit search results using MMKV, significantly speeding up hook initialization on subsequent app launches.

The manager implements a cache-then-search strategy. It stores method descriptors found by DexKit and invalidates this cache only when the host application's version code changes. This avoids costly and time-consuming dex rescans for every process start, greatly improving performance.

### Key Changes:

:
Introduced a new singleton object, , to handle the entire caching lifecycle.
Uses MMKV for persistent, multi-process storage of method descriptors.
Caches results on a per-app-version basis, automatically clearing outdated caches when an application is updated.
Hooks into the application's lifecycle to initialize MMKV and DexKit resources in a timely manner.
Employs a to ensure that hook execution waits for the cache manager to be fully initialized, preventing race conditions.

:
Added a call to in the 's method to ensure MMKV is initialized for the main app process.
🔗 查看本次提交
🚀 **OShin New CI Build!**

Chore(CI): Remove unused parameters from Telegram notification step

This commit cleans up the GitHub Actions workflow by removing two deprecated or unused parameters from the Telegram notification step.

The and parameters are no longer necessary for the and have been removed to simplify the workflow configuration.
🔗 [查看本次提交](https://github.com/suqi8/OShin/commit/3b8b5394b9299b03811e90cc96e879b3b767e9be)
🚀 **OShin New CI Build!**

Refactor(Hooks): Use float types for status bar Wi-Fi settings

This commit refactors the Wi-Fi status bar hook to use types for retrieving font size and speed threshold preferences, improving precision.

Previously, settings for font sizes (, , , ) and the slow speed threshold were fetched from preferences as values. This commit updates the logic to fetch them as s using and then casts them to for compatibility with their usage. The default sentinel value has also been updated from to to match the new type.

### Key Changes ():

- **Type Correction**:
- , , , , and preferences are now read using instead of .
- The default value for font sizes has been changed to .
- The default value for is now .
- The retrieved float values are cast to before being assigned to the data class properties.
🔗 [查看本次提交](https://github.com/suqi8/OShin/commit/869014aea6c3cac3574a1c546008e7661b741ff1)
🚀 **OShin New CI Build!**

Feat(SystemUI): Add View Controller for status bar customization

This commit introduces the View Controller, a powerful new feature that allows users to inspect and modify the visibility of individual views within the SystemUI status bar.

The feature presents a hierarchical tree of all views in the status bar, allowing users to select any view with an ID and set its visibility to Default, Force Show, Force Hide, or Force Invisible. This enables deep customization, such as hiding unwanted icons or system indicators.

Communication between the app and the SystemUI process is handled robustly via YukiHookAPI's . The app can request the view tree, and the hook dynamically parses and sends it back. User configurations are saved to SharedPreferences and immediately applied in the SystemUI process.

### Key Changes:

* ** (Hook):**
* A new hook that injects into .
* It hooks to get a reference to the status bar view.
* Recursively parses the status bar's view hierarchy into a serializable tree.
* Listens for commands from the app via to send the view tree, apply visibility configurations, and highlight selected views.
* Applies saved visibility rules (, , ) to target views.

* ** & (App UI):**
* A new screen and ViewModel to manage the feature's UI and logic.
* The screen displays the view hierarchy in a , with indentation to represent the tree structure.
* It allows nodes to be expanded or collapsed to navigate the tree.
* Clicking a view opens a dialog to change its visibility mode.
* The ViewModel handles state management, data channel communication, and saving configurations.

* ** & (Models):**
* New data models to represent a view's properties (ID, type, visibility, bounds) and its user-defined configuration.

* **Navigation & Integration:**
* A new entry for View Controller has been added to the main function screen.
* The feature is registered in the app's navigation graph.
* New string resources for UI text have been added.
🔗 [查看本次提交](https://github.com/suqi8/OShin/commit/22c55dbd8f2d54e71a5e013b243c493e584c4599)