Yi Jin | 148d7f4 | 2017-11-28 14:23:56 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 | syntax = "proto2"; |
| 18 | option java_package = "android.content.pm"; |
| 19 | option java_multiple_files = true; |
| 20 | |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 21 | import "frameworks/base/libs/incident/proto/android/privacy.proto"; |
| 22 | |
Yi Jin | 148d7f4 | 2017-11-28 14:23:56 -0800 | [diff] [blame] | 23 | package android.content.pm; |
| 24 | |
| 25 | message PackageItemInfoProto { |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 26 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 27 | |
Yi Jin | 148d7f4 | 2017-11-28 14:23:56 -0800 | [diff] [blame] | 28 | optional string name = 1; |
| 29 | optional string package_name = 2; |
| 30 | optional int32 label_res = 3; |
| 31 | optional string non_localized_label = 4; |
| 32 | optional int32 icon = 5; |
| 33 | optional int32 banner = 6; |
| 34 | } |
| 35 | |
| 36 | // Proto of android.content.pm.ApplicationInfo which extends PackageItemInfo |
| 37 | message ApplicationInfoProto { |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 38 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 39 | |
Yi Jin | 148d7f4 | 2017-11-28 14:23:56 -0800 | [diff] [blame] | 40 | optional PackageItemInfoProto package = 1; |
| 41 | optional string permission = 2; |
| 42 | optional string process_name = 3; |
| 43 | optional int32 uid = 4; |
| 44 | optional int32 flags = 5; |
| 45 | optional int32 private_flags = 6; |
| 46 | optional int32 theme = 7; |
| 47 | optional string source_dir = 8; |
| 48 | optional string public_source_dir = 9; |
| 49 | repeated string split_source_dirs = 10; |
| 50 | repeated string split_public_source_dirs = 11; |
| 51 | repeated string resource_dirs = 12; |
| 52 | optional string data_dir = 13; |
| 53 | optional string class_loader_name = 14; |
| 54 | repeated string split_class_loader_names = 15; |
| 55 | |
| 56 | message Version { |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 57 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 58 | |
Yi Jin | 148d7f4 | 2017-11-28 14:23:56 -0800 | [diff] [blame] | 59 | optional bool enabled = 1; |
| 60 | optional int32 min_sdk_version = 2; |
| 61 | optional int32 target_sdk_version = 3; |
| 62 | optional int32 version_code = 4; |
| 63 | optional int32 target_sandbox_version = 5; |
| 64 | } |
| 65 | optional Version version = 16; |
| 66 | |
| 67 | message Detail { |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 68 | option (.android.msg_privacy).dest = DEST_EXPLICIT; |
| 69 | |
Yi Jin | 148d7f4 | 2017-11-28 14:23:56 -0800 | [diff] [blame] | 70 | optional string class_name = 1; |
| 71 | optional string task_affinity = 2; |
| 72 | optional int32 requires_smallest_width_dp = 3; |
| 73 | optional int32 compatible_width_limit_dp = 4; |
| 74 | optional int32 largest_width_limit_dp = 5; |
| 75 | optional string seinfo = 6; |
| 76 | optional string seinfo_user = 7; |
| 77 | optional string device_protected_data_dir = 8; |
| 78 | optional string credential_protected_data_dir = 9; |
| 79 | repeated string shared_library_files = 10; |
| 80 | optional string manage_space_activity_name = 11; |
| 81 | optional int32 description_res = 12; |
| 82 | optional int32 ui_options = 13; |
| 83 | optional bool supports_rtl = 14; |
| 84 | oneof full_backup_content { |
| 85 | string content = 15; |
| 86 | bool is_full_backup = 16; |
| 87 | } |
| 88 | optional int32 networkSecurity_config_res = 17; |
| 89 | optional int32 category = 18; |
| 90 | } |
| 91 | optional Detail detail = 17; |
| 92 | } |