@alkaffkhan maybe better allow ALL permissions on app start will help you.
// java
capabilities.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, "true");
also you problem is that you point in capabilities to wait your APP activity BUT! it never happens due to appear permission dialog with another system package name and activity. see your error:
[ADB] Found package: ‘com.android.packageinstaller’ and fully qualified activity name : ‘com.android.packageinstaller.permission.ui.GrantPermissionsActivity’
Error: Error occured while starting App. Original error: ‘com.v.mastertestapplication.MainActivity’ never started