zoukankan      html  css  js  c++  java
  • apktool反编译回编译及签名说明

    No1: download jar file from github repo firstly:

    https://github.com/iBotPeaches/Apktool/releases

    No2: copy apk to your apktool.jar dir and run command:

    D:rmapktool> 

    java -jar apktool.jar d -f test.apk -o TEST

    this command means Decompile file test.apk to out dir  TEST directory.

    demo print:

    I: Using Apktool 2.4.1 on test.apk
    I: Loading resource table...
    I: Decoding AndroidManifest.xml with resources...
    I: Loading resource table from file: C:Users**AppDataLocalapktoolframework1.apk
    I: Regular manifest package...
    I: Decoding file-resources...
    I: Decoding values */* XMLs...
    I: Baksmaling classes.dex...
    I: Copying assets and libs...
    I: Copying unknown files...
    I: Copying original files...

    No3:modify files in TEST what you want and then compile file use command:

    D:rmapktool>

    java -jar apktool.jar b TEST

    demo print:

    I: Using Apktool 2.4.1
    I: Checking whether sources has changed...
    I: Smaling smali folder into classes.dex...
    I: Checking whether resources has changed...
    I: Building resources...
    W: fakeLogOpen(/dev/log_system) failed
    W: fakeLogOpen(/dev/log_crash) failed
    W: fakeLogOpen(/dev/log_system) failed
    W: fakeLogOpen(/dev/log_stats) failed
    W: fakeLogOpen(/dev/log_crash) failed
    W: fakeLogOpen(/dev/log_system) failed
    W: fakeLogOpen(/dev/log_stats) failed
    W: fakeLogOpen(/dev/log_crash) failed
    W: fakeLogOpen(/dev/log_stats) failed
    I: Copying libs... (/lib)
    I: Building apk file...
    I: Copying unknown files/dir...
    I: Built apk...

    No4:sign

    keytool -genkey -alias abc.keystore -keyalg RSA -validity 20000 -keystore abc.keystore
    
    keytool -importkeystore -srckeystore abc.keystore -destkeystore abc.keystore -deststoretype pkcs12
    
    jarsigner -verbose -keystore abc.keystore -signedjar testx.apk TESTdist	est.apk abc.keystore

    No5: complete

  • 相关阅读:
    小程序-地图-定位在我此时的位置
    小程序-地图-标注点固定在某一点
    小程序-列表块/类式ul-li格式(1)
    表单form-input标签禁止聚焦输入
    forEach与jdk8中的lambda, Stream
    put get & push pull
    事务背书 ACID, CAP, BASE
    懒汉式单例要加volatile吗
    SpringMVC DeferedResult和servlet3.1 AsyncContext异步请求
    netty在rpc MQ中的应用
  • 原文地址:https://www.cnblogs.com/mignet/p/sign_apk.html
Copyright © 2011-2022 走看看