Search in sources :

Example 6 with IPackageInstallerSession

use of android.content.pm.IPackageInstallerSession in project android_frameworks_base by crdroidandroid.

the class PackageInstallerService method openSessionInternal.

private IPackageInstallerSession openSessionInternal(int sessionId) throws IOException {
    synchronized (mSessions) {
        final PackageInstallerSession session = mSessions.get(sessionId);
        if (session == null || !isCallingUidOwner(session)) {
            throw new SecurityException("Caller has no access to session " + sessionId);
        }
        session.open();
        return session;
    }
}
Also used : IPackageInstallerSession(android.content.pm.IPackageInstallerSession)

Aggregations

IPackageInstallerSession (android.content.pm.IPackageInstallerSession)6