Search in sources :

Example 6 with InstallerException

use of com.android.server.pm.Installer.InstallerException in project platform_frameworks_base by android.

the class PackageManagerService method prepareAppDataContentsLeafLIF.

private void prepareAppDataContentsLeafLIF(PackageParser.Package pkg, int userId, int flags) {
    final String volumeUuid = pkg.volumeUuid;
    final String packageName = pkg.packageName;
    final ApplicationInfo app = pkg.applicationInfo;
    if ((flags & StorageManager.FLAG_STORAGE_CE) != 0) {
        // this symlink for 64 bit libraries.
        if (app.primaryCpuAbi != null && !VMRuntime.is64BitAbi(app.primaryCpuAbi)) {
            final String nativeLibPath = app.nativeLibraryDir;
            try {
                mInstaller.linkNativeLibraryDirectory(volumeUuid, packageName, nativeLibPath, userId);
            } catch (InstallerException e) {
                Slog.e(TAG, "Failed to link native for " + packageName + ": " + e);
            }
        }
    }
}
Also used : EphemeralApplicationInfo(android.content.pm.EphemeralApplicationInfo) ApplicationInfo(android.content.pm.ApplicationInfo) InstallerException(com.android.server.pm.Installer.InstallerException)

Aggregations

InstallerException (com.android.server.pm.Installer.InstallerException)6 ApplicationInfo (android.content.pm.ApplicationInfo)3 EphemeralApplicationInfo (android.content.pm.EphemeralApplicationInfo)2 PendingIntent (android.app.PendingIntent)1 BroadcastReceiver (android.content.BroadcastReceiver)1 Context (android.content.Context)1 IIntentReceiver (android.content.IIntentReceiver)1 Intent (android.content.Intent)1 IntentFilter (android.content.IntentFilter)1 PackageInfo (android.content.pm.PackageInfo)1 PackageParser.isApkFile (android.content.pm.PackageParser.isApkFile)1 Point (android.graphics.Point)1 Bundle (android.os.Bundle)1 FileBridge (android.os.FileBridge)1 Message (android.os.Message)1 PersistableBundle (android.os.PersistableBundle)1 RemoteException (android.os.RemoteException)1 ArraySet (android.util.ArraySet)1 StrictJarFile (android.util.jar.StrictJarFile)1 DexUseInfo (com.android.server.pm.dex.PackageDexUsage.DexUseInfo)1