-
-
Notifications
You must be signed in to change notification settings - Fork 748
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
Export APK button doesn't respond after Opening installed app #1537
Comments
Now when I open the installed app using the "Open" button and then return to the manager, the manager will reset to the dashboard tab which means this bug can't be reproduced atm. (This occurs even when the Manager stays open in pop-up view or split screen while the patched app is being opened.) I guess this new behavior is a bug, and it masks the bug reported in this issue. |
Is the behavior of returning back to the dashboard not intended? This was added in the following commit. c5fc54e7
And as for the export APK button, it seems to be not working right after installing the app irrespective of you opening it or not. The APK file is probably cleared from the cache as soon as the app is installed. |
This line seems to be the root cause for invalidating the cache. Going deeper, HomeViewModel's initializer is calling the PatcherAPI's initializer which clears the cache. Similarly, the |
@pehchankon Iirc it is to refresh the list of installed apps on the dashboard |
@oSumAtrIX Yeah that seems to be the case. Instead of initializing the HomeViewModel again, can we directly refresh the list of installed apps by something like this? await _managerAPI.reAssessSavedApps().then((_) => locator<HomeViewModel>().getPatchedApps()); Edit: The HomeViewModel already contains a getPatchedApps function, however its scope is private, I think it can be made public to tackle this issue. |
I had asked the same question in the past, and got an answer from @BenjaminHalko who said that other issues could be caused by that iirc. Maybe they can give an insight on that |
I think reassessing apps would not cause any issues. In fact I think I do it in #1414 |
The question is not if reassessing apps causes any issues but if not reinitializing the home page. Last time I remember asking if it is necessary to do when changing the sources/API and related it to this case |
Bug description
After you install an app and open it (via the "Open" button), and then go back into the Manager and try to export the patched APK the export button will not work. All other buttons work except for the Back button, which is likely a different bug. (See #1510)
Steps to reproduce
Screen_Recording_20231129_123114_ReVanced.Manager.mp4
Version of ReVanced Manager and version & name of application you tried to patch
1.17.0
YT 18.45.41
Logs
The installation completed at 12:57:46 so the issue will be in the seconds shortly afterwards
https://drive.google.com/file/d/11q675aPBTo8XNUe2kK_TT3-DiOmQRq7x/view?usp=drivesdk
Installation type
Non-root
Device logs
Patcher logs
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: