Skip to content
Open

Bruh #83

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
244 commits
Select commit Hold shift + click to select a range
3e9ebbf
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
7468942
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
cc6e1c2
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
111ea7d
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
8b8dd9f
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
7eafdfc
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
1a21d4c
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
a5f968c
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
2e373ad
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
454a206
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
d2a67da
Update lspatch.versions.toml
WinterWolfVN Apr 9, 2026
bd18ccc
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
9fd5cc4
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
5436007
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
fe5e5e9
Update build.gradle.kts
WinterWolfVN Apr 9, 2026
29da6fe
Update lspatch.versions.toml
WinterWolfVN Apr 9, 2026
4807cf1
Create SharedMemory.java
WinterWolfVN Apr 10, 2026
6eca95c
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
04e05ea
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
ef10a31
Update build.yml
WinterWolfVN Apr 10, 2026
673c9aa
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
0ba1edb
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
8edbdba
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
226f5ca
Update build.yml
WinterWolfVN Apr 10, 2026
1f59409
Update LSPApplication.kt
WinterWolfVN Apr 10, 2026
e4f944b
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
3c18ac7
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
c92ec43
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
0aed244
Update build.gradle.kts
WinterWolfVN Apr 10, 2026
e091a01
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
bf94d66
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
635d57b
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
bc46c07
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
b564a05
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
9a962f9
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
727fd17
Update build.gradle.kts
WinterWolfVN Apr 11, 2026
29a2e90
Update build.yml
WinterWolfVN Apr 11, 2026
5fe81b8
Update build.yml
WinterWolfVN Apr 11, 2026
6794b8f
Update build.yml
WinterWolfVN Apr 11, 2026
be7027c
Update build.yml
WinterWolfVN Apr 11, 2026
b8e2e14
Update build.yml
WinterWolfVN Apr 11, 2026
654d17e
Update build.yml
WinterWolfVN Apr 12, 2026
298f5a9
Update build.yml
WinterWolfVN Apr 12, 2026
551bf0b
Update build.yml
WinterWolfVN Apr 12, 2026
d3117e9
Update build.yml
WinterWolfVN Apr 13, 2026
9f0b0b1
Update build.yml
WinterWolfVN Apr 13, 2026
6d40ad0
Update build.yml
WinterWolfVN Apr 13, 2026
346de11
Update build.yml
WinterWolfVN Apr 13, 2026
eac10b9
Update CMakeLists.txt
WinterWolfVN Apr 13, 2026
2f492de
Update CMakeLists.txt
WinterWolfVN Apr 13, 2026
e2cb1ba
Update CMakeLists.txt
WinterWolfVN Apr 13, 2026
0648675
Update CMakeLists.txt
WinterWolfVN Apr 13, 2026
be66d75
Update build.yml
WinterWolfVN Apr 13, 2026
86403f9
Update build.yml
WinterWolfVN Apr 13, 2026
b542373
Update CMakeLists.txt
WinterWolfVN Apr 13, 2026
57eeb58
Update CMakeLists.txt
WinterWolfVN Apr 14, 2026
e5c4acf
Update CMakeLists.txt
WinterWolfVN Apr 14, 2026
5d63a8f
Update build.yml
WinterWolfVN Apr 14, 2026
ebe7bcc
Update CMakeLists.txt
WinterWolfVN Apr 14, 2026
92281d3
Update CMakeLists.txt
WinterWolfVN Apr 14, 2026
4e7077e
Update CMakeLists.txt
WinterWolfVN Apr 14, 2026
9cf684d
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
331b6d9
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
8df9597
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
21d5b03
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
f07a899
Update CMakeLists.txt
WinterWolfVN Apr 15, 2026
a76f8ef
Update CMakeLists.txt
WinterWolfVN Apr 15, 2026
aa00a50
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
33d64df
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
c561a27
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
76ce20c
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
57038c0
Update build.gradle.kts
WinterWolfVN Apr 15, 2026
0e81a03
Update NPatch.java
WinterWolfVN Apr 16, 2026
7c4b9f9
Update build.gradle.kts
WinterWolfVN Apr 16, 2026
e65468d
Update build.gradle.kts
WinterWolfVN Apr 16, 2026
d0bc208
Update build.gradle.kts
WinterWolfVN Apr 16, 2026
1f033da
Update build.gradle.kts
WinterWolfVN Apr 16, 2026
4aa813a
Update build.gradle.kts
WinterWolfVN Apr 16, 2026
d4bfd2c
Create CrashTrap.java
WinterWolfVN Apr 17, 2026
62d8d40
Update LSPApplication.kt
WinterWolfVN Apr 17, 2026
ca0243d
Update CrashTrap.java
WinterWolfVN Apr 17, 2026
9d4b5c1
Update LSPApplication.kt
WinterWolfVN Apr 17, 2026
c422637
Rename CrashTrap.java to CrashTrap.kt
WinterWolfVN Apr 17, 2026
b83d6b9
Update CrashTrap.kt
WinterWolfVN Apr 17, 2026
8c9c925
Update LSPApplication.kt
WinterWolfVN Apr 17, 2026
646b778
Update LSPApplication.kt
WinterWolfVN Apr 17, 2026
6ff2fb8
Update CrashTrap.kt
WinterWolfVN Apr 17, 2026
17fa457
Update CrashTrap.kt
WinterWolfVN Apr 17, 2026
0fe40b8
Update LSPApplication.kt
WinterWolfVN Apr 18, 2026
c217126
Update ShizukuApi.kt
WinterWolfVN Apr 18, 2026
0b6735d
Update NPackageManager.kt
WinterWolfVN Apr 18, 2026
519a17b
Update AndroidManifest.xml
WinterWolfVN Apr 18, 2026
66b5791
Add files via upload
WinterWolfVN Apr 18, 2026
07078e4
Update SharedMemory.java
WinterWolfVN Apr 18, 2026
5d79159
Update SharedMemory.java
WinterWolfVN Apr 18, 2026
a21e040
Update SharedMemory.java
WinterWolfVN Apr 18, 2026
0f98525
Update SharedMemory.java
WinterWolfVN Apr 19, 2026
41a58ba
Update SharedMemory.java
WinterWolfVN Apr 19, 2026
2c53103
Update SharedMemory.java
WinterWolfVN Apr 19, 2026
bc4ee30
Update AndroidManifest.xml
WinterWolfVN Apr 19, 2026
3e52039
Update build.gradle.kts
WinterWolfVN Apr 19, 2026
df551f9
Update AndroidManifest.xml
WinterWolfVN Apr 19, 2026
a78d3b4
Update SharedMemory.java
WinterWolfVN Apr 19, 2026
b85c44d
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 19, 2026
cb018a8
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 19, 2026
6e21ccf
Update LSPApplication.java
WinterWolfVN Apr 19, 2026
34bc016
Update LSPApplication.java
WinterWolfVN Apr 19, 2026
34942b9
Update LSPApplication.java
WinterWolfVN Apr 20, 2026
222225d
Update LSPApplication.java
WinterWolfVN Apr 20, 2026
839e84f
Update LSPLoader.java
WinterWolfVN Apr 20, 2026
0304816
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 20, 2026
cf8a818
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 21, 2026
7f684d8
Update CrashTrap.kt
WinterWolfVN Apr 22, 2026
03fccea
Update CrashTrap.kt
WinterWolfVN Apr 22, 2026
dd6328a
Update NeoLocalApplicationService.java
WinterWolfVN Apr 22, 2026
19e3b27
Update CrashTrap.kt
WinterWolfVN Apr 22, 2026
f5cbb03
Update CrashTrap.kt
WinterWolfVN Apr 22, 2026
8c06cad
Update ModuleLoader.java
WinterWolfVN Apr 23, 2026
90ab9fc
Create InMemoryDexClassLoader.java
WinterWolfVN Apr 23, 2026
9756a5f
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 23, 2026
80310e8
Update LSPApplication.java
WinterWolfVN Apr 23, 2026
c16eb5f
Update CrashTrap.kt
WinterWolfVN Apr 23, 2026
234be55
Delete src/android/dalvik directory
WinterWolfVN Apr 23, 2026
8f88709
Add files via upload
WinterWolfVN Apr 23, 2026
08df63b
Update ModuleLoader.java
WinterWolfVN Apr 23, 2026
9e789db
Update LSPLoader.java
WinterWolfVN Apr 23, 2026
e67bd3d
Update LSPLoader.java
WinterWolfVN Apr 23, 2026
76addf9
Update AndroidManifest.xml
WinterWolfVN Apr 24, 2026
0e551f0
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 24, 2026
865e668
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 24, 2026
2d1c99e
Update build.yml
WinterWolfVN Apr 24, 2026
24065f9
Update build.yml
WinterWolfVN Apr 24, 2026
8a7c5c1
Create AppComponentFactory.java
WinterWolfVN Apr 25, 2026
bec34ef
Delete meta-loader/src/main/java/org/lsposed/npatch/metaloader/AppCom…
WinterWolfVN Apr 25, 2026
fe6f05b
Create AppComponentFactory.java
WinterWolfVN Apr 25, 2026
a6f37f1
Update build.yml
WinterWolfVN Apr 25, 2026
686ae39
Update build.yml
WinterWolfVN Apr 25, 2026
5ab05fc
Update build.yml
WinterWolfVN Apr 25, 2026
c68ad59
Update build.yml
WinterWolfVN Apr 25, 2026
a7f3810
Update AppComponentFactory.java
WinterWolfVN Apr 25, 2026
dfa9809
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 25, 2026
9762374
Update AppComponentFactory.java
WinterWolfVN Apr 25, 2026
ceec493
Update build.yml
WinterWolfVN Apr 25, 2026
4efed8e
Update Constants.java
WinterWolfVN Apr 25, 2026
d0788b1
Update build.yml
WinterWolfVN Apr 25, 2026
a815fae
Update build.yml
WinterWolfVN Apr 25, 2026
559d752
Update Constants.java
WinterWolfVN Apr 25, 2026
685a342
Update build.yml
WinterWolfVN Apr 25, 2026
7bad619
Update build.yml
WinterWolfVN Apr 25, 2026
afb389e
Update build.yml
WinterWolfVN Apr 25, 2026
27b6775
Update build.yml
WinterWolfVN Apr 25, 2026
d77ca0a
Update build.yml
WinterWolfVN Apr 25, 2026
b9d182a
Update build.yml
WinterWolfVN Apr 25, 2026
18f08b4
Update build.yml
WinterWolfVN Apr 25, 2026
4ef90ff
Update build.yml
WinterWolfVN Apr 25, 2026
6b06589
Update build.yml
WinterWolfVN Apr 25, 2026
bb3a173
Update build.yml
WinterWolfVN Apr 25, 2026
0045d56
Update Constants.java
WinterWolfVN Apr 26, 2026
eb28fe5
Add files via upload
WinterWolfVN Apr 26, 2026
f982199
Add files via upload
WinterWolfVN Apr 26, 2026
9645728
Update AppComponentFactory.java
WinterWolfVN Apr 26, 2026
0b7fda0
Update AppComponentFactory.java
WinterWolfVN Apr 26, 2026
d23f6a2
Update AppComponentFactory.java
WinterWolfVN Apr 26, 2026
df582b9
Add files via upload
WinterWolfVN Apr 26, 2026
9deb56e
Add files via upload
WinterWolfVN Apr 26, 2026
6f7ac25
Add files via upload
WinterWolfVN Apr 26, 2026
8b9cdf9
Update AppComponentFactory.java
WinterWolfVN Apr 27, 2026
5df26af
Add files via upload
WinterWolfVN Apr 27, 2026
87fc9e9
Update build.yml
WinterWolfVN Apr 27, 2026
86e8488
Update build.yml
WinterWolfVN Apr 27, 2026
294f784
Create AI.yml
WinterWolfVN Apr 27, 2026
1caaa3f
Update build.yml
WinterWolfVN Apr 27, 2026
f9d25ff
Update AppComponentFactory.java
WinterWolfVN Apr 27, 2026
543ad3a
Update AppComponentFactory.java
WinterWolfVN Apr 28, 2026
bca6f84
Update and rename AppComponentFactory.java to AppComponentFactoryStub…
WinterWolfVN Apr 29, 2026
69e6bed
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
4b8b550
Update AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
fb68e9f
Delete .github/workflows/AI.yml
WinterWolfVN Apr 29, 2026
f14277a
Update build.yml
WinterWolfVN Apr 29, 2026
5c0ab6b
Update AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
ed93c68
Update AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
e74979e
Update build.yml
WinterWolfVN Apr 29, 2026
00098e1
Update AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
f8447fe
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
742dbec
Update AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
9fa550a
Update build.yml
WinterWolfVN Apr 29, 2026
b34ff64
Rename AppComponentFactoryStub.java to AppComponentFactory.java
WinterWolfVN Apr 29, 2026
d51e496
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
e52f511
Update AppComponentFactory.java
WinterWolfVN Apr 29, 2026
23da1ff
Create AppComponentFactoryBackport.java
WinterWolfVN Apr 29, 2026
8f272e0
Create AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
4bd9f63
Update build.yml
WinterWolfVN Apr 29, 2026
0d3b1b8
Update LSPAppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
34ceea5
Delete src/android/app/AppComponentFactory.java
WinterWolfVN Apr 29, 2026
893c1c0
Create AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
25f8c84
Create AppComponentFactoryBackport.java
WinterWolfVN Apr 29, 2026
c5cbc48
Delete meta-loader/src/android/app/AppComponentFactoryBackport.java
WinterWolfVN Apr 29, 2026
083dac1
Delete meta-loader/src/android/app/AppComponentFactoryStub.java
WinterWolfVN Apr 29, 2026
315219c
Update build.gradle.kts
WinterWolfVN Apr 29, 2026
cd035a0
Update proguard-rules.pro
WinterWolfVN Apr 29, 2026
1662aa5
Add files via upload
WinterWolfVN Apr 29, 2026
98369e9
Update build.gradle.kts
WinterWolfVN Apr 29, 2026
c3ff1e5
Update AppComponentFactoryBackport.java
WinterWolfVN Apr 30, 2026
4a456a6
Update AppComponentFactoryBackport.java
WinterWolfVN May 1, 2026
57e6014
Update AppComponentFactoryBackport.java
WinterWolfVN May 1, 2026
8d03c21
Update AppComponentFactoryBackport.java
WinterWolfVN May 1, 2026
dc2da4c
Update SharedMemory.java
WinterWolfVN May 9, 2026
bee638f
Update AppComponentFactoryBackport.java
WinterWolfVN May 10, 2026
62b5e7d
Update SharedMemory.java
WinterWolfVN May 10, 2026
f963301
Update AppComponentFactoryBackport.java
WinterWolfVN May 10, 2026
fdf8326
Create I
WinterWolfVN May 10, 2026
c8531f7
Update AndroidManifest.xml
WinterWolfVN May 10, 2026
f929210
Add files via upload
WinterWolfVN May 10, 2026
f121d58
Delete manager/src/main/res/mipmap-xxxhdpi-v4/I
WinterWolfVN May 10, 2026
f4c34d4
Update SharedMemory.java
WinterWolfVN May 11, 2026
0e6baa3
Update build.yml
WinterWolfVN May 11, 2026
cecb7fe
Update build.yml
WinterWolfVN May 11, 2026
72c2e8f
Create sync-fork.yml
WinterWolfVN May 11, 2026
cabfd2e
Update sync-fork.yml
WinterWolfVN May 11, 2026
614c77e
Update Constants.java
WinterWolfVN May 11, 2026
ebcc4fe
Update sync-fork.yml
WinterWolfVN May 11, 2026
9528954
Update lspatch.versions.toml
WinterWolfVN May 11, 2026
572b807
Sync: Force resolve conflicts using master branch code
github-actions[bot] May 11, 2026
530fb6e
Update CMakeLists.txt
WinterWolfVN May 11, 2026
8c9edc2
Update build.yml
WinterWolfVN May 11, 2026
5c6c4cc
Update gradle.properties
WinterWolfVN May 12, 2026
1b8e57d
Update build.yml
WinterWolfVN May 12, 2026
9c20adc
Update .gitmodules
WinterWolfVN May 12, 2026
3681645
Update build.yml
WinterWolfVN May 12, 2026
97172c5
Update build.yml
WinterWolfVN May 12, 2026
858a694
Update README.md
WinterWolfVN May 12, 2026
a93f47a
Update build.yml
WinterWolfVN May 12, 2026
7ca0e9e
Update settings.gradle.kts
WinterWolfVN May 13, 2026
4114b5f
Update build.gradle.kts
WinterWolfVN May 13, 2026
e461a3c
Update build.yml
WinterWolfVN May 13, 2026
d54d372
Update build.yml
WinterWolfVN May 13, 2026
5ff2a9f
Create IntentSenderHelper.kt
WinterWolfVN May 13, 2026
33fbc79
Update build.yml
WinterWolfVN May 13, 2026
2bb602d
Create ConfigManager.kt
WinterWolfVN May 13, 2026
d9284a2
Update build.yml
WinterWolfVN May 13, 2026
b33d13c
Create Patcher.kt
WinterWolfVN May 13, 2026
a663724
Update build.yml
WinterWolfVN May 13, 2026
877b4f4
Create Configs.kt
WinterWolfVN May 13, 2026
5fa804f
Update build.yml
WinterWolfVN May 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 97 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: CI Build

on:
workflow_dispatch:
pull_request:
push:
branches: [ master ]
pull_request:
branches: [ master ]
merge_group:
workflow_dispatch:

jobs:
build:
Expand All @@ -24,6 +26,82 @@ jobs:
submodules: 'recursive'
fetch-depth: 0

- name: System Port
run: |
mkdir -p out/Port1

javac -source 1.8 -target 1.8 \
-bootclasspath $ANDROID_HOME/platforms/android-34/android.jar \
-d out/Port1 \
src/android/os/SharedMemory.java

$ANDROID_HOME/build-tools/34.0.0/d8 \
--output out/Port1/output.zip \
out/Port1/android/os/SharedMemory.class

unzip -o out/Port1/output.zip -d out/Port1/
ls -lah out/Port1/classes.dex

- name: System Port File
uses: actions/upload-artifact@v5
with:
name: Port-System-${{ env.commit }}
path: out/Port1
retention-days: 7

- name: Fix Submodule sun.misc
run: |
echo "Searching in submodules..."
TARGET_FILE=$(find . -name "CompoundEnumeration.java" -path "*/sun/misc/*" | head -n 1)

if [ -n "$TARGET_FILE" ]; then
echo "Target found: $TARGET_FILE"
BASE_JAVA_DIR=$(echo "$TARGET_FILE" | sed 's|sun/misc/CompoundEnumeration.java||')
NEW_DIR="${BASE_JAVA_DIR}internal/stubs"

mkdir -p "$NEW_DIR"
mv "$TARGET_FILE" "$NEW_DIR/"
sed -i 's|package sun.misc;|package internal.stubs;|g' "$NEW_DIR/CompoundEnumeration.java"

echo "Syncing imports..."
find . -type f -name "*.java" -exec sed -i 's|import sun.misc.CompoundEnumeration;|import internal.stubs.CompoundEnumeration;|g' {} +
find . -type f -name "*.java" -exec sed -i 's|sun.misc.CompoundEnumeration|internal.stubs.CompoundEnumeration|g' {} +

rm -rf "${BASE_JAVA_DIR}sun"
echo "Submodule fixed successfully!"
else
echo "File not found. Check if submodules are checked out correctly."
fi

- name: Hot-fix sun.net.www in Submodule
run: |
TARGET_FILE="core/core/src/main/java/org/lsposed/lspd/util/ClassPathURLStreamHandler.java"

if [ -f "$TARGET_FILE" ]; then
echo "Problem seen"
sed -i 's/sun\.net\.www/sunp\.net\.www/g' "$TARGET_FILE"
STUB_DIR="core/core/src/main/java/sunp/net/www/protocol/jar"
mkdir -p "$STUB_DIR"

echo -e "package sunp.net.www;\npublic class ParseUtil { public static String encodePath(String p, boolean b) { return p; } }" > "core/core/src/main/java/sunp/net/www/ParseUtil.java"

echo -e "package sunp.net.www.protocol.jar;\nimport java.net.URLStreamHandler;\npublic class Handler extends URLStreamHandler { protected java.net.URLConnection openConnection(java.net.URL u) throws java.io.IOException { return null; } }" > "$STUB_DIR/Handler.java"

echo "Successfully patched"
fi

- name: Brute Force Git Repair
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git checkout -B master
git fetch --tags --force
mkdir -p .git/refs/heads
echo $(git rev-parse HEAD) > .git/refs/heads/master
if [ -z "$(git tag)" ]; then
git tag 1.0.2
fi
git update-ref refs/heads/master $(git rev-parse HEAD)

- name: 設定快取
uses: actions/cache@v4
with:
Expand All @@ -43,15 +121,27 @@ jobs:
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
fi

- name: 檢出 libxposed/api
uses: actions/checkout@main
with:
repository: libxposed/api
path: libxposed/api

- name: 檢出 libxposed/service
uses: actions/checkout@main
with:
repository: libxposed/service
path: libxposed/service

- name: 設定 Java
uses: actions/setup-java@v5
with:
java-version: '21'
java-version: '17'
distribution: 'zulu'

- name: 設定 Gradle
uses: gradle/actions/setup-gradle@v5

- name: 設定 Android SDK
uses: android-actions/setup-android@v3

Expand All @@ -70,7 +160,7 @@ jobs:
run: rm -rf "$ANDROID_HOME/cmake"

- name: 授予 gradlew 執行權限
run: chmod +x gradlew
run: chmod +x gradlew

- name: 使用 Gradle 構建依賴項
working-directory: libxposed
Expand All @@ -84,7 +174,7 @@ jobs:

- name: 設定 commit id
run: echo "commit=$(echo ${{ github.sha }} | cut -c-7)" > $GITHUB_ENV

- name: 使用 Gradle 構建
run: ./gradlew buildAll

Expand Down Expand Up @@ -115,4 +205,4 @@ jobs:
with:
name: symbols-${{ env.commit }}
path: |
patch-loader/build/symbols
patch-loader/build/symbols
64 changes: 64 additions & 0 deletions .github/workflows/sync-fork.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Sync Fork (Keep My Code)

on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:

permissions:
contents: write

jobs:
sync:
name: Sync with Upstream (Keep My Changes)
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}

- name: Get upstream repo URL
id: upstream
env:
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
UPSTREAM=$(gh api repos/${{ github.repository }} --jq '.parent.full_name')
if [ -z "$UPSTREAM" ] || [ "$UPSTREAM" = "null" ]; then
exit 1
fi
echo "repo=$UPSTREAM" >> $GITHUB_OUTPUT

- name: Config Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Force Merge Upstream
id: merge
run: |
git remote add upstream https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ steps.upstream.outputs.repo }}.git
git fetch upstream open-source

BEFORE=$(git rev-parse HEAD)

if ! git merge upstream/open-source --allow-unrelated-histories -X ours --no-edit; then
echo "Conflicts detected, forcing our versions..."
git checkout --ours .
git add .
git commit -m "Sync: Force resolve conflicts using master branch code"
fi

AFTER=$(git rev-parse HEAD)
if [ "$BEFORE" != "$AFTER" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi

- name: Push to Master
if: steps.merge.outputs.changed == 'true'
run: |
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}.git master
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
path = core
url = https://github.com/HSSkyBoy/Vector.git
branch = master
[submodule "libxposed"]
path = libxposed
url = https://github.com/7723mod/libxposed.git
branch = main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We sincerely invite you to join our [Telegram](https://t.me/NPatch) group to get

## Supported Versions

- Min: Android 9
- Min: Android 7
- Max: In theory, same with [JingMatrix/LSPosed](https://github.com/JingMatrix/LSPosed#supported-versions)

## Download
Expand Down
Loading