AceTheGame icon indicating copy to clipboard operation
AceTheGame copied to clipboard

A14/15 constantly crashing

Open Vojtak42 opened this issue 10 months ago • 3 comments

Hi, when try to connect it to any app, atg crashes either instantly or after a while. Tried on PixelOS 14/15 using root. Only one time it did throw a popup about crashing. Here's the log: https://bin.mkr.pw/~67ae2197632ce757b626822c

Vojtak42 avatar Feb 13 '25 16:02 Vojtak42

PixelOS 15

I noticed it is possible to run ATG, or a patched APK. But when attempting to run both ATG and a patched APK at the same time this behavior is observed.

First path to recreate this behavior:

  1. Toggle ATG's permission, as it requires overlay access.
  2. Open ATG
  3. Accept the warning, when not in root.
  4. Start
  5. Click icon
  6. Instantiate server
  7. Click okay
  8. Close UI overlay
  9. Open Patched APK
  10. Experience crash -- Expected application to run as normal

Second path:

  1. Turn off overlap permission on ATG
  2. Open patched APK
  3. Try to open ATG
  4. ATG crashes -- Expected application to run as normal

Third path: 1., 2., same as Second path 3. Enable overlay permission 4. Try to open ATG 5. ATG crashes -- Expected application to run as normal

The error message, which flickers on rare occassion, says the application that crashes is hanging. Specifically, I believe it is the "Application Not Responding" error.

ragaar avatar Apr 16 '25 10:04 ragaar

I'm using root without patching the apps and it's also crashing. I don't think this matters.

Vojtak42 avatar Apr 16 '25 10:04 Vojtak42

I'm using root without patching the apps and it's also crashing. I don't think this matters.

Judging from the log it looked like that localhost suprisingly can't be resolved in your device

I am guessing that when the app connects to the memory scanning/editing service you will need to use absolute address either 127.0.0.1 or 0.0.0.0

this is the line of code that is responsible for the connection, try to change localhost to the absolute address https://github.com/KuhakuPixel/AceTheGame/blob/master/ATG/app/src/main/java/com/kuhakupixel/atg/backend/ACEAttachClient.kt#L18C63-L18C72

if that works please let me know, perhaps you can submit a pull request after that

KuhakuPixel avatar Apr 17 '25 22:04 KuhakuPixel