Alot of people are good in modding of java (.jar) apps because it easy using some tools that will be on your phone, which doesn't need pc(computers) to be done.
But in modding android, it looks a bit hard because it requires a pc and other exe apps, and time to transfer it to your phone for testing.
Well there are two method i found on my researches on how to edit apk.
It is indeed possible to do so using
  • Apk tools and
  • Win rar

But for this tutorial i will be tutoring on how do so using apk tools and later i might drop for win rar too.

Lets begin, you might Want to change the car driver of Hill climb racing game to yours? Or want to change the Jetpack style in
Jetpack Joyride? I guarantee that after fully reading this post, you will be able to customize any game or App, if you have a little brain, an idea and some patience. Just read below.


TOOLS REQUIRED



APKTool to decompile and compile APK files
SignApk to sign the recompiled APK files
I have uploaded the above files into a ZIP file. You can download it from
HERE
Thanks to those guys who made APKTool and SignAPK. After downloading the files, follow the steps below.

Instructions



1. Extract the files and open command prompt in the extracted folder. There will be four folders found in the apk tools which are;
files , compiled, decompiled, and signed.

  • Files > Place your working APKs here
  • Decompiled > The files after Decompiling your APK will go here. You can edit the files after decompiling.

  • Compiled > After editing and recompiling, the unsigned APK file goes here. You cant use it before signing.

  • Signed > Finished APK, after signing goes here. You can install the APK after signing.


2. Place the working APK into the Files folder and type the following command in the command prompt:

(Here I'm taking hill climb racing as an example. You can take any game or app you wish)
apktool d files/hill.apk decompiled/hill


Make sure your write it the way you see it. The name of the apk you are editing, should be replaced at where you see hill.

The command is very simple. It says apktool to decompile the file which is situated in the folder you kept your apk to be edited - files/hill.apk
and save the decompiled files to decompiled/hill folder ( d is the command for decompile)

3. Now, just go through the files in the decompiled folder. It is very easy to mod. Here,I want to change the driver head of Hill Climb racing . So, in the assets folder., there is an driver-head.png file . It is obvious that this is the driver head image file. Now, edit the image using Photoshop (or anything similar) and change the head. Here, I have downloaded a photo from Google (dont know whose head is that! maybe an actress!!) replaced the head with this one and that's enough!. Be careful, when doing this, the photo should be in correct position. I mean, The Head should be above the neck and not should be in the AIR! I'm just doing this for this tutorial. If you want, you can change cars, tires etc. Also try editing the manifest file and other folders. In manifest file, you can edit the App name, version, etc.

Now time to recompile.

4. For recompiling, open command prompt and type the following command
apktool b decompiled/hill compiled/hill.apk


I think there is no need of an explanation here. Command b is for Binding, I think.

5. Now the final step. To sign the APK file, you can use the SignApk
(Provided in the Zip file). Type the following command

java -jar signapk.jar certificate.pem key.pk8 compiled/hill.apk signed/hill.apk


preshportal
6. Now transfer it to the Phone and Test it. Enjoyyy!
After decompiling, you get the java files as .smali files. It is very difficult to edit it. If you try, you can do much more.

Here is the screenshot of what I have done

If you want, you can download the APK which I have modified (as in the screenshot) above
Download it here

In games like Temple Run, they uses some applications like Unity3D to design such 3D games. I dont actually know how to edit those, when i do i will post it on the comment area

for now if anybody knows it, please leave a comment below and share your knowledge...

Post a Comment

 
Top
Widgets