feat: Streamline application mode descriptions
This commit is contained in:
parent
5bfa072960
commit
9804125d1f
|
|
@ -52,9 +52,9 @@
|
||||||
<string name="patch_from_applist">选择已安装的应用程序</string>
|
<string name="patch_from_applist">选择已安装的应用程序</string>
|
||||||
<string name="patch_mode">修补模式</string>
|
<string name="patch_mode">修补模式</string>
|
||||||
<string name="patch_local">本地模式</string>
|
<string name="patch_local">本地模式</string>
|
||||||
<string name="patch_local_desc">为未嵌入模块的应用程序打补丁。\nXposed 范围可动态更改,无需重新打补丁。\n打了本地补丁的应用程序只能在本地设备上运行。</string>
|
<string name="patch_local_desc">为未嵌入模块的应用程序打补丁。\nXposed 范围可动态更改,无需重新打补丁。\n此模式下的应用程式只能在本地设备上与 NPatch 管理器搭配使用。</string>
|
||||||
<string name="patch_integrated">集成模式</string>
|
<string name="patch_integrated">集成模式</string>
|
||||||
<string name="patch_integrated_desc">修补 App 并内置模块。\n经修补的应用可以在没有管理器的情况下运行,但不能动态管理配置。\n以集成模式修补的应用可在未安装 NPatch 管理器的设备上运行。</string>
|
<string name="patch_integrated_desc">修补 App 并内置模块。\n经修补的应用可以在没有管理器的情况下独立运行,但不能动态管理配置。\n此模式适用于需要在未安装 NPatch 管理器的设备上运行的应用程式。</string>
|
||||||
<string name="patch_embed_modules">嵌入模块</string>
|
<string name="patch_embed_modules">嵌入模块</string>
|
||||||
<string name="patch_debuggable">可调试</string>
|
<string name="patch_debuggable">可调试</string>
|
||||||
<string name="patch_sigbypass">破解签名校验</string>
|
<string name="patch_sigbypass">破解签名校验</string>
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,10 @@
|
||||||
<string name="patch_from_storage">從儲存空間中選取 (多个) apk</string>
|
<string name="patch_from_storage">從儲存空間中選取 (多个) apk</string>
|
||||||
<string name="patch_from_applist">選取已安裝的應用程式</string>
|
<string name="patch_from_applist">選取已安裝的應用程式</string>
|
||||||
<string name="patch_mode">打包模式</string>
|
<string name="patch_mode">打包模式</string>
|
||||||
<string name="patch_local">本機</string>
|
<string name="patch_local">本地模式</string>
|
||||||
<string name="patch_local_desc">修補未嵌入模組的應用程式。\nXpose 範圍可以動態更改,無需重新修補。\n本地修補的應用程式只能在本機裝置上運作。</string>
|
<string name="patch_local_desc">為未嵌入模組的應用程式打補丁。\nXposed 範圍可動態更改,無需重新打補丁。\n此模式下的應用程式只能在本地裝置上與 NPatch 管理器搭配使用。</string>
|
||||||
<string name="patch_integrated">集成模式</string>
|
<string name="patch_integrated">集成模式</string>
|
||||||
<string name="patch_integrated_desc">打包內建模組的應用程式。\n打包後的程式,可以在沒有管理器的情況下執行,但無法動態管理啟用的模組。\n以集成模式打包的應用程式,可以在沒有安裝 NPatch Manager 的裝置上使用。</string>
|
<string name="patch_integrated_desc">修補 App 並內建模組。\n經修補的應用可以在沒有管理器的情況下獨立執行,但不能動態管理配置。\n此模式適用於需要在未安裝 NPatch 管理器的裝置上執行的應用程式。</string>
|
||||||
<string name="patch_embed_modules">內建模組</string>
|
<string name="patch_embed_modules">內建模組</string>
|
||||||
<string name="patch_debuggable">程式可偵錯</string>
|
<string name="patch_debuggable">程式可偵錯</string>
|
||||||
<string name="patch_sigbypass">破解簽名驗證</string>
|
<string name="patch_sigbypass">破解簽名驗證</string>
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,9 @@
|
||||||
<string name="patch_from_applist">Select an installed app</string>
|
<string name="patch_from_applist">Select an installed app</string>
|
||||||
<string name="patch_mode">Patch Mode</string>
|
<string name="patch_mode">Patch Mode</string>
|
||||||
<string name="patch_local">Local</string>
|
<string name="patch_local">Local</string>
|
||||||
<string name="patch_local_desc">Patch an app without modules embedded.\nXposed scope can be changed dynamically without re-patch.\nLocal patched apps can only run on the local device.</string>
|
<string name="patch_local_desc">Patches apps without embedding modules.\nThe Xposed scope can be dynamically changed without needing to re-patch.\nThis mode can only be used locally with the NPatch Manager.</string>
|
||||||
<string name="patch_integrated">Integrated</string>
|
<string name="patch_integrated">Integrated</string>
|
||||||
<string name="patch_integrated_desc">Patch an app with modules embedded.\nThe patched app can run without the manager, but cannot be managed dynamically.\nIntegrated patched apps can be used on devices that do not have NPatch Manager installed.</string>
|
<string name="patch_integrated_desc">Patches apps with built-in modules.\nThe patched app can run independently without the Manager, but it cannot dynamically manage configurations.\nThis mode is suitable for apps that need to run on devices without the NPatch Manager installed.</string>
|
||||||
<string name="patch_embed_modules">Embed modules</string>
|
<string name="patch_embed_modules">Embed modules</string>
|
||||||
<string name="patch_debuggable">Debuggable</string>
|
<string name="patch_debuggable">Debuggable</string>
|
||||||
<string name="patch_sigbypass">Signature bypass</string>
|
<string name="patch_sigbypass">Signature bypass</string>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import org.json.JSONArray;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
import org.lsposed.lspatch.loader.util.FileUtils;
|
import org.lsposed.lspatch.loader.util.FileUtils;
|
||||||
import org.lsposed.lspatch.loader.util.XLog;
|
import org.lsposed.lspatch.loader.util.XLog;
|
||||||
import org.lsposed.lspatch.service.LocalApplicationService;
|
import org.lsposed.lspatch.service.NeoLocalApplicationService;
|
||||||
import org.lsposed.lspatch.service.RemoteApplicationService;
|
import org.lsposed.lspatch.service.RemoteApplicationService;
|
||||||
import org.lsposed.lspatch.share.PatchConfig;
|
import org.lsposed.lspatch.share.PatchConfig;
|
||||||
import org.lsposed.lspd.core.Startup;
|
import org.lsposed.lspd.core.Startup;
|
||||||
|
|
@ -99,11 +99,11 @@ public class LSPApplication {
|
||||||
Log.e(TAG, "Success update module scope");
|
Log.e(TAG, "Success update module scope");
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
Log.e(TAG, "Failed to connect to manager, fallback to fixed local service");
|
Log.e(TAG, "Failed to connect to manager, fallback to fixed local service");
|
||||||
service = new LocalApplicationService(context);
|
service = new NeoLocalApplicationService(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
service = new LocalApplicationService(context);
|
service = new NeoLocalApplicationService(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
Startup.initXposed(false, ActivityThread.currentProcessName(), context.getApplicationInfo().dataDir, service);
|
Startup.initXposed(false, ActivityThread.currentProcessName(), context.getApplicationInfo().dataDir, service);
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,10 @@ import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class LocalApplicationService extends ILSPApplicationService.Stub {
|
public class NeoLocalApplicationService extends ILSPApplicationService.Stub {
|
||||||
private static final String TAG = "NPatch";
|
private static final String TAG = "NPatch";
|
||||||
private final List<Module> cachedModule;
|
private final List<Module> cachedModule;
|
||||||
public LocalApplicationService(Context context){
|
public NeoLocalApplicationService(Context context){
|
||||||
SharedPreferences shared = context.getSharedPreferences("npatch", Context.MODE_PRIVATE);
|
SharedPreferences shared = context.getSharedPreferences("npatch", Context.MODE_PRIVATE);
|
||||||
cachedModule = new ArrayList<>();
|
cachedModule = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
Loading…
Reference in New Issue