adjust Pathfinder.c for android side