🚀 OShin New CI Build!
feat(SMSCode): Add option to show verification code toast
This commit introduces a new feature allowing users to optionally display a toast message when an SMS verification code is detected and copied.
Key Changes:
- :
- Added a new global variable (boolean) to control whether the toast is displayed.
- This variable is initialized from the phone preferences () when the hook is loaded.
- :
- The method now checks the value of before calling .
- (UI for phone settings):
- Added a new (toggle switch) labeled with .
- This switch controls the showCodeToast preference in the phone category.
- The for SMS code keywords and the new are now grouped within a under the main smsverificationcode toggle.
- :
- Added a new string resource with the value 显示验证码吐司 (Show verification code toast).
- :
- Added a new for 显示验证码吐司 to the list of features.
This enhancement provides users with more granular control over the SMS verification code feature, allowing them to choose whether they want a visual confirmation (toast) when a code is automatically handled.
🔗 查看本次提交
feat(SMSCode): Add option to show verification code toast
This commit introduces a new feature allowing users to optionally display a toast message when an SMS verification code is detected and copied.
Key Changes:
- :
- Added a new global variable (boolean) to control whether the toast is displayed.
- This variable is initialized from the phone preferences () when the hook is loaded.
- :
- The method now checks the value of before calling .
- (UI for phone settings):
- Added a new (toggle switch) labeled with .
- This switch controls the showCodeToast preference in the phone category.
- The for SMS code keywords and the new are now grouped within a under the main smsverificationcode toggle.
- :
- Added a new string resource with the value 显示验证码吐司 (Show verification code toast).
- :
- Added a new for 显示验证码吐司 to the list of features.
This enhancement provides users with more granular control over the SMS verification code feature, allowing them to choose whether they want a visual confirmation (toast) when a code is automatically handled.
🔗 查看本次提交
GitHub
feat(SMSCode): Add option to show verification code toast · suqi8/OShin@dd1604d
This commit introduces a new feature allowing users to optionally display a toast message when an SMS verification code is detected and copied.
**Key Changes:**
- **`SMSCode.kt`:**
- Added a ...
**Key Changes:**
- **`SMSCode.kt`:**
- Added a ...
🚀 OShin New CI Build!
Refactor(UI): Adjust FunPage shadow elevation
This commit reduces the shadow elevation for the component.
- In , the property of the within has been changed from to .
This change aims to provide a more subtle shadow effect for the page.
🔗 查看本次提交
Refactor(UI): Adjust FunPage shadow elevation
This commit reduces the shadow elevation for the component.
- In , the property of the within has been changed from to .
This change aims to provide a more subtle shadow effect for the page.
🔗 查看本次提交
GitHub
Refactor(UI): Adjust FunPage shadow elevation · suqi8/OShin@b37e90b
This commit reduces the shadow elevation for the `FunPage` component.
- In `FunPage.kt`, the `elevation` property of the `GlassShadow` within `liquidGlassStyle` has been changed from `16.dp` to `4...
- In `FunPage.kt`, the `elevation` property of the `GlassShadow` within `liquidGlassStyle` has been changed from `16.dp` to `4...
🚀 OShin New CI Build!
feat(SMS): 新增短信验证码通知功能
本次提交为短信验证码功能增加了通过通知栏提醒用户的选项。
主要变更:
- :
- 新增 变量,用于控制是否显示验证码通知。
- 在 方法中,从 读取 的配置值。
- :
- 方法现在会检查 的值,如果为 ,则调用 显示通知。
- 方法中,构建通知时注释掉了 ,可能意在调整通知图标显示。
- (UI):
- 在“电话”模块的设置界面中,新增了一个 开关,用于让用户启用或禁用“显示验证码通知”功能。
- 对应的字符串资源 ID 为 。
- :
- 新增字符串资源 ,文本为“显示验证码通知”。
- :
- 在功能列表中添加了“显示验证码通知”这一项,分类为 phone。
现在用户可以选择在收到短信验证码时,除了之前的 Toast 提示外,还可以通过系统通知栏收到提醒。
🔗 查看本次提交
feat(SMS): 新增短信验证码通知功能
本次提交为短信验证码功能增加了通过通知栏提醒用户的选项。
主要变更:
- :
- 新增 变量,用于控制是否显示验证码通知。
- 在 方法中,从 读取 的配置值。
- :
- 方法现在会检查 的值,如果为 ,则调用 显示通知。
- 方法中,构建通知时注释掉了 ,可能意在调整通知图标显示。
- (UI):
- 在“电话”模块的设置界面中,新增了一个 开关,用于让用户启用或禁用“显示验证码通知”功能。
- 对应的字符串资源 ID 为 。
- :
- 新增字符串资源 ,文本为“显示验证码通知”。
- :
- 在功能列表中添加了“显示验证码通知”这一项,分类为 phone。
现在用户可以选择在收到短信验证码时,除了之前的 Toast 提示外,还可以通过系统通知栏收到提醒。
🔗 查看本次提交
GitHub
feat(SMS): 新增短信验证码通知功能 · suqi8/OShin@3cc2e8f
本次提交为短信验证码功能增加了通过通知栏提醒用户的选项。
**主要变更:**
- **`SMSCode.kt`:**
- 新增 `showCodeNotification` 变量,用于控制是否显示验证码通知。
- 在 `onHook` 方法中,从 `prefs("phone")` 读取 `showCodeNotification` 的配...
**主要变更:**
- **`SMSCode.kt`:**
- 新增 `showCodeNotification` 变量,用于控制是否显示验证码通知。
- 在 `onHook` 方法中,从 `prefs("phone")` 读取 `showCodeNotification` 的配...
🥰1
feat(SMSCode): 添加自动复制验证码到剪贴板功能
本次提交为短信验证码 (SMSCode) 功能模块新增了自动复制验证码到剪贴板的选项,并进行了一些相关的代码清理和优化。
主要变更:
1. 新增自动复制验证码功能:
* 在
*
*
* 在设置界面
*
*
2. 代码清理和优化:
* 删除了未使用的
* 简化了
* 从
通过这些改动,用户现在可以选择在收到验证码短信时,自动将提取到的验证码复制到剪贴板,方便粘贴使用。
本次提交为短信验证码 (SMSCode) 功能模块新增了自动复制验证码到剪贴板的选项,并进行了一些相关的代码清理和优化。
主要变更:
1. 新增自动复制验证码功能:
* 在
SMSCode.kt 中增加了新的配置项 copyCode (Boolean类型),用于控制是否启用自动复制验证码。*
SMSCode.kt 的 onInit 方法中会从 prefs("phone") 读取 copyCode 的配置值。*
CopyToClipboardAction.kt 的 action() 方法现在会检查 copyCode 配置项,如果为 true,则执行复制到剪贴板的操作。* 在设置界面
com.suqi8.oshin.ui.activity.com.android.phone/main.kt 中添加了一个新的 FunSwich 开关,允许用户启用或禁用“验证码复制剪切板”功能。*
app/src/main/res/values/strings.xml 中添加了对应的字符串资源 copy_verification_to_clipboard。*
Main_Module.kt 中的 featuresList 也相应地添加了此新功能的条目。2. 代码清理和优化:
* 删除了未使用的
BackupConst.kt 文件。* 简化了
CancelNotifyAction.kt 中清除通知的逻辑,使用了更简洁的 manager?.cancel(mNotificationId) 写法。* 从
NotificationConst.java 中移除了未使用的常量 CHANNEL_ID_FOREGROUND_SERVICE。通过这些改动,用户现在可以选择在收到验证码短信时,自动将提取到的验证码复制到剪贴板,方便粘贴使用。
feat(phone): 新增自动输入验证码功能
本次提交为 "电话" 应用模块添加了自动输入短信验证码的功能,并提供了相应的用户设置开关。
主要变更:
1. **功能实现 (
* 新增
* 在
* 在
2. **UI 设置 (
* 在 "电话" 功能设置页面中,新增了一个
* 此开关与
3. **文案更新 (
* 新增字符串资源
4. **功能列表更新 (
* 在应用的功能列表中,添加了“自动输入验证码”条目,使其在主界面可见。
现在,用户可以选择是否让应用在收到短信验证码时尝试自动填充到相应的输入框中。
本次提交为 "电话" 应用模块添加了自动输入短信验证码的功能,并提供了相应的用户设置开关。
主要变更:
1. **功能实现 (
SMSCode.kt, CodeWorker.kt):*** 新增
inputCode 布尔变量,用于控制是否启用自动输入验证码功能,默认值为 true。* 在
SMSCode.onInit() 方法中,从 SharedPreferences 加载 inputCode 的用户设置。* 在
CodeWorker.doWork() 方法中,根据 inputCode 的值决定是否执行 AutoInputAction 来自动填充验证码。2. **UI 设置 (
main.kt):*** 在 "电话" 功能设置页面中,新增了一个
FunSwich 开关,允许用户启用或禁用“自动输入验证码”功能。* 此开关与
phone SharedPreferences 中的 inputCode 键绑定。3. **文案更新 (
strings.xml):*** 新增字符串资源
auto_input_verification_code,其值为“自动输入验证码”。4. **功能列表更新 (
Main_Module.kt):*** 在应用的功能列表中,添加了“自动输入验证码”条目,使其在主界面可见。
现在,用户可以选择是否让应用在收到短信验证码时尝试自动填充到相应的输入框中。
🚀 OShin New CI Build!
Refactor(hook): Optimize SystemUI Clock Hook and Improve Readability
This commit refactors the hook for with several improvements focused on code structure, performance, and readability.
Key Changes:
- Configuration Loading:
- Preference values are now read using initialization. This defers reading from until the value is first accessed, potentially improving startup performance if the clock hook is not immediately used.
- Hooking Logic:
- Replaced direct calls (, ) with for a more structured and type-safe approach to reflection.
- Consolidated hook logic:
- now checks upfront and returns early if disabled.
- Separated hook setup into and .
- Introduced to centralize property settings (padding, single line, gravity, font size, line spacing).
- High-frequency update logic is now in a dedicated method.
- Date/Time Formatting:
- Introduced a cache () to reuse formatter instances, reducing object creation overhead for common patterns.
- , , , , and methods now accept the object () as a parameter instead of relying on a class-level variable. This makes the functions more self-contained and predictable.
- Simplified :
- Uses for year format consistently.
- Corrected space handling for non-Chinese locales when is enabled.
- Returns an empty string if no date components are enabled, preventing unnecessary formatter creation.
- Simplified :
- Directly uses the parameter for formatting.
- Simplified and :
- Directly use the parameter.
- Use range expressions () for hour checks in .
- Readability and Structure:
- Divided the class into 配置读取区 (Configuration Reading Area) and 工具变量区 (Utility Variables Area) using comments.
- Renamed some variables for clarity (e.g., to , to ).
- More consistent use of for immutable properties.
- Removed unused variable.
- Renamed field to to avoid confusion with local variables.
- Minor Fixes:
- Ensured is made accessible before invoking in .
- Corrected the year format in for Chinese locales from to for consistency.
These changes aim to make the clock hook more robust, performant, and easier to maintain.
🔗 查看本次提交
Refactor(hook): Optimize SystemUI Clock Hook and Improve Readability
This commit refactors the hook for with several improvements focused on code structure, performance, and readability.
Key Changes:
- Configuration Loading:
- Preference values are now read using initialization. This defers reading from until the value is first accessed, potentially improving startup performance if the clock hook is not immediately used.
- Hooking Logic:
- Replaced direct calls (, ) with for a more structured and type-safe approach to reflection.
- Consolidated hook logic:
- now checks upfront and returns early if disabled.
- Separated hook setup into and .
- Introduced to centralize property settings (padding, single line, gravity, font size, line spacing).
- High-frequency update logic is now in a dedicated method.
- Date/Time Formatting:
- Introduced a cache () to reuse formatter instances, reducing object creation overhead for common patterns.
- , , , , and methods now accept the object () as a parameter instead of relying on a class-level variable. This makes the functions more self-contained and predictable.
- Simplified :
- Uses for year format consistently.
- Corrected space handling for non-Chinese locales when is enabled.
- Returns an empty string if no date components are enabled, preventing unnecessary formatter creation.
- Simplified :
- Directly uses the parameter for formatting.
- Simplified and :
- Directly use the parameter.
- Use range expressions () for hour checks in .
- Readability and Structure:
- Divided the class into 配置读取区 (Configuration Reading Area) and 工具变量区 (Utility Variables Area) using comments.
- Renamed some variables for clarity (e.g., to , to ).
- More consistent use of for immutable properties.
- Removed unused variable.
- Renamed field to to avoid confusion with local variables.
- Minor Fixes:
- Ensured is made accessible before invoking in .
- Corrected the year format in for Chinese locales from to for consistency.
These changes aim to make the clock hook more robust, performant, and easier to maintain.
🔗 查看本次提交
GitHub
Refactor(hook): Optimize SystemUI Clock Hook and Improve Readability · suqi8/OShin@cf5c6bc
This commit refactors the `Clock.kt` hook for `com.android.systemui.statusbar.policy.Clock` with several improvements focused on code structure, performance, and readability.
**Key Changes:**
- *...
**Key Changes:**
- *...
🚀 OShin New CI Build!
Refactor(hook): Update YukiHookAPI usage and minor logic changes in
This commit updates the hook file to use the newer KavaRef API from YukiHookAPI and makes some minor adjustments to the hooking logic.
Key Changes:
- API Migration:
- Replaced direct calls to with for method hooking. This aligns with the recommended KavaRef API for reflection and method finding.
- Updated to in method finders.
- Hook Logic (Minor):
- The code related to modifying 's cloud control record () has been commented out. This was likely an experimental feature or a feature that is no longer needed.
These changes primarily focus on adopting the latest YukiHookAPI patterns for better maintainability and compatibility.
🔗 查看本次提交
Refactor(hook): Update YukiHookAPI usage and minor logic changes in
This commit updates the hook file to use the newer KavaRef API from YukiHookAPI and makes some minor adjustments to the hooking logic.
Key Changes:
- API Migration:
- Replaced direct calls to with for method hooking. This aligns with the recommended KavaRef API for reflection and method finding.
- Updated to in method finders.
- Hook Logic (Minor):
- The code related to modifying 's cloud control record () has been commented out. This was likely an experimental feature or a feature that is no longer needed.
These changes primarily focus on adopting the latest YukiHookAPI patterns for better maintainability and compatibility.
🔗 查看本次提交
GitHub
Refactor(hook): Update YukiHookAPI usage and minor logic changes in `… · suqi8/OShin@1d51498
…games.kt`
This commit updates the `games.kt` hook file to use the newer KavaRef API from YukiHookAPI and makes some minor adjustments to the hooking logic.
**Key Changes:**
- **API Migration:**...
This commit updates the `games.kt` hook file to use the newer KavaRef API from YukiHookAPI and makes some minor adjustments to the hooking logic.
**Key Changes:**
- **API Migration:**...
🚀 OShin New CI Build!
feat(verify): Introduce developer verification dialog
This commit adds a verification dialog displayed on app launch if the current version hasn't been verified. The dialog aims to ensure users obtain the app from the official GitHub source.
Key Changes:
- (New Logic):
- Verification Modes:
- Molecule Mode: Users are presented with a 2D representation of a glucose molecule and must select all chiral carbon atoms.
- , , data classes define the structure.
- provides the glucose data.
- displays the molecule and handles click interactions on carbon atoms. Selected carbons are highlighted.
- defines the set of correct answers.
- Text Mode: Users must input the module's GitHub repository URL.
- is used for input.
- Verification checks if the input contains github.com/suqi8/OShin.
- Dialog Behavior:
- The dialog is shown if and the device language is Chinese.
- is used to switch between Molecule and Text verification modes with vertical slide and fade animations.
- A Switch Mode button allows users to toggle between the two verification methods.
- Upon successful verification in either mode:
- A Verification successful! toast is shown.
- The current is saved to under verifyVersion to prevent the dialog from showing again for this version.
- The dialog is dismissed.
- If verification fails, an appropriate error toast is shown.
- UI Elements:
- is used as the base for the verification dialog.
- and are used for actions and mode switching.
- is used in to draw atoms and bonds.
- Helper functions and assist in rendering the molecule.
- :
- The composable is now called within , triggering the verification flow when the main content is composed.
This feature is intended to guide users to the official distribution channel and acknowledge the developer's work.
🔗 查看本次提交
feat(verify): Introduce developer verification dialog
This commit adds a verification dialog displayed on app launch if the current version hasn't been verified. The dialog aims to ensure users obtain the app from the official GitHub source.
Key Changes:
- (New Logic):
- Verification Modes:
- Molecule Mode: Users are presented with a 2D representation of a glucose molecule and must select all chiral carbon atoms.
- , , data classes define the structure.
- provides the glucose data.
- displays the molecule and handles click interactions on carbon atoms. Selected carbons are highlighted.
- defines the set of correct answers.
- Text Mode: Users must input the module's GitHub repository URL.
- is used for input.
- Verification checks if the input contains github.com/suqi8/OShin.
- Dialog Behavior:
- The dialog is shown if and the device language is Chinese.
- is used to switch between Molecule and Text verification modes with vertical slide and fade animations.
- A Switch Mode button allows users to toggle between the two verification methods.
- Upon successful verification in either mode:
- A Verification successful! toast is shown.
- The current is saved to under verifyVersion to prevent the dialog from showing again for this version.
- The dialog is dismissed.
- If verification fails, an appropriate error toast is shown.
- UI Elements:
- is used as the base for the verification dialog.
- and are used for actions and mode switching.
- is used in to draw atoms and bonds.
- Helper functions and assist in rendering the molecule.
- :
- The composable is now called within , triggering the verification flow when the main content is composed.
This feature is intended to guide users to the official distribution channel and acknowledge the developer's work.
🔗 查看本次提交
GitHub
GitHub - suqi8/OShin: 一个专为ColorOS系统设计的辅助模块
一个专为ColorOS系统设计的辅助模块. Contribute to suqi8/OShin development by creating an account on GitHub.
🚀 OShin New CI Build!
refactor(version): Update version name format
This commit updates the version naming scheme in .
The main version number has been incremented from to .
The fallback version name for non-Git environments has been simplified from to .
The version name format remains (e.g., ).
🔗 查看本次提交
refactor(version): Update version name format
This commit updates the version naming scheme in .
The main version number has been incremented from to .
The fallback version name for non-Git environments has been simplified from to .
The version name format remains (e.g., ).
🔗 查看本次提交
GitHub
refactor(version): Update version name format · suqi8/OShin@2f83e3f
This commit updates the version naming scheme in `app/build.gradle.kts`.
The main version number has been incremented from `15.5` to `15.6`.
The fallback version name for non-Git environments has ...
The main version number has been incremented from `15.5` to `15.6`.
The fallback version name for non-Git environments has ...
🚀 OShin New CI Build!
feat(about): Add new referenced projects
This commit updates the Referenced Projects section in the About page.
New Projects Added:
- Oxygen-Customizer: by DHD2280 (GPL-3.0)
- Capsule: by Kyant0 (Apache-2.0)
🔗 查看本次提交
feat(about): Add new referenced projects
This commit updates the Referenced Projects section in the About page.
New Projects Added:
- Oxygen-Customizer: by DHD2280 (GPL-3.0)
- Capsule: by Kyant0 (Apache-2.0)
🔗 查看本次提交
GitHub
feat(about): Add new referenced projects · suqi8/OShin@07ac326
This commit updates the "Referenced Projects" section in the "About" page.
**New Projects Added:**
- **Oxygen-Customizer:** by DHD2280 (GPL-3.0)
- **Capsule:** ...
**New Projects Added:**
- **Oxygen-Customizer:** by DHD2280 (GPL-3.0)
- **Capsule:** ...
🚀 OShin New CI Build!
Refactor(UI): Update Miuix KMP dependency and replace SmoothRoundedCornerShape
This commit updates the Miuix KMP library to version and replaces all usages of with from the Miuix KMP library. Additionally, the Umeng Common SDK is updated to version .
Key Changes:
- Dependency Updates ():
- version changed from to .
- version changed from to .
- Shape Replacement:
- :
- replaced with for button and card shadows.
- :
- replaced with for the dropdown popup shape.
- :
- replaced with for the switch track clip shape.
- :
- Replaced with for card background and clipping.
- The in now uses with specifically for touch feedback compatibility.
- Updated press feedback logic in to use the new modifier from Miuix KMP utils, along with and . Removed manual pointer input handling for press and long-press, opting for .
- Minor Code Adjustments:
- : Added to the composable.
- :
- Reordered modifiers in : now comes before .
- Imports for and Miuix KMP utils related to old press feedback (, ) were removed, and new ones (, , , , ) were added.
These changes are primarily aimed at leveraging the updated Miuix KMP library components and improving UI consistency and touch feedback handling.
🔗 查看本次提交
Refactor(UI): Update Miuix KMP dependency and replace SmoothRoundedCornerShape
This commit updates the Miuix KMP library to version and replaces all usages of with from the Miuix KMP library. Additionally, the Umeng Common SDK is updated to version .
Key Changes:
- Dependency Updates ():
- version changed from to .
- version changed from to .
- Shape Replacement:
- :
- replaced with for button and card shadows.
- :
- replaced with for the dropdown popup shape.
- :
- replaced with for the switch track clip shape.
- :
- Replaced with for card background and clipping.
- The in now uses with specifically for touch feedback compatibility.
- Updated press feedback logic in to use the new modifier from Miuix KMP utils, along with and . Removed manual pointer input handling for press and long-press, opting for .
- Minor Code Adjustments:
- : Added to the composable.
- :
- Reordered modifiers in : now comes before .
- Imports for and Miuix KMP utils related to old press feedback (, ) were removed, and new ones (, , , , ) were added.
These changes are primarily aimed at leveraging the updated Miuix KMP library components and improving UI consistency and touch feedback handling.
🔗 查看本次提交
GitHub
Refactor(UI): Update Miuix KMP dependency and replace SmoothRoundedCo… · suqi8/OShin@b5a365b
…rnerShape
This commit updates the Miuix KMP library to version `0.5.1` and replaces all usages of `SmoothRoundedCornerShape` with `G2RoundedCornerShape` from the Miuix KMP library. Additionally, ...
This commit updates the Miuix KMP library to version `0.5.1` and replaces all usages of `SmoothRoundedCornerShape` with `G2RoundedCornerShape` from the Miuix KMP library. Additionally, ...
🍌2