kitadai31 / revanced-patches-android6-7

YouTube ReVanced for Android 6.0-7.1
GNU General Public License v3.0
195 stars 15 forks source link

bug: Youtube stop playing when resume from home screen/ lock screen/ youtube settings #30

Closed vuongvan closed 1 year ago

vuongvan commented 1 year ago

Type

Error at runtime

Bug description

Using Samsung Galaxy J2 Prime (android 6.0.1), Youtube stop playing when resume from home screen/ lock screen or youtube settings

Steps to reproduce

Play any video, return home screen, lock screen, or open youtube setting. when resume/ open youtube again, youtube stop playing video.

Relevant log output

INFO: Reading dex files 
INFO: Decoding AndroidManifest.xml only, because resources are not needed 
INFO: Skipping custom-branding-icon-afn-blue: Manually excluded 
INFO: Skipping custom-branding-icon-afn-red: Manually excluded 
INFO: Skipping custom-branding-icon-revancify: Manually excluded 
INFO: Skipping custom-branding-name: Manually excluded 
INFO: Skipping force-premium-heading: Excluded by default 
INFO: Skipping materialyou: Manually excluded 
INFO: Skipping return-youtube-dislike: Manually excluded 
INFO: Skipping theme: Manually excluded 
INFO: Merging temp/revanced-integrations-0.96.4-v0.96.4.apk 
INFO: Deleting existing resource cache directory 
INFO: Decoding resources 
INFO: client-spoof succeeded 
INFO: custom-seekbar-color succeeded 
INFO: custom-video-speed succeeded 
INFO: default-video-quality succeeded 
INFO: default-video-speed succeeded 
INFO: disable-haptic-feedback succeeded 
INFO: enable-external-browser succeeded 
INFO: enable-minimized-playback succeeded 
INFO: enable-old-quality-layout succeeded 
INFO: enable-open-links-directly succeeded 
INFO: enable-seekbar-tapping succeeded 
INFO: enable-tablet-miniplayer succeeded 
INFO: enable-wide-searchbar succeeded 
INFO: force-vp9-codec succeeded 
INFO: header-switch succeeded 
INFO: hide-auto-captions succeeded 
INFO: hide-auto-player-popup-panels succeeded 
INFO: hide-autoplay-button succeeded 
INFO: hide-button-container succeeded 
INFO: hide-cast-button succeeded 
INFO: hide-channel-watermark succeeded 
INFO: hide-comment-component succeeded 
INFO: hide-create-button succeeded 
INFO: hide-crowdfunding-box succeeded 
INFO: hide-email-address succeeded 
INFO: hide-endscreen-cards succeeded 
INFO: hide-endscreen-overlay succeeded 
INFO: hide-filmstrip-overlay succeeded 
INFO: hide-firsttime-background-notification succeeded 
INFO: hide-flyout-panel succeeded 
INFO: hide-fullscreen-panels succeeded 
INFO: hide-general-ads succeeded 
INFO: hide-info-cards succeeded 
INFO: hide-live-chat-button succeeded 
INFO: hide-mix-playlists succeeded 
INFO: hide-next-prev-button succeeded 
INFO: hide-player-captions-button succeeded 
INFO: hide-player-overlay-filter succeeded 
INFO: hide-shorts-button succeeded 
INFO: hide-shorts-component succeeded 
INFO: hide-shorts-navbar succeeded 
INFO: hide-snackbar succeeded 
INFO: hide-startup-shorts-player succeeded 
INFO: hide-stories succeeded 
INFO: hide-suggested-actions succeeded 
INFO: hide-time-and-seekbar succeeded 
INFO: hide-tooltip-content succeeded 
INFO: hide-video-ads succeeded 
INFO: layout-switch succeeded 
INFO: microg-support succeeded 
INFO: optimize-resource succeeded 
INFO: overlay-buttons succeeded 
INFO: patch-options succeeded 
INFO: protobuf-spoof succeeded 
INFO: remove-player-button-background succeeded 
INFO: settings succeeded 
INFO: sponsorblock succeeded 
INFO: spoof-app-version succeeded 
INFO: swipe-controls succeeded 
INFO: switch-create-notification succeeded 
INFO: translations succeeded 
INFO: Compiling resources 
INFO: Writing modified dex files 
INFO: Aligning youtube-stock-v17.34.36-all.apk to revanced-v17.34.36-p2.160.4_aligned.apk 
INFO: Signing revanced-v17.34.36-p2.160.4_aligned.apk to revanced-v17.34.36-p2.160.4_signed.apk

Screenshots or videos

No response

Solution

No response

Additional context

CLI: 2.21.2 (inotia00's fork)
Patches version: 2.160.4
Integrations version: 0.96.4

command i used: java -jar temp/revanced-cli-2.21.2-all.jar --rip-lib x86 --rip-lib x86_64 -c -a temp/youtube-stock-v17.34.36-all.apk -o build/revanced-v17.34.36-p2.160.4.apk -b temp/revanced-patches-2.160.4.jar --keystore=ks.keystore --experimental -e custom-branding-name -e custom-package-name -e theme -e debugging -e materialyou -e premium-heading -e custom-branding-icon-afn-blue -e custom-branding-icon-revancify -e custom-branding-icon-afn-red -e return-youtube-dislike -m temp/revanced-integrations-0.96.4-v0.96.4.apk

Device Environment

Android 6.0.1 (SamSung Galayxy J2 Prime)

Acknowledgements

kitadai31 commented 1 year ago

That problem occurs when the app is logged out. If you want to use backgrownd playback, login to Google account.

vuongvan commented 1 year ago

Thanks man. It works.