if you need to clear app data on Android you just need to open driver with correct capabilities. check -> Different capabilities for different scenarios
and to add permissions after reset add above capability to driver also thus you reset app and grand permission right on driver start.