MantisBT - Cheat Engine
View Issue Details
0000369Cheat Engine(No Category)public2015-02-07 14:352015-06-11 02:21
Reportergrimmdev 
Assigned ToDark Byte 
PriorityimmediateSeverityblockReproducibilityalways
StatusassignedResolutionopen 
PlatformCESERVEROSAndroidOS Version5.0.2
Summary0000369: error: only position independent executables (PIE) are supported.
DescriptionDevice:Nexus 5
Root Access
Android OS:5.0.2
Tried latest Ceserver files from Cheatengine website. As you can see from the screenshot, it mostly says it all. This error halts the process and keeps me from connecting to it via network.

When I googled the issue I found this.
https://github.com/tatsuhiro-t/aria2/issues/321
Just seems it might need to be compiled with the latest api.
Steps To ReproduceUse any android device with Android L OS.
Run Ceserver with Root privileges.
TagsNo tags attached.
Attached Filespng Screenshot_2015-02-07-06-12-18.png (72,558) 2015-02-07 14:35
http://cheatengine.org/mantis/file_download.php?file_id=128&type=bug
png

png Screenshot_2015-02-07-22-59-31.png (125,869) 2015-02-08 07:14
http://cheatengine.org/mantis/file_download.php?file_id=129&type=bug
png

Notes
(0000732)
Dark Byte   
2015-02-08 03:24   
I've compiled ceserver with -fPIC which should theoretically fix this (untested)

Download http://cheatengine.org/temp/ceserverupdate.rar

Because this build is from the current svn it won't work with the released 6.4 version and requires the current svn build of cheat engine as well.

This archive contains both ceserver and the current 64-bit build of cheat engine. Extract the exe in this archive over the one in your current cheat engine folder (make a backup if you wish)

then replace the ceserver and libceserver-extension.so files on your device with the ones in this archive and see if it works.

Also, there is a 'hack' that removes the PIC requirement in android 5 ( http://forum.xda-developers.com/showpost.php?p=57467067&postcount=65 )
(0000737)
grimmdev   
2015-02-08 07:15   
didn't seem to work, but I'll try the hack with both provided and official ceserver
(0000738)
grimmdev   
2015-02-08 07:39   
well I tried both with the patch/hack, there's an underlying problem still. I just am not really sure what it is, proper way to collect log files? now it shows up and connects.. but after that point.. any app I connect it to, freezes the app and cheat engine on pc also freezes, I tried to make sure they both have the exact same versions. I don't think it worked very well.
(0000739)
Dark Byte   
2015-02-08 11:58   
(Last edited: 2015-02-09 15:30)
what does the output of ceserver say?(the last part specifically)


and make sure you only use the new ceserver with the new ce exe. the protocol has changed and there's no handling for different versions yet

try: http://cheatengine.org/temp/ceserver (armv7 version)
I've tested it on an android 5 emulator and it seems to work

(0000819)
grimmdev   
2015-05-12 08:39   
Welcome to the CEServer test app
Expect it to not work
Trying to fetch ceserver from the package...
  stage 1 success
  stage 2 success
    copying.................
  stage 3 success
Extraction successfull
Trying to fetch libceserver-extension.so from the package...
  stage 1 success
  stage 2 success
    copying............
  stage 3 success
Extraction successfull
-BOC-
uid=0(root) gid=0(root) context=u:r:sudaemon:s0
onCommandResult
Welcome
/
drwxrwx--x u0_a212 u0_a212 2015-05-08 03:03 cache
-rwxrwxrwx u0_a212 u0_a212 110112 2015-05-11 23:59 ceserver
lrwxrwxrwx install install 2015-05-04 05:00 lib -> /data/app-lib/org.cheatengine.cetest
-rwxrwxrwx u0_a212 u0_a212 71240 2015-05-11 23:59 libceserver-extension.so
drwxrwx--x u0_a212 u0_a212 2015-05-08 03:03 cache
-rwxrwxrwx u0_a212 u0_a212 110112 2015-05-11 23:59 ceserver
lrwxrwxrwx install install 2015-05-04 05:00 lib -> /data/app-lib/org.cheatengine.cetest
-rwxrwxrwx u0_a212 u0_a212 71240 2015-05-11 23:59 libceserver-extension.so
&s=0xbe9aaa20
main=0xe590
CEServer. Waiting for client connection
socket=3
IdentifierThread active
bind=0
listen=0
Identifier thread received a message :1
sizeof(packet)=6
packet.checksum=3e
packet.checksum=31e4
sendto returned 6
accept=5
(0000820)
grimmdev   
2015-05-12 09:00   
also it seems to freeze my app every time I've opened a process on it, well it's been doing that since I updated to android L (5)
(0000821)
grimmdev   
2015-06-11 02:21   
I have found a real solution, instead of using the the ceserver.
I used this.
http://forum.cheatengine.org/viewtopic.php?t=579943 and I was able to fix it without using the pie hack, in fact the problem seemed to be CM and how it handles Super User, I tried several different options. I found that chainfires Super user app with it's binaries solved the issue completely.

Issue History
2015-02-07 14:35grimmdevNew Issue
2015-02-07 14:35grimmdevFile Added: Screenshot_2015-02-07-06-12-18.png
2015-02-08 03:24Dark ByteNote Added: 0000732
2015-02-08 03:24Dark ByteAssigned To => Dark Byte
2015-02-08 03:24Dark ByteStatusnew => assigned
2015-02-08 07:08grimmdevNote Added: 0000736
2015-02-08 07:14grimmdevFile Added: Screenshot_2015-02-07-22-59-31.png
2015-02-08 07:15grimmdevNote Added: 0000737
2015-02-08 07:39grimmdevNote Added: 0000738
2015-02-08 08:02grimmdevNote Deleted: 0000736
2015-02-08 11:58Dark ByteNote Added: 0000739
2015-02-08 12:14Dark ByteNote Edited: 0000739bug_revision_view_page.php?bugnote_id=739#r4
2015-02-08 12:48Dark ByteNote Edited: 0000739bug_revision_view_page.php?bugnote_id=739#r5
2015-02-09 15:30Dark ByteNote Edited: 0000739bug_revision_view_page.php?bugnote_id=739#r8
2015-05-12 08:39grimmdevNote Added: 0000819
2015-05-12 09:00grimmdevNote Added: 0000820
2015-06-11 02:21grimmdevNote Added: 0000821
2016-02-29 11:30Carter GreatshowIssue cloned: 0000451
2016-06-05 15:18JptnucIssue cloned: 0000486