pullRessource(package_name,remote_path, local_path, deviceID=null){
        if(deviceID != null) {
            var binary_blob = Process.execSync(this.setup(deviceID) + 'shell "run-as '+ package_name+ ' cat ' + remote_path + '"').buffer;
            fs.writeFile(local_path,binary_blob,function(err) {
                if(err) {
                    Logger.error("[ADB] pullRessource() : an error occurs : "+err);
                }
            
                Logger.info("[ADB] The file was saved!");
            });
        }
    }
/**
     * Pull a remote resource into the project workspace with Application Privileges
     * Same as 'adb pull' commande.
     * 
     * @param {*} package_name The package name
     * @param {*} remote_path The path of the remote resource to download 
     * @param {*} local_path The path where the resource will be stored locally
     */
Pull a remote resource into the project workspace with Application Privileges
Same as 'adb pull' commande.

@param {*} package_name The package name
@param {*} remote_path The path of the remote resource to download
@param {*} local_path The path where the resource will be stored locally
Pull a remote resource into the project workspace with Application Privileges Same as ' adb pull ' commande . @param { * } package_name The package name @param { * } remote_path The path of the remote resource to download @param { * } local_path The path where the resource will be stored locally
pullRessource(package_name,remote_path, local_path, deviceID=null){
        if(deviceID != null) {
            var binary_blob = Process.execSync(this.setup(deviceID) + 'shell "run-as '+ package_name+ ' cat ' + remote_path + '"').buffer;
            fs.writeFile(local_path,binary_blob,function(err) {
                if(err) {
                    Logger.error("[ADB] pullRessource() : an error occurs : "+err);
                }
                Logger.info("[ADB] The file was saved!");
            });
        }
    }
pullRessource ( package_name , remote_path , local_path , deviceID = null ) { if ( deviceID != null ) { var binary_blob = Process . execSync ( this . setup ( deviceID ) + 'shell "run-as ' + package_name + ' cat ' + remote_path + '"' ) . buffer ; fs . writeFile ( local_path , binary_blob , function ( err ) { if ( err ) { Logger . error ( "[ADB] pullRessource() : an error occurs : " + err ) ; } Logger . info ( "[ADB] The file was saved!" ) ; } ) ; } }
Pull a remote resource into the project workspace with Application Privileges
 Same as 'adb pull' commande.
Pull a remote resource into the project workspace with Application Privileges Same as ' adb pull ' commande .