Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions ApkResigner.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def getBackslash():
buildToolsPath = config.sdkBuildToolPath + getBackslash()
checkAndroidV2SignaturePath = libPath + "CheckAndroidV2Signature.jar"
walleChannelWritterPath = libPath + "walle-cli-all.jar"
outputFilePath = parentPath + "channels"
channelFilePath = parentPath +"channel"
outputFilePath = config.outputFilePath
channelFilePath = config.channelFilePath
keystorePath = config.keystorePath
keyAlias = config.keyAlias
keystorePassword = config.keystorePassword
keyPassword = config.keyPassword
protectedSourceApkPath = parentPath + config.protectedSourceApkName
protectedSourceApkPath = config.protectedSourceApkPath

zipalignedApkPath = protectedSourceApkPath[0 : -4] + "_aligned.apk"
signedApkPath = zipalignedApkPath[0 : -4] + "_signed.apk"
Expand Down
12 changes: 9 additions & 3 deletions config.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
keystorePassword = "your KeystorePassword"
keyPassword = "your keyPassword"

#加固后的源文件名(未重签名)
protectedSourceApkName = "app-release.encrypted.apk"
#加固后的源文件路径(未重签名)
protectedSourceApkPath = "/Users/mac/downloads/app-release.encrypted.apk"

#Android SDK buidtools path , please use above 25.0+
sdkBuildToolPath = "/Users/mac/Library/Android/sdk/build-tools/25.0.2"
sdkBuildToolPath = "/Users/mac/Library/Android/sdk/build-tools/25.0.2"

#输出文件目录
outputFilePath = "/Users/mac/downloads"

#channel文件路径
channelFilePath = "/Users/mac/Android/pro/prometheus-android/app/channel"