Jump to content

2 posts in this topic

Recommended Posts

Posted

I am using Nox Emulator since I do not have an Android device (Nox is Android version 7)

I've tried to make a free modified ipa and a free modified android apk for the app Kim Kardashian:Hollywood (the ipa is done as of this moment but I need a lot of help with the android one)

Loaded the binary of the APK in Ida Pro and wanted to get to the offset where I can change the cost of an item in the game (here is the source I got it from https://apkpure.com/kim-kardashian-hollywood/com.glu.stardomkim)

I've been trying to modify the offset of function "CustomizeUI_GetOptionCost" I tried doing a negative number then I realized it is an unsigned integer *sigh*

Here is what the offset looks like below for those who are wondering:

; CustomizeUI_GetOptionCost(SSceneManager *, SCustomCharOption const&, unsigned int, unsigned int *, int *)
j__Z25CustomizeUI_GetOptionCostP13SSceneManagerRK17SCustomCharOptionjPjPi
ADRL            R12, 0x69C0F8
LDR             PC, [R12,#(_Z25CustomizeUI_GetOptionCostP13SSceneManagerRK17SCustomCharOptionjPjPi_ptr - 0x69C0F8)]! ; CustomizeUI_GetOptionCost(SSceneManager *,SCustomCharOption const&,uint,uint *,int *)
; End of function CustomizeUI_GetOptionCost(SSceneManager *,SCustomCharOption const&,uint,uint *,int *)

 

So then I did some investigating ~ I xref to 0x69C0F8 and get this result from the first xref

 

.text:005B14C0                 MOV             R3, R2
.text:005B14C2                 MOV             R2, R1
.text:005B14C4                 MOV             R1, R0
.text:005B14C6                 LDR             R0, =(strtoumax_ptr - 0x5B14CC)
.text:005B14C8                 ADD             R0, PC  ; strtoumax_ptr
.text:005B14CA                 LDR             R0, [R0] ; strtoumax
.text:005B14CC                 B.W             loc_5B13C8
.text:005B14CC ; ---------------------------------------------------------------------------
.text:005B14D0 off_5B14D0      DCD strtoumax_ptr - 0x5B14CC

NOPd the entirety of strtoumax_ptr and all the xrefs that contained it ~ noping it didn't help at all it made the cost of an item the maximum value of an unsigned integer which is interesting but not what I wanted at all

I would like to make the cost of the items to a negative number instead (any negative number even -1)

I really would like a helping hand for this ~ thanks in advance :) 

Posted (edited)

 Use a cast. int a = 6; unsigned int b; int c; b = (unsigned int)a; c = (int)b; 

I oml you already solved it though lol

Updated by Peachxx_101
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines