Reversing Android Application

Prerequisite:

  1. apktool.
  2. Java Latest version

Step 1: Decompile:

apktool d facebook_lite_v118.0.0.9.94.apk

Step 2: Build:

apktool b facebook_lite_v118.0.0.9.94

Rebuilt apk can be found in facebook_lite_v118.0.0.9.94 folder

Step 3: Key Generation:

Remember to change the mycustomname and mycustom_alias to your correct keystore name and alias (whatever you want)

keytool -genkey -v -keystore mycustomname.keystore -alias mycustom_alias -keyalg RSA -keysize 2048 -validity 10000

Step 4: Self Sign:

Change the name of the apk, the name of the certificate and the alias with your own data.

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore mycustomname.keystore MYAPKFILE.apk mycustom_alias