Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to build ceserver in AndroidStudio?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Doraneko
Newbie cheater
Reputation: 1

Joined: 22 Jul 2018
Posts: 10
Location: Japan Tokyo

PostPosted: Wed Nov 07, 2018 1:34 am    Post subject: How to build ceserver in AndroidStudio? Reply with quote

Dear Dark Byte.
In reverse engineering an Android application, ceserver is very powerful and useful.
In order to make this ceserver even more useful, I would like to build it by remodeling myself.
By making some minor modifications to the source code, I succeeded in building with AndroidStudio.
However, when attaching to an application with a ceserver actually built, when the hardware breakpoint is set up, the target application will crash.

environment:
CheatEngine 6.8.1
ceserver ver: x86
Machine: NoxAppPlayer 6.2.5 androidos 7.1.2

If it is distributed as below, it works normally in the same environment.
ceserver_android_x86.zip

Android.mk I described
################################################### ######
LOCAL_PATH: = $ (call my-dir)

include $ (CLEAR_VARS)
LOCAL_CFLAGS + = - fPIE
LOCAL_LDFLAGS + = - fPIE - pie

LOCAL_MODULE: = ceserver
LOCAL_SRC_FILES: = api.c ceserver.c porthelp.c symbols.c threads.c context.c ceservertest.c extensionfunctions.c extensionloader.c
LOCAL_LDLIBS: = - lz

include $ (BUILD_EXECUTABLE)
################################################### ######

Is there something wrong with my description?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25806
Location: The netherlands

PostPosted: Wed Nov 07, 2018 1:49 am    Post subject: Reply with quote

i am not sure why the build environment would cause issues only for debugging

perhaps it also uses a different compiler which treats some typecasts different

or you're running it under a debugger (debugging debuggers in linux can be tricky as the debugged application gets debug events that the debugged app is intended to handle but the top debugger might intercept those as well)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Doraneko
Newbie cheater
Reputation: 1

Joined: 22 Jul 2018
Posts: 10
Location: Japan Tokyo

PostPosted: Wed Nov 07, 2018 1:56 am    Post subject: Reply with quote

Thank you for the reply. I also use other tools in Android analysis, but I think the performance of ceserver's dynamic analysis is very good. I am creating a debugger by myself, referring to the source code you wrote. I learned a lot of reverse engineering technology from CheatEngine. Thank you very much. I look forward to working with you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites