Merge "Creates new FLAG_APP_INACCESSIBLE flag for DeviceState" into tm-dev