Package 

Interface Files


  • 
    public interface Files
    
                        

    The interface to work with file permissions.

    Required: Started AdbServer 1. Download a file "kaspresso/artifacts/adbserver-desktop.jar" 2. Start AdbServer => input in cmd "java jar path_to_file/adbserver-desktop.jar" Methods demanding to use AdbServer in the default implementation of this interface are marked. But nobody can't deprecate you to write implementation that doesn't require AdbServer.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit push(String serverPath, String devicePath) Performs adb push.
      abstract Unit remove(String path) Removes a file by given path.
      abstract Unit pull(String devicePath, String serverPath) Performs adb pull.
      • Methods inherited from class com.kaspersky.kaspresso.device.files.Files

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • push

         abstract Unit push(String serverPath, String devicePath)

        Performs adb push.

        Required Permissions: INTERNET.

        Parameters:
        serverPath - a file path relative to the server directory.
        devicePath - a path to copy.
      • remove

         abstract Unit remove(String path)

        Removes a file by given path.

        Required Permissions: INTERNET

        Parameters:
        path - a path to remove
      • pull

         abstract Unit pull(String devicePath, String serverPath)

        Performs adb pull.

        Required Permissions: INTERNET.

        Parameters:
        devicePath - a file path relative to the device directory.
        serverPath - a path to copy.