File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ HOME=/root/other
55TOOLS=/root/other/tools
66PATCH=/root/other/patch
77KERNEL=/root/other/kernel
8+
9+ export NDK_HOME=/root/.android/sdk/ndk/28.0.13004108
810# 构建 Android 版本
911cd $TOOLS
10- rm -rf build/android
12+ rm -rf build
1113mkdir -p build/android
1214cd build/android
1315# 请替换以下变量为实际 NDK 路径或通过环境变量传递
3335
3436cd $HOME
3537
36- export ANDROID_NDK=/root/other/ndk/android-ndk-r28
38+ export ANDROID_NDK=/root/.android/sdk/ndk/28.0.13004108
39+
40+ rm -rf $PATCH /res/kpimg.enc
41+ rm -rf $PATCH /res/kpimg
3742
3843cp -r $TOOLS /build/android/kptools-android $PATCH /res
3944cp -r $TOOLS /build/kptools-linux $PATCH /res
4045cp -r $KERNEL /kpimg $PATCH /res
4146
4247cd $PATCH
4348
49+ g++ -o encrypt encrypt.cpp -O3 -std=c++17
50+ chmod 777 ./encrypt
51+ ./encrypt res/kpimg res/kpimg.enc
4452xxd -i res/kpimg.enc > include/kpimg_enc.h
4553xxd -i res/kptools-linux > include/kptools_linux.h
4654xxd -i res/kptools-android > include/kptools_android.h
You can’t perform that action at this time.
0 commit comments