i solved it avoiding using ptrace, it solved all errors, and i replace ptrace by manually opening handle to proc/[freefirepid]/mem, i have direct access to the virtual memory of free fire without getting detected, i currently developed windows apis that we dont have in android, like virtualAllocEx, memsetex, OpenProcess etc, i am able to externally hook too, without getting detected, cause the game can detect read/write/execute mem pages, with the method i use i can write anywhere in memory without caring about the protection permissions!