首页 > 移动平台 > 详细

APP 反编译,去广告,改签名

时间:2020-03-21 00:42:23      阅读:80      评论:0      收藏:0      [点我收藏+]

Installation for Apktool

  • Windows:
    • Download Windows wrapper script (Right click, Save Link As apktool.bat)
    • Download apktool-2 (find newest here)
    • Rename downloaded jar to apktool.jar
    • Move both files (apktool.jar & apktool.bat) to your Windows directory (Usually C://Windows)
    • If you do not have access to C://Windows, you may place the two files anywhere then add that directory to your Environment Variables System PATH variable.
    • Try running apktool via command prompt

apktool 下载:

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

wrapper script

@echo off
setlocal
set BASENAME=apktool_
chcp 65001 2>nul >nul

rem Find the highest version .jar available in the same directory as the script
setlocal EnableDelayedExpansion
pushd "%~dp0"
if exist apktool.jar (
    set BASENAME=apktool
    goto skipversioned
)
set max=0
for /f "tokens=1* delims=-_.0" %%A in ('dir /b /a-d %BASENAME%*.jar') do if %%~B gtr !max! set max=%%~nB
:skipversioned
popd
setlocal DisableDelayedExpansion

rem Find out if the commandline is a parameterless .jar or directory, for fast unpack/repack
if "%~1"=="" goto load
if not "%~2"=="" goto load
set ATTR=%~a1
if "%ATTR:~0,1%"=="d" (
    rem Directory, rebuild
    set fastCommand=b
)
if "%ATTR:~0,1%"=="-" if "%~x1"==".apk" (
    rem APK file, unpack
    set fastCommand=d
)

:load
java -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0%BASENAME%%max%.jar" %fastCommand% %*

rem Pause when ran non interactively
for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" pause

反编译 APk

apktool d *.apk -o outputpath

去广告搜索

重新编译 APk

apktool b apkfile -o *.apk

改签名

jarsigner.exe -verify unsigned.apk
keytool -genkey -alias test.keystore -keyalg RSA -validity 20000 -keystore test.keystore 
jarsigner.exe -verbose -keystore test.keystore -signedjar signed.apk unsigned.apk test.keystore

APP 反编译,去广告,改签名

原文:https://www.cnblogs.com/infoset/p/12535246.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!