Update RuntimeUtils.java

This commit is contained in:
Tungstend 2022-11-04 21:39:46 +08:00
parent 3624b1ba27
commit 2584182b86
1 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package com.tungsten.fcl.util;
import android.content.Context;
import android.system.Os;
import android.util.Log;
import com.tungsten.fclauncher.FCLauncher;
import com.tungsten.fclauncher.utils.Architecture;
@ -97,8 +96,7 @@ public class RuntimeUtils {
if (tarEntry.isSymbolicLink()) {
Objects.requireNonNull(destPath.getParentFile()).mkdirs();
try {
// Os.symlink(tarEntry.getName(), tarEntry.getLinkName());
Os.symlink(tarEntry.getLinkName().replace("..",dest.getAbsolutePath()), new File(dest,tarEntry.getName()).getAbsolutePath());
Os.symlink(tarEntry.getLinkName().replace("..", dest.getAbsolutePath()), new File(dest, tarEntry.getName()).getAbsolutePath());
} catch (Throwable e) {
Logging.LOG.log(Level.WARNING, e.getMessage());
}