黑莓“受控访问”从备用入口点启动时持久存储的异常
背景: 我有一个带有备用入口点的应用程序。它侦听 SMS 和电子邮件发送的事件。该应用程序通常从“下载”文件夹(由用户)启动,并且在发送短信或电子邮件时(根据用户确认)启动。当应用程序启动时,我必须从持久存储中取出一些标志来做出一些决定。该应用程序由 RIM 提供的密钥正确签名。它还使用签名授权工具通过密钥进行签名,以使持久存储为此应用程序隔离。
问题: 当从菜单正常启动时,可以毫无问题地从持久存储中提取数据。但是,当从备用入口点(从 SMS 和电子邮件发送事件)启动时,持久存储不可访问,并且会显示 ControlledAccess 异常。请注意,我尝试允许该应用程序的各种权限。
可能的原因: 尽管应用程序 .cod 文件已由密钥正确签名,但从备用入口点启动时,它被视为未签名。因此,不允许访问持久存储。
我正在寻找可能帮助我解决问题的解决方案或任何建议。否则,我将不得不放弃我真的不想要的隔离持久存储功能。
Background:
I have an application with an alternate entry point. It listenes for SMS and Email sent events. The application get launched normally from the 'Download' folder (by user) and also when an SMS or Email is sent (upon user confirmation). When the application is launching, I have to pull out some flags from persistent storage to make some decisions. The application is signed properly by RIM provided keys. It is also signed by a key using signing authority tool to make the persistent storage isolated for this application.
Problem:
When launching normally from the menu, the data from persistent storage can be pulled out without any problem. But when launching from the alternate entry point (from SMS and Email sent event), the persistent storage is not accessible and the ControlledAccess exception is shown. Note that, I tried allowing all kinds of permissions for the applicaiton.
Possible Reason:
Although the application .cod file is properly signed by the key, it is being considered not signed when launching from alternate entry point. Thus the access to the persistent storage is not allowed.
I am looking for a solution or any suggestion that might help me troubleshoot the problem. Otherwise, I will have to drop off the feature of isolated persistent storage which I really don't want to.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案如下:http://supportforums.blackberry.com/t5/Java-Development/ControlledAccess-exception-for-persistent-storage-when-launching/mp/1542609#M189953
Here is the answer: http://supportforums.blackberry.com/t5/Java-Development/ControlledAccess-exception-for-persistent-storage-when-launching/m-p/1542609#M189953