(self, package, timeout=None, retries=None)
Get the data directory on the device for the given package.

    Args:
      package: Name of the package.

    Returns:
      The package's data directory.
    Raises:
      CommandFailedError if the package's data directory can't be found,
        whether because it's not installed or otherwise.
Get the data directory on the device for the given package.
Get the data directory on the device for the given package .
def GetApplicationDataDirectory(self, package, timeout=None, retries=None):
    """Get the data directory on the device for the given package.

    Args:
      package: Name of the package.

    Returns:
      The package's data directory.
    Raises:
      CommandFailedError if the package's data directory can't be found,
        whether because it's not installed or otherwise.
    """
    output = self._RunPipedShellCommand(
        'pm dump %s | grep dataDir=' % cmd_helper.SingleQuote(package))
    for line in output:
      _, _, dataDir = line.partition('dataDir=')
      if dataDir:
        return dataDir
    raise device_errors.CommandFailedError(
        'Could not find data directory for %s', package)
def GetApplicationDataDirectory ( self , package , timeout = None , retries = None ) : output = self . _RunPipedShellCommand ( 'pm dump %s | grep dataDir=' % cmd_helper . SingleQuote ( package ) ) for line in output : _ , _ , dataDir = line . partition ( 'dataDir=' ) if dataDir : return dataDir raise device_errors . CommandFailedError ( 'Could not find data directory for %s' , package )