blob: 87435b9cd04aebd8eb3ee5088b675af4a24e21c4 [file] [log] [blame]
Songchun Fan077343a2024-08-09 16:52:41 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2024 The Android Open Source Project
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
18<!--
19This XML defines a list of UIDs for OEMs to register as shared UIDs. They will be registered at the
20start of the system, which allows OEMs to create services with these UIDs. The range of these UIDs
21must be in the OEM reserved range.
22
23OEM must provide a preloaded app that is installed at boot time to retain the newly registered UID
24by adding a android:sharedUserId tag in the manifest of the preloaded app, with the value of the tag
25set to the name of the UID defined in this config file. Otherwise, the uid will be cleared at the
26end of the boot and this config file will take no effect.
27
28- The "name" XML attribute refers to the name of the shared UID. It must start with "android.uid.".
29- The "uid" XML attribute refers to the value of the shared UID. It must be in range [2900, 2999].
30
31Example usage
32 <oem-defined-uid name="android.uid.vendordata" uid="2918"/>
33 Indicates that a shared UID named "android.uid.vendordata" will be added to the system with the
34 UID of 2918.
35-->
36
37<config>
38</config>