ReVanced / revanced-manager

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

bug: Patched YouTube crash after reboot on latest recommended version #2044

Closed VSMent closed 4 months ago

VSMent commented 4 months ago

Bug description

Successfully patched YouTube with Revanced manager, was using it for some time. After reboot, app keeps crashing on opening and in google discover. To start using YouTube after reboot, I need to reinstall it from APK and patch again. It will work till next reboot.

My issue is somewhat similar to closed issue #1769 and #2043.

Steps to reproduce:

  1. Uninstall YouTube updates
  2. Download current version of YouTube from APKMirror via Revanced manager link
  3. Install downloaded version
  4. Patch with Revanced, install via root
  5. App works just fine
  6. Reboot
  7. YouTube keeps crashing

Crash logs on app launch:

java.lang.RuntimeException: Unable to instantiate application com.google.android.apps.youtube.app.YouTubeTikTokRoot_Application package com.google.android.youtube: java.lang.RuntimeException: Failed to parse XML configuration from main_shortcuts
 at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1501)
 at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1426)
 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7105)
 at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2263)
 at android.os.Handler.dispatchMessage(Handler.java:106)
 at android.os.Looper.loopOnce(Looper.java:211)
 at android.os.Looper.loop(Looper.java:300)
 at android.app.ActivityThread.main(ActivityThread.java:8294)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
Caused by: java.lang.RuntimeException: Failed to parse XML configuration from main_shortcuts
 at android.security.net.config.XmlConfigSource.ensureInitialized(XmlConfigSource.java:89)
 at android.security.net.config.XmlConfigSource.getPerDomainConfigs(XmlConfigSource.java:55)
 at android.security.net.config.ManifestConfigSource.getPerDomainConfigs(ManifestConfigSource.java:45)
 at android.security.net.config.ApplicationConfig.ensureInitialized(ApplicationConfig.java:175)
 at android.security.net.config.ApplicationConfig.isCleartextTrafficPermitted(ApplicationConfig.java:130)
 at android.security.net.config.NetworkSecurityConfigProvider.handleNewApplication(NetworkSecurityConfigProvider.java:60)
 at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1492)
 ... 11 more
Caused by: org.xmlpull.v1.XmlPullParserException: Unexpected start tag: found shortcuts, expected network-security-config
 at com.android.internal.util.XmlUtils.beginDocument(XmlUtils.java:1699)
 at android.security.net.config.XmlConfigSource.parseNetworkSecurityConfig(XmlConfigSource.java:315)
 at android.security.net.config.XmlConfigSource.ensureInitialized(XmlConfigSource.java:83)
 ... 17 more

List of patches image

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

This happened with Revanced manager 1.20.1 and YouTube 19.16.39, but same was happening on earlier versions.

OS: MIUI Global 14.0.6.0 Android: 13

Installation method

Mount

ReVanced Manager logs

--------- beginning of system
07-13 12:51:26.699 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 12:51:40.920 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 13:06:52.140 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 13:08:28.567 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 13:12:27.452 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 13:14:42.783 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 13:16:28.197 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@ead1d6c, reason: AppDarkModeEnable
07-13 13:17:03.891 13343 13343 W Activity: PerfMonitor: Slow Operation: Activity app.revanced.manager.flutter/.MainActivity onDestroy took 104ms
07-13 13:21:42.949 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@5280b16, reason: AppDarkModeEnable
07-13 13:23:36.150 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@5280b16, reason: AppDarkModeEnable
07-13 13:42:31.386 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@5280b16, reason: AppDarkModeEnable
07-13 13:44:41.814 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@5280b16, reason: AppDarkModeEnable
07-13 13:48:12.902 13343 13343 W Looper  : PerfMonitor longMsg : seq=1286 plan=13:48:11.580 late=0ms wall=1320ms h=android.os.Handler c=io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0 procState=-1
07-13 13:48:13.242 13343 13343 W PackageParser: Unknown element under <manifest>: queries at /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-DTNKED/out.apk Binary XML file line #2
07-13 13:48:13.243 13343 13343 W PackageParser: Unknown element under <application>: property at /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-DTNKED/out.apk Binary XML file line #146
07-13 13:48:13.246 13343 13343 W PackageParser: No actions in intent filter at /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-DTNKED/out.apk Binary XML file line #479
07-13 13:50:09.296 13343 13343 I ForceDarkHelperStubImpl: setViewRootImplForceDark: false for app.revanced.manager.flutter.MainActivity@5280b16, reason: AppDarkModeEnable
--------- beginning of main
07-13 13:50:09.391 13343 13343 D BufferQueueConsumer: [](id:341f00000016,api:0,p:-1,c:13343) connect: controlledByApp=false
07-13 13:50:09.395 13343 13343 D BufferQueueConsumer: [](id:341f00000017,api:0,p:-1,c:13343) connect: controlledByApp=false
07-13 13:50:09.414 13343 13343 D VRI[MainActivity]: vri.reportNextDraw android.view.ViewRootImpl.performTraversals:3852 android.view.ViewRootImpl.doTraversal:2587 android.view.ViewRootImpl$TraversalRunnable.run:9716 android.view.Choreographer$CallbackRecord.run:1386 android.view.Choreographer$CallbackRecord.run:1394 
07-13 13:50:09.414 13343 13343 D SurfaceView: UPDATE Surface(name=SurfaceView[app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity])/@0x73ae81b, mIsProjectionMode = false
07-13 13:50:09.414 13343 13343 D SurfaceControl: nativeSetScreenProjection ===> setScreenProjection
07-13 13:50:09.418 13343 13343 D SurfaceControl: nativeSetScreenProjection ===> setScreenProjection
07-13 13:50:09.418 13343 13343 D SurfaceControl: nativeSetScreenProjection ===> setScreenProjection
07-13 13:50:09.420 13343 13343 D VRI[MainActivity]: vri.Setup new sync id=4 syncSeqId=0
07-13 13:50:09.420 13343 13343 E SurfaceSyncer: Failed to find sync for id=0
07-13 13:50:09.420 13343 13343 E SurfaceSyncer: Failed to find sync for id=1
07-13 13:50:09.420 13343 13343 E SurfaceSyncer: Failed to find sync for id=2
07-13 13:50:09.420 13343 13343 E SurfaceSyncer: Failed to find sync for id=3
07-13 13:50:09.420 13343 13343 E SurfaceSyncer: Failed to find sync for id=4
07-13 13:50:09.420 13343 13343 E SurfaceSyncer: Failed to find sync for id=5
07-13 13:50:09.489 13343 13377 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:09.491 13343 13377 D BLASTBufferQueue: [VRI[MainActivity]#22](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=41892526329804(auto) mPendingTransactions.size=0 graphicBufferId=57307748630616 transform=0
07-13 13:50:09.491 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:09.492 13343 13343 D VRI[MainActivity]: vri.reportDrawFinished syncSeqId=0 android.view.ViewRootImpl.lambda$createSyncIfNeeded$4$android-view-ViewRootImpl:3920 android.view.ViewRootImpl$$ExternalSyntheticLambda1.run:6 android.os.Handler.handleCallback:942 android.os.Handler.dispatchMessage:99 android.os.Looper.loopOnce:211 
07-13 13:50:09.492 13343 20035 D BLASTBufferQueue: [SurfaceView[app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity]#23](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=41892529207650(auto) mPendingTransactions.size=0 graphicBufferId=57307748630615 transform=0
07-13 13:50:09.505 13343 13377 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:09.586 13343 13343 D DecorView[]: onWindowFocusChanged hasWindowFocus true
07-13 13:50:09.586 13343 13343 I HandWritingStubImpl: refreshLastKeyboardType: 1
07-13 13:50:09.586 13343 13343 I HandWritingStubImpl: getCurrentKeyboardType: 1
07-13 13:50:09.607 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.352 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=41894383, downTime=41894383, phoneEventTime=13:50:11.346 } moveCount:0
07-13 13:50:11.380 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.395 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.400 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=41894436, downTime=41894383, phoneEventTime=13:50:11.398 } moveCount:2
07-13 13:50:11.410 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.541 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.580 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.599 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.630 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.653 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.672 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.699 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.721 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.735 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.752 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.765 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.784 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.797 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.810 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.827 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.838 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.854 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.869 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.891 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.903 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.921 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.937 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.953 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.970 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:11.987 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:12.003 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.415 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=41897448, downTime=41897448, phoneEventTime=13:50:14.411 } moveCount:0
07-13 13:50:14.481 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.493 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=41897527, downTime=41897448, phoneEventTime=13:50:14.489 } moveCount:8
07-13 13:50:14.494 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.507 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.528 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.554 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.576 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.589 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.604 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.623 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.636 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.656 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.670 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.688 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.703 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.720 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.742 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.776 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.832 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.840 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.853 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.875 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.886 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.903 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.921 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.936 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.953 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.969 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:14.986 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.007 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.019 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.036 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.052 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.069 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.085 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.100 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.117 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.134 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.153 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.170 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.186 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.202 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.219 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.235 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.254 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.269 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.286 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.304 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.580 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=41898615, downTime=41898615, phoneEventTime=13:50:15.578 } moveCount:0
07-13 13:50:15.656 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.671 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.686 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.702 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.723 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.739 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.753 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.770 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.788 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.803 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.819 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.837 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.855 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:15.869 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.104 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.121 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.136 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.154 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.168 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.185 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.201 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.219 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.235 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.252 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.268 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.286 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.302 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.319 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.336 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.353 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.369 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.387 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.401 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.419 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.436 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.453 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.469 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.481 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=41899517, downTime=41898615, phoneEventTime=13:50:16.480 } moveCount:103
07-13 13:50:16.485 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.502 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:16.961 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=41899997, downTime=41899997, phoneEventTime=13:50:16.960 } moveCount:0
07-13 13:50:17.028 13343 13343 D MIUIInput: [MotionEvent] ViewRootImpl windowName 'app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=41900064, downTime=41899997, phoneEventTime=13:50:17.027 } moveCount:2
07-13 13:50:17.037 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.053 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.067 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.087 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.104 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.119 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.137 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.156 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.171 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.187 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.205 13343 20035 E gralloc4: Empty SMPTE 2094-40 data
07-13 13:50:17.221 13343 20035 E gralloc4: Empty SMPTE 2094-40 data

Patch logs

- Device Info
ReVanced Manager: 1.20.1
Model: 2201117PG
Android version: 13
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: Yes

- Patch Info
App: com.google.android.youtube v19.16.39 (Suggested: 19.16.39)
Patches version: v4.11.0
Patches added: Default
Patches removed: Copy video URL, Remove viewer discretion dialog, Downloads, 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 crowdfunding box, Hide filter bar, Hide floating microphone button, Disable fullscreen ambient mode, Hide layout components, Hide info cards, Player flyout menu, Disable rolling number animations, Hide seekbar, Hide timestamp, Disable player popup panels, Custom player overlay opacity, Wide searchbar, Restore old seekbar thumbnails, Spoof app version, Change start page, Enable tablet layout, Theme, Alternative thumbnails, Announcements, Always repeat, Enable debugging, Spoof device dimensions, Spoof client, Remove tracking query parameter, Disable zoom haptics, Remember video quality, Restore old video quality menu, GmsCore support
Default patch options changed: None

- Settings
Allow changing patch selection: true
Version compatibility check: false
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 13 patches
Compiling patched dex files
Compiled 8 dex files
Compiling modified resources
Aligning APK
Signing APK
Patched APK

Acknowledgements

oSumAtrIX commented 4 months ago

Send the mount after the reboot using

mount | grep youtube

VSMent commented 4 months ago

Here it is:

$ mount | grep youtube
/dev/block/dm-40 on /data/app/~~5yF-QfHuUnSou5QdrxPz1Q==/com.google.android.apps.youtube.music-qQ21K4vcCX4FUR3afAoaqQ==/base.apk type f2fs (rw,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,gc_merge,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,reserve_root=117381,resuid=0,resgid=1065,inlinecrypt,alloc_mode=reuse,checkpoint_merge,fsync_mode=nobarrier)
/dev/block/dm-40 on /data/app/~~Iao5qzQTy4cV6dGoFcotGw==/com.google.android.youtube-ffkkeHIlpH-UHus6YOlXsw==/base.apk type f2fs (rw,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,gc_merge,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,reserve_root=117381,resuid=0,resgid=1065,inlinecrypt,alloc_mode=reuse,checkpoint_merge,fsync_mode=nobarrier)
oSumAtrIX commented 4 months ago

Unmount the patched app using the umount command. Copy the base apk you see in your logs to /sdcard/ and check the version of it. You can for example open it via ReVanced Manager to see the version

VSMent commented 4 months ago

It says APK is 19.16.39 image

oSumAtrIX commented 4 months ago

Run the mount script in /data/adb/service.d, then run the patched app and send the output of logcat | grep AndroidRuntime

VSMent commented 4 months ago

There are lots of

07-13 13:53:15.877  3808  4371 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
07-13 13:53:15.877  3808  4371 E AndroidRuntime: Process: com.miui.daemon, PID: 3808
07-13 13:53:15.877  3808  4371 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.os.AsyncTask$4.done(AsyncTask.java:415)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.util.concurrent.FutureTask.run(FutureTask.java:269)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:1012)
07-13 13:53:15.877  3808  4371 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Tried to schedule job for non-existent component: ComponentInfo{com.miui.daemon/com.miui.daemon.mqsas.jobs.MemoryLeakAnalyzeService}
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.os.Parcel.createExceptionOrNull(Parcel.java:3015)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.os.Parcel.createException(Parcel.java:2995)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:2978)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:2920)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.app.job.IJobScheduler$Stub$Proxy.schedule(IJobScheduler.java:263)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:47)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at com.miui.daemon.mqsas.jobs.JobDispatcher.scheduleJob(JobDispatcher.java:180)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at com.miui.daemon.mqsas.jobs.JobDispatcher.scheduleJob(JobDispatcher.java:176)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at com.miui.daemon.mqsas.jobs.JobDispatcher.scheduleJob(JobDispatcher.java:172)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at com.miui.daemon.mqsas.jobs.JobDispatcher.scheduleJob(JobDispatcher.java:157)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at com.miui.daemon.mqsas.jobs.MQSJobScheduler$InitTask.doInBackground(MQSJobScheduler.java:76)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at com.miui.daemon.mqsas.jobs.MQSJobScheduler$InitTask.doInBackground(MQSJobScheduler.java:40)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at android.os.AsyncTask$3.call(AsyncTask.java:394)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
07-13 13:53:15.877  3808  4371 E AndroidRuntime:    ... 3 more

YouTube related issues are simillar to the crash report I send in this issue description:

07-13 13:53:55.318  8686  8686 E AndroidRuntime: FATAL EXCEPTION: main
07-13 13:53:55.318  8686  8686 E AndroidRuntime: Process: com.google.android.youtube, PID: 8686
07-13 13:53:55.318  8686  8686 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.google.android.apps.youtube.app.YouTubeTikTokRoot_Application package com.google.android.youtube: java.lang.RuntimeException: Failed to parse XML configuration from main_shortcuts
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1501)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1426)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7105)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2263)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.os.Looper.loopOnce(Looper.java:211)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:300)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:8294)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
07-13 13:53:55.318  8686  8686 E AndroidRuntime: Caused by: java.lang.RuntimeException: Failed to parse XML configuration from main_shortcuts
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.ensureInitialized(XmlConfigSource.java:89)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.getPerDomainConfigs(XmlConfigSource.java:55)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.ManifestConfigSource.getPerDomainConfigs(ManifestConfigSource.java:45)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.ApplicationConfig.ensureInitialized(ApplicationConfig.java:175)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.ApplicationConfig.isCleartextTrafficPermitted(ApplicationConfig.java:130)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.NetworkSecurityConfigProvider.handleNewApplication(NetworkSecurityConfigProvider.java:60)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1492)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    ... 11 more
07-13 13:53:55.318  8686  8686 E AndroidRuntime: Caused by: org.xmlpull.v1.XmlPullParserException: Unexpected start tag: found shortcuts, expected network-security-config
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at com.android.internal.util.XmlUtils.beginDocument(XmlUtils.java:1699)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.parseNetworkSecurityConfig(XmlConfigSource.java:315)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.ensureInitialized(XmlConfigSource.java:83)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    ... 17 more
oSumAtrIX commented 4 months ago

Unmount the apk and run YouTube, send any exception logs again

VSMent commented 4 months ago

It looks just the same. I assume that is the reason I need to reinstall YouTube from APK every time.

07-13 13:53:55.318  8686  8686 E AndroidRuntime: FATAL EXCEPTION: main
07-13 13:53:55.318  8686  8686 E AndroidRuntime: Process: com.google.android.youtube, PID: 8686
07-13 13:53:55.318  8686  8686 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.google.android.apps.youtube.app.YouTubeTikTokRoot_Application package com.google.android.youtube: java.lang.RuntimeException: Failed to parse XML configuration from main_shortcuts
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1501)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1426)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7105)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2263)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.os.Looper.loopOnce(Looper.java:211)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:300)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:8294)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
07-13 13:53:55.318  8686  8686 E AndroidRuntime: Caused by: java.lang.RuntimeException: Failed to parse XML configuration from main_shortcuts
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.ensureInitialized(XmlConfigSource.java:89)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.getPerDomainConfigs(XmlConfigSource.java:55)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.ManifestConfigSource.getPerDomainConfigs(ManifestConfigSource.java:45)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.ApplicationConfig.ensureInitialized(ApplicationConfig.java:175)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.ApplicationConfig.isCleartextTrafficPermitted(ApplicationConfig.java:130)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.NetworkSecurityConfigProvider.handleNewApplication(NetworkSecurityConfigProvider.java:60)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1492)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    ... 11 more
07-13 13:53:55.318  8686  8686 E AndroidRuntime: Caused by: org.xmlpull.v1.XmlPullParserException: Unexpected start tag: found shortcuts, expected network-security-config
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at com.android.internal.util.XmlUtils.beginDocument(XmlUtils.java:1699)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.parseNetworkSecurityConfig(XmlConfigSource.java:315)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    at android.security.net.config.XmlConfigSource.ensureInitialized(XmlConfigSource.java:83)
07-13 13:53:55.318  8686  8686 E AndroidRuntime:    ... 17 more
oSumAtrIX commented 4 months ago

Reinstall it and reboot your phone without patching the app (remove the mount script). Check if it still happens

VSMent commented 4 months ago

Removed script Unmounted from Revanced Manager Reinstalled recommended version from APK Rebooted the device

YouTube does not start

07-13 15:57:33.534  6262  6262 E AndroidRuntime: FATAL EXCEPTION: main
07-13 15:57:33.534  6262  6262 E AndroidRuntime: Process: com.google.android.youtube, PID: 6262
07-13 15:57:33.534  6262  6262 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libelements.so" not found
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at java.lang.System.loadLibrary(System.java:1661)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at fvy.<clinit>(PG:3)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at java.lang.Class.newInstance(Native Method)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at androidx.core.app.CoreComponentFactory.instantiateApplication(PG:1)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.Instrumentation.newApplication(Instrumentation.java:1249)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1493)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1426)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7105)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2263)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:211)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:300)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8294)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
07-13 15:57:33.534  6262  6262 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
oSumAtrIX commented 4 months ago

In that case this issue is not related to ReVanced, as evident, ReVanced is not mounting any patched app and the unpatched app crashes on your device. You need to resolve that on your end.

VSMent commented 4 months ago

Got it... Thank you


UPD Somehow, YouTube started to work after one more reboot. Tried to patch and reboot - it works.. I have no idea what was happening there, but now it is resolved.🤞🍀