GMapsParser
GMapsParser copied to clipboard
support android 12
Hi 3v1n0,
I am trying to use this for a hobby project. But I am not able to get it working in android 12 . I am try approx. all method but those method does not work Could you please provide help
@3v1n0 I have a fix for Android 12.
Fix is using System UI package name for getting app context. Change is quite simple, just replace initialisation of mAppSrcCx in NavigationNotification class:
protected var mAppSrcCx: Context = mCx.createPackageContext(
if (Build.VERSION.SDK_INT >= 31) "com.android.systemui" else sbn.packageName,
Context.CONTEXT_IGNORE_SECURITY,
)
CC @akku7239
@3v1n0 @szwajda I created PR with fix: https://github.com/3v1n0/GMapsParser/pull/8