ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.49k stars 288 forks source link

Tapping on downloads button in library crashes YouTube #1712

Closed YouSummoner closed 1 year ago

YouSummoner commented 1 year ago

Type

Error at runtime

Bug description

[Root Version] When trying to download a video from YouTube, the download doesn't even start. And when trying to open the downloads section from library, the YouTube app crashes.

Steps to reproduce

  1. Patch YouTube app using all patches excluding MicroG, all patches will be applied successfully.
  2. Open YouTube and try to download a video or open the downloads section.
  3. App will crash

Relevant log output

--------- beginning of main
11-25 05:11:18.879 16644 16644 E manager.flutte: Not starting debugger since process cannot load the jdwp agent.
11-25 05:11:18.880 16644 16644 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
11-25 05:11:18.930 16644 16644 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10309; state: ENABLED
11-25 05:11:19.037 16644 16644 V GraphicsEnvironment: ANGLE Developer option for 'app.revanced.manager.flutter' set to: 'default'
11-25 05:11:19.037 16644 16644 V GraphicsEnvironment: ANGLE GameManagerService for app.revanced.manager.flutter: false
11-25 05:11:19.150 16644 16644 W manager.flutter: type=1400 audit(0.0:340): avc: denied { read } for name="max_map_count" dev="proc" ino=424286 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: QUALCOMM build                   : 5af5ff1, Iff02ff076a
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Build Date                       : 01/05/21
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.32.02.06
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Local Branch                     : mybrancheb4f33c0-fd8a-f1f2-ab18-5cb90179c3d8
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Remote Branch                    : quic/gfx-adreno.lnx.1.0.r114-rel
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Remote Branch                    : NONE
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Reconstruct Branch               : NOTHING
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Build Config                     : S P 10.0.7 AArch64
11-25 05:11:19.170 16644 16644 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
11-25 05:11:19.174 16644 16644 I AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
11-25 05:11:19.340 16644 16741 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
11-25 05:11:19.354 16644 16738 I flutter : ReVanced API: Using CronetEngine + true
11-25 05:11:19.375 16644 16800 W SQLiteLog: (28) double-quoted string literal: "221F04DDCF86133E6D2E6344BA97034F"
11-25 05:11:19.375 16644 16800 W SQLiteLog: (28) double-quoted string literal: "22D1CC376C54BE531C0A569AA1492CA8"
11-25 05:11:19.458 16644 16644 W pool-7-thread-1: type=1400 audit(0.0:341): avc: denied { read } for name="version" dev="proc" ino=4026532076 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.588 16644 16741 I Gralloc4: mapper 4.x is not supported
11-25 05:11:19.589 16644 16741 W Gralloc3: mapper 3.x is not supported
11-25 05:11:19.592 16644 16741 W Gralloc4: allocator 4.x is not supported
11-25 05:11:19.593 16644 16800 W SQLiteLog: (28) double-quoted string literal: "129C81370C8C8A20B85E5575BDF12E85"
11-25 05:11:19.593 16644 16800 W SQLiteLog: (28) double-quoted string literal: "22D1CC376C54BE531C0A569AA1492CA8"
11-25 05:11:19.594 16644 16741 W Gralloc3: allocator 3.x is not supported
11-25 05:11:19.597 16644 16741 I Gralloc2: Adding additional valid usage bits: 0x0
11-25 05:11:19.634 16644 16741 E BLASTBufferQueue: [SurfaceView[app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity]#1](f:0,a:0) rejecting buffer:active_size=1080x2340, requested_size=1080x2340 buffer{size=1080x2298 transform=0}
11-25 05:11:19.710 16889 16889 W sh      : type=1400 audit(0.0:342): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.734 16889 16889 W sh      : type=1400 audit(0.0:343): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.742 16889 16889 W sh      : type=1400 audit(0.0:344): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.758 16889 16889 W sh      : type=1400 audit(0.0:345): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.770 16889 16889 W sh      : type=1400 audit(0.0:346): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.802 16889 16889 W sh      : type=1400 audit(0.0:347): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:19.818 16889 16889 W sh      : type=1400 audit(0.0:348): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:20.814 16889 16889 W sh      : type=1400 audit(0.0:358): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:20.830 16889 16889 W sh      : type=1400 audit(0.0:359): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:20.846 16889 16889 W sh      : type=1400 audit(0.0:360): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:20.866 16889 16889 W sh      : type=1400 audit(0.0:361): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:20.878 16889 16889 W sh      : type=1400 audit(0.0:362): avc: denied { read } for name="/" dev="sda11" ino=2 scontext=u:r:untrusted_app:s0:c53,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-25 05:11:21.053 16644 16800 W SQLiteLog: (28) double-quoted string literal: "484091CDFBF54C9C82180F6C7CC4C586"
11-25 05:11:21.053 16644 16800 W SQLiteLog: (28) double-quoted string literal: "716AF76116FE0D91F83419F8DAA2B25C"
11-25 05:11:21.610 16644 16800 W SQLiteLog: (28) double-quoted string literal: "484091CDFBF54C9C82180F6C7CC4C586"
11-25 05:11:21.610 16644 16800 W SQLiteLog: (28) double-quoted string literal: "5097AE2003A57205492F8E3EBD6F75B6"
11-25 05:11:27.266 16644 16738 I flutter : --> Missing translation: key: English, languageCode: en

Screenshots or videos

No response

Solution

No response

Additional context

Corvus OS 4.1 Android 12.1 YouTube v17.43.36

Acknowledgements

oSumAtrIX commented 1 year ago

Please include logs from logcat. Grep AndroidRuntime.

YouSummoner commented 1 year ago

time: 1669383706359 msg: java.lang.VerifyError: Verifier rejected class aaef: void aaef.h(aadx, aadw, java.util.List, long, long, boolean) failed to verify: void aaef.h(aadx, aadw, java.util.List, long, long, boolean): [0xAF] invalid use of move-result (declaration of 'aaef' appears in /data/app/~~4qDgkCZAwPJutnxxBFP0Ng==/com.google.android.youtube-JGa4tP2FXpZVj2v-Mf1yCA==/base.apk!classes4.dex) stacktrace: java.lang.NoClassDefFoundError: aaef at aaed.c(PG:5) at aaed.b(PG:2) at aaed.a(PG:1) at hzw.E(PG:10) at ilt.c(PG:5) at ilt.b(PG:1) at ips.nl(PG:29) at msg.g(PG:178) at cl.aw(PG:112) at cl.ay(PG:10) at cl.F(PG:3) at av.e(PG:2) at ggj.C(PG:31) at ggj.Y(PG:24) at ggj.X(PG:53) at ggj.M(PG:4) at lky.y(PG:5) at lky.d(PG:2) at ezc.sb(PG:225) at gpu.c(PG:14) at xac.c(PG:46) at aclx.onClick(PG:7) at jvf.onClick(PG:24) at android.view.View.performClick(View.java:7455) at android.view.View.performClickInternal(View.java:7432) at android.view.View.access$3700(View.java:835) at android.view.View$PerformClick.run(View.java:28811) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7872) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) Caused by: java.lang.VerifyError: Verifier rejected class aaef: void aaef.h(aadx, aadw, java.util.List, long, long, boolean) failed to verify: void aaef.h(aadx, aadw, java.util.List, long, long, boolean): [0xAF] invalid use of move-result (declaration of 'aaef' appears in /data/app/~~4qDgkCZAwPJutnxxBFP0Ng==/com.google.android.youtube-JGa4tP2FXpZVj2v-Mf1yCA==/base.apk!classes4.dex) at aaed.c(PG:5) at esj.run(PG:138) at tpg.run(PG:7) at oeu.run(PG:5) at oey.run(PG:23) at ogp.run(PG:69) at nnm.run(PG:13) at com.google.android.apps.youtube.embeddedplayer.service.jar.client.q.run(PG:15) at java.lang.Thread.run(Thread.java:1013)

oSumAtrIX commented 1 year ago

Related/Dupe of ReVanced/revanced-patches#1091.