码迷,mamicode.com
首页 > 移动开发 > 详细

repackage android application

时间:2014-12-26 20:06:46      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

 

  1. decompile the application file

apktool d -o dianping/ dianping.apk
 

  1. modify the resources / smali assembly codes as you wish.

 

diff -bur 51buy/smali/ 51buy_new/smali/

 

  1. repackage the application

apktool b -o dianping_new.apk dianping/

 

  1. sign the repackaged apk file
    1. Generate key store (only once)

keytool -genkey -v -keystore /d/android/keystore -alias android -keyalg RSA -keysize 2048

http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html

 

  1. Sign the apk file

jarsigner.exe -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore /d/android/keystore dianping_new.apk android

 

    1. Install the application and have fun.

repackage android application

标签:

原文地址:http://www.cnblogs.com/qsort/p/4187412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!