×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    53

    Strange Series 40 MMAPI security dialog

    I have written a midlet which uses MMAPI to capture audio
    from the handset microphone.
    The midlet is unsigned and I've deployed it onto both
    5300 and 6131 handsets and I have set the multimedia option
    regarding "Multimedia Recording" to "Ask first time only"

    The "Allow applicatoin to use camera and microphone for
    recording until app exits?" dialog only appears the first
    time I record a voice note from within the midlet.
    However, (!!) when I complete the recording and when I complete
    any subsequent recording of a voice note within the midlet
    session I encounter the following additional annoying
    dialog

    "Application may send recorded data. Continue?"

    There is no associated greyed or ungreyed permission
    listed corresponding to this on the S40 handsets.
    The only way I can suppress this second (undocumented?)
    dialog is to sign the midlet. Series 60 handsets behave
    differently to this. I can limit the user to encountering
    just a single security dialog on a S60 handset if I
    set the Multimedia permissions to "ask once" on those models.
    This looks like an annoying bug/inconsistency which hampers
    our development on S40 devices and forces us down the
    murky alley of having to go through the whole 3rd party
    testhouse signing route.

    --Ian

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Strange Series 40 MMAPI security dialog

    Are you also accessing network in your MIDlet? Does the dialog appear at that time?

    Hartti

  3. #3
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    53

    Re: Strange Series 40 MMAPI security dialog

    Quote Originally Posted by hartti View Post
    Are you also accessing network in your MIDlet? Does the dialog appear at that time?

    Hartti
    Hi Hartti -

    No - there is absolutely no network access attempted within
    the midlet. It appears that the call to the commit() method
    on javax.microedition.media.control.RecordControl is the
    request which provokes this strange dialog on all S40 models
    I've tested on. It seems odd that the user has already given
    permission to use the microphone and then is nagged again
    by this additional security question which seems to have
    no corresponding settable security permission within the
    MIDP 2.0 security model. It looks to me like some kind of
    afterthought or buglet within the S40 Java/MIDP/MMAPI
    implementation.

    It is particularly annoying in our case since our app
    requires to record continuously and we need to commit()
    every now and again to flush the recording to the output
    stream. This gives us no other option than to have to
    sign the midlet to suppress this dialog. Strangely signing
    the midlet does suppress this dialog from appearing
    even without requiring the user to fiddle with the midlet
    permissions settings before launching the midlet.

    --Ian

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    30

    Re: Strange Series 40 MMAPI security dialog

    Just found this thread... I think I have the same problem,

    http://discussion.forum.nokia.com/fo...d.php?t=125903

    but with a signed app. I can not remove an info dialog stating "Application access set to not allowed" even though the permission is set to always allowed.


    Did you ever resolve this? This is really annoying especially after purchasing an expensive certificate.

    Cheers
    Ed.

  5. #5
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    53

    Re: Strange Series 40 MMAPI security dialog

    Ed,

    The issue I have described is slightly different.

    In my case I only see the dialog when the midlet is unsigned.
    Also the text of the dialog doesn't say access not allowed.
    Instead it merely asks the user if they wish to allow the app
    to send data ( I think the phrase used was "may send data").
    This dialog pops up in addition to the permission request
    to use the audio/mic or camera device.

    When I signed the app and set the application settings to
    always allow audio/multimedia capture both dialogs disappeared
    although there is an audible beep when recording starts and
    completes/commits.

    I'm puzzled by the dialog you are seeing. It sounds like a
    phone branding issue whereby the network operator has
    restricted recording to only midlets signed in the manufacturer
    or operator security domain. However, it is even more strange
    that the midlet (in your case) apparently goes ahead and
    actually records audio despite a message indicating illegal
    access of a resource (the microphone).

    The only time I saw major problems which stopped me using
    audio capture on a Nokia handset was when I used an O2
    iMode branded phone. iMode branding removes the factory
    shipped MIDP/CLDC VM and replaces it with the DoJa/NTT Documo
    one which has no audio capture/MMAPI support.
    iMode (thankfully) appears to have been discontinued in UK.

    --Ian

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    30

    Re: Strange Series 40 MMAPI security dialog

    Cheers for that.

    I have tried this on 3 different (branded) devices and one unlocked all with the same result, all 5300 and all running 05.51 OS. I am using verisign cert. (would this matter?)

    Which cert/OS/device did you get it working on?

    Cheers

    Ed.

  7. #7
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    53

    Re: Strange Series 40 MMAPI security dialog

    I can send you back the info you require.
    However, how can I check the version of O/S
    running on a Series 40 handset ?

    --Ian

  8. #8
    Registered User
    Join Date
    Dec 2006
    Posts
    30

    Re: Strange Series 40 MMAPI security dialog

    hi there, just type in *#0000#

    Cheers

    Ed

  9. #9
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    53

    Re: Strange Series 40 MMAPI security dialog

    For Ed :

    My device is a Nokia 5300/OS ver 04.70
    The certificate used was a Verisign class 3 code signing
    certificate within its 2 year expiry duration.

    The device started out life as an O2 iMode branded 5300.
    I have notes somewhere as to how I debranded it.
    From this it would appear that the later OS version (or
    more likely the later version of firmware containing
    a specific revision of the Java CLDC/MIDP 2.0 VM and stack)
    which is the culprit for what you are seeing.

    Are all of your devices 05.51 version of OS ?
    Any earlier versions displaying this issue ?

    --Ian

Similar Threads

  1. MIDP applicatyion accessing a servlet not working in series 60 emulator
    By ferozekadamapuzha in forum Mobile Java General
    Replies: 11
    Last Post: 2008-05-07, 18:04
  2. Problem regarding mmapi in Nokia series 60
    By sachinwarang in forum Streaming and Video
    Replies: 0
    Last Post: 2006-03-09, 13:08
  3. Series 40 Emulator: Strange warning message
    By rolloderwikinger in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-02-23, 18:03
  4. Series 60 vs 2 Java Security Ranting and Question
    By RearCog in forum Mobile Java General
    Replies: 1
    Last Post: 2005-05-07, 07:54
  5. Security Vulnerability on Series 60
    By ramka001 in forum Mobile Java General
    Replies: 4
    Last Post: 2004-06-21, 08:21

Posting Permissions

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