-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
970a4f3
commit 85a1553
Showing
28 changed files
with
842 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 CrossCoreNightly | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# AssetSideLoader | ||
|
||
[README_EN.md](README_EN.md) | ||
|
||
## 介绍 | ||
|
||
一个LSPosed模块,通过hook UnityEngine的内部方法实现从自定义路径加载文件,来替换External Storage或者APK中的资源。 | ||
|
||
--- | ||
|
||
## 说明 | ||
|
||
- 需要先手动授予“获取应用列表”权限 | ||
- 请先在LSPosed中激活模块,并且至少选择一个目标应用,之后启动APP | ||
- 启动APP后可以在`SELECT APPS`中选择目标应用,然后点击`DONE`返回 | ||
- 注意,即使在模块中选择了目标应用,也需要在LSPosed中为模块选择相应的目标应用 | ||
- `SELECT APPS`中只会显示`lib`目录下存在`libil2cpp.so`的应用 | ||
- 选择目标应用后,可以在主界面点击对应的应用进入具体设置 | ||
- 如果回到主界面后没有显示对应的应用,请重启APP | ||
- 在具体设置中有三个路径需要手动填写 | ||
- `APK Patch`:APK文件中的资源相对于`/data/app/*/*/base.apk!/`的路径 | ||
- `Data Patch`:外部存储中的资源相对于`/storage/emulated/0/Android/com.example.www/files`的路径 | ||
- `Mod Patch`:自定义的mod文件夹路径,与Data Patch一样是外部存储中的相对路径 | ||
- APP期望在`Mod Patch`下有和`APK Patch`和`Data Patch`中要替换的文件相同的目录结构和文件名 | ||
- 选择好路径后,点击`SAVE`保存设置,点击`DELETE`删除设置,点击SWITCH切换是否启用 | ||
- 确定设定无误后,启动目标应用即可 | ||
|
||
## 示例 | ||
|
||
![example](doc/example.jpg) | ||
|
||
## 致谢 | ||
|
||
- Perfare: [Zygisk-Il2CppDumper](https://github.com/Perfare/Zygisk-Il2CppDumper) | ||
- jmpewsL [Dobby](https://github.com/jmpews/Dobby) | ||
- LSPosed: [LSPosed](https://github.com/LSPosed/LSPosed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# AssetSideLoader | ||
|
||
## Introduction | ||
|
||
A LSPosed module that replaces resources in External Storage or APK by hooking UnityEngine's internal methods to load files from a custom path. | ||
|
||
--- | ||
## Description | ||
|
||
- You need to grant "Get App List" permission manually. | ||
- Please activate the module in LSPosed and select at least one target app, then launch the app. | ||
- After launching the app, you can select the target app in `SELECT APPS`, then click `DONE` to return. | ||
- Note that even if you have selected a target app in the module, you still need to select the corresponding target app for the module in LSPosed. | ||
- The `SELECT APPS` will only show applications that have `libil2cpp.so` in the `lib` directory. | ||
- After selecting the target application, you can click the corresponding application in the main interface to enter the specific settings. | ||
- If the corresponding app is not displayed after returning to the main interface, please restart the app. | ||
- There are three paths you need to fill in manually | ||
- `APK Patch`: the path of resources in APK file relative to `/data/app/*/*/base.apk!/`. | ||
- `Data Patch`: path to resources in external storage relative to `/storage/emulated/0/Android/com.example.www/files`. | ||
- `Mod Patch`: the path to the customized mod folder, which is a relative path in the external storage like the Data Patch. | ||
- APP expects the same directory structure and file names under `Mod Patch` as the files to be replaced in `APK Patch` and `Data Patch`. | ||
- After selecting the path, click `SAVE` to save the settings, click `DELETE` to delete the settings, and click SWITCH to enable or disable the settings. | ||
- After making sure the settings are correct, start the target application. | ||
|
||
## Example | ||
|
||
![example](doc/example.jpg) | ||
|
||
## Credits | ||
|
||
- Perfare: [Zygisk-Il2CppDumper](https://github.com/Perfare/Zygisk-Il2CppDumper) | ||
- jmpewsL [Dobby](https://github.com/jmpews/Dobby) | ||
- LSPosed: [LSPosed](https://github.com/LSPosed/LSPosed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
com.axix.assetsideloader.MainHook | ||
top.axix.assetsideloader.MainHook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
app/src/main/java/com/axix/assetsideloader/AssetSideLoader.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
app/src/main/java/com/axix/assetsideloader/MainActivity.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.