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.

inside custom component

Java Development

Reply
Developer
Posts: 115
Registered: ‎10-04-2008
My Device: Not Specified
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
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

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.
Developer
Posts: 16,750
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Highlighted
New Contributor
Posts: 4
Registered: ‎12-07-2011
My Device: Developer
My Carrier: Samsung

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?
Developer
Posts: 246
Registered: ‎12-13-2010
My Device: Not Specified

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.

New Contributor
Posts: 4
Registered: ‎12-07-2011
My Device: Developer
My Carrier: Samsung

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.

Developer
Posts: 246
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL

Re: How to obfuscate code in blackberry?

ofuscator still can be decompile

but harder to trace it

Developer
Posts: 246
Registered: ‎12-13-2010
My Device: Not Specified

Re: How to obfuscate code in blackberry?

Look into using Zleix KlassMaster. It performs advanced obfuscations.

Developer
Posts: 246
Registered: ‎12-13-2010
My Device: Not Specified

Re: How to obfuscate code in blackberry?