1
0
mirror of https://github.com/termux/termux-app synced 2024-06-17 22:57:08 +00:00

Changed: The plugin directory is now under /data/data/com.termux/files/apps/plugins.

This commit is contained in:
tareksander 2022-05-08 20:25:43 +02:00
parent 868cd13af1
commit d690e61b68
3 changed files with 11 additions and 4 deletions

View File

@ -51,7 +51,7 @@ interface IPluginService {
ParcelFileDescriptor[] runTask(String commandPath, in String[] arguments, in ParcelFileDescriptor stdin, String workdir, String commandLabel, String commandDescription, String commandHelp) = 3;
/**
* This creates a socket file with name under {@link TermuxConstants#TERMUX_APPS_DIR_PATH}/<package name of caller> and listens on it.
* This creates a socket file with name under {@link TermuxConstants#TERMUX_APPS_DIR_PATH}/plugins/<package name of caller> and listens on it.
*
* @param name Name of the socket file.
* @return The file descriptor of the created local server socket.
@ -60,7 +60,7 @@ interface IPluginService {
/**
* Opens a file under{@link TermuxConstants#TERMUX_APPS_DIR_PATH}/<package name of caller> with mode.
* Opens a file under{@link TermuxConstants#TERMUX_APPS_DIR_PATH}/plugins/<package name of caller> with mode.
*
* @param name Name of the file.
* @þaram mode Mode to use.

View File

@ -58,7 +58,7 @@ public class BinderUtils
if (packageName == null) {
return null;
}
return TermuxConstants.TERMUX_APPS_DIR_PATH + "/" + packageName;
return TermuxConstants.TERMUX_PLUGINS_DIR_PATH + "/" + packageName;
}

View File

@ -11,7 +11,7 @@ import java.util.Formatter;
import java.util.List;
/*
* Version: v0.53.0
* Version: v0.54.0
* SPDX-License-Identifier: MIT
*
* Changelog
@ -279,6 +279,8 @@ import java.util.List;
* - Added `TERMUX_PREFIX_DIR_IGNORED_SUB_FILES_PATHS_TO_CONSIDER_AS_EMPTY`.
* - 0.53.0 (2022-08-22)
* - Added `PERMISSION_TERMUX_PLUGIN` and `PERMISSION_TERMUX_SIGNATURE`.
* - 0.54.0 (2022-08-22)
* - Added `TERMUX_PLUGINS_DIR_PATH` and `TERMUX_PLUGINS_DIR`.
*/
/**
@ -684,6 +686,11 @@ public final class TermuxConstants {
public static final String TERMUX_APPS_DIR_PATH = TERMUX_FILES_DIR_PATH + "/apps"; // Default: "/data/data/com.termux/files/apps"
/** Termux and plugin apps directory */
public static final File TERMUX_APPS_DIR = new File(TERMUX_APPS_DIR_PATH);
/** Termux and plugin apps directory path */
public static final String TERMUX_PLUGINS_DIR_PATH = TERMUX_APPS_DIR_PATH + "/plugins"; // Default: "/data/data/com.termux/files/apps/plugins"
/** Termux and plugin apps directory */
public static final File TERMUX_PLUGINS_DIR = new File(TERMUX_PLUGINS_DIR_PATH);
/** Termux app $PREFIX directory path ignored sub file paths to consider it empty */