Thanks for the suggestions Ken and Steve, As near as I can tell, smack does affect the readability of the files, and the permissions set in config.xml are completely ignored. Further more, the wiki (https://wiki.tizen.org/wiki/Security:SmackThreeDomainModel#Files) suggests that files marked with the User label are not actually readable by installable apps - Which I assume means apps such as ours.
Any other ideas about making files readable by installable apps? We've moved the files directory location to /home/app/content/Images/. I can get a directory listing, but the toURI() method on the file-handler object won't actually load the image (It looks something like: file:///home/app/content/images/image_name.jpg) On 10 April 2015 at 10:33, Mattison, Steven <[email protected]> wrote: > If I am not mistaken, and I may be as it's been months since I've touched > this function, the tizen.filesystem.resolve() function is sandboxed to > files within the /home/app/content folder. > > > If the GENIVI media-manager could be altered to place the files within > that folder, you should be able to access them from the web-app. > > On 10 April 2015 at 10:07, Smith, Kenneth <[email protected]> > wrote: > >> Wouldn't smack affect the ability of apps to access the filesystem? Do >> the privileges in config.xml have anything to do with smack? >> >> On 9 April 2015 at 17:58, Eiche, Aaron <[email protected]> >> wrote: >> >>> Hello, >>> >>> I'm trying to get URI locations in a web app for images that are >>> generated and placed in /home/app/.cache/media-manager-artwork. The files >>> are placed there by the GENIVI media-manager project. >>> >>> I've attempted to use the following code in the debug console >>> >>> tizen.filesystem.resolve( >>> 'file:///home/app/.cache/media-manager-artwork', function(dir){ >>> console.log(dir.isFile); }, function(e){ console.log(e); }, "rw" ); >>> >>> The available documentation states that the returned file object has a >>> .isFile property that returns true if the path resulted in a file, and >>> false if the path is a directory. Whether I pass in a file or not, I get >>> false on any path. The appropriate privilege is included in the config.xml. >>> >>> Anyone have any suggestions? >>> >>> thanks >>> -Aaron E. >>> >>> >>> -- >>> *Aaron Eiche* >>> Javascript Developer >>> >>> *T:* +1.971.256.9731 | *M: *+1.503.334.9164 >>> >>> >>> >>> Jaguar Land Rover North America, LLC >>> 1419 NW 14th Ave, Portland, OR 97209 >>> JaguarUSA.com <http://www.jaguarusa.com/index.html> | LandRoverUSA.com >>> <http://www.landrover.com/us/en/lr/> >>> >> >> >> >> -- >> Kind Regards, >> >> *Kenneth F. Smith* >> Linux C++ Engineer >> >> *T:* 971.256.9740 | *M:* 503-880-6256 >> *Email:* [email protected] >> >> Jaguar Land Rover North America, LLC >> Open Source Technology Center >> 1419 Northwest 14th Avenue, Portland, OR 97209 >> JaguarUSA.com <http://www.jaguarusa.com/index.html> | LandRoverUSA.com >> <http://www.landrover.com/us/en/lr/> >> >> Email: [email protected] <[email protected]> >> PGP: RSA 2048/2048 979C6B958B89909D >> ------------------- >> Business Details: >> Jaguar Land Rover Limited >> Registered Office: Abbey Road, Whitley, Coventry CV3 4LF >> Registered in England No: 1672070 >> >> This e-mail and any attachments contain confidential information for a >> specific individual and purpose. The information is private and privileged >> and intended solely for the use of the individual to whom it is addressed. >> If you are not the intended recipient, please e-mail us immediately. We >> apologise for any inconvenience caused but you are hereby notified that any >> disclosure, copying or distribution or the taking of any action in reliance >> on the information contained herein is strictly prohibited. >> >> This e-mail does not constitute an order for goods or services unless >> accompanied by an official purchase order. >> > > > > -- > *Steve Mattison* > JavaScript Engineer > > *T: *+1.503.545.7545 > *Email:* [email protected] > > Jaguar Land Rover North America, LLC > 1419 NW 14th Ave, Portland, OR 97209 > ------------------- > Business Details: > Jaguar Land Rover Limited > Registered Office: Abbey Road, Whitley, Coventry CV3 4LF > Registered in England No: 1672070 > > This e-mail and any attachments contain confidential information for a > specific individual and purpose. The information is private and privileged > and intended solely for the use of the individual to whom it is addressed. > If you are not the intended recipient, please e-mail us immediately. We > apologise for any inconvenience caused but you are hereby notified that any > disclosure, copying or distribution or the taking of any action in reliance > on the information contained herein is strictly prohibited. > > This e-mail does not constitute an order for goods or services unless > accompanied by an official purchase order. > -- *Aaron Eiche* Javascript Developer *T:* +1.971.256.9731 | *M: *+1.503.334.9164 Jaguar Land Rover North America, LLC 1419 NW 14th Ave, Portland, OR 97209 JaguarUSA.com <http://www.jaguarusa.com/index.html> | LandRoverUSA.com <http://www.landrover.com/us/en/lr/>
_______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
