The Dandanayaka of the Vijayanagar state was given the sole responsibility of maintaining law and order.