Conversation
…ngs for selected apps
…tifications and configuration support.
|
Yo the 'Shut-Up' feature is a godsend for us Android devs. Keep up the good work! |
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.
This pull request introduces the new "Shut-Up!" feature, which allows users to temporarily disable sensitive Android developer and debugging settings for selected apps, and then restore them after use. The implementation includes a new shortcut activity, configuration management, UI integration, and background handling for automated app freezing and settings restoration.
The most important changes are:
Shut-Up! Feature Implementation
ShutUpShortcutActivity(ShutUpShortcutActivity.kt) that disables developer options, USB debugging, wireless debugging, and optionally accessibility services for a selected app before launching it, and saves/restores original settings as needed. It also handles unfreezing the app if necessary.ShutUpAppConfigdata model to represent per-app configuration for the Shut-Up! feature.SettingsRepositorywith methods to save, load, and update Shut-Up! configs and original settings, and added new preference keys for storing these. [1] [2] [3]ShutUpShortcutActivityinAndroidManifest.xmlwith appropriate attributes for shortcut launching.UI and Feature Registry Integration
FeatureSettingsActivity.kt), including permission checks, UI composable (ShutUpSettingsUI), and display logic. [1] [2] [3] [4]FeatureRegistryand registered its required permissions in thePermissionRegistry. [1] [2]Background and Automation Handling
AppFlowHandlerto support background handling for the Shut-Up! feature, including broadcast receivers for freezing/unfreezing apps and restoring settings after app usage. [1] [2] [3]These changes collectively enable users to launch apps with sensitive settings temporarily disabled, improving privacy and security when using untrusted or critical applications.