Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Difficulty uninstalling the application #151

Closed
Dim7x0 opened this issue Feb 7, 2024 · 5 comments
Closed

[Bug] Difficulty uninstalling the application #151

Dim7x0 opened this issue Feb 7, 2024 · 5 comments
Labels
Bug Bugs. Crashes or something isn't working

Comments

@Dim7x0
Copy link

Dim7x0 commented Feb 7, 2024

Bug Summary

I can’t uninstall an application from Android 10. The package installer crashes with an error when I try to uninstall the application.

Version

1.4.4.

Steps to reproduce the bug

No response

Environment

No response

Screenshots or Screen recordings

No response

Other helpful information

No response

@Dim7x0 Dim7x0 added the Bug Bugs. Crashes or something isn't working label Feb 7, 2024
@chr56
Copy link
Owner

chr56 commented Feb 7, 2024

Report to device manufacturer.

This shall not be fault of Phonograph Plus.

Try to use adb to uninstall if in urge.

@chr56 chr56 added Wontfix This will not be worked on Closing The issue was done and would be closed soon labels Feb 7, 2024
@chr56
Copy link
Owner

chr56 commented Feb 8, 2024

This is a bug on Android 10 with external physical SD card.

Phonograph Plus has set android:hasFragileUserData="true" in AndroidManifest.xml years ago (cf8036d).

However, there is bug:
https://gist.github.com/agnostic-apollo/58def38fdb1c90563454974108ae52df
If you are using Android 10 with an external physical SD card. Package Installer will directly crash.

However, Google fixed it on Android 11.

This is not a fault by Phonograph Plus but Google's. And this bug was also reported last year (#86) but I didn't notice and see the truth.

See also:
Similar issues:
MuntashirAkon/AppManager#1193
hushenghao/AndroidEasterEggs#24

@chr56
Copy link
Owner

chr56 commented Feb 8, 2024

Current solutions:

  1. Guide user to use adb to uninstall:
    adb uninstall player.phonograph.plus
  2. Remove android:hasFragileUserData in AndroidManifest.xml:
    Is that worthy?
  3. Provide special version to Android 10 users: (currently plan):
    A version without android:hasFragileUserData="true" (and targetSdk is 28 to bypass Scoped Storage), this will solve the problem (and many issues relative to storage permissions).

@chr56 chr56 removed the Closing The issue was done and would be closed soon label Feb 8, 2024
@chr56 chr56 removed the Wontfix This will not be worked on label Apr 16, 2024
@chr56
Copy link
Owner

chr56 commented Apr 26, 2024

If everything is fine, in next major version, there would be a special version provided for Android 10 with external SD card.
You could upgrade to this special version which could be uninstall without difficulties.

@chr56
Copy link
Owner

chr56 commented Jul 21, 2024

v1.8.0 has been released.

Please install legacy variant for Android 10, which would fix the problem.

Close! @Dim7x0

@chr56 chr56 closed this as completed Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs. Crashes or something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants