securitydialogs/Securitynotifier/Src/SecurityNotifier.cpp
changeset 19 098e361762d2
parent 14 b75757c81051
child 22 6b63ca65093a
--- a/securitydialogs/Securitynotifier/Src/SecurityNotifier.cpp	Mon May 03 13:20:16 2010 +0300
+++ b/securitydialogs/Securitynotifier/Src/SecurityNotifier.cpp	Fri May 14 16:43:26 2010 +0300
@@ -228,6 +228,18 @@
 	#if defined(_DEBUG)
 	RDebug::Printf( "%s %s (%u) searching for autolock.exe =%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 0x0 );
 	#endif
+	
+   // Start Dirty and quick hack    
+   #include <PSVariables.h>   // Property values
+   #include <coreapplicationuisdomainpskeys.h>
+   _LIT_SECURITY_POLICY_PASS(KReadPolicy);
+   _LIT_SECURITY_POLICY_C1(KWritePolicy, ECapabilityWriteDeviceData);
+   int ret = RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, RProperty::EInt, KReadPolicy, KWritePolicy);
+   RDebug::Printf( "%s %s (%u) EAutolockOff=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 1 );
+   RProperty::Set(KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, 1);
+   // End Dirty and quick hack
+		
+	
 	TApaTaskList taskList( CCoeEnv::Static()->WsSession() );
 	const TUid KAutolockUid = { 0x100059B5 };
 	TApaTask task( taskList.FindApp( KAutolockUid ) );