appiumappium-androidappium-desktop

How to solve the Appium WRITE_SECURE_PERMISSION denial error?


enter image description hereI tried to start the session in Appium with an Android APK . I given the three parameters like app location , platform name and device name but the when I start the session it shows an WRITE_SECURE_SETTINGS permission denial error . Can anyone help me to solve this ?


Solution

  • It is likely your appPackage and appActivity is incorrect.



    Shell in adb to find the apppPackage and appActivity

    adb shell
    


    Launch the app and type the below

    dumpsys window windows | grep -E 'mCurrentFocus'
    


    You will see that the appActivity and appPackage. They are separated with a "/" example "com.vender.org/com.vender.org.mainActivity"
    com.vender.org - appPackage
    com.vender.org.mainActivity - appActivity

    Source link