Appium push/pull files into android device support

Since driver.push/pull is deprecated in java client 8 is there any other way to push/pull files?
Maybe using the: river.executeScript("mobile:shell,args) function ?

a?

/*
        <dependency>
            <groupId>io.appium</groupId>
            <artifactId>java-client</artifactId>
            <version>8.0.0</version>
*/
((AndroidDriver) driver).pullFile("path");