Permission management only in AOSP mode (XP3)

Fixes #1855