×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    1

    protecting java code from decompilation

    I am developing a commercial mobile application. I am new to to j2me. While goggling many times i follow nokia forum for help. & Frankly It helped me a lot.

    My query is Can we protect access to jar file by the following way
    1>User need to download the application i.e jar file from server only?
    2> Server will allow only mobile phones to download the app using User agent Header i.e . PC ,PDA etc will not be allowed to download?.
    Is it possible..??


    -Ashish

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: protecting java code from decompilation

    Hi Ashish and Welcome to Nokia's Discussion Boards,

    You would need to perform OTA deployment in connection with implementing a server side protection scheme such as rejecting a request from a specific client type, though it might not be safe enough. You can get more ideas on how the server side implementation can be in order for you to protect the jar file by checking this thread.

    Why not publish the application to Nokia Store? Given that your application is commercial, it might be the best channel. The distribution via Nokia Store is done in such a way so that the .jad and .jar files are protected and hidden from the end user. Installation takes place directly on the device, via Nokia Suite (provided that the end user has connected the phone to the PC) or the native Nokia Store application that can be found on the phone.

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: protecting java code from decompilation

    Quote Originally Posted by skalogir View Post
    The distribution via Nokia Store is done in such a way so that the .jad and .jar files are protected and hidden from the end user.
    While a typical end-user when downloding an app from the Nokia Store, is unable to intercept and get the actual installation file, it does not mean that a sufficiently skilled person cannot get it. In other words, do not assume that the Nokia Store distribution is fully secure. Nokia Store makes no software piracy prevention claims or guarantees.

    And once access to the .jar, the .class files are also accessible and can be decompiled. Using an obfuscator makes them harder to make sense of.
    Last edited by petrib; 2012-04-25 at 21:44. Reason: typo

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: protecting java code from decompilation

    Quote Originally Posted by petrib View Post
    While a typical end-user when downloding an app from the Nokia Store, is unable to intercept and get the actual installation file, it does not mean that a sufficiently skilled person cannot get it. In other words, do not assume that the Nokia Store distribution is fully secure. Nokia Store makes no software piracy prevention claims or guarantees.
    Agree with Petrib here, even I have heard from few developers that they have managed to get app files during installation with Store Client.

    Regards
    Gopal

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2012
    Location
    Surabaya, Indonesia
    Posts
    72

    Re: protecting java code from decompilation

    Perhaps, I suggest you to use Obfuscator as your minimal protection. So, in case someone decompile your code, they can't understand your code easily.
    Jeffrey Hermanto Halimsetiawan
    Game Developer | Mobile Apps Developer
    LinkedIn

  6. #6
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: protecting java code from decompilation

    Hello Ashish,

    and welcome to Nokia Developer Discussion Boards!

    About obfuscators: http://www.developer.nokia.com/Commu...ki/Obfuscation

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. how to embed the c++ code with java code
    By Manish_Bansal in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2010-04-03, 10:55
  2. Protecting your code
    By kashifrazzaqui in forum Symbian
    Replies: 6
    Last Post: 2008-04-14, 08:04
  3. Protecting the Midlet
    By rohitverma81 in forum Mobile Java General
    Replies: 7
    Last Post: 2006-12-05, 09:26
  4. Replies: 0
    Last Post: 2004-09-15, 11:46
  5. Protecting MIDlets with registration code
    By AF76 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-08-25, 09:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×