revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

White overlay when trying to install YT patch APK

Open gozes opened this issue 1 year ago • 8 comments

Bug description

After applying all the patches to the YouTube app and trying to install the patch APK I get a white overlay that that stays there and dose noting. It never returns a successful installation message and it also doesn't update the YouTube app in the background Screenshot_20240305-105049

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

  • Device Info ReVanced Manager: 1.19.1 Model: FP4 Android version: 13 Supported architectures: arm64-v8a, armeabi-v7a, armeabi Root permissions: No

  • Patch Info App: com.google.android.youtube v19.04.37 (Suggested: 19.04.37) Patches version: v4.3.0 Patches added: Default Patches removed: Remove viewer discretion dialog, Disable precise seeking gesture, Seekbar tapping, Swipe controls, Disable auto captions, Hide video action buttons, Hide autoplay button, Hide captions button, Hide cast button, Navigation buttons, Hide player buttons, Hide album cards, Comments, Hide endscreen cards, Hide filter bar, Hide floating microphone button, Disable fullscreen ambient mode, Hide layout components, Hide info cards, Hide 'Load more' button, Player flyout menu, Disable rolling number animations, Hide seekbar, Hide Shorts components, Disable suggested video end screen, Hide timestamp, Disable player popup panels, Custom player overlay opacity, Return YouTube Dislike, Wide searchbar, Restore old seekbar thumbnails, Change start page, Disable resuming Shorts on startup, Enable tablet layout, Tablet mini player, Theme, Alternative thumbnails, Announcements, Enable debugging, Spoof device dimensions, Bypass URL redirects, Remove tracking query parameter, Disable zoom haptics, HDR auto brightness, Restore old video quality menu, GmsCore support Default patch options changed: None

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

  • Logs Reading APK Decoding app manifest Loading patches Merging integrations Deleting existing temporary files directory Decoding resources Executing patches Applied 14 patches Compiling patched dex files Compiled 8 dex files Compiling modified resources Aligning out.apk Signing out.apk Patched APK Installing patched app Installation failed Installing patched app

Installation method

Regular

ReVanced Manager logs

- Device Info
 ReVanced Manager: 1.19.1
 Model: FP4
 Android version: 13
 Supported architectures: arm64-v8a, armeabi-v7a, armeabi
 Root permissions: No
 
 - Patch Info
 App: com.google.android.youtube v19.04.37 (Suggested: 19.04.37)
 Patches version: v4.3.0
 Patches added: Default
 Patches removed: Remove viewer discretion dialog, Disable precise seeking gesture, Seekbar tapping, Swipe controls, Disable auto captions, Hide video action buttons, Hide autoplay button, Hide captions button, Hide cast button, Navigation buttons, Hide player buttons, Hide album cards, Comments, Hide endscreen cards, Hide filter bar, Hide floating microphone button, Disable fullscreen ambient mode, Hide layout components, Hide info cards, Hide 'Load more' button, Player flyout menu, Disable rolling number animations, Hide seekbar, Hide Shorts components, Disable suggested video end screen, Hide timestamp, Disable player popup panels, Custom player overlay opacity, Return YouTube Dislike, Wide searchbar, Restore old seekbar thumbnails, Change start page, Disable resuming Shorts on startup, Enable tablet layout, Tablet mini player, Theme, Alternative thumbnails, Announcements, Enable debugging, Spoof device dimensions, Bypass URL redirects, Remove tracking query parameter, Disable zoom haptics, HDR auto brightness, Restore old video quality menu, GmsCore support
 Default patch options changed: None
 
 - Settings
 Allow changing patch selection: true
 Version compatibility check: true
 Show universal patches: false
 Patches source: revanced/revanced-patches
 Integration source: revanced/revanced-integrations
 
 - Logs
 Reading APK
 Decoding app manifest
 Loading patches
 Merging integrations
 Deleting existing temporary files directory
 Decoding resources
 Executing patches
 Applied 14 patches
 Compiling patched dex files
 Compiled 8 dex files
 Compiling modified resources
 Aligning out.apk
 Signing out.apk
 Patched APK
 Installing patched app
 Installation failed
 Installing patched app

Patch logs

- Device Info
 ReVanced Manager: 1.19.1
 Model: FP4
 Android version: 13
 Supported architectures: arm64-v8a, armeabi-v7a, armeabi
 Root permissions: No
 
 - Patch Info
 App: com.google.android.youtube v19.04.37 (Suggested: 19.04.37)
 Patches version: v4.3.0
 Patches added: Default
 Patches removed: Remove viewer discretion dialog, Disable precise seeking gesture, Seekbar tapping, Swipe controls, Disable auto captions, Hide video action buttons, Hide autoplay button, Hide captions button, Hide cast button, Navigation buttons, Hide player buttons, Hide album cards, Comments, Hide endscreen cards, Hide filter bar, Hide floating microphone button, Disable fullscreen ambient mode, Hide layout components, Hide info cards, Hide 'Load more' button, Player flyout menu, Disable rolling number animations, Hide seekbar, Hide Shorts components, Disable suggested video end screen, Hide timestamp, Disable player popup panels, Custom player overlay opacity, Return YouTube Dislike, Wide searchbar, Restore old seekbar thumbnails, Change start page, Disable resuming Shorts on startup, Enable tablet layout, Tablet mini player, Theme, Alternative thumbnails, Announcements, Enable debugging, Spoof device dimensions, Bypass URL redirects, Remove tracking query parameter, Disable zoom haptics, HDR auto brightness, Restore old video quality menu, GmsCore support
 Default patch options changed: None
 
 - Settings
 Allow changing patch selection: true
 Version compatibility check: true
 Show universal patches: false
 Patches source: revanced/revanced-patches
 Integration source: revanced/revanced-integrations
 
 - Logs
 Reading APK
 Decoding app manifest
 Loading patches
 Merging integrations
 Deleting existing temporary files directory
 Decoding resources
 Executing patches
 Applied 14 patches
 Compiling patched dex files
 Compiled 8 dex files
 Compiling modified resources
 Aligning out.apk
 Signing out.apk
 Patched APK
 Installing patched app
 Installation failed
 Installing patched app

Acknowledgements

  • [X] This issue is not a duplicate of an existing bug report.
  • [X] I have chosen an appropriate title.
  • [X] All requested information has been provided properly.
  • [X] The bug is only related to ReVanced Manager

gozes avatar Mar 05 '24 11:03 gozes

Can reproduce but i was able to get the same white overlay elsewhere too when i went to patch options for gms core, a restart fixed it and i was able to see things right, don't know if this is helpful or not

xDARKxDEVILx avatar Mar 05 '24 11:03 xDARKxDEVILx

  1. Clear revanced manager data, and try again
  2. Why you removed GmsCore while your phone is non-rooted? This makes no sense, since non-rooted phone needed it. Patch again with GmsCore patch included

cyberboh avatar Mar 05 '24 12:03 cyberboh

Try @xDARKxDEVILx suggestion or find an older version of ReVanced Manager that works so we can track down where the issue came up

oSumAtrIX avatar Mar 05 '24 12:03 oSumAtrIX

Ok so try restarting my phone and repatching but I still get the white overlay

gozes avatar Mar 05 '24 14:03 gozes

Ok so try restarting my phone and repatching but I still get the white overlay

The white overlay only disappeared after restarting manager for the patch options menu of gmscore only, the installation didn't but i haven't tried doing it a second time yet, and will do soon

xDARKxDEVILx avatar Mar 05 '24 14:03 xDARKxDEVILx

Yeah, so restarting manager doesn't fix the white overlay for installation

xDARKxDEVILx avatar Mar 05 '24 14:03 xDARKxDEVILx

I have actually found an easily replicable pattern for this issue. If you're someone who's constantly asked by Google play protect to scan an app during installation and you press Don't install app instead of the hidden Install without scanning, voila, the white overlay screen appears.

https://github.com/ReVanced/revanced-manager/assets/117499019/9915b11d-d76f-4d89-a21e-8779216c637b

Having the same issue, decided to save the Patched APK and install it not from Revanced. I got an error message saying "Failed to install APK. Package is invalid"

ActualMasterOogway avatar Mar 05 '24 19:03 ActualMasterOogway

I wasn't sure if I should open a new issue

I'm having the same issue trying to patch the Tumblr app. Saving the apk beforehand and installing from the file Manager only gives "App not installed"

  • Device Info ReVanced Manager: 1.19.1 Model: moto g stylus (XT2115DL) Android version: 11 Supported architectures: arm64-v8a, armeabi-v7a, armeabi Root permissions: No

  • Patch Info App: com.tumblr v33.0.0.110 (Suggested: Any) Patches version: v4.3.0 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 Integration source: revanced/revanced-integrations

  • Logs Reading APK Decoding app manifest Loading patches Merging integrations Executing patches Applied 5 patches Compiling patched dex files Compiled 12 dex files Aligning out.apk Signing out.apk Patched APK Installing patched app

PlumBlossoms13 avatar Mar 08 '24 10:03 PlumBlossoms13

Same issue as above, tried installing from saved patch apk and getting rid that something went wrong and it wasn't installed. Getting white overly when installing from revanced manager, able to hit back to get out of it but patching from existing install or downloaded APK doesn't help.

DeerAndy avatar Mar 08 '24 15:03 DeerAndy

I also get the gray screen and get the error "package conflicts with an existing package" when trying to install from the saved APK. Has anyone tried uninstalling Revanced and Manager and then reinstalling? I'd test but don't want to lose all my settings in the Manager and Revanced.

None of this was happening in the previous non-dev release 1.18.0.

megamorphg avatar Mar 08 '24 16:03 megamorphg

The issue is fixed locally and caused by trying to apply a parameter on a translation string that doesn't have a parameter

oSumAtrIX avatar Mar 08 '24 19:03 oSumAtrIX

The issue is fixed locally and caused by trying to apply a parameter on a translation string that doesn't have a parameter

So I guess we wait for a new version to be released with this fixed?

gozes avatar Mar 08 '24 19:03 gozes

So I don't think this is close. I updated to 1.19.2 which has the above pr merged and now I'm getting

- Device Info
ReVanced Manager: 1.19.2
Model: FP4
Android version: 13
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: No

- Patch Info
App: com.google.android.youtube v19.04.37 (Suggested: 19.04.37)
Patches version: v4.3.0
Patches added: Default
Patches removed: Copy video URL, Remove viewer discretion dialog, Disable precise seeking gesture, Seekbar tapping, Swipe controls, Disable auto captions, Hide video action buttons, Hide autoplay button, Hide captions button, Hide cast button, Navigation buttons, Hide player buttons, Hide album cards, Comments, Hide endscreen cards, Hide filter bar, Hide floating microphone button, Disable fullscreen ambient mode, Hide layout components, Hide info cards, Hide 'Load more' button, Player flyout menu, Disable rolling number animations, Hide seekbar, Hide Shorts components, Disable suggested video end screen, Hide timestamp, Disable player popup panels, Custom player overlay opacity, Return YouTube Dislike, Wide searchbar, Restore old seekbar thumbnails, Change start page, Disable resuming Shorts on startup, Enable tablet layout, Tablet mini player, Theme, Alternative thumbnails, Announcements, Always repeat, Enable debugging, Spoof device dimensions, Bypass URL redirects, Remove tracking query parameter, Disable zoom haptics, HDR auto brightness, Restore old video quality menu, GmsCore support
Default patch options changed: None

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

- Logs
Reading APK
Decoding app manifest
Loading patches
Merging integrations
Deleting existing temporary files directory
Decoding resources
Executing patches
Applied 12 patches
Compiling patched dex files
Compiled 8 dex files
Compiling modified resources
Aligning APK
An error occurred:
java.io.FileNotFoundException: /data/app/~~A-0shl3r1-9_2oX_8JsAdA==/com.google.android.youtube-xT_LRpddEGZBjLN4lW-lbw==/base.apk: open failed: EACCES (Permission denied)
	at libcore.io.IoBridge.open(IoBridge.java:574)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:289)
	at n1.s0.M0(Unknown Source:105)
	at n1.s0.Q0(Unknown Source:2)
	at n1.s0.P0(Unknown Source:21)
	at n1.s0.close(Unknown Source:9)
	at kotlin.io.CloseableKt.closeFinally(Unknown Source:4)
	at app.revanced.library.ApkUtils.applyTo(Unknown Source:323)
	at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$34(Unknown Source:517)
	at app.revanced.manager.flutter.MainActivity.k(Unknown Source:0)
	at app.revanced.manager.flutter.f.run(Unknown Source:20)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
	at libcore.io.Linux.open(Native Method)
	at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
	at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7818)
	at libcore.io.IoBridge.open(IoBridge.java:560)
	... 11 more

CC @oSumAtrIX

gozes avatar Mar 09 '24 06:03 gozes

@gozes

I'm also getting this error since updating to 1.19.2 🙁 Trying to patch apps now fails and always throws an 'EACCES (Permission denied)' error. I'm rooted and using mount method.

gitdine avatar Mar 09 '24 07:03 gitdine

@gozes

I'm also getting this error since updating to 1.19.2 🙁 Trying to patch apps now fails and always throws an 'EACCES (Permission denied)' error. I'm rooted and using mount method.

@gitdine I'm not rooted so I don't think that's the issue here

gozes avatar Mar 09 '24 07:03 gozes

That issue is unrelated to this.

oSumAtrIX avatar Mar 09 '24 08:03 oSumAtrIX

That issue is unrelated to this.

@oSumAtrIX is there an issue for this or should I open one?

gozes avatar Mar 09 '24 08:03 gozes

I downgraded to 1.19.1 and everything is working fine again. So I guess I'll just wait for the next update.

gitdine avatar Mar 09 '24 08:03 gitdine

I downgraded to 1.19.1 and everything is working fine again. So I guess I'll just wait for the next update.

I was on 1.19.1 and that's when I saw this issue so not sure how is it working for you

gozes avatar Mar 09 '24 08:03 gozes

I downgraded to 1.19.1 and everything is working fine again. So I guess I'll just wait for the next update.

I was on 1.19.1 and that's when I saw this issue so not sure how is it working for you

I'm talking about the EACCES (Permission denied) error. I started getting it after upgrading to 1.19.2, after downgrading everything went back to normal. I never faced the overlay bug in the OP.

gitdine avatar Mar 09 '24 08:03 gitdine

Latest 1.19.3 worked for me but I had to uninstall first after it prompted (and then used APK). Have to go through all the setting pages again 😪

megamorphg avatar Mar 09 '24 17:03 megamorphg

Latest 1.19.3 worked for me but I had to uninstall first after it prompted (and then used APK). Have to go through all the setting pages again 😪

@megamorphg you mean uninstall the patch version and repatch and install by cancer manager?

gozes avatar Mar 09 '24 18:03 gozes

The white overlay is gone but it is now replaced with requiring root permissions when using normal install way XD I think i will open a new issue for this

xDARKxDEVILx avatar Mar 09 '24 18:03 xDARKxDEVILx

So I'm getting when I try to install @oSumAtrIX any idea what is going on? Sadly I already uninstalled the old version of Vance's app so I'm left with only default YT 🤢 Screenshot_20240309-181545.png

gozes avatar Mar 09 '24 18:03 gozes

If you need support move to one of our links on https://revanced.app

oSumAtrIX avatar Mar 09 '24 19:03 oSumAtrIX