Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10一键加固对齐并签名脚本和环境备忘 #53

Open
linuxhsj opened this issue Jan 10, 2023 · 2 comments
Open

win10一键加固对齐并签名脚本和环境备忘 #53

linuxhsj opened this issue Jan 10, 2023 · 2 comments

Comments

@linuxhsj
Copy link

linuxhsj commented Jan 10, 2023

1、修改config.json
{
// Choose under which architecture you need to build C++ libraries
"abi":{
"armeabi-v7a":true,
"arm64-v8a":true,
"x86":false,
"x86_64":false
},
// If you do not have environment variables set, enter the path to SDK, NDK and CMAKE
"path": {
"sdk": "D:/Android/Sdk", // E:\Android\Sdk
"cmake": "D:/Android/Sdk/cmake/3.18.1", // E:\Android\Sdk\cmake\3.10.2.4988404
"ndk": "D:/Android/Sdk/ndk/25.1.8937393" // E:\Android\Sdk\ndk\22.0.7026061
},
// Indicate under which platform the NDK is installed
"ndk": {
// For Linux: linux-x86_64
"os_name":"windows-x86_64" // E:\Android\Sdk\ndk\22.0.7026061\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin
}
}
2、java -jar nmm-protect-1.2-SNAPSHOT.jar teen.apk

@linuxhsj
Copy link
Author

linuxhsj commented Jan 10, 2023

对齐和签名脚本直接另存为bat执行
打开D:\Android\Sdk\build-tools\33.0.1\lib执行
zipalign -f -v 4 in.apk out.apk& java -jar apksigner.jar sign --ks demo.keystore --ks-pass pass:123456 --out signed.apk out.apk pause

@linuxhsj
Copy link
Author

一键加固对齐并签名
cd /d D:/Program Files/nmm&
java -jar nmm-protect-1.2-SNAPSHOT.jar teen.apk&
copy /Y "D:\Program Files\nmm\build\teen-protect.apk" "D:\Android\Sdk\build-tools\33.0.1\lib\input.apk"&
cd /d D:/Android/Sdk/build-tools/33.0.1/lib&
zipalign -f -v 4 input.apk out.apk&
java -jar apksigner.jar sign --ks demo.keystore --ks-pass pass:123456 --out signed.apk out.apk&
start . &
pause

@linuxhsj linuxhsj changed the title win10编译备忘 win10一键加固对齐并签名脚本和环境备忘 Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant