LSPosed/app/src/main/java/io/github/lsposed/manager/Constants.java

59 lines
1.4 KiB
Java

package io.github.lsposed.manager;
import android.util.Log;
import android.widget.Toast;
public class Constants {
public static int getXposedApiVersion() {
Log.e(App.TAG, "getXposedApiVersion: Xposed is not active");
return -1;
}
public static String getXposedVersion() {
Log.e(App.TAG, "getXposedVersion: Xposed is not active");
return null;
}
public static int getXposedVersionCode() {
Log.e(App.TAG, "getXposedVersionCode: Xposed is not active");
return -1;
}
public static String getXposedVariant() {
Log.e(App.TAG, "getXposedVariant: Xposed is not active");
return null;
}
public static String getEnabledModulesListFile() {
return getBaseDir() + "conf/enabled_modules.list";
}
public static String getModulesListFile() {
return getBaseDir() + "conf/modules.list";
}
public static String getConfDir() {
return getBaseDir() + "conf/";
}
public static String getBaseDir() {
return App.getInstance().getApplicationInfo().deviceProtectedDataDir + "/";
}
public static String getLogDir() {
return null;
}
public static String getMiscDir() {
return null;
}
public static boolean isPermissive() {
return true;
}
public static void showErrorToast(int type) {
Toast.makeText(App.getInstance(), R.string.app_destroyed, Toast.LENGTH_LONG).show();
}
}