TeamVanced / VancedManager

Vanced Installer
GNU General Public License v3.0
8.26k stars 1.14k forks source link

[Bug]: INSTALL_FAILED_VERSION_DOWNGRADE #753

Open Gouster4 opened 2 years ago

Gouster4 commented 2 years ago

Device

Device: Xperia 1 III Operating System: Android Android Version: 11

Version

2.6.2

Bug Description

I installed an system update, ans youtube reinstalled to original 16.32.34 version. When i try to install youtube vanced root version i get this error: INSTALL_FAILED_VERSION_DOWNGRADE

I cannot just uninstall updates as update is part of system. Im not able to modify system files because disable-verify does work just on userdebug builds.

But it would be nice if you implement some automatic workaround, for example creating new magisk module with ytb vanced during each update.

Thanx.

Additional checks

Gouster4 commented 2 years ago

Solution can be simply faking higher apk version.

X1nto commented 2 years ago

Solution can be simply faking higher apk version.

not possible, bug will be fixed in next manager, meanwhile the only fix rn is to wait for the next vanced update

tracedgod commented 2 years ago

Same issue on OnePlus 9 Pro after upgrading to Android 12, system package for YouTube is higher than current vanced version, therefore downgrade error happens. Nonroot method works fine obviously. Hate to be that guy, but any ETA on when an update will be released? I'll be using Nonroot method until then since it works.

cl-ement05 commented 2 years ago

Usually, you can uninstall updates from System apps. Did you try this ? Last week, I had to reinstall my ROM so I faced the same issue since YouTube version was higher than Vanced's one. The only thing I did was going to settings, then apps, select youtube and click on "uninstall updates". This usually downgrades (at least it did on my phone) Youtube version below Vanced version which then lets you install YT Vanced without any problems

Gouster4 commented 2 years ago

Problem is that if you have recent system version, app located on system partition can be higher version than latest available vanced. Uninstalling udates does work just for updates on data partition, then app from system partition is used.

ghost commented 2 years ago

@Gouster4 @tracedgod use the Debloater magisk modular if you can't uninstall updates. Read the modules documentation.

tracedgod commented 2 years ago

@Gouster4 @tracedgod use the Debloater magisk modular if you can't uninstall updates. Read the modules documentation.

Thanks, this did the trick. I had tried other debloat apps with no luck, this one worked with no issues.

Quick write-up for anyone who needs to uninstall YouTube that is higher version:

  1. Install termux or any other terminal emulator
  2. Install debloat magisk module and reboot
  3. Open terminal and type su, confirm superuser priveleges
  4. Type su to enter root shell
  5. Type debloat to run the app and navigate through the menus until you find YouTube, mine was under option 4
  6. Select the YouTube app and confirm the removal, then reboot your phone
  7. After reboot, you should be able to manually uninstall YouTube app and replace it with vanced YouTube via Vanced Manager.
rubino25 commented 2 years ago

Still have the same issue. Removed youtube app via adb but still have the error. S10+ with latest android 12 and One UI 4. Yes, rooted.

Byter09 commented 2 years ago

Regarding the de-bloat magisk module: the latest magisk has no module library anymore, but you can still get it via F-Droid. I downloaded De-Bloater, it is available as an app and lists itself in the magisk module tab, and removing YT with it allowed me to install Vanced 😄

rubino25 commented 2 years ago

I'll try! Edit: no, it didn't work. I've removed the system app via adb but the error is still present. In debloater I can't see YouTube app in system or user path Edit 2: It works!! Reinstalled YouTube fron play store, debloated and reintalled with vanced manager robot! Thanks

tracedgod commented 2 years ago

Regarding modules, there is an app called Fox's Magisk Module Manager that lets you manage your modules since it was removed from Magisk itself. I use this and it works good. Good to see you got the issue resolved.