Debian Codegraph @

artd/binder/com/android/server/art/OutputArtifacts.aidl

raw
1 /*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.android.server.art;
18
19 /**
20 * Represents output dexopt artifacts of a dex file (i.e., ART, OAT, and VDEX files).
21 *
22 * @hide
23 */
24 parcelable OutputArtifacts {
25 /** The path to the output. */
26 com.android.server.art.ArtifactsPath artifactsPath;
27
28 parcelable PermissionSettings {
29 /**
30 * The permission of the directories that contain the artifacts. Has no effect if
31 * `artifactsPath.isInDalvikCache` is true.
32 */
33 com.android.server.art.FsPermission dirFsPermission;
34
35 /** The permission of the files. */
36 com.android.server.art.FsPermission fileFsPermission;
37
38 /** The tuple used for looking up for the SELinux context. */
39 parcelable SeContext {
40 /** The seinfo tag in SELinux policy. */
41 @utf8InCpp String seInfo;
42
43 /** The uid that represents the combination of the user id and the app id. */
44 int uid;
45 }
46
47 /**
48 * Determines the SELinux context of the directories and the files. If empty, the default
49 * context based on the file path will be used. Has no effect if
50 * `artifactsPath.isInDalvikCache` is true.
51 */
52 @nullable SeContext seContext;
53 }
54
55 PermissionSettings permissionSettings;
56 }