Poker-AI.org
http://poker-ai.org/phpbb/

Anyone tried Android hooking?
http://poker-ai.org/phpbb/viewtopic.php?f=26&t=3083
Page 1 of 1

Author:  HontoNiBaka [ Wed Oct 04, 2017 8:55 pm ]
Post subject:  Anyone tried Android hooking?

I was experimenting with a few programs in the past few days. My main goal would be to hook some text functions and be able to get all the actions and names, other than that I wanted to change the background of an app, to make it easier to OCR the things that I can not get through hooks.

My first idea about the image thing was just to repackage the .apk with new images. Took some while to set everything up, sign the apk and so on, but when I was finally able to install it, it turned out that the app computes a checksum and will not connect to the server if it was changed.

After that I tried to use XPosed. I am able to hook some things, but XPosed can not hook native code it seems and I was also unable to change any ressources in the assets folder. The app mostly uses native code called from compiled LUA scripts. I am also unable to decrypt the .luac files, because I have no way of hooking the app at the moment and getting the key.
So that didn't work too well, but maybe someone has an idea what to do.

I tried to use frida later. I am able to hook some apps, but the one I need to hook uses ARM and somehow there is a mismatch between frida libraries and the ones the app uses. It's a shame, as it seems to offer everything that I would need.

Last thing that I tried was Cydia Substrate. That one didn't even install.

So yea, if anyone has any experience with this I would be happy about any tips. I can also share a bit more of my own experiences.

Author:  HontoNiBaka [ Thu Oct 05, 2017 3:06 pm ]
Post subject:  Re: Anyone tried Android hooking?

Yesterday I tried the adbi library (not to be confused with adb) but I also had problems with ARM, even after changing some code, so that will probably not work either.

Author:  HontoNiBaka [ Fri Oct 06, 2017 6:43 pm ]
Post subject:  Re: Anyone tried Android hooking?

Ok, I was able to use Frida on my actual phone, the problems only happen with emulators. I will see if I can get the relevant information, but as it seems not many are programming for android devices, so I will not update this thread further for now.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/