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 */ 15package OHOS.SysInstaller; 16sequenceable OHOS.SysInstaller.BufferInfoParcel; 17import Types; 18import ISysInstallerCallback; 19option_stub_hooks on; 20 21interface OHOS.SysInstaller.ISysInstaller { 22 void SysInstallerInit([in] String taskId, [in] boolean bStreamUpgrade); 23 [oneway] void StartUpdatePackageZip([in] String taskId, [in] String pkgPath); 24 void StartStreamUpdate(); 25 void StopStreamUpdate(); 26 void ProcessStreamData([in] BufferInfoParcel bufferParcel); 27 void SetUpdateCallback([in] String taskId, [in] ISysInstallerCallback updateCallback); 28 void GetUpdateStatus([in] String taskId); 29 void StartUpdateParaZip([in] String taskId, [in] String pkgPath, [in] String location, [in] String cfgDir); 30 void StartDeleteParaZip([in] String taskId, [in] String location, [in] String cfgDir); 31 void AccDecompressAndVerifyPkg([in] String taskId, [in] String srcPath, [in] String dstPath, [in] unsigned int type); 32 void AccDeleteDir([in] String taskId, [in] String dstPath); 33 void CancelUpdateVabPackageZip([in] String taskId); 34 [oneway] void StartUpdateVabPackageZip([in] String taskId, [in] List<String> pkgPath); 35 [oneway] void StartVabMerge([in] String taskId); 36 void ClearVabMetadataAndCow(); 37 void VabUpdateActive(); 38 void GetMetadataResult([in] String action, [out] boolean metadataResult); 39 void CreateVabSnapshotCowImg([in] Map<String, unsigned long> partitionInfo); 40 void GetUpdateResult([in] String taskId, [in] String taskType, [in] String resultType, [out] String updateResult); 41 void ExitSysInstaller(); 42 void StartAbSync(); 43 void SetCpuAffinity([in] String taskId, [in] unsigned int reservedCores); 44 45 [oneway] void InstallCloudRom([in] String taskId, [in] InstallMode installMode, [in] List<FeatureInfo> featureInfos, [in] RebootStatus rebootStatus); 46 [oneway] void UninstallCloudRom([in] String taskId, [in] List<FeatureInfo> featureInfos, [in] RebootStatus rebootStatus); 47 void GetFeatureStatus([in] List<FeatureInfo> featureInfos, [inout] List<FeatureStatus> statusInfos); 48 void GetAllFeatureStatus([in] String baseVersion, [inout] List<FeatureStatus> statusInfos); 49 void ClearCloudRom([in] String baseVersion, [in] String featureName); 50} 51