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

App is not actually installed (yet) when manager says so #819

Closed
4 tasks done
SodaWithoutSparkles opened this issue Apr 28, 2023 · 6 comments · Fixed by #1021 or #1011
Closed
4 tasks done

App is not actually installed (yet) when manager says so #819

SodaWithoutSparkles opened this issue Apr 28, 2023 · 6 comments · Fixed by #1021 or #1011
Assignees
Labels
Bug report Something isn't working

Comments

@SodaWithoutSparkles
Copy link
Contributor

Type

Error while running the manager

Bug description

Manager does not check if the installed version is the one patched just now

Steps to reproduce

  1. Patch YT with latest manager version
  2. Make sure revanced is already installed
  3. After patching, click install, but don't confirm the dialogue yet
  4. Look at the bottom behind the blackened screen, revanced manager thinks the app was updated/installed when you havent actuallt installed it yet

Android version

13

Manager version

0.1.0 (or is it 0.1.1?)

Target package name

com.google.youtube

Target package version.

18.15.40

Installation type

Non-root

Patches selected.

Not relevant

Device logs (exported using Manager settings).

Not relevant

Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].

Not relevant

Screenshots or videos

IMG_20230428_160959
Note that the red text have been translated into English

Solution

When patching, also modify the version code to include the UNIX timestamp or a nonce. Like changing it from 18.15.40 to 18.15.40-1682669613. This way, RV manager can check it against the expected one and know if the new one is installed or not, instead of displaying it when the button is pressed

Additional context

No response

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
  • The issue is related solely to the ReVanced Manager and not related to patching errors or patches
@SodaWithoutSparkles SodaWithoutSparkles added the Bug report Something isn't working label Apr 28, 2023
@KobeW50
Copy link
Contributor

KobeW50 commented May 18, 2023

This causes some people to wonder where the app went because it said it was installed but they don't see it in the app drawer

@KobeW50
Copy link
Contributor

KobeW50 commented May 23, 2023

The app does not already need to exist on the device for this bug to occur. It always says "Installed!" when the install button is pressed, even if the package name does not exist on the device. But the timestamp solution will still be useful when dealing with app updates, (although wouldn't a hash check be simpler? Idk these things though 🤷)

Also, if the user exits the manager app while the package installer pop-up prompt of "Do you want to install/update this app?" is present, the pop-up will disappear. And upon re-entering the manager, the manager will just say "Open" and makes it seem like it has been successfully installed.

Although the pop-up disappearing can be blamed on the package installer, the "Open" button and the "Installed!" text should not appear unless the app has indeed been installed.

Screen_Recording_20230523_140609.mp4

@Ushie
Copy link
Member

Ushie commented May 23, 2023

There's no need for a hashmap, timestamp in the version code or anything of the likes of that, Package Manager will return a callback with the result of the installation

@SodaWithoutSparkles
Copy link
Contributor Author

What if the user decides not to use package manager, but sth like SAI or Shizuku to install?

@cioccarellia
Copy link

Same here, also if the user already has a older YT Revanced installed and the installation fails (for signature mismatch), then the app assumes it was installed and crashes the installation view upon click open. Maybe you should make sure that the application installation process actually went through

@validcube
Copy link
Member

validcube commented Jul 15, 2023

🎉 Fixed in #1021 and released in ReVanced Manager v1.4.1

If problem persist, feels free to reopen this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
6 participants