Steps to reproduce/复现步骤
- Open HMA-OSS (version oss-161)
- Go to App List
- Install a new app on the device (any app, e.g., from Play Store or APK)
- Return to HMA-OSS App List
- Observe the newly installed app
Current result: The new app appears in the list but has NO settings applied (all toggles are disabled). User must manually configure it.
Expected result (with this enhancement): The new app should automatically receive settings from a user-selected preset/template.
Expected behaviour/预期行为
After installing a new app, HMA-OSS should automatically apply a predefined configuration (preset/template) to that app without requiring manual user intervention.
Specifically:
- User selects a preset in Settings (e.g., "Detector apps" preset)
- User enables "Auto-configure new apps" toggle
- When a new app is installed, HMA-OSS detects the
ACTION_PACKAGE_ADDED event
- HMA-OSS automatically applies the selected preset's settings to the new app:
- Activity Launch Protection (ON/OFF based on preset)
- Install Source Spoofing (ON/OFF based on preset)
- Blacklist/Whitelist mode (based on preset)
- Data isolation settings (based on preset)
- Risky package protection (based on preset)
- The user sees the configured state immediately when opening HMA-OSS app list
- Optionally, user can override auto-applied settings manually later
Example:
- User creates a preset named "Detectors" with Activity Launch Protection = ON
- User installs "Disclosure" app
- HMA-OSS automatically enables Activity Launch Protection for Disclosure
- User does nothing — the protection is already active
This feature should work for apps installed from:
- Google Play Store
- Manual APK installation
- ADB install
- Third-party app stores
Expected user experience: "Set it once, forget it — all new apps are automatically protected according to my rules."
Actual behaviour/实际行为
When a new app is installed, HMA-OSS does NOT apply any configuration automatically. All settings (Activity Launch Protection, Install Source Spoofing, etc.) remain OFF by default. The user must manually configure each new app individually or via Batch Setup Wizard. No auto-configuration feature exists.
Xposed Module List/Xposed 模块列表
Magisk Module List/Magisk 模块列表
HMA-OSS version/HMA-OSS 版本
161
Android version/Android 版本
16
Magisk version/Magisk 版本
30.6
Version requirement/版本要求
Latest CI debug build/最新 CI debug 构建
Logs/日志
No
Steps to reproduce/复现步骤
Current result: The new app appears in the list but has NO settings applied (all toggles are disabled). User must manually configure it.
Expected result (with this enhancement): The new app should automatically receive settings from a user-selected preset/template.
Expected behaviour/预期行为
After installing a new app, HMA-OSS should automatically apply a predefined configuration (preset/template) to that app without requiring manual user intervention.
Specifically:
ACTION_PACKAGE_ADDEDeventExample:
This feature should work for apps installed from:
Expected user experience: "Set it once, forget it — all new apps are automatically protected according to my rules."
Actual behaviour/实际行为
When a new app is installed, HMA-OSS does NOT apply any configuration automatically. All settings (Activity Launch Protection, Install Source Spoofing, etc.) remain OFF by default. The user must manually configure each new app individually or via Batch Setup Wizard. No auto-configuration feature exists.
Xposed Module List/Xposed 模块列表
Magisk Module List/Magisk 模块列表
HMA-OSS version/HMA-OSS 版本
161
Android version/Android 版本
16
Magisk version/Magisk 版本
30.6
Version requirement/版本要求
Latest CI debug build/最新 CI debug 构建
Logs/日志
No