Closed VSMent closed 4 months ago
Send the mount after the reboot using
mount | grep youtube
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)
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
It says APK is 19.16.39
Run the mount script in /data/adb/service.d, then run the patched app and send the output of logcat | grep AndroidRuntime
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
Unmount the apk and run YouTube, send any exception logs again
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
Reinstall it and reboot your phone without patching the app (remove the mount script). Check if it still happens
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)
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.
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.🤞🍀
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:
Crash logs on app launch:
List of patches
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
Patch logs
Acknowledgements