How to disable wifi in local Android device using appium in Pcloudy?
driver.executeScript(“pCloudy_executeAdbCommand”, “adb shell am startservice –user 0 -n com.pcloudy.services/.wifiservice –ei \”op\” 1″);
driver.executeScript(“pCloudy_executeAdbCommand”, “adb shell am startservice –user 0 -n com.pcloudy.services/.wifiservice –ei \”op\” 1″);
String cmd1=”adb shell am startservice –user 0 -n com.pcloudy.services/.wifiservice –ei \”op\” 0″; driver.executeScript(“pCloudy_executeAdbCommand”, cmd1);
Code Snippet: Object obj = driver.executeScript(“pCloudy_executeAdbCommand”, “adb devices”); System.out.println(“@Output: ” + obj);
Code Snippet Object deviceId = driver.executeScript(“pCloudy_executeAdbCommand”, “adb devices”); Object mockLocation = driver.executeScript(“pCloudy_executeAdbCommand”, “adb -s “+deviceId+” shell appops set com.pcloudy.services android:mock_location allow”); double latitude = 28.585895; double longitude = 77.313255; Object …
For that, they need to trust the app before running their script and they need to resign (pCloudy Feature) their application and try to use resigned application with proper bundleId.