IPackageInstaller.aidl revision 7328a1b39b3dae1c0cd390c0a3695c6a46b8e9d8
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 Sharkey
253a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey/** {@hide} */
263a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkeyinterface IPackageInstaller {
2716c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    int createSession(in InstallSessionParams params, String installerPackageName, int userId);
283a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey    IPackageInstallerSession openSession(int sessionId);
293a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
3016c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    InstallSessionInfo getSessionInfo(int sessionId);
3116c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    List<InstallSessionInfo> getAllSessions(int userId);
3216c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    List<InstallSessionInfo> getMySessions(String installerPackageName, int userId);
333a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey
3416c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    void registerCallback(IPackageInstallerCallback callback, int userId);
3516c8e3f49497b6046972ae650772f65768366be8Jeff Sharkey    void unregisterCallback(IPackageInstallerCallback callback);
36bb580670350b76fa2fcc5ee873f99b7970759cbfJeff Sharkey
37fbd0e9fa37fc17ccd25e4c1f16195bbd27de3c4cJeff Sharkey    void uninstall(String packageName, int flags, in IPackageDeleteObserver2 observer, int userId);
38fbd0e9fa37fc17ccd25e4c1f16195bbd27de3c4cJeff Sharkey    void uninstallSplit(String packageName, String splitName, int flags, in IPackageDeleteObserver2 observer, int userId);
397328a1b39b3dae1c0cd390c0a3695c6a46b8e9d8Jeff Sharkey
407328a1b39b3dae1c0cd390c0a3695c6a46b8e9d8Jeff Sharkey    void setPermissionsResult(int sessionId, boolean accepted);
413a44f3f1b446315ef894e01d2ab9b5388c2bd8c4Jeff Sharkey}
42