Hi Mateusz,

I think d...@lists.tizen.org is probably a better list to discuss these
topics.

Cheers,
Geoffroy

On Wed, 2014-04-02 at 17:45 +0200, Mateusz Malicki wrote:
> Hello
> 
> I am new in Tizen and almost new in English so forgive for glaring
> errors.
> 
> I tried to run the application on the Tizen 3.0.
> 
> Below are the steps that I need to do to achieve the goal.
> 
> I had to make a few changes in the code and bypass a few bugs which I
> do not know how to solve.
> 
> I have described a few problems which can't solve alone. I ask for
> your help. 
> 
> I want to change code of appfw, app-service, security-service.
> 
>  
> 
> 1. Execute osp-security-service
> 
> Take into account the changes introduced in the appfw 
> 
> https://review.tizen.org/gerrit/gitweb?p=platform/framework/native/appfw.git;a=commit;h=9663f301c007e5503a08505edff54b8521eb7949
> 
> https://review.tizen.org/gerrit/#/c/18812/
> 
>  
> 
> Possibility to dynamic load by osp-loader(added -pie linker flag)
> 
> https://review.tizen.org/gerrit/#/c/18813/
> 
>  
> 
> 2. Execute osp-app-service
> 
> 2.1. I think that commit
> https://review.tizen.org/gerrit/gitweb?p=platform/framework/native/app-service.git;a=commit;h=275a4f30bfb384c5f6eb6f78ecd78b4c3af183d7
>  should by reverted
> 
> Above commit changed application path from /opt/apps to /opt/usr/apps.
> 
> To launch service path must be set to PATH_OPT_APPS (=/opt/apps) which
> is defined in 
> 
> https://review.tizen.org/gerrit/gitweb?p=platform/framework/native/installer.git;a=blob;f=inc/InstallerDefs.h
> 
> 2.2. Add _AppLaunchCondition::GetLaunchArgs in appfw.
> 
> https://review.tizen.org/gerrit/#/c/18899/
> 
>  
> 
> 3. Execute osp-common-service
> 
> osp-common-service setup SettingsServer server.
> 
> osp-common-service contain class derived from ServiceApp which
> construct _AppImpl object.
> 
> _AppImpl Construct function creates SettingsService client instance.
> 
> Client is created before SettingServer -- it always fails.
> 
> I think that commit that provide above cyclic dependency should be
> reverted.
> 
> https://review.tizen.org/gerrit/gitweb?p=platform/framework/native/appfw.git;a=commit;h=dbd01564f321df67ee66b6a1212198f48539003b
> 
> For now i use:
> 
> diff --git a/src/app/FApp_AppImpl.cpp b/src/app/FApp_AppImpl.cpp
> 
> index e41f92a..6415e85 100644
> 
> --- a/src/app/FApp_AppImpl.cpp
> 
> +++ b/src/app/FApp_AppImpl.cpp
> 
> @@ -141,7 +141,7 @@ _AppImpl::Construct(const IList* pArgs)
> 
>  
> 
>         _AppInfo::SetAppState(INITIALIZING);
> 
>  
> 
> -       r =
> _SettingInfoImpl::AddSettingEventListenerForInternal(*this);
> 
> +    //r =
> _SettingInfoImpl::AddSettingEventListenerForInternal(*this);
> 
>         SysTryLog(NID_APP, !IsFailed(r), "[%s] failed to add setting
> event listener.", GetErrorMessage(r));
> 
>  
> 
>         return E_SUCCESS;
> 
>         
> 
> 4. Execute sample service application (it was build with Tizen SDK)
> 
> Still investigating.
> 
> Hint: with following patch causes application works.
> 
>  
> 
> diff --git a/src/security/FSec_PrivilegeInfo.cpp
> b/src/security/FSec_PrivilegeInfo.cpp
> 
> index bc6621c..f704517 100644
> 
> --- a/src/security/FSec_PrivilegeInfo.cpp
> 
> +++ b/src/security/FSec_PrivilegeInfo.cpp
> 
> @@ -250,7 +250,7 @@ _PrivilegeInfo::Construct(const AppId& appId,
> const String& encryptedPrivileges,
> 
>         memcpy(__bitwisePrivilege, pDecrytpedBitwisePrivilege,
> __bitwiseLength);
> 
>         __appId = appId;
> 
>  
> 
> -       __apiVisibility = visibility;
> 
> +       __apiVisibility = visibility + 1000;
> 
>  
> 
>         std::unique_ptr<IEnumerator> pEnum(null);
> 
>         r = __privilegeList.Construct(32, 0.75);     
> 
>  
> 
>  
> 
> Regards,
> 
> Mateusz
> 
> 
> _______________________________________________
> Application-dev mailing list
> Application-dev@lists.tizen.org
> https://lists.tizen.org/listinfo/application-dev

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718. 
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient(s). Any review or distribution by others is 
strictly prohibited. If you are not the intended recipient, please contact the 
sender and delete all copies.
_______________________________________________
Application-dev mailing list
Application-dev@lists.tizen.org
https://lists.tizen.org/listinfo/application-dev

Reply via email to