Skip to content

feat: Add support for uninstalling packages for user 0 (system user)#162

Open
thinhbuzz wants to merge 1 commit into
liriliri:masterfrom
thinhbuzz:feature/uninstall-user-0
Open

feat: Add support for uninstalling packages for user 0 (system user)#162
thinhbuzz wants to merge 1 commit into
liriliri:masterfrom
thinhbuzz:feature/uninstall-user-0

Conversation

@thinhbuzz

Copy link
Copy Markdown

Summary

This PR adds the ability to uninstall Android packages for user 0 (the system user) through the application interface. This feature is particularly useful for disabling bloatware that cannot be removed through standard uninstall methods.

Changes

  • Added new translation strings for "Uninstall User 0" action and confirmation dialog
  • Implemented uninstallUser0Package IPC handler that uses --user 0 flag with ADB uninstall command
  • Exposed the new function in the preload script for renderer process access
  • Added context menu option in Application component to trigger user 0 uninstall

Technical Details

The implementation follows the existing uninstall pattern but adds the --user 0 parameter to target the system user specifically. The --user 0 flag is particularly useful for disabling bloatware applications that are installed as system apps and cannot be removed through normal uninstall procedures. This allows users to effectively disable unwanted pre-installed applications on their Android devices.

Files Changed

  • src/common/langs/en-US.json - Added translation strings
  • src/main/lib/adb/package.ts - Added uninstallUser0Package handler
  • src/preload/main.ts - Exposed new IPC function
  • src/renderer/main/components/application/Application.tsx - Added UI option

Testing

  • Verify uninstall for user 0 works correctly
  • Confirm confirmation dialog displays properly
  • Test that regular uninstall still works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant