Hi everyone,
it try to push a file to an android device.
File fi = new File("C:/Testfiles/hello_world.txt");
byte[] fileContent = Files.readAllBytes(fi.toPath());
BasicTest.driver.pushFile("/mnt/sdcard/MyFolder/hello_world.txt", fileContent);
This works fine on my Samsung device but if i try this on an Nexus it failed because the path “/mnt/sdcard/” is not correct. For nexus it should be “/storage/emulated/”.
Now my question. How can i get the correct path from the internal sdcard programaticly via the appium server? I start the appium server remote so the device is not directly connected to my pc where i execute the java script.
Thanks for help