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

Channel/频道
@OPatchA
Chat/聊天
@OPatchB
Download Telegram
🚀 OShin New CI Build!

Refactor(PadConnect): Refine constructor hook for unlock bypass

This commit revises the method for bypassing the same account unlock safety check in . Instead of hooking a general method identified by parameter count, it now specifically targets and modifies the constructor of the relevant class.

Key Changes in :

- Constructor Hooking:
- The hook now targets the public constructor of the class identified by the string .
- It specifically looks for a constructor with the parameter signature .
- Argument Modification:
- In the hook of this constructor, if the second argument (the ) is (indicating a failed safety check), it is changed to .
- Removed General Method Hook:
- The previous approach of finding a method with and hooking it has been removed.

This change aims for a more precise and stable hook by targeting a specific constructor signature, reducing the chance of unintentionally hooking unrelated methods.
🔗 查看本次提交
🚀 OShin New CI Build!

Refactor: Update dependencies and replace G2RoundedCornerShape with ContinuousRoundedRectangle

This commit updates several dependencies and replaces the usage of with from the library.

Key Changes:

- Dependency Updates ():
- : ->
- : -> (removed from diff, likely same or handled elsewhere)
- : ->
- : ->
- : ->
- : ->
- Shape Replacement:
- In , , , and , all instances of have been replaced with . This affects the styling of various UI elements like dialogs, image previews, and TopAppBar.
- Icon Update ():
- The app icon's color scheme has been changed from a purple/magenta theme to a warm orange/yellow sunrise theme.
- Comments in the XML have been updated to reflect the new color descriptions.
- Update:
- Added and to the file.
🔗 查看本次提交
🚀 OShin New CI Build!

feat: Integrate Hilt for dependency injection

This commit introduces Hilt for dependency injection into the application.

Key Changes:

- Gradle Configuration:
- Added plugin to the root and .
- Added Hilt dependencies (, ) to and .
- Application Class:
- Annotated with to enable Hilt in the application.
- Activity Integration:
- Annotated with to enable Hilt injection in the activity.
- DI Module for Preferences:
- Created in to provide .
- This module uses and to make available as a singleton throughout the application.
- uses to get the application context for initializing .
🔗 查看本次提交
🚀 OShin New CI Build!

Refactor(UI): Modularize main screen and navigation logic

This commit refactors the main UI structure by separating concerns into more modular components.

Key Changes:

- (New):
- Introduced a new composable to manage the application's navigation graph using .
- Handles all navigation routes previously defined in .
- Incorporates the logic.
- Includes the privacy dialog logic and UMeng analytics initialization based on privacy settings.
- Defines custom enter/exit/popEnter/popExit transitions for navigation.
- (New):
- Created composable to encapsulate the layout, including the and the bottom navigation bar ().
- Manages the for horizontal swiping between main sections.
- Implements logic to show/hide the bottom navigation bar based on scroll state and page changes.
- Utilizes for styling the .
- Defines composable to host the content of each main tab.
- (New):
- Extracted the composable and its related into a separate file.
- The dialog prompts users (primarily Chinese language users) to verify by inputting a GitHub URL for the module, checking against specific repository paths.
- Verification status is stored in SharedPreferences to avoid showing the dialog repeatedly for the same app version.
- :
- Significantly simplified.
- The composable (which previously contained the and main screen logic) has been removed.
- now directly calls within the and .
- UMeng pre-initialization is removed as full initialization is now handled in based on privacy consent.
- :
- In the modifier, and are added around the drawing operations. This ensures that the canvas state (like transformations or clips applied for the shadow) doesn't leak and affect subsequent drawing operations. This is a common fix for unexpected drawing behavior when manually drawing shadows or complex effects on a Canvas.
- Relocation:
- The definition was moved from to and imported where needed (, ). This improves modularity by keeping the definition closer to its primary usage area.
- Minor Cleanups:
- Removed unused imports (e.g., in ).
- Standardized some imports.

This refactoring aims to improve code organization, readability, and maintainability by separating navigation, main screen layout, and specific dialog logic into distinct, manageable units.
🔗 查看本次提交
4
🚀 OShin New CI Build!

feat(Settings): Bypass duplicate fingerprint error and remove feature hooks

This commit introduces a bypass for the duplicate fingerprint error during enrollment and removes the extensive, now-obsolete feature flag hooking mechanism for .

Key Changes:

- Bypass Duplicate Fingerprint Error ():
- A new hook is added for .
- It targets the method.
- When a duplicate fingerprint is detected (help code ), the hook intercepts the error, prevents the original error-handling logic, and instead programmatically calls via the activity's . This forces the enrollment to complete successfully, allowing the same fingerprint to be registered multiple times.

- Removal of Feature Flag Hooks:
- The entire hook file () has been deleted. This file contained a very large number of individual hooks for and to forcibly enable or disable specific OS features.
- The corresponding UI file () that provided switches for these hooks has also been deleted.
- The navigation entry and search index entries for this feature page have been removed from and , respectively, completing the feature's removal.
- An entry point to this feature page in has been removed.

This refactoring streamlines the module by removing a complex and potentially unstable set of hooks, while adding a targeted fix for a common user request regarding fingerprint enrollment.
🔗 查看本次提交
1
🚀 OShin New CI Build!

feat(UI): Remove HUD background from Home and Module screens

This commit removes the animated HUD style background effect from the Home and Module screens.

Key Changes:

- :
- The composable, which rendered a grid and a scanning line animation, has been deleted.
- The call to has been removed from the composable.
- :
- The call to has been removed from the composable.

This change simplifies the UI by removing a purely cosmetic animated element from the background of the main screens.
🔗 查看本次提交
优化代码,优化预加载
2
🚀 OShin New CI Build!

feat: Replace LiquidGlass with new Backdrop library and refactor UI

This commit completely replaces the library with a new, more modular library for creating glassmorphism and other complex UI effects. The main screen UI and several components have been refactored to use this new library.

### Key Changes:

#### 1. Library Replacement: ->

- Removed : All files related to the library have been deleted. This includes modifiers, providers, states, samplers, and effect definitions for refraction, highlight, and shadow.
- Added : A new, comprehensive library has been introduced. This library provides a more powerful and flexible API for building layered UI effects.
- Core Concepts:
- : A unified interface for defining background content.
- : A new modifier that applies a , along with various effects like , , , and (blur, lens, color controls).
- : A specific implementation that captures and displays content from a .
- Effects: A rich set of composable effects are now available under , including , (refraction), and various adjustments.
- Shaders: New AGSL shaders () have been added to power the new effects, such as and .
- Shadows & Highlights: New implementations for , , and are provided with a more robust and flexible modifier-based application.

#### 2. Main Screen Refactoring ()

- Haze Integration: Replaced on the with the from the library for a blurred background effect.
- Bottom Navigation Rework ():
- The custom composable has been completely rewritten to use the new library.
- Removed implementation and replaced it with to create the glass effect.
- Introduced and to create a more fluid, physics-based animation for the tab indicator, including interactive highlighting and gesture handling.
- The bottom bar is now composed of multiple layers using to achieve complex effects like shadows, highlights, and lens refraction on the active tab indicator.

#### 3. Component Refactoring

- (New):
- A new reusable button component that uses the library to create a glass-like appearance.
- It's now used for the back and refresh buttons in and , replacing the previous implementation.
- :
- The confirmation dialog has been completely redesigned.
- It no longer uses or .
- It's now a custom dialog composable that uses to create a blurred, glass-like modal background, applying effects like , , and .

#### 4. Build Configuration

- :
- Enabled Kotlin's context parameters () which are required by the new library's API design.
🔗 查看本次提交
🚀 OShin New CI Build!

feat(UI): Implement configurable haze effect on FunPage TopAppBar

This commit introduces a configurable glassmorphism/blur effect (haze) to the within the composable.

Key Changes in :

- Haze Effect Integration:
- The now uses the modifier from the library.
- A a few layers below the is designated as the to provide the content that will be blurred.
- The effect is configured with a vertical gradient, starting fully intense at the top and fading out.

- User Configuration:
- The properties of the haze effect are now loaded from (settings).
- Users can customize the following parameters:
- Alpha: (float, default: )
- Blur Radius: (int, default: )
- Noise Factor: (float, default: )

- Dependencies & Imports:
- Added necessary imports for the Haze library ().
- Added imports for () and to read the preference values.
🔗 查看本次提交