Extract security from agdroid

This constructor can be private