Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / appstore / src / main / proto / android / bundle / devicespec.proto

devicespec.proto33 lines · 1.4 KiBRaw
1syntax = "proto3";
2
3package android.bundle;
4
5option java_package = "com.android.bundle";
6option java_multiple_files = true;
7// Distinct outer-class name: without this, protoc derives the outer class "Devicespec" from
8// the file name, whose generated Devicespec.java collides with the DeviceSpec message's
9// DeviceSpec.java on case-insensitive filesystems (Windows/macOS), clobbering the message class.
10option java_outer_classname = "DeviceSpecProto";
11
12// Vendored subset of Android bundletool's `DeviceSpec` (google/bundletool `devices.proto`),
13// with the exact upstream field numbers so it is wire-compatible with the DeviceSpec that
14// Accrescent's appstore API consumes for split (config APK) selection.
15//
16// Only the fields this client actually populates are declared. Fields 8 (device_tier), 9
17// (device_groups), 10 (sdk_runtime) and 11 (country_set) are intentionally omitted — they are
18// unused here and 8/11 would drag in google/protobuf/wrappers.proto. Omitting a field number
19// is wire-safe: it is simply never sent. The remaining numbers match upstream exactly.
20message DeviceSpec {
21 repeated string supported_abis = 1;
22 repeated string supported_locales = 2;
23 repeated string device_features = 3;
24 repeated string gl_extensions = 4;
25 uint32 screen_density = 5;
26 uint32 sdk_version = 6;
27 string codename = 7;
28 int64 ram_bytes = 12;
29 string build_brand = 13;
30 string build_device = 14;
31 string soc_manufacturer = 15;
32 string soc_model = 16;
33}