1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15interface BundleInfo { 16 @get GetName(): String; 17 @get GetVendor(): String; 18 @get GetVersionCode(): i32; 19 @get GetVersionName(): String; 20 @get GetMinCompatibleVersionCode(): String; 21 @get GetTargetVersion(): i32; 22 @get GetInstallTime(): i32; 23 @get GetUpdateTime(): i32; 24 @get GetAppIndex(): i32; 25} 26function GetBundleInfo(): BundleInfo; 27 28interface ReqPermissionDetail { 29 @set("name") SetName(name: String): void; 30 @get("name") GetName(): String; 31 @set("moduleName") SetModuleName(moduleName: String): void; 32 @get("moduleName") GetModuleName(): String; 33 @set("reason") SetReason(reason: String): void; 34 @get("reason") GetReason(): String; 35 @set("reasonId") SetReasonId(reasonId: i32): void; 36 @get("reasonId") GetReasonId(): i32; 37} 38function GetReqPermissionDetail(): ReqPermissionDetail; 39 40interface UsedScene { 41 @set("abilities") SetAbilities(deviceId: Array<String>): void; 42 @get("abilities") GetAbilities(): Array<String>; 43 @set("when") SetWhen(when: String): void; 44 @get("when") GetWhen(): String; 45} 46function GetIUsedScene(): UsedScene; 47 48interface SignatureInfo { 49 @get GetAppId(): String; 50 @get GetFingerprint(): String; 51 @get GetAppIdentifier(): String; 52 @get GetCertificate(): String; 53} 54function GetISignatureInfo(): SignatureInfo; 55 56interface AppCloneIdentity { 57 @get GetBundleName(): String; 58 @get GetAppIndex(): i32; 59} 60function GetAppCloneIdentity(): AppCloneIdentity;