fix aml permission(version2)

brings those lines back to aml_permissions, and change the order of aml_permissions and enum AML_DEVICE_TYPE aml_get_device_type()