ReVanced / revanced-cli

💻 Command line application to use ReVanced
https://revanced.app
GNU General Public License v3.0
995 stars 156 forks source link

[Solved] Patching works, but still can't open app #154

Closed lowendgamer closed 1 year ago

lowendgamer commented 1 year ago

Type

Error while running the CLI

Bug description

For some reason it is not working after patching.

Steps to reproduce

None

Relevant log output

qwerty@abc:~/Downloads/Zxcvbn$ java -jar revanced-cli-all.jar -a youtube.apk -m integrations.apk -c -d 3a6baa05 -o revanced.apk -b revanced-patches.jar -e premium-heading -e microg-support --mount
INFO: Reading dex files 
INFO: Decoding AndroidManifest.xml only, because resources are not needed 
INFO: Merging integrations.apk 
WARNING: Skipping general-reddit-ads, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.reddit.frontpage 
WARNING: Skipping premium-icon-reddit, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.reddit.frontpage 
WARNING: Skipping hide-premium-navbar, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.spotify.music 
WARNING: Skipping disable-capture-restriction, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.spotify.music 
WARNING: Skipping spotify-theme, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.spotify.music 
WARNING: Skipping promo-code-unlock, reason: incompatible with com.google.android.youtube. This patch is only compatible with de.dwd.warnapp 
WARNING: Skipping pflotsh-ecmwf-subscription-unlock, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.garzotto.pflotsh.ecmwf_a 
WARNING: Skipping tiktok-speed, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping tiktok-download, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping tiktok-seekbar, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping tiktok-force-login, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping tiktok-settings, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping tiktok-ads, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping tiktok-feed-filter, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.ss.android.ugc.trill, com.zhiliaoapp.musically 
WARNING: Skipping monochrome-icon, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.twitter.android 
WARNING: Skipping dynamic-color, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.twitter.android 
WARNING: Skipping timeline-ads, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.twitter.android 
WARNING: Skipping exclusive-audio-playback, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping codecs-unlock, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping music-microg-support, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping music-video-ads, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping tasteBuilder-remover, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping minimized-playback-music, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
INFO: Skipping compact-header, reason: excluded by default 
WARNING: Skipping upgrade-button-remover, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping hide-get-premium, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
WARNING: Skipping background-play, reason: incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music 
INFO: Skipping enable-debugging, reason: excluded by default 
INFO: Skipping microg-support, reason: manually excluded 
INFO: Skipping premium-heading, reason: manually excluded 
INFO: Deleting existing resource cache directory 
INFO: Decoding resources 
INFO: swipe-controls succeeded 
INFO: downloads succeeded 
INFO: seekbar-tapping succeeded 
INFO: remember-video-quality succeeded 
INFO: custom-playback-speed succeeded 
INFO: minimized-playback succeeded 
INFO: client-spoof succeeded 
INFO: custom-video-buffer succeeded 
INFO: settings succeeded 
INFO: hdr-auto-brightness succeeded 
INFO: always-autorepeat succeeded 
INFO: general-ads succeeded 
INFO: hide-infocard-suggestions succeeded 
INFO: video-ads succeeded 
INFO: hide-time-and-seekbar succeeded 
INFO: old-quality-layout succeeded 
INFO: enable-wide-searchbar succeeded 
INFO: disable-fullscreen-panels succeeded 
INFO: hide-autoplay-button succeeded 
INFO: disable-startup-shorts-player succeeded 
INFO: custom-branding succeeded 
INFO: hide-create-button succeeded 
INFO: hide-shorts-button succeeded 
INFO: hide-video-buttons succeeded 
INFO: theme succeeded 
INFO: hide-email-address succeeded 
INFO: sponsorblock succeeded 
INFO: hide-cast-button succeeded 
INFO: tablet-mini-player succeeded 
INFO: return-youtube-dislike succeeded 
INFO: hide-watermark succeeded 
INFO: disable-auto-player-popup-panels succeeded 
INFO: disable-auto-captions succeeded 
INFO: Compiling resources 
INFO: Writing modified dex files 
INFO: Writing dex file classes4.dex 
INFO: Writing dex file classes3.dex 
INFO: Writing dex file classes.dex 
INFO: Writing dex file classes2.dex 
INFO: Writing dex file classes6.dex 
INFO: Writing dex file classes5.dex 
INFO: Writing dex file classes8.dex 
INFO: Writing dex file classes7.dex 
INFO: Writing resources... 
INFO: Aligning revanced_raw.apk to revanced_aligned.apk 
INFO: Copying revanced_aligned.apk to revanced.apk 
INFO: Cleaned up cache directory 
INFO: Installing by mounting 
10-11 00:05:07.361 13650 13650 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:07.365 13650 13650 I AndroidRuntime: Using default boot image
10-11 00:05:07.365 13650 13650 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:07.528 13650 13650 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:07.530 13650 13650 D AndroidRuntime: Shutting down VM
10-11 00:05:07.880 13695 13695 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:07.884 13695 13695 I AndroidRuntime: Using default boot image
10-11 00:05:07.884 13695 13695 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:08.044 13695 13695 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:08.046 13695 13695 D AndroidRuntime: Shutting down VM
10-11 00:05:08.977 13717 13717 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:08.980 13717 13717 I AndroidRuntime: Using default boot image
10-11 00:05:08.980 13717 13717 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:09.143 13717 13717 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:09.145 13717 13717 D AndroidRuntime: Shutting down VM
10-11 00:05:10.079 13738 13738 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:10.083 13738 13738 I AndroidRuntime: Using default boot image
10-11 00:05:10.083 13738 13738 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:10.244 13738 13738 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:10.245 13738 13738 D AndroidRuntime: Shutting down VM
10-11 00:05:11.180 13770 13770 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:11.184 13770 13770 I AndroidRuntime: Using default boot image
10-11 00:05:11.184 13770 13770 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:11.348 13770 13770 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:11.349 13770 13770 D AndroidRuntime: Shutting down VM
10-11 00:05:12.294 13862 13862 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:12.298 13862 13862 I AndroidRuntime: Using default boot image
10-11 00:05:12.298 13862 13862 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:12.463 13862 13862 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:12.464 13862 13862 D AndroidRuntime: Shutting down VM
10-11 00:05:13.405 13898 13898 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-11 00:05:13.409 13898 13898 I AndroidRuntime: Using default boot image
10-11 00:05:13.409 13898 13898 I AndroidRuntime: Leaving lock profiling enabled
10-11 00:05:13.527 13657 13657 D AndroidRuntime: Shutting down VM
10-11 00:05:13.529 13657 13657 E AndroidRuntime: FATAL EXCEPTION: main
10-11 00:05:13.529 13657 13657 E AndroidRuntime: Process: com.google.android.youtube, PID: 13657
10-11 00:05:13.529 13657 13657 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.youtube/com.google.android.apps.youtube.app.application.Shell_HomeActivity}: android.content.res.Resources$NotFoundException: Drawable com.google.android.youtube:drawable/quantum_launchscreen_youtube with resource ID #0x7f0808ed
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3431)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:223)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7664)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
10-11 00:05:13.529 13657 13657 E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: Drawable com.google.android.youtube:drawable/quantum_launchscreen_youtube with resource ID #0x7f0808ed
10-11 00:05:13.529 13657 13657 E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: File res/drawable/quantum_launchscreen_youtube.xml from drawable resource ID #0x7f0808ed
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:891)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:673)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.Resources.loadDrawable(Resources.java:993)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:1006)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.TypedArray.getDrawable(TypedArray.java:981)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2557)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2695)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2118)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityTransitionState.setEnterActivityOptions(ActivityTransitionState.java:171)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:8003)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:7978)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3404)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:223)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7664)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
10-11 00:05:13.529 13657 13657 E AndroidRuntime: Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #6: <bitmap> requires a valid 'src' attribute
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.BitmapDrawable.verifyRequiredAttributes(BitmapDrawable.java:793)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.BitmapDrawable.inflate(BitmapDrawable.java:776)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:144)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1402)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1391)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.LayerDrawable.inflateLayers(LayerDrawable.java:284)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.LayerDrawable.inflate(LayerDrawable.java:199)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:144)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1402)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1361)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.ResourcesImpl.loadXmlDrawable(ResourcesImpl.java:954)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:877)
10-11 00:05:13.529 13657 13657 E AndroidRuntime:    ... 23 more
10-11 00:05:13.571 13898 13898 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-11 00:05:13.573 13898 13898 D AndroidRuntime: Shutting down VM
INFO: Stopped logging because the app was closed 
qwerty@abc:~/Downloads/Zxcvbn$

Screenshots or videos

No response

Solution

No response

Additional context

No response

Acknowledgements

reisxd commented 1 year ago

Have you changed your options.toml file with custom colors?

Cypher-Emm commented 1 year ago

I am also still getting the same error. Here are the logs https://pastebin.com/Vp4Sc1m7

lowendgamer commented 1 year ago

Have you changed your options.toml file with custom colors?

No, never did. Everything is on default. I'm too scared and incompetent to modify anything.

reisxd commented 1 year ago

Have you changed your options.toml file with custom colors?

No, never did. Everything is on default. I'm too scared and incompetent to modify anything.

Hmm, could you try deleting the options.toml file?

lowendgamer commented 1 year ago

Have you changed your options.toml file with custom colors?

No, never did. Everything is on default. I'm too scared and incompetent to modify anything.

Hmm, could you try deleting the options.toml file?

Yeah I did that too, but still same results.

reisxd commented 1 year ago

Have you changed your options.toml file with custom colors?

No, never did. Everything is on default. I'm too scared and incompetent to modify anything.

Hmm, could you try deleting the options.toml file?

Yeah I did that too, but still same results.

Hmm, weird. I have no idea then.

oSumAtrIX commented 1 year ago

You omitted any version of all the files which include a version in the command you ran and did not include reproduction steps, add them back.

lowendgamer commented 1 year ago

Finally installed it via magisk module. You can find it here: https://github.com/j-hc/revanced-magisk-module