General questions

Answered

How to realize myscript Android Proguard code confusion?

Dear expert,

After adding obfuscation rules [-keep public class com.myscript. * * {*;}], The code will still report an error when running, and the SDK initialization will report an error.

How do experts add confusion rules for myscript, or how should confusion be configured?

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2022-07-12 08:55:15.105 9251-9291/com.tcl.whiteboard A/.tcl.whiteboar: runtime.cc:655] at android.os.Handler.dispatchMessage(Handler.java:99)

    runtime.cc:655] at android.os.Looper.loop(Looper.java:223)

    runtime.cc:655] at android.os.HandlerThread.run(HandlerThread.java:67)

    runtime.cc:655] Pending exception java.lang.ClassNotFoundException: com.myscript.iink.ContentTree

    runtime.cc:655] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class) (Runtime.java:-2)

    runtime.cc:655] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:1131)

    runtime.cc:655] at void java.lang.Runtime.loadLibrary0(java.lang.ClassLoader, java.lang.Class, java.lang.String) (Runtime.java:1085)

    runtime.cc:655] at void java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String) (Runtime.java:1008)

    runtime.cc:655] at void java.lang.System.loadLibrary(java.lang.String) (System.java:1664)

    runtime.cc:655] at void com.myscript.iink.NativeLibrary.clinit() (:-1)

    runtime.cc:655] at void com.myscript.iink.NativeLibrary.<clinit>() (:-1)

    runtime.cc:655] at void com.myscript.iink.NativeLibrary.init() (:-1)

    runtime.cc:655] at void com.myscript.iink.NativeFunctions.<clinit>() (:-1)

    runtime.cc:655] at long com.myscript.iink.NativeFunctions.createEngine(byte[]) (:-2)

    runtime.cc:655] at void com.myscript.iink.Engine.<init>(byte[]) (:-1)

    runtime.cc:655] at com.myscript.iink.Engine com.myscript.iink.Engine.create(byte[]) (:-1)

    runtime.cc:655] at void com.tcl.whiteboard.wboard.ai.SmartRecognitionManager.initEngine(android.content.Context, com.tcl.whiteboard.basebusiness.state.IStateHolder) (:-1)

    runtime.cc:655] at void com.tcl.whiteboard.wboard.PlainWhiteboardActivity$b.run() (:-1)

    runtime.cc:655] at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:938)

    runtime.cc:655] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99)

    runtime.cc:655] at void android.os.Looper.loop() (Looper.java:223)

    runtime.cc:655] at void android.os.HandlerThread.run() (HandlerThread.java:67)

    runtime.cc:655] 


Best Answer

Dear Lichao Wan,


An answer has normally been provided.


Let us know if you still have any question.


Best regards,


Olivier


1 person has this question
1 Comment

Answer

Dear Lichao Wan,


An answer has normally been provided.


Let us know if you still have any question.


Best regards,


Olivier