import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted});async function main() { const box = await gboxSDK.create({ type: "android" }); const androidApp = await box.app.get("com.android.settings"); // package name await androidApp.backup({ path: "/home/user/backup.apk" });}main();
Copy
Ask AI
This response does not have an example.
Android
Backup
POST
/
boxes
/
{boxId}
/
android
/
packages
/
{packageName}
/
backup
JavaScript
Copy
Ask AI
import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted});async function main() { const box = await gboxSDK.create({ type: "android" }); const androidApp = await box.app.get("com.android.settings"); // package name await androidApp.backup({ path: "/home/user/backup.apk" });}main();