Songchun Fan | 077343a | 2024-08-09 16:52:41 +0000 | [diff] [blame] | 1 | <?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 | <!-- |
| 19 | This XML defines a list of UIDs for OEMs to register as shared UIDs. They will be registered at the |
| 20 | start of the system, which allows OEMs to create services with these UIDs. The range of these UIDs |
| 21 | must be in the OEM reserved range. |
| 22 | |
| 23 | OEM must provide a preloaded app that is installed at boot time to retain the newly registered UID |
| 24 | by adding a android:sharedUserId tag in the manifest of the preloaded app, with the value of the tag |
| 25 | set to the name of the UID defined in this config file. Otherwise, the uid will be cleared at the |
| 26 | end 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 | |
| 31 | Example 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> |