Skip to main content

Can you automatically approve requests for airtime (Is it OK to use airtime

4 replies [Last post]
irisbr
Offline
Joined: 2006-11-30
Points: 0

Hi,
Can you automatically approve all requests for airtime (Is it OK to use airtime?)

Thanks, Iris.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Gary Adams - Client Systems Group

Did you leave out Connector.sms Permission intentionally?

\gra

phonemefeatures@mobileandembedded.org wrote:
> Hi Alexey,
>
> I have tried both ways:
> 1. Through AMS – I have chosen the “Airtime” and marked the “Ask once per application use”.
> Then, when it didn’t change anything (i.e. I still got the screen that asked “is it OK to use airtime”) I have changes the setting for all other preferences.
> (BTW – for messaging you can only choose between: “Ask every time” or “don’t send or receive messages and don’t ask”)
> But still I am getting the screen “Is it ok to us…ExampleTestMidlet wants to send or receive data using network, this will use airtime… is it OK…?”
> Since I am trying to send many messages I cannot get rid of this screen…
>
>
> 2. As you mentioned, I have tried to put my midlet suite as a trusted one. I have added to my JAD file the following:
>
> MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.io.Connector.https, javax.microedition.io.Connector.socket,javax.microedition.io.Connector.ssl, javax.microedition.io.Connector.datagram, javax.microedition.io.Connector.serversocket, javax.microedition.io.Connector.datagramreceiver, javax.microedition.io.Connector.comm
>
> MIDlet-Permissions-Opt: javax.microedition.io.PushRegistry, javax.microedition.media.control.VideoControl.getSnapshot, javax.wireless.messaging.sms.receive, javax.wireless.messaging.sms.send
>
> And then performed the following commands:
> C:/j2sdk1.4.2_08/bin/keytool -genkey -alias operator -keyalg RSA -storepass 123456 -keypass 123456 -keystore keystore.sks
>
> cd C:\JavaME_BIN\win32_i386_mvm
>
> java -jar C:/JavaME_BIN/win32_i386_mvm/bin/i386/MEKeyTool.jar -import -alias operator -keystore C:/190/keystore.sks -storepass 123456 -domain operator
>
> java -jar C:/JavaME_BIN/win32_i386_mvm/bin/i386/JadTool.jar -addcert -alias operator -keystore C:/190/keystore.sks -storepass 123456 -inputjad C:/ 190/j2meUnitTestToolkit/ExampleTestMidlet.jad -outputjad C:/190/j2meUnitTestToolkit/newJad/ExampleTestMidlet.jad
>
> java -jar C:/JavaME_BIN/win32_i386_mvm/bin/i386/JadTool.jar -addjarsig -alias operator -keystore C:/190/keystore.sks -storepass 123456 -keypass 123456 -inputjad C:/ 190/j2meUnitTestToolkit/ExampleTestMidlet.jad -outputjad C:/190/j2meUnitTestToolkit/newJad/ExampleTestMidlet.jad
>
> But even then, I am still getting this screen,,,
>
> BTW, I am trying to send messages via TCP\ UDP.
>
> What am I doing wrong?
>
> Thanks for your help! Iris.
> [Message sent by forum member 'irisbr' (irisbr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=195495
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: feature-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: feature-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: feature-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: feature-help@phoneme.dev.java.net

alexey_z
Offline
Joined: 2006-10-18
Points: 0

Hi Iris,

You can select the suite in the AMS, choose "Settings", there "Airtime" and mark "Ask once per application use".

It's possible to avoid asking this question at all if your midlet suite is trusted and the required permissions are listed in MIDlet-Permissions attribute in the jad file. To identify the suite as trusted you must to generate a certificate, import it to the MIDP (into appdb/_main.ks) and sign the midlet suite with it:

$JAVA_HOME/bin/keytool -genkey -alias operator -keyalg RSA -storepass
-keypass
-keystore keystore.sks

java -jar ./bin/i386/MEKeyTool.jar -import -alias operator -keystore $KEY_DIR/keystore.sks -storepass
-domain operator

java -jar $JAD_TOOL_DIR/JadTool.jar -addcert -alias operator -keystore $KEYSTORE_DIR/keystore.sks -storepass
inputjad -outputjad

java -jar $JAD_TOOL_DIR/JadTool.jar -addjarsig -alias operator -keystore $KEYSTORE_DIR/keystore.sks -storepass
-keypass
-inputjad -outputjad

Regards,
Alexey

irisbr
Offline
Joined: 2006-11-30
Points: 0

Hi Alexey,

I have tried both ways:
1. Through AMS – I have chosen the “Airtime” and marked the “Ask once per application use”.
Then, when it didn’t change anything (i.e. I still got the screen that asked “is it OK to use airtime”) I have changes the setting for all other preferences.
(BTW – for messaging you can only choose between: “Ask every time” or “don’t send or receive messages and don’t ask”)
But still I am getting the screen “Is it ok to us…ExampleTestMidlet wants to send or receive data using network, this will use airtime… is it OK…?”
Since I am trying to send many messages I cannot get rid of this screen…

2. As you mentioned, I have tried to put my midlet suite as a trusted one. I have added to my JAD file the following:

MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.io.Connector.https, javax.microedition.io.Connector.socket,javax.microedition.io.Connector.ssl, javax.microedition.io.Connector.datagram, javax.microedition.io.Connector.serversocket, javax.microedition.io.Connector.datagramreceiver, javax.microedition.io.Connector.comm

MIDlet-Permissions-Opt: javax.microedition.io.PushRegistry, javax.microedition.media.control.VideoControl.getSnapshot, javax.wireless.messaging.sms.receive, javax.wireless.messaging.sms.send

And then performed the following commands:
C:/j2sdk1.4.2_08/bin/keytool -genkey -alias operator -keyalg RSA -storepass 123456 -keypass 123456 -keystore keystore.sks

cd C:\JavaME_BIN\win32_i386_mvm

java -jar C:/JavaME_BIN/win32_i386_mvm/bin/i386/MEKeyTool.jar -import -alias operator -keystore C:/190/keystore.sks -storepass 123456 -domain operator

java -jar C:/JavaME_BIN/win32_i386_mvm/bin/i386/JadTool.jar -addcert -alias operator -keystore C:/190/keystore.sks -storepass 123456 -inputjad C:/ 190/j2meUnitTestToolkit/ExampleTestMidlet.jad -outputjad C:/190/j2meUnitTestToolkit/newJad/ExampleTestMidlet.jad

java -jar C:/JavaME_BIN/win32_i386_mvm/bin/i386/JadTool.jar -addjarsig -alias operator -keystore C:/190/keystore.sks -storepass 123456 -keypass 123456 -inputjad C:/ 190/j2meUnitTestToolkit/ExampleTestMidlet.jad -outputjad C:/190/j2meUnitTestToolkit/newJad/ExampleTestMidlet.jad

But even then, I am still getting this screen,,,

BTW, I am trying to send messages via TCP\ UDP.

What am I doing wrong?

Thanks for your help! Iris.

alexey_z
Offline
Joined: 2006-10-18
Points: 0

Hi Iris,

Well, it's strange... If the test midlet is not proprietary/copyrighted, could you please publish its code here? I think the snippet sending/receiving the messages should be enough.

Regards,
Alexey