Add hasUnmodestImage and isPotentiallyDangerous parameters#10
Merged
kdroidFilter merged 3 commits intomasterfrom May 19, 2025
Merged
Add hasUnmodestImage and isPotentiallyDangerous parameters#10kdroidFilter merged 3 commits intomasterfrom
kdroidFilter merged 3 commits intomasterfrom
Conversation
Introduce a new `hasUnmodestImage` property in the `AppPolicy` interface and implement it across all policy types (`ModeBasedPolicy`, `MultiModePolicy`, `FixedPolicy`). This property defaults to `false` and enhances the flexibility of handling image-related policies.
This update introduces a new `isPotentiallyDangerous` property to the `AppPolicy` interface and its implementations (`ModeBasedPolicy`, `MultiModePolicy`, and `FixedPolicy`). It allows for marking policies that may pose potential risks, enhancing classification capabilities.
Introduce `hasUnmodestImage` and `isPotentiallyDangerous` flags to enhance app filtering and user awareness. These flags restrict app access by default unless users acknowledge and accept the associated risks. Included examples demonstrate proper usage scenarios.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces two new properties to the
AppPolicyinterface and its implementations:hasUnmodestImageandisPotentiallyDangerous. These properties enhance app filtering and classification by enabling the marking of policies with specific content or risk warnings.Key updates include:
hasUnmodestImage: A property to handle image-related policies, defaulting tofalse.isPotentiallyDangerous: A property to classify potentially risky app policies.Both properties are implemented across
ModeBasedPolicy,MultiModePolicy, andFixedPolicy. Examples demonstrating appropriate usage are also included.