MuntashirAkon / AppManager

A full-featured package manager and viewer for Android
https://muntashirakon.github.io/AppManager/
Other
4.29k stars 253 forks source link

Flickering Screen / Crashing / Unresponsive To Taps / Keyboard Fllickering #1317

Closed FroggMaster closed 1 month ago

FroggMaster commented 1 month ago

Please check before submitting an issue

Describe the bug

To Reproduce

  1. Install App Manager v3.1.5 on Google Pixel 6 Pro running Android 14: Firmware build: AP1A.240305.019.A1, Mar 2024

Expected behavior

For none of the above issues to be presented; I would expect the app to be responsive, not close, the screen not to flicker and the keyboard to be functional.

Screenshots

No response

Logs

No response

Device info

Additional context

No response

MuntashirAkon commented 1 month ago

This is not an Android 14 issue since I run Android 14 myself. However, this could be a display-related issue which I cannot fix without getting hands on the device itself.

FroggMaster commented 1 month ago

It's unfortunate because the bug makes the app essentially unable to be used on my device. If you need additional information or someone to test any updates that might resolve this issue on the device, I'd be happy to help.

Unfortunately, I know how difficult it is to attempt to troubleshoot and resolve something when you're not able to replicate the problem,.

MuntashirAkon commented 1 month ago

You can share a video of the issue, recorded from another device. Make sure to be quite thorough so that I may be able to guess why it may be happening. Note that, no version or breaking changes have been introduced in v3.1.5. So, it should be more or less identical to v3.1.4 except a few internal changes. So, if v3.1.4 works but v3.1.5 does not, you have to report this as well. Also, make sure you use the release builds (not debug builds) for this test. Debug builds have extensive logging enabled which may result in more work in the UI/Main thread and cause similar flickering (assuming you've got an amoled or similar display).

MuntashirAkon commented 1 month ago

Also, make sure there's no apps interfering with App Manager via accessibility. Revoke the accessibility permission from all apps before doing the above.

FroggMaster commented 1 month ago

This issue was occurring for both versions for me both 3.1.4 and 3.1.5. However; I think this may have been a weird glitch with my device. I haven't changed anything but I'm not able to re-create the issue anymore.

I had reinstalled the application and rebooted multiple times previously and the problem continued. I reinstalled again to attempt to re-create the problem but the app is now working, no flickering, no randomly sending to background and the keyboard is responsive.

MuntashirAkon commented 1 month ago

This could be due to dex optimisation. If this happens again, please perform a dexopt operation on App Manager via terminal and see if it stops after that.

Terrance commented 2 weeks ago

I've just installed the 4.0 beta release (after uninstalling 3.x, as I previously installed via F-Droid with a different signature) and I'm also seeing the behaviour described here.

Logs: 📎 29_04-18-53-34_533.log

https://github.com/MuntashirAkon/AppManager/assets/4025899/2caddc07-cfff-4f6d-9b6b-de5cf65551b5

Terrance commented 2 weeks ago

If this happens again, please perform a dexopt operation on App Manager via terminal and see if it stops after that.

What exactly do I need to run in order to do this? Internet searches are leading me to pm, but...

OnePlusNordCE:/ $ pm compile io.github.muntashirakon.AppManager
Error: Failed to cpmpile !
OnePlusNordCE:/ $ pm force-dex-opt io.github.muntashirakon.AppManager
                                                                                                                                                                                                                                                                          Exception occurred while executing 'force-dex-opt':
java.lang.SecurityException: forceDexOpt
        at com.android.server.pm.PackageManagerServiceUtils.enforceSystemOrRoot(PackageManagerServiceUtils.java:1313)
        at com.android.server.pm.DexOptHelper.forceDexOpt(DexOptHelper.java:536)
        at com.android.server.pm.IPackageManagerBase.forceDexOpt(IPackageManagerBase.java:300)
        at com.android.server.pm.PackageManagerShellCommand.runForceDexOpt(PackageManagerShellCommand.java:1995)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:264)
        at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
        at android.os.ShellCommand.exec(ShellCommand.java:38)
        at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6362)
        at android.os.Binder.shellCommand(Binder.java:1073)
        at android.os.Binder.onTransact(Binder.java:901)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4313)
        at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6346)
        at android.os.Binder.execTransactInternal(Binder.java:1331)
        at android.os.Binder.execTransact(Binder.java:1268)