×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    32

    How can an app detect it was installed with the Ovi store?

    My applications have a registration feature that allows for free trials. I want to disable all the UI for this feature if the user has downloaded the application from the Ovi store. I want to do this at runtime instead of build time so that I can use a single S60 binary and a single Java jar file for both on-deck and off-deck use (without having to go through Symbian Signed / Java Verified again).

    I will be submitting my application for certification very soon (within a week), so it would be very helpful to get this information ASAP.

    Thanks,
    Brian

  2. #2
    Nokia Developer Expert
    Join Date
    Jan 2008
    Location
    San Francisco
    Posts
    121

    Re: How can an app detect it was installed with the Ovi store?

    I'm not 100% sure of the answer so let me ask the Ovi team and see if there's information available that we can share.
    [B]Bill Perry[/B]
    Sr. Services Marketing Manager, Forum Nokia
    Publishing to Ovi Store: [url]http://publish.ovi.com/[/url]
    twitter: [url]www.twitter.com/bperry[/url]
    blog: [url]www.mobileperry.com[/url]

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2006
    Location
    Santiago, Chile
    Posts
    83

    Re: How can an app detect it was installed with the Ovi store?

    Where you able to detect if the app came from Ovi?

    Also, you may try changing only the JAD, this way the signed JAR remains the same.


    Quote Originally Posted by briansmith View Post
    My applications have a registration feature that allows for free trials. I want to disable all the UI for this feature if the user has downloaded the application from the Ovi store. I want to do this at runtime instead of build time so that I can use a single S60 binary and a single Java jar file for both on-deck and off-deck use (without having to go through Symbian Signed / Java Verified again).

    I will be submitting my application for certification very soon (within a week), so it would be very helpful to get this information ASAP.

    Thanks,
    Brian

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    32

    Re: How can an app detect it was installed with the Ovi store?

    I still haven't received a response regarding this issue.

    For Java applications, I agree that modifying the JAD file instead of the JAR would probably work (I haven't tried it yet). But, my application is a native S60 (Symbian) application so there is only one file.

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How can an app detect it was installed with the Ovi store?

    There is no way you can do anything to a packed sis file, specially if it is Signed !!!

    So probably you can try one thing which I have tried recently:
    http://wiki.forum.nokia.com/index.ph...in_3rd_edition

    This way you can have different file name for the one's downloading via Ovi and based on this name, you could write some information to another file and that at runtime can give you the result
    Amit Kankani
    Nokia Developer Champion

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    32

    Re: How can an app detect it was installed with the Ovi store?

    Checking the SISX file name is not secure enough; if the end-user gets the SISX from a different channel, he could simply rename the SISX file and trick the application into thinking it was installed (and purchased through) the Ovi Store.

    I started a new thread in this forum asking how an application can check for a DRM'd license file supplied by the Ovi Store.

  7. #7
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How can an app detect it was installed with the Ovi store?

    oh ! I thought the only download path was direct to mobile ! definitely the name criteria will not hold good for your problem then!..

    about the DRM way, it would be good to know about ! will wait for some expert's reply on this..
    Amit Kankani
    Nokia Developer Champion

  8. #8
    Registered User
    Join Date
    Mar 2003
    Location
    Turin, Italy
    Posts
    75

    Re: How can an app detect it was installed with the Ovi store?

    Quote Originally Posted by amitkankani View Post
    So probably you can try one thing which I have tried recently:
    http://wiki.forum.nokia.com/index.ph...in_3rd_edition
    Hi amit,
    which api did you used to search for sisx filename?
    As far as I know the sisx package filename is stored in a data-caged directory, so you need AllFiles capability to find it.

    Marco.

  9. #9
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How can an app detect it was installed with the Ovi store?

    Hi Marco,

    you are correct.
    What I have mentioned is a workaround.
    I search for MyApp*.sisx and then upon finding the results, at install time, write the file name to a file. This searching happens at installation time, blocking the installation for some seconds, and then resuming the installation once the filename is found.
    As our application is meant to be downlaoded on mobile browsers, it works pretty fine. (as the filename doesn't change)
    So if that is fine, then you can see the wiki article:

    http://wiki.forum.nokia.com/index.ph...in_3rd_edition
    Amit Kankani
    Nokia Developer Champion

  10. #10
    Registered User
    Join Date
    Mar 2003
    Location
    Turin, Italy
    Posts
    75

    Re: How can an app detect it was installed with the Ovi store?

    Hi Amit,
    I understood the workaround logic, but I suppose that the search for MyApp*.sisx should give a data-caged path as result (like c:\sys\install\MyAppTest.sisx), but since your search.exe (in most of cases) is missing the AllFiles capability you will not get any match...

    Maybe you'll get a match in the public cache directory of the browser?

    Btw I'll try and see!

  11. #11
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How can an app detect it was installed with the Ovi store?

    Yes i will get the browser cache location and hit it, and not any private directory....
    But that still solves the problem doesn't it...
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. Replies: 10
    Last Post: 2008-12-09, 07:53
  2. Replies: 0
    Last Post: 2008-11-29, 11:33
  3. Using an app installed on the memory card
    By santoshc in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2008-11-14, 09:05
  4. How to test file reading/writing and web server app in emulator?
    By SanjayKhuntia in forum Mobile Java General
    Replies: 6
    Last Post: 2008-09-09, 10:03
  5. Launching an app from pJava..
    By krajag in forum PersonalJava
    Replies: 0
    Last Post: 2002-10-10, 19:57

Posting Permissions

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