[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] trizex:
[MENTION=3208754]codeworkx[/MENTION]

Since I've updated to Pie, I've been having problems with my banking app, and I think It's the updated keymaster causing the issue

03-10 10:19:22.828 521 521 W /vendor/bin/hw/android.hardware.keymaster@3.0-service: Digest 1 requested but not supported by KM1 hal

After this event, the keystore throws numerous exceptions, and the app crashes.

03-10 10:19:22.854 521 521 W /vendor/bin/hw/android.hardware.keymaster@3.0-service: Digest 1 requested but not supported by KM1 hal
03-10 10:19:22.875 6931 6409 W KeyStore: KeyStore exception
03-10 10:19:22.875 6931 6409 W KeyStore: android.os.ServiceSpecificException: (code 7)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.os.Parcel.createException(Parcel.java:1964)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.os.Parcel.readException(Parcel.java:1918)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.os.Parcel.readException(Parcel.java:1868)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.security.IKeystoreService$Stub$Proxy.get(IKeystoreService.java:786)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.security.KeyStore.get(KeyStore.java:195)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.security.keystore.AndroidKeyStoreSpi.engineGetCertificateChain(AndroidKeyStoreSpi.java:118)
03-10 10:19:22.875 6931 6409 W KeyStore:	at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:484)
03-10 10:19:22.875 6931 6409 W KeyStore:	at java.security.KeyStore.getEntry(KeyStore.java:1560)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.o.b.b.a(Unknown Source:29)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.o.b.g.c(Unknown Source:82)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.o.b.a.a(Unknown Source:4)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.o.b.g.<init>(Unknown Source:12)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.lde.c.a(Unknown Source:140)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.lde.c.a(Unknown Source:33)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.lde.c.a(Unknown Source:160)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.lde.a.a(Unknown Source:2)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.lde.a.d(Unknown Source:12)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.remotemanagement.mcbpV1.CmsServiceImpl.insertDummyMobileKeySetId(Unknown Source:6)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.i.e$2.onRun(Unknown Source:42)
03-10 10:19:22.875 6931 6409 W KeyStore:	at com.mastercard.mcbp.o.e.a.doInBackground(Unknown Source:2)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.os.AsyncTask$2.call(AsyncTask.java:333)
03-10 10:19:22.875 6931 6409 W KeyStore:	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
03-10 10:19:22.875 6931 6409 W KeyStore:	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
03-10 10:19:22.875 6931 6409 W KeyStore:	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
03-10 10:19:22.875 6931 6409 W KeyStore:	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
03-10 10:19:22.875 6931 6409 W KeyStore:	at java.lang.Thread.run(Thread.java:764)
03-10 10:19:22.889 521 521 W /vendor/bin/hw/android.hardware.keymaster@3.0-service: Digest 1 requested but not supported by KM1 hal
03-10 10:19:22.905 521 521 I chatty : uid=1000(system) keymaster@3.0-s identical 1 line
03-10 10:19:22.925 521 521 W /vendor/bin/hw/android.hardware.keymaster@3.0-service: Digest 1 requested but not supported by KM1 hal
03-10 10:19:22.933 788 788 I keystore: -12 0
03-10 10:19:22.937 6931 6931 D AndroidRuntime: Shutting down VM
03-10 10:19:22.937 6931 6931 E AndroidRuntime: FATAL EXCEPTION: main
03-10 10:19:22.937 6931 6931 E AndroidRuntime: Process: com.mastercard.mcbpsampleui.mcbpv1.hce, PID: 6931
03-10 10:19:22.937 6931 6931 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.mastercard.mcbp.remotemanagement.mcbpV1.CmsActivationData.getCmsMpaId()' on a null object reference
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at com.mastercard.mcbp.i.e$2.onPostExecute(Unknown Source:24)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at com.mastercard.mcbp.o.e.a.onPostExecute(Unknown Source:7)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at android.os.AsyncTask.finish(AsyncTask.java:695)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at android.os.AsyncTask.access$600(AsyncTask.java:180)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:106)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6723)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
03-10 10:19:22.937 6931 6931 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
03-10 10:19:22.949 5651 13654 W ActivityManager: Force finishing activity com.mastercard.mcbpsampleui.mcbpv1.hce/com.mastercard.mcbpsampleui.activity.ActivationActivity
03-10 10:19:22.955 5651 6440 W DropBoxManagerService: Dropping: data_app_crash (1097 > 0 bytes)
03-10 10:19:22.972 5651 5677 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
03-10 10:19:22.989 5651 5677 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
03-10 10:19:22.990 6931 6931 I Process : Sending signal. PID: 6931 SIG: 9
03-10 10:19:23.049 5651 13654 I ActivityManager: Process com.mastercard.mcbpsampleui.mcbpv1.hce (pid 6931) has died: vis TOP

Reverting to Oreo, all is fine, so I dug around as much as I could, and found others referencing similar issues on AOSP based custom roms, but I also found this commit that seems to me, is referencing the issue at hand

https://android.googlesource.com/platform/system/keymaster/+/4dc3d17c60912bfe91554416fe3297258ecc16c6

I'm a complete noob in regards to programming, so forgive me if I'm totally wrong, but if it is a fix, could you implement it?

Thank you for all your hard work keeping our device alive :good::good: