语言

Menu
Sites
Language
No access to SharedPath , ResourcePath, RootPath

From the time i updated my sdk to 2.2 I don't have access to App::GetInstance()->GetAppRootPath(),App::GetInstance()->GetAppSharedPath() and App::GetInstance()->GetAppResourcePath() .

When i try to construct a file with path one of the above, the application crashes and in the log window there is an error message : Not yet constructed. Construct() should be called before use.

Is there any way to write in these folders and to make these folders visible from the Connection Explorer inside the SDK?

 

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

7 回复
Lakshmi Grandhi
Hi, Did you install SDK without uninstalling previous version?? try to reinstalling the SDK again, i don't see any issues in accessing RootPath, SharedPath
Byron Gavras
I unistalled the old SDK and reinstalled 2.2 SDK but i get the error: [SECURE_LOG] [E_ILLEGAL_ACCESS] Failed to open file (/opt/apps/eOzmSWq2Qo/sound3.dat) in openMode (w+), errno: 13 (Permission denied). This is my code r = __pFile->Construct( App::GetInstance()->GetAppRootPath()+L"sound3.dat", L"w+"); r = __pFile->Write((char*)(pData->GetPointer()), size); The error occurs when i try to Write to the file.
Lakshmi Grandhi
Hi Brayon, Create the file inside data folder, instead of AppRoothPath
chris warren-smith
The beta version of 2.2 firmware a problems similar to this. Make sure you device is running the most recent version 2.2 firmware.
Byron Gavras
Inside data folder i can create the file. But i could create files to other folders before the flashing of 2.2 image. I flashed image : tizen-2.2_20130719.3_RD-PQ-REF.tar.gz from this website : https://wiki.tizen.org/wiki/Flash_Tizen_2.2_Image_to_Reference_Device. Anyway this is not my problem. I don't mind if i create my file inside data folder. My issue is that i can't see data folder from Connection Explorer within the SDK, so that i will be able to pull the file to my desktop. The only available folder from Connection Explorer is Shared folder.
muditha murthy
switch to root account mode and check once. sdb root on
Byron Gavras
I can see the folders from the command line when i switch to root. From the IDE i have no access. Something is wrong with the privileges as i can see in the log tab info. appOwner=[false] indicates that i have no access in these folders except from data folder. 08-12 12:38:59.455 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/bin], mode=[0755], appOwner=[false] 08-12 12:38:59.455 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/info/GIRROKUwJx.nativ], mode=[0644], appOwner=[false] 08-12 12:38:59.455 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/info], mode=[0644], appOwner=[false] 08-12 12:38:59.460 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/res/screen-size-normal], mode=[0644], appOwner=[false] 08-12 12:38:59.465 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/res/images], mode=[0644], appOwner=[false] 08-12 12:38:59.465 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/res], mode=[0644], appOwner=[false] 08-12 12:38:59.470 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/lib], mode=[0755], appOwner=[false] 08-12 12:38:59.475 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/data], mode=[0644], appOwner=[false] 08-12 12:38:59.475 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/trusted], mode=[0644], appOwner=[false] 08-12 12:38:59.475 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/res/screen-density-xhigh], mode=[0644], appOwner=[false] 08-12 12:38:59.475 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/res], mode=[0644], appOwner=[false] 08-12 12:38:59.475 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared], mode=[0644], appOwner=[false] 08-12 12:38:59.475 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/res/screen-density-xhigh], mode=[0644], appOwner=[false] 08-12 12:38:59.480 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/res], mode=[0644], appOwner=[false] 08-12 12:38:59.480 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/data], mode=[0644], appOwner=[true] 08-12 12:39:00.635 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/shared/trusted], mode=[0644], appOwner=[true] 08-12 12:39:00.655 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/setting], mode=[0666], appOwner=[false] 08-12 12:39:00.815 : INFO / osp-installer ( 4126 : 4126 ) : static bool InstallerUtil::ChangeDirectoryPermission(const Tizen::Base::String&, int, bool)(384) > path=[/opt/apps/GIRROKUwJx/data], mode=[0644], appOwner=[true]