IN our Android App Reversing Using Android Phones Collection now we have mentioned about its introduction and how to remove banner ads up to now. In right now’s article we are going to  be discussing to take away trial expired pop-up i.e extending the trial interval.

Now earlier than we begin with our Tut let’s undergo few fundamental Dalvik Op-Codes which assist us in to grasp our decompile small code’s & reversing of our goal’s

CODE                                   -EXPLANATION
nop                                      – No operation
const/four vx,lit4                       – Places the four bit fixed into vx
const/16 vx,lit16                   – Places the 16 bit fixed into vx
const-string vx,string_id        –  Places reference to a string fixed recognized by string id into vx.
Goto                                    – Unconditional leap by quick offset
If-eqz vx,goal                    –  Jumps to focus on if vx=Zero vx is an integer worth
If-nez vx,goal                    –  Checks vx and jumps if vx is nonzero.
If-lez vx,goal                     –  Checks vx and jumps if vx<=0
xor-int vx, vy, vz                  –  Calculates vy XOR vz and places the end result into vx.
add-int vx,vy,vz                   –  Calculates vy+vz and places the end result into vx.
sub-int vx,vy,vz                   –  Calculates vy-vz and places the end result into vx.
mul-int vx, vy, vz                 –  Multiplies vz with wy and places the end result int vx.
div-int vx,vy,vz                    –  Divides vy with vz and places the end result into vx.
return-void                          –  Return and not using a return worth

NOTE:- vx,vv,vy,vz are integer vale to elucidate the usage of code

I simply cowl right here solely vital code that we’re going to use whereas reversing & understanding the goal for extra reference of Dalvik Op-Code you’ll be able to go to right here:-
http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html

Take away Trial Expired Pop-up

TARGET: Medical Calculators
METHOD: Reversing Smali Codes
DIFFICULTY:  Intermediate

Step-1:

Word down & perceive all restrictions

  1.  Skip Verification Button seen just for 7day’s
  2.  7 day’s Trial Finish Pop-Ups

So let’s start with eradicating first restriction i.e after expiry of seven day’s “Skip Login Verification” Button will likely be faraway from Display in order that we will’t entry app offline till we login:

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Step-2:

Begin with decompile apk & one it’s achieved the go to smaliPedcallCalculator folder

Now we have to discover the code which management our Skip Login Verification Button visibility in such method that after expiry of seven day’s it is going to faraway from display screen.

However query is how we will discover that code in bunch of smali file’s? Let’s apply some logic, we all know that this button seems on display screen with login choice & there we see some login associated smali. So simply open & seek for “Skip” in a single after one other login associated smali. Alternatively you should use “aGrep” app for this which we mentioned subsequent right here.

And their You’ll discover following code in “login.smali”

Code View:-


How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)


So we simply want to alter –
if-nez v23, :cond_0 to goto :cond_0
So as to make our Skip Verification button at all times seen even after expiry of seven day’

Step-3

Now we’re going to take away 7 day’s trial expired Popup’s

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

 

So let’s seek for the smali file which comprise sting “Your trial period of 7 days has expired. Kindly login to continue using the app for free.” To do that we simply fireplace up “aGrep” app & seek for it.

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Results of Our Search you get in to this window

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

So now we all know the place we’re going to discover this string ie. inside “MainActivity.smali”

Code View:-


How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)


Our conditional leap will land us at

Code View:-


How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Now why goto_2 & not cond_0 ?
As a result of For those who see above code in continuation then you’ll going to seek out that there’s two extra situation (cond_7 & cond_8) between day’s & time calculation and each of this situation used to generate alert dialog for Variety of Trial Day’s left.

Situation-7 Code view which lead us to Trial Message

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Situation-Eight Code view  which lead us to Trial message.

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Since we don’t need anymore pop-up we don’t use this two situation however finish technique of each this situation is vital for us i.e each of this situation lead us to goto_2

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

So we simply ignore cond_0 and flow of code and right here we land after this level every little thing goes good with none annoying pop-up.

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Now simply final pop-up stay which we’re going to edit and never take away.

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

We repeat the method of looking out the string and we discover above strings inside “login$6.smali”

How to Remove Trial Expired Pop-up Android App ( AAR –  Part 3)

Now we’re all achieved. Simply Recompile, Zipalign and Signal the apk. Now you will have limitless entry to the applying.

In our subsequent article we will likely be discussing about the best way to crack premium content material of android utility.

 

Leave a Reply

Your email address will not be published. Required fields are marked *