There is an application that is protected by signature verification, but there is a patch that replaces the original signature -> it is always correct. The patch changes the android: name line in the <application> block (not the activity, namely application) to the custom path to the handler that created the patch. Apparently, the handler responds to getPackageInfo. I tried to check the contents of android: name like this: Context.getPackageManager.getApplicationInfo().name As a result, I always get null (even after the patch).

  • In principle, any verification in the code can be bypassed - the main thing is to find its code, understand how it works, and then the technical matter ... ApplicationInfo.name is something else. Try ApplicationInfo.className or get the name directly from the Application-class activity.getApplication().getClass().getName() or context.getApplicationContext().getClass().getName() . - woesss
  • I tried instead of the name put className and set the output to toast. It worked! Thank! - Nevidimka

0