Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 9
Registered: ‎10-15-2008
My Device: Not Specified

Can I access the system file/directories using BlackBerry extended API?

[ Edited ]

I want to scanning whole files (includes application files(.cod) and system files) in the Blackberry device.

Because, I trying to make a application that analyze files and applications.

But, When I called FileConnection.list() method in root (of 9000 simulator). I just get limited directories and files, it's not whole things.

For example, if I called list() in file:///system,
return value is

system/samples/

that's all.

I can't get file/directory list such as '/system/application', '/system/setting'.

Maybe It caused by security issues.
or... If I registered RIM code-signature, Can I get a diffrent result?

So, my question is this :

1. Is FileConnection.list() really return whole files/directories?
2. If not, Is there any solution to access system files?
3. Should I regist RIM code-signature to access system dir/files?

Message Edited by fribirdz on 10-15-2008 08:20 AM
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Can I access the system file/directories using BlackBerry extended API?

A FileConnection does not provide access to application (COD) files.  You can use the CodeModuleManager class to access them.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Developer
Posts: 9
Registered: ‎10-15-2008
My Device: Not Specified

Re: Can I access the system file/directories using BlackBerry extended API?

Thank you for answer.

 

I got a list of installed application using CodeModuleManager.

 

I also can access to application basic infomation via ApplicationDescriptor.

 

BTW, Can I also access to inside of .cod files directly? I mean.. I want to read .cod files - return as byte [] -.

  

 

Highlighted
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Can I access the system file/directories using BlackBerry extended API?

No, there are no methods for reading the raw data of installed cod files.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.