IPackageInstaller.aidl revision fbd0e9fa37fc17ccd25e4c1f16195bbd27de3c4c
13a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey/*
23a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * Copyright (C) 2014 The Android Open Source Project
33a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey *
43a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * Licensed under the Apache License, Version 2.0 (the "License");
53a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * you may not use this file except in compliance with the License.
63a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * You may obtain a copy of the License at
73a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey *
83a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey *      http://www.apache.org/licenses/LICENSE-2.0
93a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey *
103a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * Unless required by applicable law or agreed to in writing, software
113a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * distributed under the License is distributed on an "AS IS" BASIS,
123a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * See the License for the specific language governing permissions and
143a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey * limitations under the License.
153a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey */
163a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
173a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkeypackage android.content.pm;
183a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
19fbd0e9fa37fc17ccd25e4c1f16195bbd27de3c4cJeff Sharkeyimport android.content.pm.IPackageDeleteObserver2;
2016c8e3f49497b6046972ae650772f65768366be8Jeff Sharkeyimport android.content.pm.IPackageInstallerCallback;
213a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkeyimport android.content.pm.IPackageInstallerSession;
22bb580670350b76fa2fcc5ee873f99b7970759cbfJeff Sharkeyimport android.content.pm.InstallSessionInfo;
23bb580670350b76fa2fcc5ee873f99b7970759cbfJeff Sharkeyimport android.content.pm.InstallSessionParams;
243a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkeyimport android.os.ParcelFileDescriptor;
253a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
263a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey/** {@hide} */
273a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkeyinterface IPackageInstaller {
2816c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    int createSession(in InstallSessionParams params, String installerPackageName, int userId);
293a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey    IPackageInstallerSession openSession(int sessionId);
303a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
3116c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    InstallSessionInfo getSessionInfo(int sessionId);
3216c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    List<InstallSessionInfo> getAllSessions(int userId);
3316c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    List<InstallSessionInfo> getMySessions(String installerPackageName, int userId);
343a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
3516c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    void registerCallback(IPackageInstallerCallback callback, int userId);
3616c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    void unregisterCallback(IPackageInstallerCallback callback);
37bb580670350b76fa2fcc5ee873f99b7970759cbfJeff Sharkey
38fbd0e9fa37fc17ccd25e4c1f16195bbd27de3c4cJeff Sharkey    void uninstall(String packageName, int flags, in IPackageDeleteObserver2 observer, int userId);
39fbd0e9fa37fc17ccd25e4c1f16195bbd27de3c4cJeff Sharkey    void uninstallSplit(String packageName, String splitName, int flags, in IPackageDeleteObserver2 observer, int userId);
403a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey}
41