adb shell dumpsys window windows | grep mCurrentFocus
returned “mCurrentFocus=Window{7e2b422d0 u0 com.google.android.calculator/com.android.calculator2.Calculator}”
which made be realise I had appActivity and appPackage the wrong way around.
Also, the contents of appActivity needed changing from “/data/app/com.google.android.calculator-1/base.apk” to “com.android.calculator2.Calculator” Many thanks.