From 9bf27918a21698206b8f30ba35a3c730dd454279 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Tue, 13 Oct 2026 20:48:56 +0200 Subject: [PATCH 1/4] test: the other 15 Android library profiles, and Medium Tablet as Android's tablet (#488) --- src/drivers/android/index.test.ts | 56 +++++++++++- src/drivers/android/profiles/library.test.ts | 91 ++++++++++++++++++++ 2 files changed, 145 insertions(+), 2 deletions(-) diff --git a/src/drivers/android/index.test.ts b/src/drivers/android/index.test.ts index 37a570e4f..31bb55c96 100644 --- a/src/drivers/android/index.test.ts +++ b/src/drivers/android/index.test.ts @@ -4201,31 +4201,83 @@ async function provisionedHarness( * in this file's own `AndroidDriver.create` block. */ describe("AndroidDriver defaultModels", () => { - it("lists the built-in Android preference list per class, newest first, with phone starting at Pixel 9", async () => { + it("lists the built-in Android preference list per class, newest first, with phone starting at Pixel 9 and tablet holding Medium Tablet", async () => { const driver = await createDriver(await androidFilesystem(), new ScriptedProcessRunner([])); expect(driver.defaultModels).toEqual({ auto: ["Automotive (1080p landscape)", "Automotive (1024p landscape)"], desktop: ["Medium Desktop", "Large Desktop"], phone: ["Pixel 9", "Pixel 8", "Pixel 7", "Pixel 6", "Medium Phone"], + tablet: ["Medium Tablet"], tv: ["Television (1080p)", "Television (4K)"], watch: ["Wear OS Large Round", "Wear OS Small Round"], }); }); - it("has no Android list for tablet or vision", async () => { + it("has no Android list for vision", async () => { const driver = await createDriver(await androidFilesystem(), new ScriptedProcessRunner([])); expect(Object.keys(driver.defaultModels).sort()).toEqual([ "auto", "desktop", "phone", + "tablet", "tv", "watch", ]); }); }); +describe("AndroidDriver library catalog", () => { + const classes: Record = { + "Automotive (1024p landscape)": "auto", + "Automotive (1080p landscape)": "auto", + "Large Desktop": "desktop", + "Medium Desktop": "desktop", + "Medium Phone": "phone", + "Medium Tablet": "tablet", + "Pixel 6": "phone", + "Pixel 7": "phone", + "Pixel 8": "phone", + "Pixel 9": "phone", + "Pixel 9 Pro XL": "phone", + "Small Phone": "phone", + "Television (1080p)": "tv", + "Television (4K)": "tv", + "Wear OS Large Round": "watch", + "Wear OS Small Round": "watch", + }; + + it("every library model resolves, and the catalog lists all 16 with their table classes, when `avdmanager list device` lists none of them", async () => { + const runner = new ScriptedProcessRunner([ + processResult(binaries.avdmanager, ["list", "device"], "Available devices:\n"), + ]); + const driver = await createDriver(await androidFilesystem(), runner); + + const catalog = await driver.listCatalog(); + + expect(Object.keys(classes).filter((model) => !catalog.models.includes(model))).toEqual([]); + for (const [model, deviceClass] of Object.entries(classes)) { + expect(catalog.modelClasses[model], model).toBe(deviceClass); + } + expect(catalog.modelAliases["Television (4K)"]).toEqual(["tv_4k"]); + }); + + it("the catalog classes Medium Tablet `tablet` when `avdmanager list device` also lists `medium_tablet`", async () => { + const listing = + 'Available devices:\nid: 0 or "medium_tablet"\n Name: Medium Tablet\n OEM : Generic\n'; + const runner = new ScriptedProcessRunner([ + processResult(binaries.avdmanager, ["list", "device"], listing), + ]); + const driver = await createDriver(await androidFilesystem(), runner); + + const catalog = await driver.listCatalog(); + + expect(catalog.modelClasses["Medium Tablet"]).toBe("tablet"); + expect(catalog.models.filter((model) => model === "Medium Tablet")).toHaveLength(1); + }); +}); + describe("AndroidDriver toolVersions()", () => { it("reports emulator, platform-tools, and command-line tools revisions from each package's source.properties", async () => { const filesystem = await androidFilesystem(); diff --git a/src/drivers/android/profiles/library.test.ts b/src/drivers/android/profiles/library.test.ts index 402c0a395..36de352e3 100644 --- a/src/drivers/android/profiles/library.test.ts +++ b/src/drivers/android/profiles/library.test.ts @@ -42,6 +42,62 @@ function pixel9() { return profile; } +const TABLE = [ + ["pixel_8", "Pixel 8", "phone", undefined, 34, true, {}], + ["pixel_7", "Pixel 7", "phone", undefined, 33, true, {}], + ["pixel_6", "Pixel 6", "phone", undefined, 31, false, {}], + ["medium_phone", "Medium Phone", "phone", undefined, 24, true, {}], + ["small_phone", "Small Phone", "phone", undefined, 24, true, {}], + ["pixel_9_pro_xl", "Pixel 9 Pro XL", "phone", undefined, 35, true, {}], + ["medium_tablet", "Medium Tablet", "tablet", undefined, 24, true, {}], + ["tv_1080p", "Television (1080p)", "tv", "android-tv", 20, false, {}], + ["tv_4k", "Television (4K)", "tv", "android-tv", 31, false, {}], + [ + "wearos_large_round", + "Wear OS Large Round", + "watch", + "android-wear", + 20, + true, + { "ro.emulator.circular": "true" }, + ], + [ + "wearos_small_round", + "Wear OS Small Round", + "watch", + "android-wear", + 20, + true, + { "ro.emulator.circular": "true" }, + ], + [ + "automotive_1080p_landscape", + "Automotive (1080p landscape)", + "auto", + "android-automotive", + 28, + false, + {}, + ], + [ + "automotive_1024p_landscape", + "Automotive (1024p landscape)", + "auto", + "android-automotive-playstore", + 28, + true, + {}, + ], + ["desktop_medium", "Medium Desktop", "desktop", "android-desktop", 32, false, {}], + ["desktop_large", "Large Desktop", "desktop", "android-desktop", 32, false, {}], +] as const; + +function byId(id: string) { + const profile = LIBRARY_PROFILES.find((candidate) => candidate.id === id); + if (profile === undefined) throw new Error(`the library has no profile with id ${id}`); + return profile; +} + describe("the Android device profile library", () => { it("LIBRARY_HARDWARE_KEYS equals the hw.* and vm.heapSize keys of the Pixel 9 fixture without hw.cpu.arch and hw.device.hash2", () => { const expected = [...fixtureConfig().keys()].filter(isLibraryKey).sort(); @@ -70,6 +126,41 @@ describe("the Android device profile library", () => { expect(profile.bootProperties).toEqual({}); }); + it("the library holds exactly the 16 profiles #485 lists, by name", () => { + expect(LIBRARY_PROFILES.map((profile) => profile.name).sort()).toEqual( + ["Pixel 9", ...TABLE.map((row) => row[1])].sort(), + ); + }); + + it("each profile's class, image kind, API range, Play Store flag and boot properties match the table", () => { + for (const [id, name, deviceClass, imageKind, min, playStore, bootProperties] of TABLE) { + const profile = byId(id); + expect(profile.name, id).toBe(name); + expect(profile.deviceClass, id).toBe(deviceClass); + expect(profile.imageKind, id).toBe(imageKind); + expect(profile.apiRange, id).toEqual({ min }); + expect(profile.playStore, id).toBe(playStore); + expect(profile.bootProperties, id).toEqual(bootProperties); + } + }); + + it("Medium Tablet is the only profile marked tablet", () => { + expect(LIBRARY_PROFILES.filter((profile) => profile.tablet).map((p) => p.name)).toEqual([ + "Medium Tablet", + ]); + }); + + it("each profile answers to its id as its other name", () => { + for (const [id, name] of TABLE) { + expect(byId(id).names, id).toEqual([name, id]); + } + }); + + it("the two round Wear profiles set hw.lcd.circular=true", () => { + expect(byId("wearos_large_round").hardware["hw.lcd.circular"]).toBe("true"); + expect(byId("wearos_small_round").hardware["hw.lcd.circular"]).toBe("true"); + }); + it("the source lists exactly the profiles the library holds", async () => { const listed = await new LibraryDeviceProfileSource().profiles(); From b52fe22888194b1f5fccb7d952f4d9112de6f4a2 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Tue, 13 Oct 2026 20:52:51 +0200 Subject: [PATCH 2/4] feat(android): the other 15 library profiles, and Medium Tablet as Android's tablet (#488) Spec tests: 5 failing -> 0 failing; existing catalog tests updated for the library now answering first (SDK fixture model Pixel 8 -> Pixel 5). --- docs/CLI.md | 2 +- docs/CONFIGURATION.md | 8 +- src/drivers/android/index.test.ts | 173 ++++++++++-------- src/drivers/android/index.ts | 5 +- .../profiles/automotive-1024p-landscape.ts | 121 ++++++++++++ .../profiles/automotive-1080p-landscape.ts | 121 ++++++++++++ src/drivers/android/profiles/desktop-large.ts | 121 ++++++++++++ .../android/profiles/desktop-medium.ts | 121 ++++++++++++ src/drivers/android/profiles/index.ts | 34 +++- src/drivers/android/profiles/medium-phone.ts | 121 ++++++++++++ src/drivers/android/profiles/medium-tablet.ts | 121 ++++++++++++ src/drivers/android/profiles/pixel-6.ts | 121 ++++++++++++ src/drivers/android/profiles/pixel-7.ts | 121 ++++++++++++ src/drivers/android/profiles/pixel-8.ts | 121 ++++++++++++ .../android/profiles/pixel-9-pro-xl.ts | 121 ++++++++++++ src/drivers/android/profiles/small-phone.ts | 121 ++++++++++++ src/drivers/android/profiles/tv-1080p.ts | 121 ++++++++++++ src/drivers/android/profiles/tv-4k.ts | 121 ++++++++++++ .../android/profiles/wearos-large-round.ts | 121 ++++++++++++ .../android/profiles/wearos-small-round.ts | 121 ++++++++++++ 20 files changed, 1953 insertions(+), 84 deletions(-) create mode 100644 src/drivers/android/profiles/automotive-1024p-landscape.ts create mode 100644 src/drivers/android/profiles/automotive-1080p-landscape.ts create mode 100644 src/drivers/android/profiles/desktop-large.ts create mode 100644 src/drivers/android/profiles/desktop-medium.ts create mode 100644 src/drivers/android/profiles/medium-phone.ts create mode 100644 src/drivers/android/profiles/medium-tablet.ts create mode 100644 src/drivers/android/profiles/pixel-6.ts create mode 100644 src/drivers/android/profiles/pixel-7.ts create mode 100644 src/drivers/android/profiles/pixel-8.ts create mode 100644 src/drivers/android/profiles/pixel-9-pro-xl.ts create mode 100644 src/drivers/android/profiles/small-phone.ts create mode 100644 src/drivers/android/profiles/tv-1080p.ts create mode 100644 src/drivers/android/profiles/tv-4k.ts create mode 100644 src/drivers/android/profiles/wearos-large-round.ts create mode 100644 src/drivers/android/profiles/wearos-small-round.ts diff --git a/docs/CLI.md b/docs/CLI.md index fa1823278..cce51766d 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -523,7 +523,7 @@ without `--allow-download`. The grant always names the model, OS, mode and image tag of the device you got. A class is a claim about the device type the platform's tools report: on iOS the product family, on Android the profile's tag, and every untagged -Android profile is a `phone`, so `tablet` holds no Android model. +Android profile is a `phone`, except Medium Tablet, the one Android `tablet`. Through a gateway the same requests work: a class, no model at all, and an `--os` range are served by any worker that has something fitting, and the diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index d9e8b2f01..af72f8bdd 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -488,7 +488,7 @@ The list is the names you set, then Simlock's own list for the platform: | Class | iOS, newest first | Android, newest first | | --------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | | `phone` | iPhone 17, iPhone 16, iPhone 15, iPhone 14, iPhone 13 | Pixel 9, Pixel 8, Pixel 7, Pixel 6, Medium Phone | -| `tablet` | iPad Pro 11-inch (M5), iPad Pro 11-inch (M4), iPad Air 11-inch (M3), iPad (A16), iPad (10th generation) | none | +| `tablet` | iPad Pro 11-inch (M5), iPad Pro 11-inch (M4), iPad Air 11-inch (M3), iPad (A16), iPad (10th generation) | Medium Tablet | | `watch` | Apple Watch Series 11 (46mm), Apple Watch Series 10 (46mm), Apple Watch Series 9 (45mm) | Wear OS Large Round, Wear OS Small Round | | `tv` | Apple TV 4K (3rd generation), Apple TV | Television (1080p), Television (4K) | | `vision` | Apple Vision Pro | none | @@ -525,8 +525,10 @@ shows when the tag or the OS rules out the first names. It never downloads. A class with no listed name fails the lease at once with `UNKNOWN_MODEL`, naming `ios.defaultModels.` or `android.defaultModels.`, and a class whose listed names pair with no installed runtime fails with -`RUNTIME_MISSING`. Android has no `tablet` model, and setting -`android.defaultModels.tablet` does not add one. +`RUNTIME_MISSING`. On Android, `tablet` holds Medium Tablet only; a name you +set in `android.defaultModels.tablet` counts only if the catalog classes it +`tablet`. A name in `android.defaultModels.phone` that is Medium Tablet is +skipped, as any name of another class is. ## Android emulator launch options diff --git a/src/drivers/android/index.test.ts b/src/drivers/android/index.test.ts index 31bb55c96..62015e340 100644 --- a/src/drivers/android/index.test.ts +++ b/src/drivers/android/index.test.ts @@ -63,9 +63,26 @@ const binaries = { emulator: `${sdk}/emulator/emulator`, sdkmanager: `${sdk}/cmdline-tools/latest/bin/sdkmanager`, } as const; -const pixelDevices = `Available devices:\nid: 0 or "pixel_8"\n Name: Pixel 8\n OEM : Google\n`; +const libraryModels = LIBRARY_PROFILES.map((profile) => profile.name); + +function libraryAliases(extra: Record): Record { + return { ...Object.fromEntries(LIBRARY_PROFILES.map((p) => [p.name, [p.id]])), ...extra }; +} + +function libraryClasses(extra: Record): Record { + return { ...Object.fromEntries(LIBRARY_PROFILES.map((p) => [p.name, p.deviceClass])), ...extra }; +} + +function libraryRuntimes( + runtimes: string[], + extra: Record, +): Record { + return { ...Object.fromEntries(LIBRARY_PROFILES.map((p) => [p.name, runtimes])), ...extra }; +} + +const pixelDevices = `Available devices:\nid: 0 or "pixel_5"\n Name: Pixel 5\n OEM : Google\n`; const twoPixelDevices = - `Available devices:\nid: 0 or "pixel_8"\n Name: Pixel 8\n OEM : Google\n` + + `Available devices:\nid: 0 or "pixel_5"\n Name: Pixel 5\n OEM : Google\n` + `---------\nid: 1 or "pixel_9"\n Name: Pixel 9\n OEM : Google\n`; const VIRTUAL_DEVICE = { @@ -143,9 +160,9 @@ describe("AndroidDriver", () => { ]); const driver = await createDriver(filesystem, runner); - await expect(driver.resolveSpec({ model: "Pixel 8", platform: "android" })).resolves.toEqual({ + await expect(driver.resolveSpec({ model: "Pixel 5", platform: "android" })).resolves.toEqual({ physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -164,9 +181,9 @@ describe("AndroidDriver", () => { ]); const driver = await createDriver(filesystem, runner); - await expect(driver.resolveSpec({ model: "Pixel 8", platform: "android" })).resolves.toEqual({ + await expect(driver.resolveSpec({ model: "Pixel 5", platform: "android" })).resolves.toEqual({ physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "35", platform: "android", }); @@ -181,7 +198,7 @@ describe("AndroidDriver", () => { await expect( driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "35", platform: "android", }), @@ -206,7 +223,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.adb, ["devices"], "List of devices attached\n"), @@ -231,7 +248,7 @@ describe("AndroidDriver", () => { const spec = await driver.resolveSpec({ imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -240,7 +257,7 @@ describe("AndroidDriver", () => { expect(spec).toEqual({ physical: false, imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -258,7 +275,7 @@ describe("AndroidDriver", () => { const failure = await driver .resolveSpec({ imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }) @@ -283,7 +300,7 @@ describe("AndroidDriver", () => { await expect( driver.resolveSpec({ imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", platform: "android", }), ).resolves.toMatchObject({ imageTag: "google_apis_playstore", osVersion: "34" }); @@ -296,12 +313,12 @@ describe("AndroidDriver", () => { ["34", "google_apis", "arm64-v8a"], ]); - const spec = await driver.resolveSpec({ model: "Pixel 8", platform: "android" }); + const spec = await driver.resolveSpec({ model: "Pixel 5", platform: "android" }); await driver.provision(spec); expect(spec).toEqual({ physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -321,7 +338,7 @@ describe("AndroidDriver", () => { const spec = await driver.resolveSpec({ imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -340,7 +357,7 @@ describe("AndroidDriver", () => { const spec = await driver.resolveSpec({ imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -355,7 +372,7 @@ describe("AndroidDriver", () => { const { driver } = await taggedHarness([["34", "google_apis", "arm64-v8a"]]); const failure = await driver - .resolveSpec({ imageTag: "google_apis_playstore", model: "Pixel 8", platform: "android" }) + .resolveSpec({ imageTag: "google_apis_playstore", model: "Pixel 5", platform: "android" }) .catch((error: unknown) => error); expect(failure).toMatchObject({ @@ -373,7 +390,7 @@ describe("AndroidDriver", () => { ]); const spec = await driver.resolveSpec({ imageTag: "google_apis_playstore", - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -394,7 +411,7 @@ describe("AndroidDriver", () => { it("boots concurrent devices on different even ports and skips ports adb shows taken", async () => { const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -453,7 +470,7 @@ describe("AndroidDriver", () => { }); const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -1170,14 +1187,14 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.avdmanager, ["delete", "avd", "-n", "simlock_delete-me"]), ]); const driver: Driver = await createDriver(filesystem, runner, { ids: ["delete-me"] }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -1197,7 +1214,7 @@ describe("AndroidDriver", () => { ); const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -1213,7 +1230,7 @@ describe("AndroidDriver", () => { ); const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -1247,10 +1264,10 @@ describe("AndroidDriver", () => { { abi: "arm64-v8a", runtime: "35", tag: "google_apis" }, { abi: "x86_64", runtime: "35", tag: "google_apis" }, ], - modelAliases: { "Pixel 8": ["pixel_8"], "Pixel 9": ["pixel_9"] }, - modelClasses: { "Pixel 8": "phone", "Pixel 9": "phone" }, - modelRuntimes: { "Pixel 8": ["34", "35"], "Pixel 9": ["34", "35"] }, - models: ["Pixel 9", "Pixel 8"], + modelAliases: libraryAliases({ "Pixel 5": ["pixel_5"] }), + modelClasses: libraryClasses({ "Pixel 5": "phone" }), + modelRuntimes: libraryRuntimes(["34", "35"], { "Pixel 5": ["34", "35"] }), + models: [...libraryModels, "Pixel 5"], runtimes: ["34", "35"], }); }); @@ -1270,8 +1287,10 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.models).toEqual(["Pixel 9", "Pixel 8"]); - expect(catalog.modelRuntimes).toEqual({ "Pixel 8": ["33", "35"], "Pixel 9": ["33", "35"] }); + expect(catalog.models).toEqual([...libraryModels, "Pixel 5"]); + expect(catalog.modelRuntimes).toEqual( + libraryRuntimes(["33", "35"], { "Pixel 5": ["33", "35"] }), + ); }); it("resolves every pair listCatalog lists", async () => { @@ -1291,7 +1310,7 @@ describe("AndroidDriver", () => { const pairs = Object.entries(catalog.modelRuntimes).flatMap(([model, runtimes]) => runtimes.map((osVersion) => ({ model, osVersion })), ); - expect(pairs).toHaveLength(4); + expect(pairs).toHaveLength((libraryModels.length + 1) * 2); for (const { model, osVersion } of pairs) { await expect(driver.resolveSpec({ model, osVersion, platform: "android" })).resolves.toEqual({ @@ -1313,10 +1332,10 @@ describe("AndroidDriver", () => { await expect(driver.listCatalog()).resolves.toEqual({ defaultRuntime: undefined, images: [], - modelAliases: { "Pixel 8": ["pixel_8"], "Pixel 9": ["pixel_9"] }, - modelClasses: { "Pixel 8": "phone", "Pixel 9": "phone" }, - modelRuntimes: { "Pixel 8": [], "Pixel 9": [] }, - models: ["Pixel 9", "Pixel 8"], + modelAliases: libraryAliases({ "Pixel 5": ["pixel_5"] }), + modelClasses: libraryClasses({ "Pixel 5": "phone" }), + modelRuntimes: libraryRuntimes([], { "Pixel 5": [] }), + models: [...libraryModels, "Pixel 5"], runtimes: [], }); }); @@ -1341,7 +1360,7 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.modelAliases).toEqual({ "Pixel 8": ["pixel_8"], "Pixel 9": ["pixel_9"] }); + expect(catalog.modelAliases).toEqual(libraryAliases({ "Pixel 5": ["pixel_5"] })); }); it("lists no other name when the id equals the display name ignoring case", async () => { @@ -1349,7 +1368,7 @@ describe("AndroidDriver", () => { processResult( binaries.avdmanager, ["list", "device"], - `Available devices:\nid: 0 or "pixel_8"\n Name: Pixel 8\n---------\n` + + `Available devices:\nid: 0 or "pixel_5"\n Name: Pixel 5\n---------\n` + `id: 1 or "Automotive_1024p"\n Name: automotive_1024p\n`, ), ]); @@ -1357,8 +1376,8 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.models).toEqual(["Pixel 9", "Pixel 8", "automotive_1024p"]); - expect(catalog.modelAliases).toEqual({ "Pixel 8": ["pixel_8"], "Pixel 9": ["pixel_9"] }); + expect(catalog.models).toEqual([...libraryModels, "Pixel 5", "automotive_1024p"]); + expect(catalog.modelAliases).toEqual(libraryAliases({ "Pixel 5": ["pixel_5"] })); }); it("resolves every listed name of every listed model, in upper and lower case, to that model", async () => { @@ -1375,7 +1394,7 @@ describe("AndroidDriver", () => { { model, name: model }, ...(catalog.modelAliases[model] ?? []).map((name) => ({ model, name })), ]); - expect(names).toHaveLength(5); + expect(names).toHaveLength(libraryModels.length * 2 + 3); for (const { model, name } of names) { for (const spelling of [name.toUpperCase(), name.toLowerCase()]) { @@ -1393,7 +1412,7 @@ describe("AndroidDriver", () => { const filesystem = await androidFilesystem(); await writeDevicesXml( filesystem, - customDeviceXml("pixel_8", 4096) + + customDeviceXml("pixel_5", 4096) + customDeviceXml("PIXEL 9", 4096) + customDeviceXml("My Tablet", 4096), ); @@ -1404,7 +1423,7 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.models).toEqual(["Pixel 9", "Pixel 8", "pixel_8", "My Tablet"]); + expect(catalog.models).toEqual([...libraryModels, "Pixel 5", "pixel_5", "My Tablet"]); expect(Object.keys(catalog.modelRuntimes)).toEqual(catalog.models); }); @@ -1418,7 +1437,7 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.models).toEqual(["Pixel 9", "Pixel 8", "My Tablet"]); + expect(catalog.models).toEqual([...libraryModels, "Pixel 5", "My Tablet"]); expect(catalog.customModels).toEqual(["My Tablet"]); }); @@ -1433,7 +1452,7 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.models).toEqual(["Pixel 9", "Pixel 8"]); + expect(catalog.models).toEqual([...libraryModels, "Pixel 5"]); expect(catalog).not.toHaveProperty("customModels"); }); @@ -1447,8 +1466,8 @@ describe("AndroidDriver", () => { const catalog = await driver.listCatalog(); - expect(catalog.models).toEqual(["Pixel 9", "Pixel 8"]); - expect(catalog.modelAliases).toEqual({ "Pixel 8": ["pixel_8"], "Pixel 9": ["pixel_9"] }); + expect(catalog.models).toEqual([...libraryModels, "Pixel 5"]); + expect(catalog.modelAliases).toEqual(libraryAliases({ "Pixel 5": ["pixel_5"] })); expect(runner.calls.filter((call) => call.command === binaries.avdmanager)).toHaveLength(1); }); @@ -1666,7 +1685,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), ...baselineBuildExpectations({ launchArgs: ["-no-snapshot-load"] }), @@ -1688,7 +1707,7 @@ describe("AndroidDriver", () => { ]); const driver = await createDriver(filesystem, runner, { clock, ids: ["one"] }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -1722,7 +1741,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), ...baselineBuildExpectations({ launchArgs: ["-no-snapshot-load"] }), @@ -1730,7 +1749,7 @@ describe("AndroidDriver", () => { ]); const driver = await createDriver(filesystem, runner, { ids: ["one"] }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -1772,7 +1791,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.adb, ["devices"], "List of devices attached\n"), @@ -1789,7 +1808,7 @@ describe("AndroidDriver", () => { }); const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -1951,7 +1970,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.adb, ["devices"], "List of devices attached\n"), @@ -1977,7 +1996,7 @@ describe("AndroidDriver", () => { expect(config).toContain("hw.ramSize=4096"); // The avdmanager `-d` seed uses a built-in device only to skip the interactive prompt -- // it must never leak into the resolved spec or the applied hardware properties. - expect(config).not.toContain("pixel_8"); + expect(config).not.toContain("pixel_5"); expect(device.driverData).toMatchObject({ avdName: "simlock_one" }); }); @@ -1997,7 +2016,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.adb, ["devices"], "List of devices attached\n"), @@ -2021,9 +2040,9 @@ describe("AndroidDriver", () => { it("shadows a devices.xml profile with a built-in one of the same name and never applies properties", async () => { const filesystem = await androidFilesystem(); - // Same name as the built-in fixture's "Pixel 8" -- the built-in source is registered + // why: same name as the built-in fixture's "Pixel 5" -- the built-in source is registered // first, so it must win and the devices.xml properties must never be touched. - await writeDevicesXml(filesystem, customDeviceXml("Pixel 8", 4096)); + await writeDevicesXml(filesystem, customDeviceXml("Pixel 5", 4096)); const runner = new ScriptedProcessRunner([ processResult(binaries.avdmanager, ["list", "device"], pixelDevices), processResult(binaries.avdmanager, [ @@ -2034,7 +2053,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.adb, ["devices"], "List of devices attached\n"), @@ -2042,7 +2061,7 @@ describe("AndroidDriver", () => { const driver = await createDriver(filesystem, runner, { ids: ["one"] }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -2075,7 +2094,7 @@ describe("AndroidDriver", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), ]); const maliciousSource = { @@ -2177,7 +2196,7 @@ describe("AndroidDriver", () => { await harness.provision("Pixel 9"); expect((await harness.config()).get("hw.lcd.height")).toBe("2424"); - expect(harness.seedDeviceId()).toBe("pixel_8"); + expect(harness.seedDeviceId()).toBe("pixel_5"); }); it('resolves "Pixel 9" to the library profile when `devices.xml` defines a "Pixel 9"', async () => { @@ -2210,11 +2229,11 @@ describe("AndroidDriver", () => { devicesXml: customDeviceXml("Custom A", 4096), listing: pixelDevices, }); - const sdkSpec = await sdkHarness.resolve("Pixel 8"); + const sdkSpec = await sdkHarness.resolve("Pixel 5"); await sdkHarness.driver.provision(sdkSpec); - expect(sdkSpec.model).toBe("Pixel 8"); - expect(sdkHarness.seedDeviceId()).toBe("pixel_8"); + expect(sdkSpec.model).toBe("Pixel 5"); + expect(sdkHarness.seedDeviceId()).toBe("pixel_5"); expect((await sdkHarness.config()).has("hw.lcd.height")).toBe(false); const userHarness = await libraryHarness({ @@ -2502,8 +2521,8 @@ describe("AndroidDriver", () => { const lacksPixel9 = await libraryHarness({ listing: pixelDevices }); await lacksPixel9.provision("Pixel 9"); - expect(listsPixel9.seedDeviceId()).toBe("pixel_8"); - expect(lacksPixel9.seedDeviceId()).toBe("pixel_8"); + expect(listsPixel9.seedDeviceId()).toBe("pixel_5"); + expect(lacksPixel9.seedDeviceId()).toBe("pixel_5"); }); }); @@ -2889,7 +2908,7 @@ describe("AndroidDriver.create", () => { }); expect(driver.leaseEnvironment(VIRTUAL_DEVICE)).toEqual({ ANDROID_ADB_SERVER_PORT: "5199" }); - await driver.resolveSpec({ model: "Pixel 8", platform: "android" }); + await driver.resolveSpec({ model: "Pixel 5", platform: "android" }); expect(runner.calls[0]?.options).toEqual({ env: { ...scopedEnv, ANDROID_ADB_SERVER_PORT: "5199" }, }); @@ -3255,7 +3274,7 @@ describe("AndroidDriver readiness on a taken console port", () => { it("refuses to ready a device whose serial an emulator of an AVD outside its root answers, and changes nothing on that emulator, even when the device is then shut down (#256)", async () => { const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -3324,7 +3343,7 @@ describe("AndroidDriver readiness on a taken console port", () => { const runner = answeringAvdPath(host.runner(), ok(answer)); const driver = await createDriver(filesystem, runner, { ids: ["one"] }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -3386,7 +3405,7 @@ describe("AndroidDriver readiness on a taken console port", () => { const runner = answeringAvdPath(host.runner(), answer); const driver = await createDriver(filesystem, runner, { ids: ["one"] }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -3473,7 +3492,7 @@ describe("AndroidDriver console ports across a restart", () => { it("readies a stopped device and one provisioned after a restart each at an address its own emulator answers (#52)", async () => { const spec = { physical: false, - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", } as const; @@ -3503,7 +3522,7 @@ describe("AndroidDriver console ports across a restart", () => { }); describe("AndroidDriver console port reservations", () => { - const spec = { physical: false, model: "Pixel 8", osVersion: "34", platform: "android" } as const; + const spec = { physical: false, model: "Pixel 5", osVersion: "34", platform: "android" } as const; it("keeps a device's console port across its stops, so a call on its stopped record reaches no other device", async () => { const filesystem = await androidFilesystem(); @@ -3571,7 +3590,7 @@ describe("AndroidDriver console port reservations", () => { "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), processResult(binaries.adb, ["devices"], "List of devices attached\n"), @@ -3615,7 +3634,7 @@ describe("AndroidDriver console port reservations", () => { }, ); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); @@ -4058,7 +4077,7 @@ live( tcpProbe: new NodeTcpProbe(), }); const spec = await driver.resolveSpec({ - model: process.env.SIMLOCK_LIVE_ANDROID_MODEL ?? "Pixel 8", + model: process.env.SIMLOCK_LIVE_ANDROID_MODEL ?? "Pixel 5", platform: "android", ...(process.env.SIMLOCK_LIVE_ANDROID_API === undefined ? {} @@ -4114,7 +4133,7 @@ async function provisionedHarness( "-k", /.+/, "-d", - "pixel_8", + "pixel_5", ]), processResult(binaries.emulator, ["-version"], "Android emulator version 36.1.9"), ]; @@ -4184,7 +4203,7 @@ async function provisionedHarness( tcpProbe, }); const spec = await driver.resolveSpec({ - model: "Pixel 8", + model: "Pixel 5", osVersion: "34", platform: "android", }); diff --git a/src/drivers/android/index.ts b/src/drivers/android/index.ts index 0d0ffd925..d3c97fb56 100644 --- a/src/drivers/android/index.ts +++ b/src/drivers/android/index.ts @@ -266,13 +266,14 @@ interface SystemImage { export const ANDROID_PASSTHROUGH_TOOLS: readonly string[] = ["adb"]; /** - * ADR 0015 §4: the models Simlock tries for each class on Android when the operator names none - * first, newest first. A profile is never `tablet` or `vision` on Android, so neither has a list. + * why: ADR 0015 §4: the models Simlock tries for each class on Android when the operator names none + * first, newest first. Medium Tablet is Android's only `tablet`; Android has no `vision` list. */ const ANDROID_DEFAULT_MODELS: Readonly>> = { auto: ["Automotive (1080p landscape)", "Automotive (1024p landscape)"], desktop: ["Medium Desktop", "Large Desktop"], phone: ["Pixel 9", "Pixel 8", "Pixel 7", "Pixel 6", "Medium Phone"], + tablet: ["Medium Tablet"], tv: ["Television (1080p)", "Television (4K)"], watch: ["Wear OS Large Round", "Wear OS Small Round"], }; diff --git a/src/drivers/android/profiles/automotive-1024p-landscape.ts b/src/drivers/android/profiles/automotive-1024p-landscape.ts new file mode 100644 index 000000000..1710a4f58 --- /dev/null +++ b/src/drivers/android/profiles/automotive-1024p-landscape.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const AUTOMOTIVE_1024P_LANDSCAPE: LibraryDeviceProfile = { + kind: "library", + name: "Automotive (1024p landscape)", + id: "automotive_1024p_landscape", + names: ["Automotive (1024p landscape)", "automotive_1024p_landscape"], + deviceClass: "auto", + imageKind: "android-automotive-playstore", + apiRange: { min: 28 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "no", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "no", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "automotive_1024p_landscape", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "no", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "160", + "hw.lcd.depth": "16", + "hw.lcd.height": "768", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1024", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "no", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "no", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "no", + "hw.sensors.pressure": "no", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "80M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/automotive-1080p-landscape.ts b/src/drivers/android/profiles/automotive-1080p-landscape.ts new file mode 100644 index 000000000..af4d682d9 --- /dev/null +++ b/src/drivers/android/profiles/automotive-1080p-landscape.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const AUTOMOTIVE_1080P_LANDSCAPE: LibraryDeviceProfile = { + kind: "library", + name: "Automotive (1080p landscape)", + id: "automotive_1080p_landscape", + names: ["Automotive (1080p landscape)", "automotive_1080p_landscape"], + deviceClass: "auto", + imageKind: "android-automotive", + apiRange: { min: 28 }, + playStore: false, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "no", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "automotive_1080p_landscape", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "120", + "hw.lcd.depth": "16", + "hw.lcd.height": "600", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1080", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "no", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "no", + "hw.sensors.magnetic_field": "no", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "no", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "48M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/desktop-large.ts b/src/drivers/android/profiles/desktop-large.ts new file mode 100644 index 000000000..981291b72 --- /dev/null +++ b/src/drivers/android/profiles/desktop-large.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const DESKTOP_LARGE: LibraryDeviceProfile = { + kind: "library", + name: "Large Desktop", + id: "desktop_large", + names: ["Large Desktop", "desktop_large"], + deviceClass: "desktop", + imageKind: "android-desktop", + apiRange: { min: 32 }, + playStore: false, + tablet: false, + hardware: { + "hw.accelerometer": "no", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "desktop_large", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "no", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "no", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "160", + "hw.lcd.depth": "16", + "hw.lcd.height": "1080", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1920", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "no", + "hw.sensors.magnetic_field": "no", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "no", + "hw.sensors.pressure": "no", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "80M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/desktop-medium.ts b/src/drivers/android/profiles/desktop-medium.ts new file mode 100644 index 000000000..174a318cb --- /dev/null +++ b/src/drivers/android/profiles/desktop-medium.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const DESKTOP_MEDIUM: LibraryDeviceProfile = { + kind: "library", + name: "Medium Desktop", + id: "desktop_medium", + names: ["Medium Desktop", "desktop_medium"], + deviceClass: "desktop", + imageKind: "android-desktop", + apiRange: { min: 32 }, + playStore: false, + tablet: false, + hardware: { + "hw.accelerometer": "no", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "desktop_medium", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "no", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "no", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "320", + "hw.lcd.depth": "16", + "hw.lcd.height": "2160", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "3840", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "no", + "hw.sensors.magnetic_field": "no", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "no", + "hw.sensors.pressure": "no", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "192M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/index.ts b/src/drivers/android/profiles/index.ts index 5f09c9176..1285ef57e 100644 --- a/src/drivers/android/profiles/index.ts +++ b/src/drivers/android/profiles/index.ts @@ -1,9 +1,41 @@ import type { DeviceProfile, DeviceProfileSource } from "../device-profile-source.js"; +import { AUTOMOTIVE_1024P_LANDSCAPE } from "./automotive-1024p-landscape.js"; +import { AUTOMOTIVE_1080P_LANDSCAPE } from "./automotive-1080p-landscape.js"; +import { DESKTOP_LARGE } from "./desktop-large.js"; +import { DESKTOP_MEDIUM } from "./desktop-medium.js"; +import { MEDIUM_PHONE } from "./medium-phone.js"; +import { MEDIUM_TABLET } from "./medium-tablet.js"; +import { PIXEL_6 } from "./pixel-6.js"; +import { PIXEL_7 } from "./pixel-7.js"; +import { PIXEL_8 } from "./pixel-8.js"; import { PIXEL_9 } from "./pixel-9.js"; +import { PIXEL_9_PRO_XL } from "./pixel-9-pro-xl.js"; +import { SMALL_PHONE } from "./small-phone.js"; +import { TV_1080P } from "./tv-1080p.js"; +import { TV_4K } from "./tv-4k.js"; +import { WEAROS_LARGE_ROUND } from "./wearos-large-round.js"; +import { WEAROS_SMALL_ROUND } from "./wearos-small-round.js"; export type LibraryDeviceProfile = Extract; -export const LIBRARY_PROFILES: readonly LibraryDeviceProfile[] = [PIXEL_9]; +export const LIBRARY_PROFILES: readonly LibraryDeviceProfile[] = [ + PIXEL_9, + PIXEL_8, + PIXEL_7, + PIXEL_6, + MEDIUM_PHONE, + SMALL_PHONE, + PIXEL_9_PRO_XL, + MEDIUM_TABLET, + TV_1080P, + TV_4K, + WEAROS_LARGE_ROUND, + WEAROS_SMALL_ROUND, + AUTOMOTIVE_1080P_LANDSCAPE, + AUTOMOTIVE_1024P_LANDSCAPE, + DESKTOP_MEDIUM, + DESKTOP_LARGE, +]; export class LibraryDeviceProfileSource implements DeviceProfileSource { async profiles(): Promise { diff --git a/src/drivers/android/profiles/medium-phone.ts b/src/drivers/android/profiles/medium-phone.ts new file mode 100644 index 000000000..71c742e57 --- /dev/null +++ b/src/drivers/android/profiles/medium-phone.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const MEDIUM_PHONE: LibraryDeviceProfile = { + kind: "library", + name: "Medium Phone", + id: "medium_phone", + names: ["Medium Phone", "medium_phone"], + deviceClass: "phone", + imageKind: undefined, + apiRange: { min: 24 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Generic", + "hw.device.name": "medium_phone", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "420", + "hw.lcd.depth": "16", + "hw.lcd.height": "2400", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1080", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "228M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/medium-tablet.ts b/src/drivers/android/profiles/medium-tablet.ts new file mode 100644 index 000000000..c0c8140b6 --- /dev/null +++ b/src/drivers/android/profiles/medium-tablet.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const MEDIUM_TABLET: LibraryDeviceProfile = { + kind: "library", + name: "Medium Tablet", + id: "medium_tablet", + names: ["Medium Tablet", "medium_tablet"], + deviceClass: "tablet", + imageKind: undefined, + apiRange: { min: 24 }, + playStore: true, + tablet: true, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Generic", + "hw.device.name": "medium_tablet", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "320", + "hw.lcd.depth": "16", + "hw.lcd.height": "1600", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "2560", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "1907", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "192M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/pixel-6.ts b/src/drivers/android/profiles/pixel-6.ts new file mode 100644 index 000000000..8e09f28aa --- /dev/null +++ b/src/drivers/android/profiles/pixel-6.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const PIXEL_6: LibraryDeviceProfile = { + kind: "library", + name: "Pixel 6", + id: "pixel_6", + names: ["Pixel 6", "pixel_6"], + deviceClass: "phone", + imageKind: undefined, + apiRange: { min: 31 }, + playStore: false, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "pixel_6", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "420", + "hw.lcd.depth": "16", + "hw.lcd.height": "2400", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1080", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "228M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/pixel-7.ts b/src/drivers/android/profiles/pixel-7.ts new file mode 100644 index 000000000..d545eb3ab --- /dev/null +++ b/src/drivers/android/profiles/pixel-7.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const PIXEL_7: LibraryDeviceProfile = { + kind: "library", + name: "Pixel 7", + id: "pixel_7", + names: ["Pixel 7", "pixel_7"], + deviceClass: "phone", + imageKind: undefined, + apiRange: { min: 33 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "pixel_7", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "420", + "hw.lcd.depth": "16", + "hw.lcd.height": "2400", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1080", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "228M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/pixel-8.ts b/src/drivers/android/profiles/pixel-8.ts new file mode 100644 index 000000000..fb5b9909d --- /dev/null +++ b/src/drivers/android/profiles/pixel-8.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const PIXEL_8: LibraryDeviceProfile = { + kind: "library", + name: "Pixel 8", + id: "pixel_8", + names: ["Pixel 8", "pixel_8"], + deviceClass: "phone", + imageKind: undefined, + apiRange: { min: 34 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "pixel_8", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "420", + "hw.lcd.depth": "16", + "hw.lcd.height": "2400", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1080", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "228M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/pixel-9-pro-xl.ts b/src/drivers/android/profiles/pixel-9-pro-xl.ts new file mode 100644 index 000000000..8e395da82 --- /dev/null +++ b/src/drivers/android/profiles/pixel-9-pro-xl.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const PIXEL_9_PRO_XL: LibraryDeviceProfile = { + kind: "library", + name: "Pixel 9 Pro XL", + id: "pixel_9_pro_xl", + names: ["Pixel 9 Pro XL", "pixel_9_pro_xl"], + deviceClass: "phone", + imageKind: undefined, + apiRange: { min: 35 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "pixel_9_pro_xl", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "480", + "hw.lcd.depth": "16", + "hw.lcd.height": "2992", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1344", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "2G", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "256M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/small-phone.ts b/src/drivers/android/profiles/small-phone.ts new file mode 100644 index 000000000..eedf2c2a8 --- /dev/null +++ b/src/drivers/android/profiles/small-phone.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const SMALL_PHONE: LibraryDeviceProfile = { + kind: "library", + name: "Small Phone", + id: "small_phone", + names: ["Small Phone", "small_phone"], + deviceClass: "phone", + imageKind: undefined, + apiRange: { min: 24 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Generic", + "hw.device.name": "small_phone", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "320", + "hw.lcd.depth": "16", + "hw.lcd.height": "1280", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "720", + "hw.mainKeys": "no", + "hw.multi_display_window": "no", + "hw.ramSize": "1024", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "no", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "80M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/tv-1080p.ts b/src/drivers/android/profiles/tv-1080p.ts new file mode 100644 index 000000000..d4c97c15a --- /dev/null +++ b/src/drivers/android/profiles/tv-1080p.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const TV_1080P: LibraryDeviceProfile = { + kind: "library", + name: "Television (1080p)", + id: "tv_1080p", + names: ["Television (1080p)", "tv_1080p"], + deviceClass: "tv", + imageKind: "android-tv", + apiRange: { min: 20 }, + playStore: false, + tablet: false, + hardware: { + "hw.accelerometer": "no", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "no", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "yes", + "hw.device.manufacturer": "Google", + "hw.device.name": "tv_1080p", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "no", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "320", + "hw.lcd.depth": "16", + "hw.lcd.height": "1080", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "1920", + "hw.mainKeys": "yes", + "hw.multi_display_window": "no", + "hw.ramSize": "2048", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "no", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "no", + "hw.sensors.pressure": "no", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "128M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/tv-4k.ts b/src/drivers/android/profiles/tv-4k.ts new file mode 100644 index 000000000..270e4fb4b --- /dev/null +++ b/src/drivers/android/profiles/tv-4k.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const TV_4K: LibraryDeviceProfile = { + kind: "library", + name: "Television (4K)", + id: "tv_4k", + names: ["Television (4K)", "tv_4k"], + deviceClass: "tv", + imageKind: "android-tv", + apiRange: { min: 31 }, + playStore: false, + tablet: false, + hardware: { + "hw.accelerometer": "no", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "no", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "yes", + "hw.device.manufacturer": "Google", + "hw.device.name": "tv_4k", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "no", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "no", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "false", + "hw.lcd.density": "640", + "hw.lcd.depth": "16", + "hw.lcd.height": "2160", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "3840", + "hw.mainKeys": "yes", + "hw.multi_display_window": "no", + "hw.ramSize": "2048", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "no", + "hw.sensors.magnetic_field": "no", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "no", + "hw.sensors.pressure": "no", + "hw.sensors.proximity": "no", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "512M", + }, + bootProperties: {}, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/wearos-large-round.ts b/src/drivers/android/profiles/wearos-large-round.ts new file mode 100644 index 000000000..3353a0d57 --- /dev/null +++ b/src/drivers/android/profiles/wearos-large-round.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const WEAROS_LARGE_ROUND: LibraryDeviceProfile = { + kind: "library", + name: "Wear OS Large Round", + id: "wearos_large_round", + names: ["Wear OS Large Round", "wearos_large_round"], + deviceClass: "watch", + imageKind: "android-wear", + apiRange: { min: 20 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "wearos_large_round", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "true", + "hw.lcd.density": "320", + "hw.lcd.depth": "16", + "hw.lcd.height": "454", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "454", + "hw.mainKeys": "yes", + "hw.multi_display_window": "no", + "hw.ramSize": "512", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "48M", + }, + bootProperties: { "ro.emulator.circular": "true" }, + copiedFrom: "20.0", +}; diff --git a/src/drivers/android/profiles/wearos-small-round.ts b/src/drivers/android/profiles/wearos-small-round.ts new file mode 100644 index 000000000..ddab69848 --- /dev/null +++ b/src/drivers/android/profiles/wearos-small-round.ts @@ -0,0 +1,121 @@ +import type { LibraryDeviceProfile } from "./index.js"; + +export const WEAROS_SMALL_ROUND: LibraryDeviceProfile = { + kind: "library", + name: "Wear OS Small Round", + id: "wearos_small_round", + names: ["Wear OS Small Round", "wearos_small_round"], + deviceClass: "watch", + imageKind: "android-wear", + apiRange: { min: 20 }, + playStore: true, + tablet: false, + hardware: { + "hw.accelerometer": "yes", + "hw.accelerometer_uncalibrated": "yes", + "hw.arc": "no", + "hw.arc.autologin": "no", + "hw.audioInput": "yes", + "hw.audioOutput": "yes", + "hw.battery": "yes", + "hw.camera.back": "emulated", + "hw.camera.back.orientation": "90", + "hw.camera.front": "none", + "hw.camera.front.orientation": "90", + "hw.cpu.ncore": "4", + "hw.dPad": "no", + "hw.device.manufacturer": "Google", + "hw.device.name": "wearos_small_round", + "hw.display1.density": "0", + "hw.display1.flag": "0", + "hw.display1.height": "0", + "hw.display1.width": "0", + "hw.display1.xOffset": "-1", + "hw.display1.yOffset": "-1", + "hw.display2.density": "0", + "hw.display2.flag": "0", + "hw.display2.height": "0", + "hw.display2.width": "0", + "hw.display2.xOffset": "-1", + "hw.display2.yOffset": "-1", + "hw.display3.density": "0", + "hw.display3.flag": "0", + "hw.display3.height": "0", + "hw.display3.width": "0", + "hw.display3.xOffset": "-1", + "hw.display3.yOffset": "-1", + "hw.displayRegion.0.1.height": "0", + "hw.displayRegion.0.1.width": "0", + "hw.displayRegion.0.1.xOffset": "-1", + "hw.displayRegion.0.1.yOffset": "-1", + "hw.displayRegion.0.2.height": "0", + "hw.displayRegion.0.2.width": "0", + "hw.displayRegion.0.2.xOffset": "-1", + "hw.displayRegion.0.2.yOffset": "-1", + "hw.displayRegion.0.3.height": "0", + "hw.displayRegion.0.3.width": "0", + "hw.displayRegion.0.3.xOffset": "-1", + "hw.displayRegion.0.3.yOffset": "-1", + "hw.gltransport": "pipe", + "hw.gltransport.asg.dataRingSize": "32768", + "hw.gltransport.asg.writeBufferSize": "1048576", + "hw.gltransport.asg.writeStepSize": "4096", + "hw.gltransport.drawFlushInterval": "800", + "hw.gps": "yes", + "hw.gpu.enabled": "no", + "hw.gpu.mode": "auto", + "hw.gsmModem": "yes", + "hw.gyroscope": "yes", + "hw.hotplug_multi_display": "no", + "hw.initialOrientation": "portrait", + "hw.keyboard": "no", + "hw.keyboard.charmap": "qwerty2", + "hw.keyboard.lid": "yes", + "hw.lcd.backlight": "yes", + "hw.lcd.circular": "true", + "hw.lcd.density": "320", + "hw.lcd.depth": "16", + "hw.lcd.height": "384", + "hw.lcd.transparent": "false", + "hw.lcd.vsync": "60", + "hw.lcd.width": "384", + "hw.mainKeys": "yes", + "hw.multi_display_window": "no", + "hw.ramSize": "512", + "hw.rotaryInput": "no", + "hw.screen": "multi-touch", + "hw.sdCard": "yes", + "hw.sensor.hinge": "no", + "hw.sensor.hinge.count": "0", + "hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture": "1", + "hw.sensor.hinge.resizable.config": "1", + "hw.sensor.hinge.sub_type": "0", + "hw.sensor.hinge.type": "0", + "hw.sensor.roll": "no", + "hw.sensor.roll.count": "0", + "hw.sensor.roll.resize_to_displayRegion.0.1_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.2_at_posture": "6", + "hw.sensor.roll.resize_to_displayRegion.0.3_at_posture": "6", + "hw.sensors.gyroscope_uncalibrated": "yes", + "hw.sensors.heading": "no", + "hw.sensors.heart_rate": "no", + "hw.sensors.humidity": "yes", + "hw.sensors.light": "yes", + "hw.sensors.magnetic_field": "yes", + "hw.sensors.magnetic_field_uncalibrated": "yes", + "hw.sensors.orientation": "yes", + "hw.sensors.pressure": "yes", + "hw.sensors.proximity": "yes", + "hw.sensors.rgbclight": "no", + "hw.sensors.temperature": "yes", + "hw.sensors.wrist_tilt": "no", + "hw.touchpad0": "no", + "hw.touchpad0.height": "400", + "hw.touchpad0.width": "600", + "hw.trackBall": "no", + "hw.useext4": "yes", + "vm.heapSize": "48M", + }, + bootProperties: { "ro.emulator.circular": "true" }, + copiedFrom: "20.0", +}; From 11dff7c9586a3bc4ccb5f6e91e50f1c861eb22ae Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Tue, 13 Oct 2026 20:54:07 +0200 Subject: [PATCH 3/4] docs: CLI.md no longer says Simlock ships only Pixel 9 (#488) --- docs/CLI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CLI.md b/docs/CLI.md index cce51766d..9bb24715b 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -1656,7 +1656,7 @@ own name for it. Simlock reads Android device models from three places and writes to none of them: -- **Simlock's own profiles** ship with Simlock (today: Pixel 9). They are +- **Simlock's own profiles** ship with Simlock (16 models, from Pixel 9 to Large Desktop). They are read first, so a device made from one has the same hardware on every host, and the model is there even when your `cmdline-tools` is too old to have it. A name Simlock's own profiles have wins over the same name in the From fdd86f6e687462a3ce2df502ae919a5d31315867 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Tue, 13 Oct 2026 21:01:35 +0200 Subject: [PATCH 4/4] fix: automotive profiles keep the SDK's second display; catalog test resolves every model (#488) --- src/drivers/android/index.test.ts | 5 +++++ .../profiles/automotive-1024p-landscape.ts | 4 ++++ .../profiles/automotive-1080p-landscape.ts | 4 ++++ src/drivers/android/profiles/library.test.ts | 17 +++++++++++++++++ 4 files changed, 30 insertions(+) diff --git a/src/drivers/android/index.test.ts b/src/drivers/android/index.test.ts index 62015e340..1e4760819 100644 --- a/src/drivers/android/index.test.ts +++ b/src/drivers/android/index.test.ts @@ -4274,7 +4274,12 @@ describe("AndroidDriver library catalog", () => { const driver = await createDriver(await androidFilesystem(), runner); const catalog = await driver.listCatalog(); + const resolved: string[] = []; + for (const model of Object.keys(classes)) { + resolved.push((await driver.resolveSpec({ model, platform: "android" })).model); + } + expect(resolved).toEqual(Object.keys(classes)); expect(Object.keys(classes).filter((model) => !catalog.models.includes(model))).toEqual([]); for (const [model, deviceClass] of Object.entries(classes)) { expect(catalog.modelClasses[model], model).toBe(deviceClass); diff --git a/src/drivers/android/profiles/automotive-1024p-landscape.ts b/src/drivers/android/profiles/automotive-1024p-landscape.ts index 1710a4f58..bcb938210 100644 --- a/src/drivers/android/profiles/automotive-1024p-landscape.ts +++ b/src/drivers/android/profiles/automotive-1024p-landscape.ts @@ -44,6 +44,10 @@ export const AUTOMOTIVE_1024P_LANDSCAPE: LibraryDeviceProfile = { "hw.display3.width": "0", "hw.display3.xOffset": "-1", "hw.display3.yOffset": "-1", + "hw.display6.density": "120", + "hw.display6.flag": "0", + "hw.display6.height": "600", + "hw.display6.width": "400", "hw.displayRegion.0.1.height": "0", "hw.displayRegion.0.1.width": "0", "hw.displayRegion.0.1.xOffset": "-1", diff --git a/src/drivers/android/profiles/automotive-1080p-landscape.ts b/src/drivers/android/profiles/automotive-1080p-landscape.ts index af4d682d9..cd6099342 100644 --- a/src/drivers/android/profiles/automotive-1080p-landscape.ts +++ b/src/drivers/android/profiles/automotive-1080p-landscape.ts @@ -44,6 +44,10 @@ export const AUTOMOTIVE_1080P_LANDSCAPE: LibraryDeviceProfile = { "hw.display3.width": "0", "hw.display3.xOffset": "-1", "hw.display3.yOffset": "-1", + "hw.display6.density": "120", + "hw.display6.flag": "0", + "hw.display6.height": "600", + "hw.display6.width": "400", "hw.displayRegion.0.1.height": "0", "hw.displayRegion.0.1.width": "0", "hw.displayRegion.0.1.xOffset": "-1", diff --git a/src/drivers/android/profiles/library.test.ts b/src/drivers/android/profiles/library.test.ts index 36de352e3..52a103348 100644 --- a/src/drivers/android/profiles/library.test.ts +++ b/src/drivers/android/profiles/library.test.ts @@ -244,3 +244,20 @@ describe("isPlayStoreImage", () => { expect(isPlayStoreImage(image("google-tv", ["google-tv", "google_apis"]))).toBe(false); }); }); + +describe("the Android device profile library, automotive second display", () => { + it("both automotive profiles carry the SDK's hw.display6 lines: density 120, flag 0, height 600, width 400", () => { + for (const id of ["automotive_1024p_landscape", "automotive_1080p_landscape"]) { + const hardware = byId(id).hardware; + expect( + [ + hardware["hw.display6.density"], + hardware["hw.display6.flag"], + hardware["hw.display6.height"], + hardware["hw.display6.width"], + ], + id, + ).toEqual(["120", "0", "600", "400"]); + } + }); +});