Help! New offset or function name to unlock all weapons and outfits in Mini Militia (5.6.0)?

Mini Militia shipped as Cocos2d-x C++ for its whole life up to 4.x. The logic lived in libcocos2dcpp.so as native symbols. The 5.6.0 "War.io" rebrand is a Unity IL2CPP port - that is why there is a dump.cs for 5.6.0 in this section at all, which would not exist for a Cocos build.

In an IL2CPP port every one of those mangled C++ symbols is gone. No _ZN10IapManager18isProductPurchasedE..., no _ZN12ItemPurchase15isItemPurchasedE.... They are C# methods now, and they are only discoverable from the dump, not from any old tutorial.

The old values, for reference
  • armv7, 4.x: InAppPurchaseBridge::isProductPurchased at 0x0054e96a, patched 1846 to 0120 (movs r0, 1).
  • arm64, 4.3.3: _ZN10IapManager18isProductPurchasedENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE and _ZN12ItemPurchase15isItemPurchasedENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE, both patched 20 00 80 52 C0 03 5F D6.
Worth noticing: by 4.3.3 the propack class was already IapManager, not InAppPurchaseBridge. The codebase was drifting before the port even happened, so any name you pull from a 2020 tutorial is two generations stale.

Why you get nothing when you search those names
Because you are searching mangled C++ in a file that contains neither mangled names nor that class layout. In your dump the strings are plain C# and the classes are whatever the port renamed them to. Searching isProductPurchased and finding zero hits tells you nothing except that the port renamed it.

What to search in your dump instead
Class candidates first, since the method lives under one of them:

  • IapManager / IAPManager
  • ItemPurchase
  • PurchaseManager / PurchasingManager
  • StoreManager / ShopManager
  • BillingManager / Store
  • PurchasableItem / ItemDefinition
Then method names inside them:

  • IsProductPurchased / isProductPurchased
  • IsItemPurchased / isItemPurchased
  • HasPurchased / HasBought
  • IsOwned / IsUnlocked / IsAvailable
  • GetPurchaseState / GetOwnershipState
A case-insensitive grep for purchas and owned across the whole dump will surface the real cluster faster than guessing class names one at a time.

Once you have the method, the patch is the same as it always was - force a true return at the top of it:

Code:
20 00 80 52    mov w0, #1
C0 03 5F D6    ret
Code:
E0 03 1F 2A    mov w0, wzr     ; if you need false
C0 03 5F D6    ret

If the purchase methods turn out to be dead ends
War.io is account based, so there is a real chance the client asks the server and your patch gets overwritten on sync. If the purchase method is only a cached-value reader, go one level up to the consumer instead:

  • LoadoutManager / Loadout - the equip checks that decide whether you are allowed to use a gun or outfit.
  • WeaponFactory / WeaponManager - spawn and selection paths, which work from the item index rather than from ownership.
  • SoldierManager / spawn setup - the same trick the old tutorials used for fixed spawn weapons.
That route does not care about purchase state at all, so a rename cannot break it.

Post your dump.cs here or send it to me privately. With the actual dump in hand the class names take about two minutes to find.
 
Back
Top Bottom