Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User ashishingle's Avatar
    Join Date
    Apr 2012
    Posts
    1
    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 skalogir's Avatar
    Join Date
    Aug 2011
    Posts
    547
    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
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    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
    Nokia Developer Champion balagopalks's Avatar
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,427
    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 jeffrey.halimsetiawan's Avatar
    Join Date
    Mar 2012
    Location
    Taipei, Taiwan
    Posts
    65
    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

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 Python
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved