Skip to content

[ISSUE] Backup: rules not restored properly (same UID, different app) #1435

@mat999io

Description

@mat999io

Describe the bug
When a backup is restored, if an app has been reinstalled or just deleted after the backup, Afwall only takes into account if an app with the same UID exists. It happens with both user and system apps. If you are debloating or editing a custom rom, system apps UID may change after factory reset. Access can granted to an app that was blocked and denied to the original app. It's a security problem and inconvenient.

Smartphone (please complete the following information):

  • Device: Xperia 10 VI
  • Android OS: 14

Additional context
Adguard does not have that problem. I think it matches both UID and package name (maybe signature?). If UID has changed but the app is installed (even if version is updated or old version is deleted and newer is installed) rules are restored right for both system and user app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions