Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

[BUG] Unintended stock app uninstallations #160

@juandvasquezp

Description

@juandvasquezp

Yeah so, I was happy using my Rish functionality and happy because it was merged, when I came across an issue.

As it turns out, some patches deliberately change the pkg name of some apps, usually google apps patches like com.google.android.apps.photos to something like app.revanced.android.photos, and com.google.android.youtube to app.rvx.android.youtube or app.revanced.android.youtube depending on the source.

So, right now the rish.sh checks for the stock app signatures and prompts for its uninstallation, which is not ideal, because installations will fail if there's a real signature mismatch or downgrade. And if the user wants to keep both stock and patched apps, rish will uninstall stock thinking that that will solve the problem when in reality it won't.

It should be an easy fix, just to use the pkg name of the patched apk for signature verification and uninstallations, instead of using PKG_NAME. I shall look into it when I have time... this wednesday or this weekend. 👍

Also, in the version selection screen, it shows the stock app installed version, because getInstalledVersion() looks for the stock app version. I don't know if that's the intended use (because su checks for that version), or if we should look for the patched app version.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions