I am using pushFile() to copy a file in to the folder "/sdcard", which gets copied to "/internal storage/" folder inside the device, but with a different name and extension like "Appium.tmp". For our threat detection app to work it has to be having a name like "<my_malicious_app.apk>" file.
How do I rename the file after being copied from "Appium.tmp"
to "<my_malicious_app.apk>" ??