Pairip Protection seems to be a new security measure introduced by Google Play which allow developers to harden their App or Game Security from being modded. You will find mostly on XAPK files meaning Bundled APK File and if you try to convert the XAPK to normal APK the game will crash instantly or if you try to reverse engineer it. The Pairip seems to have signature check, License verification, and Integrity Check.
Today, I will show you how to bypass it in just a few simple steps.
Things you will need:
1) The XAPK File you are trying to Bypass
2) APK TOOL KIT or any other program capable to decompile APK files. Use APK Tool Kit since it has the option to convert XAPK to APK file
3) APKAnalyzer+ APK – Download From Here
4) Android Device
Let’s Begin
1) Get the XAPK File from which you want to remove the Pairip Protection
2) Use APK TOOL KIT to convert the XAPK to APK file but make sure you uncheck the SIGN option since we will need the original APK file CRC32 later on
3) Once you have converted, copy the file to some place, so you have two copies of the APK file. Decompile one of them.
4) Once the Decompiling is done, you need to open the Androidmanifest.xml file and search for “pairip” and you will see something like the screenshot below
We can see from the screenshot that it’s referring to the pairip class, which is located under com.pairip.application.Application
So now we have to find the class, search for this in every smali folder until you find the Application.smali file. Location will be com/pairip/application/application.smali but it could be inside any smali folder.
5) Once you find the Application.smali file, open it and read the .super on the top
In this example, .super Lcom/episodeinteractive/android/app/MainApplication; indicates that the current Smali class inherits from com.episodeinteractive.android.app.MainApplication.
So now we have to replace the com.pairip.application.Application in Android Manifest file with com.episodeinteractive.android.app.MainApplication, as show in the pic below, this will prevent it from calling the pairip. But we are not done yet.
6) Recompile the APK file and send the Original APK file and the modded one to your Android device.
7) Open APKAnalyzer+ Tool on your Android device and first located the MODDED APK file and click on it, then select “Modify New APK Old Set Entry” then you will see written Select Original File, Click on Select and choose the original APK File then turn off the “Set old time” and hit Patch
8) Once done you can sign the APK file, and it will work to find, the pairip should be bypassed. Repeat the process of APKAnalyzer+ every time you make any adjustment to the APK file.
That’s It!
Important – Some games or apps maybe require additional steps to bypass the pairip protection in that case, search for “invoke-static \{p1\}, Lcom/pairip/SignatureCheck;->verifyIntegrity\(Landroid/content/Context;\)V” this and replace it with #$1
And then remove these classes:
1. Lcom/pairip/SignatureCheck;
2. Lcom/pairip/SignatureCheck$SignatureTamperedException;
This will remove the integrity check from the game.
Enjoy Modding, and if you have any questions then let me know in the comments section and i will try my best to answer them all.