move xml permissions to common
move device dependencies to common