Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassnotFoundException CryptogramInformationDecoder #22

Open
Nbole opened this issue Aug 25, 2023 · 1 comment
Open

ClassnotFoundException CryptogramInformationDecoder #22

Nbole opened this issue Aug 25, 2023 · 1 comment

Comments

@Nbole
Copy link

Nbole commented Aug 25, 2023

Hi!, i´m getting this error when i´m trying to decode ( using the "decode" method in RootDecoder class ). This seems to be an issue of ofuscation apparently.

It is possibly a bug ?.

           `Caused by: java.lang.ClassNotFoundException: io.github.binaryfoo.decoders.CryptogramInformationDecoder
                                                                                                	at java.lang.Class.classForName(Native Method)
                                                                                                	at java.lang.Class.forName(Class.java:454)
                                                                                                	at java.lang.Class.forName(Class.java:379)
                                                                                                	at io.github.binaryfoo.TagMetaData$Companion.load(TagMetaData.kt:86)
                                                                                                	at io.github.binaryfoo.TagMetaData.load(Unknown Source:2)
                                                                                                	at io.github.binaryfoo.EmvTags.<clinit>(EmvTags.java:9)
                                                                                                	at io.github.binaryfoo.RootDecoder.<clinit>(RootDecoder.kt:40) 
                                                                                                	at com.geopagos.cps.others.tlv.TlvHelper.getTlvs(Unknown Source:5) 
                                                                                                	at com.geopagos.reader.magicpos.wrapper.MagicPosServiceAdapter$magicPosCallback$1.processNfcTradeResult(MagicPosServiceAdapter.kt:772) 
                                                                                                	at com.geopagos.reader.magicpos.wrapper.MagicPosServiceAdapter$magicPosCallback$1.onDoPollCardResult(MagicPosServiceAdapter.kt:579) 
                                                                                                	at com.magicpos.xpos.MPOSService$31.run(MPOSService.java:7457) 
                                                                                                	at android.os.Handler.handleCallback(Handler.java:978) 
                                                                                                	at android.os.Handler.dispatchMessage(Handler.java:104) 
                                                                                                	at android.os.Looper.loopOnce(Looper.java:238) 
                                                                                                	at android.os.Looper.loop(Looper.java:357) 
                                                                                                	at android.app.ActivityThread.main(ActivityThread.java:8098) 
                                                                                                	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
                                                                                                	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026) 
                                                                                                Caused by: java.lang.ClassNotFoundException: Didn't find class "io.github.binaryfoo.decoders.CryptogramInformationDecoder" on path: DexPathList[[zip file "/data/app/~~PPOTaQP2cMfkagmY4r_CEQ==/`                               
@nestorsgarzonc
Copy link

You need to add in your proguard rules this line:
-keep class io.github.binaryfoo.** { *; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants