Extract security from agdroid

@secondsun Sorry for that. I'll use 10 only to don't break nothing, and in another PR, we update it to 15.