Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
javame_black
Posts: 115
Registered: ‎10-04-2008
Accepted Solution

How to obfuscate code in blackberry?

Hi,

 

I want to know is it possible in blackberry to decompile the source code. If we distribute the application with .alx file then are there any chances of it getting decompiled. If it is, then can someone tell me how to avoid that. I know about obfuscators such as Proguard, but is there any need of using it.

 

Hope to get a reply soon.

 

 

 

Regards
Sunil
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008

Re: How to obfuscate code in blackberry?

Check this KB article.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Obfus...


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: How to obfuscate code in blackberry?

as long as you distribute with cod-file there is no need to use an obfuscater.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Contributor
samajdarsudipto
Posts: 4
Registered: ‎12-07-2011
My Carrier: Nokia

Re: How to obfuscate code in blackberry?

hi,
I have read the contents in this link. what will be the problem if we use the obfuscated jar directly to create a COD?
Please use plain text.
Developer
shism2
Posts: 246
Registered: ‎12-13-2010

Re: How to obfuscate code in blackberry?

[ Edited ]

There is  a decompiler for cod files. So, you should obfuscate the code. It is possible to decompile to source code.

Please use plain text.
New Contributor
samajdarsudipto
Posts: 4
Registered: ‎12-07-2011
My Carrier: Nokia

Re: How to obfuscate code in blackberry?

Hi,

Thanks for the reply. I am facing another issue.

I am creating jar jad say sudipto.jad and sudipto.jar. then inserting a license file in the jar. then updating the jarsize in jad and the jar jad runs fine. but when I am creating a cod file from them using RAPC, the created sudipto.cod is not getting installed in the BB 4.7.0 simulator as well. I am trying with "load java program" from files to install that cod but nothing comes in the download folder. But when I am creating cod from the jar jad without licebse file inserted, its installing fine.

Is my cod file is getting corrupted as I have manually inserted the license in the jar?

plz give some solution.

when I am attaching the debugger in the debugger the below message is coming.

JVM: error in sudipto.cod

plz suggest.

Please use plain text.
Developer
anditsung
Posts: 168
Registered: ‎09-30-2010
My Carrier: IND XL

Re: How to obfuscate code in blackberry?

ofuscator still can be decompile

but harder to trace it

Please use plain text.
Developer
shism2
Posts: 246
Registered: ‎12-13-2010

Re: How to obfuscate code in blackberry?

Look into using Zleix KlassMaster. It performs advanced obfuscations.

Please use plain text.
Developer
shism2
Posts: 246
Registered: ‎12-13-2010

Re: How to obfuscate code in blackberry?

Please use plain text.