-1

Hi i decompiled an app in this app there are 2 activities (Start activity is with password). What iam trying is there is in the (Start activity(Keychecker) ) command to move to the next acticity what i did is copy the command for move to next activity and put it in a Onclick button the problem is the command to open new activity(Mainactivity) is in folder Keychcker1§3 and the Button that i want to put the command to it is in Keychecker§1 then agter debug the app again and press button it get crash why is that happening ? Thanks.

The code to move to new activity

new-instance v0, Landroid/content/Intent;

   iget-object v1, p0, Lcom/zeroo/com/KeyChecker$1;->this$1:Lcom/zeroo/com/KeyChecker$3;

   iget-object v1, v1, Lcom/zeroo/com/KeyChecker$3;->this$0:Lcom/zeroo/com/KeyChecker;

   const-class v2, Lcom/zeroo/com/MainActivity;

   invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

   .line 186
   .local v0, "intent":Landroid/content/Intent;
   iget-object v1, p0, Lcom/zeroo/com/KeyChecker$1;->this$1:Lcom/zeroo/com/KeyChecker$3;

   iget-object v1, v1, Lcom/zeroo/com/KeyChecker$3;->this$0:Lcom/zeroo/com/KeyChecker;

   invoke-virtual {v1, v0}, Lcom/zeroo/com/KeyChecker;->startActivity(Landroid/content/Intent;)V

   .line 187
   iget-object v1, p0, Lcom/zeroo/com/KeyChecker$1;->this$1:Lcom/zeroo/com/KeyChecker$3;

   iget-object v1, v1, Lcom/zeroo/com/KeyChecker$3;->this$0:Lcom/zeroo/com/KeyChecker;

   invoke-virtual {v1}, Lcom/zeroo/com/KeyChecker;->finish()V

This code was in folder KeyChcker1§

after i move the code to KeyChecker1$

new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/zeroo/com/KeyChecker$1;->this$1:Lcom/zeroo/com/KeyChecker$3;

    iget-object v1, v1, Lcom/zeroo/com/KeyChecker$3;->this$0:Lcom/zeroo/com/KeyChecker;

    const-class v2, Lcom/zeroo/com/MainActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 186
    .local v0, "intent":Landroid/content/Intent;
    iget-object v1, p0, Lcom/zeroo/com/KeyChecker$1;->this$1:Lcom/zeroo/com/KeyChecker$3;

    iget-object v1, v1, Lcom/zeroo/com/KeyChecker$3;->this$0:Lcom/zeroo/com/KeyChecker;

    invoke-virtual {v1, v0}, Lcom/zeroo/com/KeyChecker;->startActivity(Landroid/content/Intent;)V

    .line 187
    iget-object v1, p0, Lcom/zeroo/com/KeyChecker$1;->this$1:Lcom/zeroo/com/KeyChecker$3;

    iget-object v1, v1, Lcom/zeroo/com/KeyChecker$3;->this$0:Lcom/zeroo/com/KeyChecker;

    invoke-virtual {v1}, Lcom/zeroo/com/KeyChecker;->finish()V

My logcat

2019-08-13 02:54:46.740 25149-25149/com.zeroo.com E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.zeroo.com, PID: 25149
    java.lang.NoSuchFieldError: No field this$1 of type Lcom/zeroo/com/KeyChecker$3; in class Lcom/zeroo/com/KeyChecker$1; or its superclasses (declaration of 'com.zeroo.com.KeyChecker$1' appears in /data/app/com.zeroo.com-2EAGWZnQb2d6WQjTQ0g86Q==/base.apk)
        at com.zeroo.com.KeyChecker$1.onClick(KeyChecker.java:84)
        at android.view.View.performClick(View.java:7339)
        at android.widget.TextView.performClick(TextView.java:14222)
        at android.view.View.performClickInternal(View.java:7305)
        at android.view.View.access$3200(View.java:846)
        at android.view.View$PerformClick.run(View.java:27788)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7073)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

Thanks.

New contributor
Muhamad Gamer is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Hello and welcome! This seems to have more to do with debugging program errors and less to do with reverse engineering. It is also a little bit difficult to understand what you are trying to accomplish. I think investing a few extra minutes into clarifying the question would be helpful to those who might be interested in the problem you are having. – julian 2 days ago
  • well the apk is working with login using firebase email and password and what iam trying is actually to remove check for email and password when i press login button in login activity and add an code that moves me to the next activity directly – Muhamad Gamer 2 days ago
  • and in the keychecker activity there are 5 smali files and in the file keychecker1$3 there is an code with moves me directly to next activity(mainactivity) and i want to move this code to keychecker$1 because the button is in keychecker$1 so that if i press login button then i go to next activity i hope you understand me and sorry for the bad english thx – Muhamad Gamer yesterday

Your Answer

Muhamad Gamer is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.