Malopieds / InnerTune

A fork of InnerTune, a Material 3 YouTube Music client for Android
GNU General Public License v3.0
426 stars 21 forks source link

Material You does not work #256

Closed PhilippKosarev closed 2 weeks ago

PhilippKosarev commented 1 month ago

Checklist

Steps to reproduce the bug

Open the app

Expected behavior

The app's colour palette should adapt to system's colour palette.

Actual behavior

Default blue.

Screenshots/Screen recordings

No response

Logs

Logs

``` $ adb logcat --pid $(adb shell pidof -s com.malopieds.innertune) --------- beginning of main 07-23 17:47:00.332 25673 25673 I pieds.innertune: Using CollectorTypeCMC GC. 07-23 17:47:00.337 25673 25673 E pieds.innertune: Not starting debugger since process cannot load the jdwp agent. 07-23 17:47:00.342 25673 25673 D ActivityThread: setConscryptValidator 07-23 17:47:00.342 25673 25673 D ActivityThread: setConscryptValidator - put 07-23 17:47:00.353 25673 25673 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10330; state: ENABLED 07-23 17:47:00.353 25673 25673 D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 10330; state: ENABLED 07-23 17:47:00.365 25673 25673 D nativeloader: Configuring clns-4 for other apk /system/framework/org.apache.http.legacy.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~GReAedsKybTTPhnC4M03yw==/com.malopieds.innertune-lhufhEM9jCb8X7ZV6REhpA==/lib/arm64:/data/app/~~GReAedsKybTTPhnC4M03yw==/com.malopieds.innertune-lhufhEM9jCb8X7ZV6REhpA==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.malopieds.innertune 07-23 17:47:00.365 25673 25673 D nativeloader: Extending system_exposed_libraries: libhumantracking.arcsoft.so:libPortraitDistortionCorrection.arcsoft.so:libPortraitDistortionCorrectionCali.arcsoft.so:libface_landmark.arcsoft.so:libFacialStickerEngine.arcsoft.so:libveengine.arcsoft.so:liblow_light_hdr.arcsoft.so:libhigh_dynamic_range.arcsoft.so:libobjectcapture_jni.arcsoft.so:libobjectcapture.arcsoft.so:libFacialAttributeDetection.arcsoft.so:libaudiomirroring_jni.audiomirroring.samsung.so:libBeauty_v4.camera.samsung.so:libexifa.camera.samsung.so:libjpega.camera.samsung.so:libOpenCv.camera.samsung.so:libImageScreener.camera.samsung.so:libMyFilter.camera.samsung.so:libtensorflowLite.myfilter.camera.samsung.so:libtensorflowlite_inference_api.myfilter.camera.samsung.so:libHIDTSnapJNI.camera.samsung.so:libSmartScan.camera.samsung.so:libRectify.camera.samsung.so:libDocRectifyWrapper.camera.samsung.so:libUltraWideDistortionCorrection.camera.samsung.so:libFace_Landmark_API.camera.samsung.so:libHpr_RecGAE_cvFeature_v1.0.camera.samsung.so:libHprFace_GAE_api.camera 07-23 17:47:00.386 25673 25673 D nativeloader: Configuring clns-5 for other apk /data/app/~~GReAedsKybTTPhnC4M03yw==/com.malopieds.innertune-lhufhEM9jCb8X7ZV6REhpA==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~GReAedsKybTTPhnC4M03yw==/com.malopieds.innertune-lhufhEM9jCb8X7ZV6REhpA==/lib/arm64:/data/app/~~GReAedsKybTTPhnC4M03yw==/com.malopieds.innertune-lhufhEM9jCb8X7ZV6REhpA==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.malopieds.innertune 07-23 17:47:00.406 25673 25673 V GraphicsEnvironment: Currently set values for: 07-23 17:47:00.406 25673 25673 V GraphicsEnvironment: angle_gl_driver_selection_pkgs=[] 07-23 17:47:00.406 25673 25673 V GraphicsEnvironment: angle_gl_driver_selection_values=[] 07-23 17:47:00.406 25673 25673 V GraphicsEnvironment: ANGLE GameManagerService for com.malopieds.innertune: false 07-23 17:47:00.406 25673 25673 V GraphicsEnvironment: com.malopieds.innertune is not listed in per-application setting 07-23 17:47:00.407 25673 25673 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported. 07-23 17:47:00.430 25673 25673 W System.err: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 07-23 17:47:00.430 25673 25673 W System.err: SLF4J: Defaulting to no-operation (NOP) logger implementation 07-23 17:47:00.430 25673 25673 W System.err: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 07-23 17:47:00.520 25673 25673 D ConnectivityManager: StackLog: [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4412)] [android.net.ConnectivityManager.registerDefaultNetworkCallbackForUid(ConnectivityManager.java:4976)] [android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4943)] [android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4917)] [K1.f.b(SourceFile:51)] [J1.i.(SourceFile:99)] [E3.g.(SourceFile:130)] [w3.q.get(SourceFile:175)] [f4.a.get(SourceFile:14)] [E3.k.onCreate(SourceFile:62)] [com.malopieds.innertune.playback.MusicService.onCreate(SourceFile:3)] [android.app.ActivityThread.handleCreateService(ActivityThread.java:5098)] [android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)] [android.app.ActivityThread$H.handleMessage(ActivityThread.java:2506)] 07-23 17:47:00.528 25673 25673 I ExoPlayerImpl: Init 30a5a72 [AndroidXMedia3/1.3.1] [a25x, SM-A256B, samsung, 34] 07-23 17:47:00.568 25673 25673 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10330; state: ENABLED 07-23 17:47:00.572 25673 25673 W MediaSessionCompat: Couldn't find a unique registered media button receiver in the given context. 07-23 17:47:01.022 25673 25673 D OpenGLRenderer: HWUI - treat SMPTE_170M as sRGB 07-23 17:47:01.043 25673 25673 I DecorView: setWindowBackground: isPopOver=false color=ffffffff d=android.graphics.drawable.ColorDrawable@1067b82 07-23 17:47:01.079 25673 25673 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10330; state: DISABLED 07-23 17:47:01.083 25673 25739 D NativeCustomFrequencyManager: [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager() 07-23 17:47:01.094 25673 25673 I InsetsController: onStateChanged: host=com.malopieds.innertune/com.malopieds.innertune.MainActivity, from=android.view.ViewRootImpl.setView:1753, state=InsetsState: {mDisplayFrame=Rect(0, 0 - 1080, 2340), mDisplayCutout=DisplayCutout{insets=Rect(0, 77 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(477, 0 - 603, 77), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 physicalDisplayWidth=1080 physicalDisplayHeight=2340 density={2.8125} cutoutSpec={M 0,0 H -22.4‬ V 27.37777777777778‬ H 22.4‬ V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=0, center=Point(0, 0)}, RoundedCorner{position=TopRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomLeft, radius=0, center=Point(0, 0)}]} mRoundedCornerFrame=Rect(0, 0 - 1080, 2340), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(948, 0 - 1080, 77) rotation=0}, mDisplayShape=DisplayShape{ spec=-311912193 displayWidth=1080 displayHeight=2340 physicalPixelDisplaySizeRatio=1.0 rotation=0 offsetX=0 offsetY=0 scale=1.0}, mSources= { InsetsSource: {ad910000 mType=statusBars mFrame=[0,0][1080,77] mVisible=true mFlags=[]}, InsetsSource: {ad910005 mType=mandatorySystemGestures mFrame=[0,0][1080,113] mVisible=true mFlags=[]}, InsetsSource: {ad910006 mType=tappableElement mFrame=[0,0][1080,77] mVisible=true mFlags=[]}, InsetsSource: {3 mType=ime mFrame=[0,0][0,0] mVisible=false mFlags=[]}, InsetsSource: {27 mType=displayCutout mFrame=[0,0][1080,77] mVisible=true mFlags=[]}, InsetsSource: {4f170001 mType=navigationBars mFrame=[0,2295][1080,2340] mVisible=true mFlags=[SUPPRESS_SCRIM]}, InsetsSource: {4f170004 mType=systemGestures mFrame=[0,0][90,2340] mVisible=true mFlags=[]}, InsetsSource: {4f170005 mType=mandatorySystemGestures mFrame=[0,2244][1080,2340] mVisible=true mFlags=[]}, InsetsSource: {4f170006 mType=tappableElement mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {4f170024 mType=systemGestures mFrame=[990,0][1080,2340] mVisible=true mFlags=[]} } 07-23 17:47:01.095 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: synced displayState. AttachInfo displayState=2 07-23 17:47:01.097 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: setView = com.android.internal.policy.DecorView@758c932 TM=true 07-23 17:47:01.097 25673 25673 I IDS_TAG : Starting IDS observe window 07-23 17:47:01.098 25673 25673 I IDS_TAG : Getting Shared Preference for com.malopieds.innertune.App@6b49dd4 uid = 10330 07-23 17:47:01.099 25673 25673 I IDS_TAG : App com.malopieds.innertune.App@6b49dd4 has not finished training 07-23 17:47:01.101 25673 25739 D OpenGLRenderer: HWUI - treat SMPTE_170M as sRGB 07-23 17:47:01.101 25673 25673 I IDS_TAG : Closing IDS observe window 07-23 17:47:01.101 25673 25673 I IDS_TAG : Getting Shared Preference for com.malopieds.innertune.App@6b49dd4 uid = 10330 07-23 17:47:01.101 25673 25673 I IDS_TAG : IDS count updated to 5 for com.malopieds.innertune.App@6b49dd4 07-23 17:47:01.227 25673 25673 I BLASTBufferQueue_Java: new BLASTBufferQueue, mName= ViewRootImpl@df8c8a6[MainActivity] mNativeObject= 0xb400007571054d50 sc.mNativeObject= 0xb4000074110410d0 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:3028 android.view.ViewRootImpl.relayoutWindow:10131 android.view.ViewRootImpl.performTraversals:4110 android.view.ViewRootImpl.doTraversal:3288 android.view.ViewRootImpl$TraversalRunnable.run:11344 android.view.Choreographer$CallbackRecord.run:1689 android.view.Choreographer$CallbackRecord.run:1698 android.view.Choreographer.doCallbacks:1153 android.view.Choreographer.doFrame:1079 android.view.Choreographer$FrameDisplayEventReceiver.run:1646 07-23 17:47:01.227 25673 25673 I BLASTBufferQueue_Java: update, w= 1080 h= 2340 mName = ViewRootImpl@df8c8a6[MainActivity] mNativeObject= 0xb400007571054d50 sc.mNativeObject= 0xb4000074110410d0 format= -1 caller= android.graphics.BLASTBufferQueue.:89 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:3028 android.view.ViewRootImpl.relayoutWindow:10131 android.view.ViewRootImpl.performTraversals:4110 android.view.ViewRootImpl.doTraversal:3288 android.view.ViewRootImpl$TraversalRunnable.run:11344 07-23 17:47:01.230 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) relayoutAsync=false req=(1080,2340)0 dur=17 res=0x403 s={true 0xb40000743107dbe0} ch=true seqId=0 07-23 17:47:01.230 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: performConfigurationChange setNightDimText nightDimLevel=0 07-23 17:47:01.230 25673 25673 D ViewRootImpl@df8c8a6[MainActivity]: mThreadedRenderer.initialize() mSurface={isValid=true 0xb40000743107dbe0} hwInitialized=true 07-23 17:47:01.236 25673 25673 D ViewRootImpl@df8c8a6[MainActivity]: reportNextDraw android.view.ViewRootImpl.performTraversals:4718 android.view.ViewRootImpl.doTraversal:3288 android.view.ViewRootImpl$TraversalRunnable.run:11344 android.view.Choreographer$CallbackRecord.run:1689 android.view.Choreographer$CallbackRecord.run:1698 07-23 17:47:01.236 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: Setup new sync=wmsSync-ViewRootImpl@df8c8a6[MainActivity]#0 07-23 17:47:01.236 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: Creating new active sync group ViewRootImpl@df8c8a6[MainActivity]#1 07-23 17:47:01.247 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: registerCallbacksForSync syncBuffer=false 07-23 17:47:01.263 25673 25774 I ViewRootImpl@df8c8a6[MainActivity]: Received frameDrawingCallback syncResult=0 frameNum=1. 07-23 17:47:01.263 25673 25774 I ViewRootImpl@df8c8a6[MainActivity]: mWNT: t=0xb4000074c1065390 mBlastBufferQueue=0xb400007571054d50 fn= 1 mRenderHdrSdrRatio=1.0 caller= android.view.ViewRootImpl$8.onFrameDraw:13841 android.view.ThreadedRenderer$1.onFrameDraw:792 07-23 17:47:01.263 25673 25774 I ViewRootImpl@df8c8a6[MainActivity]: Setting up sync and frameCommitCallback 07-23 17:47:01.294 25673 25739 I BLASTBufferQueue: [ViewRootImpl@df8c8a6[MainActivity]#0](f:0,a:0,s:0) onFrameAvailable the first frame is available 07-23 17:47:01.295 25673 25739 I ViewRootImpl@df8c8a6[MainActivity]: Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true 07-23 17:47:01.296 25673 25739 D OpenGLRenderer: CFMS:: SetUp Pid : 25673 Tid : 25739 07-23 17:47:01.296 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: reportDrawFinished seqId=0 07-23 17:47:01.340 25673 25673 D CompatibilityChangeReporter: Compat change id reported: 289878283; UID 10330; state: ENABLED 07-23 17:47:01.382 25673 25781 D TrafficStats: tagSocket(102) with statsTag=0xffffffff, statsUid=-1 07-23 17:47:01.455 25673 25673 D CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10330; state: ENABLED 07-23 17:47:01.502 25673 25673 I InsetsSourceConsumer: applyRequestedVisibilityToControl: visible=true, type=navigationBars, host=com.malopieds.innertune/com.malopieds.innertune.MainActivity 07-23 17:47:01.502 25673 25673 I InsetsSourceConsumer: applyRequestedVisibilityToControl: visible=true, type=statusBars, host=com.malopieds.innertune/com.malopieds.innertune.MainActivity 07-23 17:47:01.543 25673 25673 I ViewRootImpl@df8c8a6[MainActivity]: handleWindowFocusChanged: 1 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0 07-23 17:47:01.544 25673 25673 D ViewRootImpl@df8c8a6[MainActivity]: mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb40000743107dbe0} 07-23 17:47:01.544 25673 25673 D InputMethodManagerUtils: startInputInner - Id : 0 07-23 17:47:01.544 25673 25673 I InputMethodManager: startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus 07-23 17:47:01.565 25673 25673 D InputMethodManagerUtils: startInputInner - Id : 0 07-23 17:47:01.587 25673 25673 I InsetsSourceConsumer: applyRequestedVisibilityToControl: visible=false, type=ime, host=com.malopieds.innertune/com.malopieds.innertune.MainActivity 07-23 17:47:01.626 25673 25673 W System.err: m4.d: Client request(POST https://music.youtube.com/youtubei/v1/browse?key=AIzaSyC9XL3ZjWddXya6X74dJoCTL-WEYFDNX30&prettyPrint=false) invalid: 401 . Text: "{ 07-23 17:47:01.626 25673 25673 W System.err: "error": { 07-23 17:47:01.626 25673 25673 W System.err: "code": 401, 07-23 17:47:01.626 25673 25673 W System.err: "message": "You must be signed in to perform this operation.", 07-23 17:47:01.626 25673 25673 W System.err: "errors": [ 07-23 17:47:01.626 25673 25673 W System.err: { 07-23 17:47:01.626 25673 25673 W System.err: "message": "You must be signed in to perform this operation.", 07-23 17:47:01.626 25673 25673 W System.err: "domain": "global", 07-23 17:47:01.626 25673 25673 W System.err: "reason": "unauthorized" 07-23 17:47:01.626 25673 25673 W System.err: } 07-23 17:47:01.626 25673 25673 W System.err: ], 07-23 17:47:01.626 25673 25673 W System.err: "status": "UNAUTHENTICATED" 07-23 17:47:01.626 25673 25673 W System.err: } 07-23 17:47:01.626 25673 25673 W System.err: } 07-23 17:47:01.626 25673 25673 W System.err: " 07-23 17:47:01.626 25673 25673 W System.err: at m4.h.x(SourceFile:243) 07-23 17:47:01.626 25673 25673 W System.err: at b5.a.m(SourceFile:9) 07-23 17:47:01.626 25673 25673 W System.err: at s5.J.run(SourceFile:95) 07-23 17:47:01.627 25673 25673 W System.err: at s5.V.y0(SourceFile:24) 07-23 17:47:01.627 25673 25673 W System.err: at y5.i.m(SourceFile:75) 07-23 17:47:01.627 25673 25673 W System.err: at N4.k.g(SourceFile:25) 07-23 17:47:01.627 25673 25673 W System.err: at N4.k.f(SourceFile:16) 07-23 17:47:01.627 25673 25673 W System.err: at N4.j.m(SourceFile:23) 07-23 17:47:01.627 25673 25673 W System.err: at b5.a.m(SourceFile:32) 07-23 17:47:01.627 25673 25673 W System.err: at s5.J.run(SourceFile:95) 07-23 17:47:01.627 25673 25673 W System.err: at android.os.Handler.handleCallback(Handler.java:958) 07-23 17:47:01.627 25673 25673 W System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 07-23 17:47:01.627 25673 25673 W System.err: at android.os.Looper.loopOnce(Looper.java:230) 07-23 17:47:01.627 25673 25673 W System.err: at android.os.Looper.loop(Looper.java:319) 07-23 17:47:01.627 25673 25673 W System.err: at android.app.ActivityThread.main(ActivityThread.java:8919) 07-23 17:47:01.627 25673 25673 W System.err: at java.lang.reflect.Method.invoke(Native Method) 07-23 17:47:01.627 25673 25673 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) 07-23 17:47:01.627 25673 25673 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) 07-23 17:47:02.017 25673 25701 D ConnectivityManager: StackLog: [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4412)] [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4454)] [android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4836)] [android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4806)] [X2.h.(SourceFile:30)] [o5.r.k(SourceFile:57)] [c3.k.a(SourceFile:24)] [android.support.v4.media.session.t.r(SourceFile:45)] [T2.i.b(SourceFile:157)] [T2.g.x(SourceFile:38)] [b5.a.m(SourceFile:9)] [s5.J.run(SourceFile:95)] [android.support.v4.media.g.run(SourceFile:28)] [z5.i.run(SourceFile:3)] [z5.a.run(SourceFile:92)] 07-23 17:47:02.309 25673 25878 D TrafficStats: tagSocket(147) with statsTag=0xffffffff, statsUid=-1 07-23 17:47:06.398 25673 25907 D ProfileInstaller: Skipping profile installation for com.malopieds.innertune 07-23 17:47:10.382 25673 25684 W System : A resource failed to call AbstractCursor.close. ```

InnerTune version

0.5.8

Android version

Android 14

Additional information

OneUI Version: 6.1

Material You works in the original InnerTune (by Zion Huang).

kangurek-kao commented 1 month ago

Same thing on my Samsung Galaxy A33 5G (newest update, OneUI 6.1 too)

Malopieds commented 1 month ago

Works for me, it definitely changes colors based on the wallpaper, can you show me picture perhaps of the original and mine ?

kangurek-kao commented 1 month ago

Screenshot_20240723_204236_One UI Home My wallpaper

Screenshot_20240723_204148_InnerTune InnerTune 0.5.3 (fresh install)

Screenshot_20240723_204227_InnerTune InnerTune 0.5.8 (fresh install)

Malopieds commented 1 month ago

Show me your appearance settings?

PhilippKosarev commented 1 month ago

ResizedImage_2024-07-23_20-27-24_1

Malopieds commented 1 month ago

image Weird, this is the fresh install in an emulator. All I use in my devices is stock android without anything with it, might come from this.

PhilippKosarev commented 1 month ago

This has likely to do with OneUI specifically. Could this be an issue with permissions or sandboxing?

Malopieds commented 1 month ago

Could this be an issue with permissions or sandboxing

Seems weird since it's the same base as the original one, that works :/

thornySoap commented 1 month ago

This is a known bug for ONE UI 6 and likely something on Samsung's side. I switched to Lineage OS now but before it was really annoying :grimacing: . @PhilippKosarev Innertune shouldn't be the only app where this occurs? Probably slowly all apps that get updates are going to update their dependencies some time.

PhilippKosarev commented 1 month ago

Yeah, I'm guessing the Fossify app suite has made a workaround for this since all of their apps work fine. If that is the case maybe that bit of code could be borrowed until Samsung does something.

Malopieds commented 2 weeks ago

Do you still have this issue ?

PhilippKosarev commented 2 weeks ago

Unfortunately, yes, even with the latest app and system updates. But since this is not an issue with the app I guess it is best to close this issue.