apktool

https://ibotpeaches.github.io/Apktool/

signApk

https://github.com/appium/sign



decomUtilPath="/devSohn/android_sdk/decompile/"    # 디컴파일 유틸들 있는 경로


1. APK 파일 디컴파일 하기 

apkPath="/user/xxx.apk"

# Step1. Decompile Start

java -jar ${decomUtilPath}apktool_2.3.4.jar d ${apkPath}



2. 디컴파일 된 APK > 재빌드 > Sign 하기

decompilePath="Step1에서 디컴파일 된 폴더 경로 "    # Step1에서 디컴파일 된 폴더 경로

decompileApkName="/Users/xxx/reCompile_$(date +"%Y-%m-%d_%H%M").apk"        # 디컴파일 빌드 APK

signedApkName="/Users/xxx/reCompile_$(date +"%Y-%m-%d_%H%M")_signed.apk"    # 서명완료된 APK

# Step2. ReCompile Apk Create

java -jar ${decomUtilPath}apktool_2.3.4.jar b ${decompilePath} -o ${decompileApkName}

# Step3. ReCompile Apk Signed

java -jar ${decomUtilPath}signapk.jar ${decomUtilPath}testkey.x509.pem ${decomUtilPath}testkey.pk8 ${decompileApkName} ${signedApkName}



빨간색 부분의 경로만 변경 해서 카피 후 실행 한다.


signapk.jar

testkey.pk8

testkey.x509.pem




Posted by MR 손
,