66 lines
3.0 KiB
XML
66 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2025 oxmc / PawletOS
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
Device model strings for all supported PawletOS devices.
|
|
|
|
Access from any app:
|
|
Resources res = context
|
|
.createPackageContext("me.pawlet.android", 0)
|
|
.getResources();
|
|
String name = res.getString(R.string.pawlet_device_name_rpi4);
|
|
|
|
Or from XML (within the platform package itself):
|
|
@string/pawlet_device_name_rpi4
|
|
-->
|
|
<resources>
|
|
|
|
<!-- =============================================================
|
|
Supported device codenames - human-readable model names
|
|
============================================================= -->
|
|
<string name="pawlet_device_name_rpi4" translatable="false">Raspberry Pi 4</string>
|
|
<string name="pawlet_device_name_rpi4b" translatable="false">Raspberry Pi 4 Model B</string>
|
|
<string name="pawlet_device_name_rpi400" translatable="false">Raspberry Pi 400</string>
|
|
<string name="pawlet_device_name_rpi5" translatable="false">Raspberry Pi 5</string>
|
|
|
|
<!-- Generic fallback when device codename is not recognised -->
|
|
<string name="pawlet_device_name_unknown" translatable="false">Raspberry Pi (unknown model)</string>
|
|
|
|
<!-- =============================================================
|
|
Build / release type labels
|
|
============================================================= -->
|
|
<string name="pawlet_build_type_release" translatable="false">Release</string>
|
|
<string name="pawlet_build_type_nightly" translatable="false">Nightly</string>
|
|
<string name="pawlet_build_type_snapshot" translatable="false">Snapshot</string>
|
|
<string name="pawlet_build_type_experimental" translatable="false">Experimental</string>
|
|
<string name="pawlet_build_type_unofficial" translatable="false">Unofficial</string>
|
|
|
|
<!-- =============================================================
|
|
Platform / OS branding
|
|
============================================================= -->
|
|
<string name="pawlet_os_name" translatable="false">PawletOS</string>
|
|
<string name="pawlet_os_manufacturer" translatable="false">oxmc</string>
|
|
|
|
<!-- =============================================================
|
|
Array: all supported device codenames (useful for iteration)
|
|
============================================================= -->
|
|
<string-array name="pawlet_supported_devices" translatable="false">
|
|
<item>rpi4</item>
|
|
<item>rpi4b</item>
|
|
<item>rpi400</item>
|
|
<item>rpi5</item>
|
|
</string-array>
|
|
|
|
<!-- =============================================================
|
|
Array: human-readable names (aligned to pawlet_supported_devices)
|
|
============================================================= -->
|
|
<string-array name="pawlet_supported_device_names" translatable="false">
|
|
<item>Raspberry Pi 4</item>
|
|
<item>Raspberry Pi 4 Model B</item>
|
|
<item>Raspberry Pi 400</item>
|
|
<item>Raspberry Pi 5</item>
|
|
</string-array>
|
|
|
|
</resources>
|