KieronQuinn / AmbientMusicMod

Port of Now Playing from Pixels to other Android devices
GNU General Public License v3.0
1.93k stars 41 forks source link

Crash on Android 10 (ContentProvider) #66

Closed Darkmagister closed 2 years ago

Darkmagister commented 2 years ago

hello, i've installed the app after installing now playing it keep saying that now playing it crashed, and after few minutes try again few time, keep saying app crashed unfortunately the message disappear immediately and i don't know what to do ambient music mod 2.0.2 now playing 1.0.1

android 10 miui 12.1 mi mix 2s

KieronQuinn commented 2 years ago

Please provide a log, I can't do anything without that

Darkmagister commented 2 years ago

i don't really know how to do it, because when the popup of crashed app appear it will disappear immediately and i can not click on show details

KieronQuinn commented 2 years ago

https://www.xda-developers.com/how-to-take-logs-android/

I need a system log

Darkmagister commented 2 years ago

here i think is the error

06-23 18:19:54.438 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.448 8170 8170 I chatty : uid=10976(com.google.android.youtube) identical 6 lines 06-23 18:19:54.449 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.453 22542 22542 I Perf : Connecting to perf service. 06-23 18:19:54.454 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.459 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.459 22542 22542 W ResourceType: CREATING STRING CACHE OF 176 bytes 06-23 18:19:54.461 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.476 8170 8170 I chatty : uid=10976(com.google.android.youtube) identical 11 lines 06-23 18:19:54.477 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.492 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed) 06-23 18:19:54.493 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) 06-23 18:19:54.493 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->getInt(J)I (greylist, linking, allowed) 06-23 18:19:54.493 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed) 06-23 18:19:54.493 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) 06-23 18:19:54.493 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) 06-23 18:19:54.494 22542 22542 W xelambientmusi: Accessing hidden method Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe; (greylist,core-platform-api, reflection, allowed) 06-23 18:19:54.499 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.607 22542 22542 W linker : Warning: "/data/app/com.kieronquinn.app.pixelambientmusic-cejtkGPsEcYzaDEhJ4jlNA==/lib/arm64/libc++_shared.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) 06-23 18:19:54.607 22542 22542 W linker : Warning: "/data/app/com.kieronquinn.app.pixelambientmusic-cejtkGPsEcYzaDEhJ4jlNA==/lib/arm64/libc++_shared.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) 06-23 18:19:54.619 22542 22542 I AliuHook: lsplant init finished 06-23 18:19:54.676 561 561 I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 06-23 18:19:54.677 561 561 I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 06-23 18:19:54.677 7732 7732 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.clearcut.service.START dat=chimera-action:com.google.android.gms.clearcut.service.START cmp=com.google.android.gms/.chimera.PersistentDirectBootAwareApiService } 06-23 18:19:54.681 561 561 I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 06-23 18:19:54.682 561 561 I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 06-23 18:19:54.682 7732 7732 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.gmscompliance.service.START dat=chimera-action:com.google.android.gms.gmscompliance.service.START cmp=com.google.android.gms/.chimera.PersistentBoundBrokerService } 06-23 18:19:54.682 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.710 8556 15728 W BpBinder: Slow Binder: BpBinder transact took 1220 ms, interface=android.app.IActivityManager, code=20 oneway=false 06-23 18:19:54.712 8170 8170 I chatty : uid=10976(com.google.android.youtube) identical 22 lines 06-23 18:19:54.713 8170 8170 D AudioManager: getStreamVolume isRestricted mode = 0 06-23 18:19:54.725 22542 22565 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.) 06-23 18:19:54.725 22542 22565 E JavaBinder: java.lang.NoSuchMethodError: No virtual method requireContext()Landroid/content/Context; in class Lcom/kieronquinn/app/pixelambientmusic/providers/LevelDbProvider; or its super classes (declaration of 'com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider' appears in /data/app/com.kieronquinn.app.pixelambientmusic-cejtkGPsEcYzaDEhJ4jlNA==/base.apk!classes14.dex) 06-23 18:19:54.725 22542 22565 E JavaBinder: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.getLevelDbFiles(LevelDbProvider.kt:170) 06-23 18:19:54.725 22542 22565 E JavaBinder: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.getLevelDbCount(LevelDbProvider.kt:146) 06-23 18:19:54.725 22542 22565 E JavaBinder: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.getCount(LevelDbProvider.kt:127) 06-23 18:19:54.725 22542 22565 E JavaBinder: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.query(LevelDbProvider.kt:84) 06-23 18:19:54.725 22542 22565 E JavaBinder: at android.content.ContentProvider.query(Unknown Source:0) 06-23 18:19:54.725 22542 22565 E JavaBinder: at android.content.ContentProvider.query(Unknown Source:45) 06-23 18:19:54.725 22542 22565 E JavaBinder: at android.content.ContentProvider$Transport.query(Unknown Source:98) 06-23 18:19:54.725 22542 22565 E JavaBinder: at android.content.ContentProviderNative.onTransact(Unknown Source:658) 06-23 18:19:54.725 22542 22565 E JavaBinder: at android.os.Binder.execTransactInternal(Unknown Source:75) 06-23 18:19:54.725 22542 22565 E JavaBinder: at android.os.Binder.execTransact(Unknown Source:16) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: FATAL EXCEPTION: Binder:22542_3 06-23 18:19:54.726 22542 22565 E AndroidRuntime: Process: com.kieronquinn.app.pixelambientmusic, PID: 22542 06-23 18:19:54.726 22542 22565 E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method requireContext()Landroid/content/Context; in class Lcom/kieronquinn/app/pixelambientmusic/providers/LevelDbProvider; or its super classes (declaration of 'com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider' appears in /data/app/com.kieronquinn.app.pixelambientmusic-cejtkGPsEcYzaDEhJ4jlNA==/base.apk!classes14.dex) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.getLevelDbFiles(LevelDbProvider.kt:170) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.getLevelDbCount(LevelDbProvider.kt:146) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.getCount(LevelDbProvider.kt:127) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at com.kieronquinn.app.pixelambientmusic.providers.LevelDbProvider.query(LevelDbProvider.kt:84) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at android.content.ContentProvider.query(Unknown Source:0) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at android.content.ContentProvider.query(Unknown Source:45) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at android.content.ContentProvider$Transport.query(Unknown Source:98) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at android.content.ContentProviderNative.onTransact(Unknown Source:658) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at android.os.Binder.execTransactInternal(Unknown Source:75) 06-23 18:19:54.726 22542 22565 E AndroidRuntime: at android.os.Binder.execTransact(Unknown Source:16)

KieronQuinn commented 2 years ago

Thanks, looks like an oversight on my part with old APIs.

KieronQuinn commented 2 years ago

Fixed in 2.0.3