ReVanced / revanced-manager

💊 Application to use ReVanced on Android
https://revanced.app
GNU General Public License v3.0
18.22k stars 748 forks source link

bug: "Installation cancelled" error appears when patching an app using the latest version of ReVanced Manager even though the installation was not cancelled #2317

Open Gestrid opened 2 hours ago

Gestrid commented 2 hours ago

Bug description

  1. Start patching with the default patches and recommended APK.
  2. Patch appears to finish successfully.
  3. Tapping "Install" shows the dialogue notifying the user to disable automatic updates for the patched APK.
  4. After tapping okay, the app says the installation was cancelled.
  5. Tapping the button to save the APK file itself does nothing.

Version of ReVanced Manager and version & name of app you are patching

ReVanced Manager v1.23.2 YouTube v19.43.41

Installation method

Regular

ReVanced Manager logs

Pasting the contents of the file is making GitHub give a character length error. See first comment for log file upload.

Patch logs

- Device Info
ReVanced Manager: 1.23.2
Model: Pixel 6 Pro
Android version: 15
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: No

- Patch Info
App: com.google.android.youtube v19.43.41 (Suggested: 19.43.41)
Patches version: v5.0.2
Patches added: Default
Patches removed: None
Default patch options changed: None

- Settings
Allow changing patch selection: true
Version compatibility check: true
Show universal patches: false
Patches source: revanced/revanced-patches

- Logs
Reading APK
Decoding app manifest
Loading patches
Deleting existing temporary files directory
Decoding resources
Initializing lookup maps
Executing patches
Applied 52 patches
Compiling modified resources
Aligning APK
Signing APK
Patched APK
Installing patched app
Installation canceled
Installing patched app
Installation canceled
Installing patched app
Installation canceled
Installing patched app
Installation canceled

Acknowledgements

Gestrid commented 2 hours ago

revanced-manager_logcat_20241115105449930406.log.txt

oSumAtrIX commented 2 hours ago

Uncheck save patched apk in settings. Check if you can reproduce the issue. If not, enable it again and check if you can reproduce it

Gestrid commented 2 hours ago

Unchecking that option fixed the issue, though I'm not sure why. Assuming the option was available in previous versions of the ReVanced Manager (I rarely ever need to go to the options menu), it hasn't given me trouble before. Is it a recent problem caused by Android 15?

KobeW50 commented 1 hour ago

https://github.com/ReVanced/revanced-manager/issues/2224

Gestrid commented 52 minutes ago

#2224

Thanks for linking the issue here. I somehow missed it when I was searching for related issues before posting this one.

Maybe you or someone else could mention this issue in that one. I'd like to upload my logs (as in the actual log file that I uploaded in that first comment above) to that issue, but the conversation is limited to contributers.

By the way, on a related note, I actually have the Google Play Store disabled (not uninstalled, just disabled), which, if I'm not mistaken, also disables both Play Services and Play Protect.