get open and role base activity pointer function added

Merged Vikram Ingawale requested to merge openRestrictedServicePtr into devbranch