ReVanced / revanced-cli

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

Issues with mounting #147

Closed fahimscirex closed 1 year ago

fahimscirex commented 1 year ago

Type

Error while running the CLI

Bug description

There is some problem with mounting in root variant, I'm not sure if this issue is related to device. My devices boot image doesn't allow patching while it's booted.

Steps to reproduce

installation in root variant

Relevant log output

revanced-cli -a youtube.apk -c -d 83e9e44b0406 -o output.apk -b patches.jar -m integrations.apk -e premium-heading,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: 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: microg-support 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: premium-heading 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 classes2.dex
INFO: Writing dex file classes.dex
INFO: Writing dex file classes4.dex
INFO: Writing dex file classes3.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 output_raw.apk to output_aligned.apk
INFO: Copying output_aligned.apk to output.apk
INFO: Cleaned up cache directory
INFO: Installing by mounting
10-05 06:43:21.712 22699 22699 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:21.716 22699 22699 I AndroidRuntime: Using default boot image
10-05 06:43:21.716 22699 22699 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:22.198 22721 22721 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:22.203 22721 22721 I AndroidRuntime: Using default boot image
10-05 06:43:22.203 22721 22721 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:23.072 22699 22699 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:23.254 22699 22699 D AndroidRuntime: Shutting down VM
10-05 06:43:23.310 22755 22755 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:23.314 22755 22755 I AndroidRuntime: Using default boot image
10-05 06:43:23.314 22755 22755 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:23.336 22721 22721 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:23.553 22721 22721 D AndroidRuntime: Shutting down VM
10-05 06:43:24.446 22755 22755 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:24.509 22788 22788 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:24.520 22788 22788 I AndroidRuntime: Using default boot image
10-05 06:43:24.520 22788 22788 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:24.642 22755 22755 D AndroidRuntime: Shutting down VM
10-05 06:43:25.496 22829 22829 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:25.500 22829 22829 I AndroidRuntime: Using default boot image
10-05 06:43:25.500 22829 22829 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:25.706 22788 22788 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:25.873 22788 22788 D AndroidRuntime: Shutting down VM
10-05 06:43:26.754 22829 22829 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:26.793 22947 22947 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:26.799 22947 22947 I AndroidRuntime: Using default boot image
10-05 06:43:26.799 22947 22947 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:26.919 22829 22829 D AndroidRuntime: Shutting down VM
10-05 06:43:27.749 22986 22986 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:27.756 22986 22986 I AndroidRuntime: Using default boot image
10-05 06:43:27.756 22986 22986 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:27.988 22947 22947 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:28.147 22947 22947 D AndroidRuntime: Shutting down VM
10-05 06:43:28.821 23030 23030 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:28.825 23030 23030 I AndroidRuntime: Using default boot image
10-05 06:43:28.825 23030 23030 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:29.019 22986 22986 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:29.186 22986 22986 D AndroidRuntime: Shutting down VM
10-05 06:43:29.894 23055 23055 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:29.898 23055 23055 I AndroidRuntime: Using default boot image
10-05 06:43:29.898 23055 23055 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:30.016 23030 23030 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:30.200 23030 23030 D AndroidRuntime: Shutting down VM
10-05 06:43:30.973 23055 23055 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:31.003 23088 23088 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:31.006 23088 23088 I AndroidRuntime: Using default boot image
10-05 06:43:31.007 23088 23088 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:31.167 23055 23055 D AndroidRuntime: Shutting down VM
10-05 06:43:31.967 22683 22683 D AndroidRuntime: Shutting down VM
10-05 06:43:31.969 22683 22683 E AndroidRuntime: FATAL EXCEPTION: main
10-05 06:43:31.969 22683 22683 E AndroidRuntime: Process: com.google.android.youtube, PID: 22683
10-05 06:43:31.969 22683 22683 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x0
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:223)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7666)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
10-05 06:43:31.969 22683 22683 E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:246)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.content.res.Resources.getDrawableForDensity(Resources.java:982)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.content.res.Resources.getDrawable(Resources.java:922)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at app.revanced.integrations.swipecontrols.views.SwipeControlsOverlayLayout.getDrawable(SwipeControlsOverlayLayout.kt:32)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at app.revanced.integrations.swipecontrols.views.SwipeControlsOverlayLayout.<init>(SwipeControlsOverlayLayout.kt:21)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at app.revanced.integrations.swipecontrols.SwipeControlsHostActivity.initialize(SwipeControlsHostActivity.kt:41)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at app.revanced.integrations.swipecontrols.SwipeControlsHostActivity.onCreate(SwipeControlsHostActivity.kt:4)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity.onCreate(PG:4)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7994)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7978)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
10-05 06:43:31.969 22683 22683 E AndroidRuntime:        ... 11 more
10-05 06:43:32.098 23112 23112 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-05 06:43:32.102 23112 23112 I AndroidRuntime: Using default boot image
10-05 06:43:32.102 23112 23112 I AndroidRuntime: Leaving lock profiling enabled
10-05 06:43:32.182 23088 23088 D AndroidRuntime: Calling main entry com.android.commands.content.Content
10-05 06:43:32.360 23088 23088 D AndroidRuntime: Shutting down VM
10-05 06:43:33.123 23112 23112 D AndroidRuntime: Calling main entry com.android.commands.content.Content
INFO: Stopped logging because the app was closed

Screenshots or videos

No response

Solution

No response

Additional context

No response

Acknowledgements

oSumAtrIX commented 1 year ago

You need to exclude patches separately with ´-e´.