Get ready:
①re-sign.jar re-signing Tool: ( for: Http://troido.de/downloads/category/1);
② to be re-signed APK;
re-signing steps:① Right- Re-sign.jar, in "Open with", select "Java (TM) Platform SE binary" option, after opening, display as follows: ②Next, the image has been marked, drag your apk into the;③ Select a save location and click on the "Save" button in the diagram to finish. The following prompt will pop up:
This interface shows that your apk has been re-signed successfully, and the signature method here is the debug signature. also found the package name and main class name of the apk you want to test:Package Name: Com.wandoujia.phoenix2Main class name: Com.wandoujia.p4.activity.ExploreActivityonce the signature is successful, you can install the debug-signed apk into the real machine or simulator.
?. To install the re-signed APK file in the simulator, the steps are as follows: (similar to the simulator installed in the real machine, specific operation, Google or Baidu can be)
1) Open the Android SDK installation directory
2) Locate the Platform-tools directory under the SDK
3) put the re-signed APK file in this directory
4) Open command prompt: cmd
5) CD .../sdk/platform-tools
6) Open the simulator to install APK
7) Run command:adb install testedapp.apk. See success, the APK has been installed successfully.
Ps: Before installing the APK, make sure the old version of the app has been uninstalled in the simulator. Otherwise, executing the command will prompt that the installation failed.
Resources:
http://fengbohaishang.blog.51cto.com/5106297/999764
To re-sign the APK using Re-sign.jar