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

bug(YouTube): Patching fails #2760

Closed
7 tasks done
Kuddus73 opened this issue Jan 31, 2025 · 4 comments
Closed
7 tasks done

bug(YouTube): Patching fails #2760

Kuddus73 opened this issue Jan 31, 2025 · 4 comments
Labels
Bug report Something isn't working

Comments

@Kuddus73
Copy link

Type

Error while patching

Tools used

RVX Manager

Application

YouTube v19.44.39
Patches v5.4.1-dev.2

Bug description

- Device Info
RVX Manager: 1.23.5
Model: SM-S901B
Android version: 14
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: No

- Patch Info
App: com.google.android.youtube v19.44.39 (Suggested: 19.44.39)
Patches version: v5.4.1-dev.2
Patches added: Change version code, Force hide player buttons background, Hide Shorts dimming, Return YouTube Username, Spoof Wi-Fi connection
Patches removed: Custom branding icon for YouTube, Custom branding name for YouTube, Theme
Default patch options changed: Snack bar components [Dark theme background color: #FF181825, Light theme background color: #FFE6E9EF], Custom Shorts action buttons [Shorts icon style : youtubeoutline], Hide action buttons [Hide action buttons by index: true], Overlay buttons [Icon type: thin, Change top buttons: true], SponsorBlock [Outline icons: true]

- Settings
Allow changing patch selection: true
Version compatibility check: false
Show universal patches: true
Remove unused library: true
Use pre-release: true
Patches source: inotia00/revanced-patches

- Logs
Reading APK
Decoding app manifest
Loading patches
Deleting existing temporary files directory
Decoding resources
Initializing lookup maps
Executing patches
Applied 61 patches
"Keep landscape mode" is not supported in this version. Use YouTube 19.16.39 or earlier.
"Restore old seekbar thumbnails" is not supported in this version. Use YouTube 19.16.39 or earlier.
Compiling modified resources
An error occurred:
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~fBkVNEdaOrOx7KXfiDkerQ==/app.rvx.manager.flutter-WXHU0D9ty_zCZyd9sayiJA==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.rvx.manager.flutter/files/patcher/tmp-TBWRSY/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.rvx.manager.flutter/files/patcher/tmp-TBWRSY/revanced-temporary-files/apk/build/resources.zip]
	at brut.androlib.AaptInvoker.invokeAapt2(SourceFile:123)
	at brut.androlib.AaptInvoker.invokeAapt(SourceFile:394)
	at app.revanced.patcher.patch.ResourcePatchContext.get(SourceFile:133)
	at app.revanced.patcher.Patcher.get(SourceFile:159)
	at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$34(SourceFile:342)
	at app.revanced.manager.flutter.MainActivity.$r8$lambda$Oku38Rh6VOg9CiulxEElyw3q4GI(SourceFile:0)
	at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda0.run(SourceFile:0)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~fBkVNEdaOrOx7KXfiDkerQ==/app.rvx.manager.flutter-WXHU0D9ty_zCZyd9sayiJA==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.rvx.manager.flutter/files/patcher/tmp-TBWRSY/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.rvx.manager.flutter/files/patcher/tmp-TBWRSY/revanced-temporary-files/apk/build/resources.zip]
	at brut.util.OS.exec(SourceFile:104)
	at brut.androlib.AaptInvoker.invokeAapt2(SourceFile:119)
	... 7 more

Error logs

Solution

No response

Additional context

No response

Device Environment

No response

Acknowledgements

  • This issue does not reproduce on unpatched YouTube or YT Music.
  • This issue is not a duplicate of an existing bug report.
  • I did not use any settings marked as Experimental Flags.
  • I have patched the APK according to the documentation.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • I have written the title and contents in English.
@Kuddus73 Kuddus73 added the Bug report Something isn't working label Jan 31, 2025
@GucekPL
Copy link

GucekPL commented Jan 31, 2025

Same problem

@inotia00
Copy link
Owner

There seems to be a issue with the translations patch

@inotia00
Copy link
Owner

inotia00 commented Jan 31, 2025

It seems that there are invalid escape characters in French and Korean.

(This issue should be checked by the Crowdin contributor)

When testing, Translations patch was excluded, so I can't checked this.

I will exclude the translation of French and Korean as a temporary workaround.

inotia00 added a commit to inotia00/revanced-patches that referenced this issue Jan 31, 2025
… translation patch, which includes the invalid escape character inotia00/ReVanced_Extended#2760
@inotia00
Copy link
Owner

Fixed in revanced-patches-5.4.1-dev.3

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
Development

No branches or pull requests

3 participants