BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-26-2008, 12:25 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to change application permission in emulator

Please Login to Remove!

hi all,

In my application iam using application permission API,i ll get the status of the permission using
boolean status1=ap.containsPermissionKey(ApplicationPermis sions.PERMISSION_BLUETOOTH);
iam getting status as true as all permissons are in allow state in emulator.
Is there any way to change the permission to deny in emulator,iam asking this because as soon as i change permission to deny and click on save my emulator is getting struck. is it my emulator's problem or we cant change the permission in emulator?????

thanks
ajj
Offline  
Old 05-26-2008, 03:47 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think if you change the permission in emulator, you are not changing the permission for the your application, but for the emulator application.
Offline  
Old 05-26-2008, 04:01 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi arunk,
iam developing my application using J2ME midlet,i mixed up midlet and Black berry api's,if i want to test my application in black berry device it asking me for the signing of the API,so now i want to change the emulator permission to test my application output.I want to check what will be the output if permission is in allow state and what will be the output if the permission is in deny state.

thanks
ajj
Offline  
Old 05-26-2008, 04:43 AM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

For signing you have to get a signing key (from RIM I think - $100).

In simulator the permissions will be allow by default for your application

So I am not sure whether you can test that in a simulator.

Once you sign your application you can use that in the device and test it.
Offline  
Old 05-26-2008, 04:51 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Arunk,

Thanks for the reply.

sincerely,
ajj
Offline  
Old 01-28-2009, 08:28 AM   #6 (permalink)
New Member
 
dennita's Avatar
 
Join Date: Oct 2008
Model: 8100
PIN: N/A
Carrier: Cingular
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

signing key is $20
Offline  
Old 01-29-2009, 06:43 AM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: Telkomsel
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default run simulator on secure mode

who said you can't run simulator with all security option turned on like the actual device?

you can and it's called secure mode, you just have to edit simulator xxxx.bat in C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\simulator (maybe different from your installation directory)
and add /secure

example, i modified 8800.bat
Code:
@echo off 
fledge.exe /app=Jvm.dll /handheld=8800 /session=8800 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /secure
if you have JDE that would be easier since you can turned on security option on device simulator preference
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.