Failed deployment on Nokia 7650 after obfuscation [having FullCanvas]
Appreciate any help on this:
I've a midlet with classes extending the FullCanvas class, built & packaged (without obfuscation) under WTK104. As the built-in retroguard can't automatically recognize the Nokia API classes, I wrote a retroguard scriptfile as follows
.class com/JwfpMidlet public
.class com/* public
.class java/lang/* protected
.class java/lang/Class protected
.class java/lang/ClassLoader protected
.class javax/microedition/rms/* protected
.class javax/microedition/io/* protected
.class javax/microedition/lcdui/* protected
.class javax/microedition/lcdui/Canvas protected
.class javax/microedition/midlet/* protected
.class com/nokia/mid/ui/* protected
[tried preserving everything]
and ran retroguard using the WTK104 packaged JAR as the input JAR.
It successfully obfuscated, loaded onto 7650, but failed to run: no response when you click on the midlet name.
I tried to run the obfuscated JAR on 60MIDP emulator; & it gives me a ClassNotFoundException: JwfpMidlet on the console.
Is the failure with my scriptfile [anything I missed]; with FullCanvas [I tried the exact sequence with a test midlet without Nokia API & it worked]; with my directory structure [I placed the midlet under com/ (not Nokia API's com)]; or anything else.
Anyone successfully deployed/ran obfuscated midlets with FullCanvas on actual phones?
RE: Failed deployment on Nokia 7650 after obfuscation [having FullCanvas]
double post. double reply. lol
I have a midlet that extends FullCanvas too, and obfuscation doesnt work inside wtk104. But packaging with obfuscation in the command line worked for me, and it ran in the 7650.
here's the command
java -classpath c:\wtk104\bin\retroguard.jar;c:\wtk104\lib\midpapi.zip RetroGuard test.jar test-obf.jar script.rgs
script.rgs' content is ".class test"
note: midpapi.zip is nokia's ui api
hope this helps :)
RE: Failed deployment on Nokia 7650 after obfuscation [having FullCanvas]
Hi guys!
I have try with command line method including in the midpapi.zip also the Nokia Api but this is the result:
Exception in thread "main" java.lang.UnsatisfiedLinkError: _getFullWidth
at com.nokia.mid.ui.FullCanvas._getFullWidth(Native Method)
at com.nokia.mid.ui.FullCanvas.<clinit>(FullCanvas.java:108)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at a.a.a.f.a(Unknown Source)
at a.a.a.f.a(Unknown Source)
at a.a.a.f.j(Unknown Source)
at a.a.a.j$4.a(Unknown Source)
at a.a.a.j.a(Unknown Source)
at a.a.a.j.a(Unknown Source)
at a.a.a.j.a(Unknown Source)
at a.a.a.j.if(Unknown Source)
at a.a.a.s.do(Unknown Source)
at a.a.a.s.a(Unknown Source)
at RetroGuard.a(Unknown Source)
at RetroGuard.a(Unknown Source)
at RetroGuard.main(Unknown Source)
Please Help me!
Have a good day!