Search in sources :

Example 1 with IPackageInstallerSession

use of android.content.pm.IPackageInstallerSession in project platform_frameworks_base by android.

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)

Example 2 with IPackageInstallerSession

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

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)

Example 3 with IPackageInstallerSession

use of android.content.pm.IPackageInstallerSession in project UnityModManager by xausky.

the class VPackageInstallerService 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)

Example 4 with IPackageInstallerSession

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

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)

Example 5 with IPackageInstallerSession

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

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)8