GET
/
boxes
/
{boxId}
/
android
/
packages
/
simple
JavaScript
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" });

  // List all Android apps installed on the box
  const androidPkgList = await box.pkg.listSimple();

  console.log(`Android Pkg List: ${JSON.stringify(androidPkgList, null, 2)}`);
}

main();
{
  "data": [
    {
      "packageName": "com.google.android.apps.googlevoice",
      "apkPath": "/data/app/com.google.android.apps.googlevoice-1/base.apk",
      "pkgType": "thirdParty"
    },
    {
      "packageName": "com.android.chrome",
      "apkPath": "/data/app/com.android.chrome-2/base.apk",
      "pkgType": "thirdParty"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your API Key in the format: Bearer <token>. Get it from https://gbox.ai

Path Parameters

boxId
string
required

Box ID

Example:

"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"

Query Parameters

pkgType
enum<string>[]

Package type: system or thirdParty, default is thirdParty

Example:
["thirdParty"]

Response

200 - application/json

Android pkg simple list

Response containing list of Android pkgs