Mobile mm strong Networking SDK Obfuscation error

Source: Internet
Author: User

1. Requirements: Access to mobile mm strong networking Payment SDK (V3.0.0), the game needs to be confused


2. Issue: Add a statement to prevent confusion by moving the MM document

-libraryjarslibs/mmbilling.3.0.0.jar-keepclass safiap.framework.** {*;} -keep class com.ccit.** {*;} -keep class ccit.** {*;}-keep class Mm.purchasesdk.**-keep class mm.purchasesdk.** {*;}

RePack the installation, error when initializing, errors log as follows

09-17 11:16:25.322:e/androidruntime (26825): JAVA.LANG.NOCLASSDEFFOUNDERROR:COM.CHINAMOBILE.MOBILEAGENT09-17 11:16:25.322:e/androidruntime (26825): at MM.PURCHASESDK.CORE.V.A (Unknown Source) 09-17 11:16:25.322:e/ Androidruntime (26825): at MM.PURCHASESDK.CORE.H.A (Unknown Source) 09-17 11:16:25.322:e/androidruntime (26825): at MM.PURCHASESDK.CORE.H.A (Unknown Source) 09-17 11:16:25.322:e/androidruntime (26825): at Mm.purchasesdk.core.i.handlemessage (Unknown Source) 09-17 11:16:25.322:e/androidruntime (26825): at Android.os.Handler.dispatchMessage (handler.java:99) 09-17 11:16:25.322:e/androidruntime (26825): at Android.os.Looper.loop (looper.java:153) 09-17 11:16:25.322:e/androidruntime (26825): at Android.os.HandlerThread.run (HANDLERTHREAD.JAVA:60)


3. Reason:

Java.lang.NoClassDefFoundError:com.chinaMobile.MobileAgent

Cannot find the definition of com.chinaMobile.MobileAgent this class, it should be confused, so keep this class a bit.


4. Workaround:

Add the following in the confusing file

-keep class Com.chinamobile*.**-keep class com.chinamobile*.**{*;}


5. Summary:

This issue should be an update to the SDK, but it is not documented in a timely manner. But mobile mm technology group to solve the problem of the speed is definitely a lever drop!

This article from the "Birds learn c change Dapeng" blog, declined reproduced!

Mobile mm strong Networking SDK Obfuscation error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.